Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.15.0 #78

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,4 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_generate_track_subtitles_request.py
test/test_generate_track_subtitles_response.py
tox.ini
4 changes: 2 additions & 2 deletions docs/AssetsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ Name | Type | Description | Notes

Update MP4 support

Allows you to add or remove mp4 support for assets that were created without it. Currently there are two values supported in this request, `standard` and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question.
Allows you to add or remove mp4 support for assets that were created without it. The values supported are `capped-1080p`, `audio-only`, `audio-only,capped-1080p`, `standard`(deprecated), and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question.

### Example

Expand Down Expand Up @@ -1028,7 +1028,7 @@ with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The asset ID.
update_asset_mp4_support_request = {"mp4_support":"standard"} # UpdateAssetMP4SupportRequest |
update_asset_mp4_support_request = {"mp4_support":"capped-1080p"} # UpdateAssetMP4SupportRequest |

try:
# Update MP4 support
Expand Down
2 changes: 1 addition & 1 deletion docs/CreateAssetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**playback_policy** | [**list[PlaybackPolicy]**](PlaybackPolicy.md) | An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: `\"public\"` (anyone with the playback URL can stream the asset). And `\"signed\"` (an additional access token is required to play the asset). If no playback_policy is set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. | [optional]
**per_title_encode** | **bool** | | [optional]
**passthrough** | **str** | Arbitrary user-supplied metadata that will be included in the asset details and related webhooks. Can be used to store your own ID for a video along with the asset. **Max: 255 characters**. | [optional]
**mp4_support** | **str** | Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional]
**mp4_support** | **str** | Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional]
**normalize_audio** | **bool** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional] [default to False]
**master_access** | **str** | Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional]
**test** | **bool** | Marks the asset as a test asset when the value is set to true. A Test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test asset are watermarked with the Mux logo, limited to 10 seconds, deleted after 24 hrs. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/DirectUploadsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ configuration = mux_python.Configuration(
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.DirectUploadsApi(api_client)
create_upload_request = {"cors_origin":"https://example.com/","new_asset_settings":{"playback_policy":["public"]}} # CreateUploadRequest |
create_upload_request = {"cors_origin":"https://example.com/","new_asset_settings":{"playback_policy":["public"],"mp4_support":"capped-1080p"}} # CreateUploadRequest |

try:
# Create a new direct upload URL
Expand Down
2 changes: 1 addition & 1 deletion docs/UpdateAssetMP4SupportRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**mp4_support** | **str** | String value for the level of mp4 support | [optional]
**mp4_support** | **str** | Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). `none` will delete the MP4s from the asset in question. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 1 addition & 1 deletion gen/generator-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"packageName": "mux_python",
"projectName": "mux_python",
"licenseInfo" : "MIT",
"packageVersion": "3.14.0"
"packageVersion": "3.15.0"
}
2 changes: 1 addition & 1 deletion mux_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from __future__ import absolute_import

__version__ = "3.14.0"
__version__ = "3.15.0"

