Skip to content

Commit 7285191

Browse files
authored
3.15.0 (#78)
1 parent 2fbc5da commit 7285191

15 files changed

+20
-22
lines changed

.openapi-generator/FILES

-2
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,4 @@ setup.cfg
367367
setup.py
368368
test-requirements.txt
369369
test/__init__.py
370-
test/test_generate_track_subtitles_request.py
371-
test/test_generate_track_subtitles_response.py
372370
tox.ini

docs/AssetsApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ Name | Type | Description | Notes
995995
996996
Update MP4 support
997997

998-
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.
998+
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.
999999

10001000
### Example
10011001

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

10331033
try:
10341034
# Update MP4 support

docs/CreateAssetRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**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]
88
**per_title_encode** | **bool** | | [optional]
99
**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]
10-
**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]
10+
**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]
1111
**normalize_audio** | **bool** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional] [default to False]
1212
**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]
1313
**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]

docs/DirectUploadsApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ configuration = mux_python.Configuration(
121121
with mux_python.ApiClient(configuration) as api_client:
122122
# Create an instance of the API class
123123
api_instance = mux_python.DirectUploadsApi(api_client)
124-
create_upload_request = {"cors_origin":"https://example.com/","new_asset_settings":{"playback_policy":["public"]}} # CreateUploadRequest |
124+
create_upload_request = {"cors_origin":"https://example.com/","new_asset_settings":{"playback_policy":["public"],"mp4_support":"capped-1080p"}} # CreateUploadRequest |
125125

126126
try:
127127
# Create a new direct upload URL

docs/UpdateAssetMP4SupportRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**mp4_support** | **str** | String value for the level of mp4 support | [optional]
6+
**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]
77

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

gen/generator-config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"packageName": "mux_python",
44
"projectName": "mux_python",
55
"licenseInfo" : "MIT",
6-
"packageVersion": "3.14.0"
6+
"packageVersion": "3.15.0"
77
}

mux_python/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from __future__ import absolute_import
1717

18-
__version__ = "3.14.0"
18+
__version__ = "3.15.0"
1919

2020
# import apis into sdk package
2121
from mux_python.api.assets_api import AssetsApi