# import apis into sdk package
from mux_python.api.assets_api import AssetsApi
Expand Down
4 changes: 2 additions & 2 deletions mux_python/api/assets_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1917,7 +1917,7 @@ def update_asset_master_access_with_http_info(self, asset_id, update_asset_maste
def update_asset_mp4_support(self, asset_id, update_asset_mp4_support_request, **kwargs): # noqa: E501
"""Update MP4 support # noqa: E501

Allows you to add or remove mp4 support for assets that were created without it. Currently there are two values supported in this request, `standard` and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question. # noqa: E501
Allows you to add or remove mp4 support for assets that were created without it. The values supported are `capped-1080p`, `audio-only`, `audio-only,capped-1080p`, `standard`(deprecated), and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down Expand Up @@ -1949,7 +1949,7 @@ def update_asset_mp4_support(self, asset_id, update_asset_mp4_support_request, *
def update_asset_mp4_support_with_http_info(self, asset_id, update_asset_mp4_support_request, **kwargs): # noqa: E501
"""Update MP4 support # noqa: E501

Allows you to add or remove mp4 support for assets that were created without it. Currently there are two values supported in this request, `standard` and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question. # noqa: E501
Allows you to add or remove mp4 support for assets that were created without it. The values supported are `capped-1080p`, `audio-only`, `audio-only,capped-1080p`, `standard`(deprecated), and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down
2 changes: 1 addition & 1 deletion mux_python/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/3.14.0/python'
self.user_agent = 'OpenAPI-Generator/3.15.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion mux_python/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v1\n"\
"SDK Package Version: 3.14.0".\
"SDK Package Version: 3.15.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion mux_python/models/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def mp4_support(self, mp4_support):
:param mp4_support: The mp4_support of this Asset. # noqa: E501
:type mp4_support: str
"""
allowed_values = ["standard", "none"] # noqa: E501
allowed_values = ["standard", "none", "capped-1080p", "audio-only", "audio-only,capped-1080p"] # noqa: E501
if self.local_vars_configuration.client_side_validation and mp4_support not in allowed_values: # noqa: E501
raise ValueError(
"Invalid value for `mp4_support` ({0}), must be one of {1}" # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion mux_python/models/asset_static_renditions_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def name(self, name):
:param name: The name of this AssetStaticRenditionsFiles. # noqa: E501
:type name: str
"""
allowed_values = ["low.mp4", "medium.mp4", "high.mp4", "audio.m4a"] # noqa: E501
allowed_values = ["low.mp4", "medium.mp4", "high.mp4", "audio.m4a", "capped-1080p.mp4"] # noqa: E501
if self.local_vars_configuration.client_side_validation and name not in allowed_values: # noqa: E501
raise ValueError(
"Invalid value for `name` ({0}), must be one of {1}" # noqa: E501
Expand Down
6 changes: 3 additions & 3 deletions mux_python/models/create_asset_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def passthrough(self, passthrough):
def mp4_support(self):
"""Gets the mp4_support of this CreateAssetRequest. # noqa: E501

Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. # noqa: E501
Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. # noqa: E501

:return: The mp4_support of this CreateAssetRequest. # noqa: E501
:rtype: str
Expand All @@ -206,12 +206,12 @@ def mp4_support(self):
def mp4_support(self, mp4_support):
"""Sets the mp4_support of this CreateAssetRequest.

Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. # noqa: E501
Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. # noqa: E501

:param mp4_support: The mp4_support of this CreateAssetRequest. # noqa: E501
:type mp4_support: str
"""
allowed_values = ["none", "standard"] # noqa: E501
allowed_values = ["none", "standard", "capped-1080p", "audio-only", "audio-only,capped-1080p"] # noqa: E501
if self.local_vars_configuration.client_side_validation and mp4_support not in allowed_values: # noqa: E501
raise ValueError(
"Invalid value for `mp4_support` ({0}), must be one of {1}" # noqa: E501
Expand Down
6 changes: 3 additions & 3 deletions mux_python/models/update_asset_mp4_support_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self, mp4_support=None, local_vars_configuration=None): # noqa: E5
def mp4_support(self):
"""Gets the mp4_support of this UpdateAssetMP4SupportRequest. # noqa: E501

String value for the level of mp4 support # noqa: E501
Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). `none` will delete the MP4s from the asset in question. # noqa: E501

:return: The mp4_support of this UpdateAssetMP4SupportRequest. # noqa: E501
:rtype: str
Expand All @@ -71,12 +71,12 @@ def mp4_support(self):
def mp4_support(self, mp4_support):
"""Sets the mp4_support of this UpdateAssetMP4SupportRequest.

String value for the level of mp4 support # noqa: E501
Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). `none` will delete the MP4s from the asset in question. # noqa: E501

:param mp4_support: The mp4_support of this UpdateAssetMP4SupportRequest. # noqa: E501
:type mp4_support: str
"""
allowed_values = ["standard", "none"] # noqa: E501
allowed_values = ["standard", "none", "capped-1080p", "audio-only", "audio-only,capped-1080p"] # noqa: E501
if self.local_vars_configuration.client_side_validation and mp4_support not in allowed_values: # noqa: E501
raise ValueError(
"Invalid value for `mp4_support` ({0}), must be one of {1}" # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "mux_python"
VERSION = "3.14.0"
VERSION = "3.15.0"
# To install the library, run the following
#
# python setup.py install
Expand Down
Loading