mux_python/api/assets_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ def update_asset_master_access_with_http_info(self, asset_id, update_asset_maste
19171917
def update_asset_mp4_support(self, asset_id, update_asset_mp4_support_request, **kwargs): # noqa: E501
19181918
"""Update MP4 support # noqa: E501
19191919
1920-
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
1920+
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
19211921
This method makes a synchronous HTTP request by default. To make an
19221922
asynchronous HTTP request, please pass async_req=True
19231923
@@ -1949,7 +1949,7 @@ def update_asset_mp4_support(self, asset_id, update_asset_mp4_support_request, *
19491949
def update_asset_mp4_support_with_http_info(self, asset_id, update_asset_mp4_support_request, **kwargs): # noqa: E501
19501950
"""Update MP4 support # noqa: E501
19511951
1952-
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
1952+
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
19531953
This method makes a synchronous HTTP request by default. To make an
19541954
asynchronous HTTP request, please pass async_req=True
19551955

mux_python/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7979
self.default_headers[header_name] = header_value
8080
self.cookie = cookie
8181
# Set default User-Agent.
82-
self.user_agent = 'OpenAPI-Generator/3.14.0/python'
82+
self.user_agent = 'OpenAPI-Generator/3.15.0/python'
8383
self.client_side_validation = configuration.client_side_validation
8484

8585
def __enter__(self):

mux_python/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def to_debug_report(self):
406406
"OS: {env}\n"\
407407
"Python Version: {pyversion}\n"\
408408
"Version of the API: v1\n"\
409-
"SDK Package Version: 3.14.0".\
409+
"SDK Package Version: 3.15.0".\
410410
format(env=sys.platform, pyversion=sys.version)
411411

412412
def get_host_settings(self):

mux_python/models/asset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ def mp4_support(self, mp4_support):
697697
:param mp4_support: The mp4_support of this Asset. # noqa: E501
698698
:type mp4_support: str
699699
"""
700-
allowed_values = ["standard", "none"] # noqa: E501
700+
allowed_values = ["standard", "none", "capped-1080p", "audio-only", "audio-only,capped-1080p"] # noqa: E501
701701
if self.local_vars_configuration.client_side_validation and mp4_support not in allowed_values: # noqa: E501
702702
raise ValueError(
703703
"Invalid value for `mp4_support` ({0}), must be one of {1}" # noqa: E501

mux_python/models/asset_static_renditions_files.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def name(self, name):
9999
:param name: The name of this AssetStaticRenditionsFiles. # noqa: E501
100100
:type name: str
101101
"""
102-
allowed_values = ["low.mp4", "medium.mp4", "high.mp4", "audio.m4a"] # noqa: E501
102+
allowed_values = ["low.mp4", "medium.mp4", "high.mp4", "audio.m4a", "capped-1080p.mp4"] # noqa: E501
103103
if self.local_vars_configuration.client_side_validation and name not in allowed_values: # noqa: E501
104104
raise ValueError(
105105
"Invalid value for `name` ({0}), must be one of {1}" # noqa: E501

mux_python/models/create_asset_request.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def passthrough(self, passthrough):
195195
def mp4_support(self):
196196
"""Gets the mp4_support of this CreateAssetRequest. # noqa: E501
197197
198-
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
198+
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
199199
200200
:return: The mp4_support of this CreateAssetRequest. # noqa: E501
201201
:rtype: str
@@ -206,12 +206,12 @@ def mp4_support(self):
206206
def mp4_support(self, mp4_support):
207207
"""Sets the mp4_support of this CreateAssetRequest.
208208
209-
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
209+
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
210210
211211
:param mp4_support: The mp4_support of this CreateAssetRequest. # noqa: E501
212212
:type mp4_support: str
213213
"""
214-
allowed_values = ["none", "standard"] # noqa: E501
214+
allowed_values = ["none", "standard", "capped-1080p", "audio-only", "audio-only,capped-1080p"] # noqa: E501
215215
if self.local_vars_configuration.client_side_validation and mp4_support not in allowed_values: # noqa: E501
216216
raise ValueError(
217217
"Invalid value for `mp4_support` ({0}), must be one of {1}" # noqa: E501

mux_python/models/update_asset_mp4_support_request.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self, mp4_support=None, local_vars_configuration=None): # noqa: E5
6060
def mp4_support(self):
6161
"""Gets the mp4_support of this UpdateAssetMP4SupportRequest. # noqa: E501
6262
63-
String value for the level of mp4 support # noqa: E501
63+
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
6464
6565
:return: The mp4_support of this UpdateAssetMP4SupportRequest. # noqa: E501
6666
:rtype: str
@@ -71,12 +71,12 @@ def mp4_support(self):
7171
def mp4_support(self, mp4_support):
7272
"""Sets the mp4_support of this UpdateAssetMP4SupportRequest.
7373
74-
String value for the level of mp4 support # noqa: E501
74+
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
7575
7676
:param mp4_support: The mp4_support of this UpdateAssetMP4SupportRequest. # noqa: E501
7777
:type mp4_support: str
7878
"""
79-
allowed_values = ["standard", "none"] # noqa: E501
79+
allowed_values = ["standard", "none", "capped-1080p", "audio-only", "audio-only,capped-1080p"] # noqa: E501
8080
if self.local_vars_configuration.client_side_validation and mp4_support not in allowed_values: # noqa: E501
8181
raise ValueError(
8282
"Invalid value for `mp4_support` ({0}), must be one of {1}" # noqa: E501

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from setuptools import setup, find_packages # noqa: H301
1616

1717
NAME = "mux_python"
18-
VERSION = "3.14.0"
18+
VERSION = "3.15.0"
1919
# To install the library, run the following
2020
#
2121
# python setup.py install

0 commit comments

Comments
 (0)