Skip to content

Commit b0f7343

Browse files
authored
fix: add audio-only enum option in resolution_tier for Static Rendition responses (#91)
1 parent 5545e8a commit b0f7343

File tree

11 files changed

+18
-19
lines changed

11 files changed

+18
-19
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,5 +361,4 @@ setup.cfg
361361
setup.py
362362
test-requirements.txt
363363
test/__init__.py
364-
test/test_asset_metadata.py
365364
tox.ini

docs/AssetMetadata.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**title** | **str** | The video title. Max 512 code points. | [optional]
7-
**creator_id** | **str** | This is an identifier you provide to keep track of the creator of the video. Max 128 code points. | [optional]
8-
**external_id** | **str** | This is an identifier you provide to link the video to your own data. Max 128 code points. | [optional]
6+
**title** | **str** | The asset title. Max 512 code points. | [optional]
7+
**creator_id** | **str** | This is an identifier you provide to keep track of the creator of the asset. Max 128 code points. | [optional]
8+
**external_id** | **str** | This is an identifier you provide to link the asset to your own data. Max 128 code points. | [optional]
99

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

docs/AssetsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ Name | Type | Description | Notes
250250
251251
Create an asset track
252252

253-
Adds an asset track (for example, subtitles, or an alternate audio track) to an asset.
253+
Adds an asset track (for example, subtitles, or an alternate audio track) to an asset. Assets must be in the `ready` state before tracks can be added.
254254

255255
### Example
256256

gen/generator-config.json

Lines changed: 1 addition & 1 deletion
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": "5.0.0"
6+
"packageVersion": "5.0.1"
77
}

mux_python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from __future__ import absolute_import
1717

18-
__version__ = "5.0.0"
18+
__version__ = "5.0.1"
1919

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

mux_python/api/assets_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def create_asset_static_rendition_with_http_info(self, asset_id, create_static_r
479479
def create_asset_track(self, asset_id, create_track_request, **kwargs): # noqa: E501
480480
"""Create an asset track # noqa: E501
481481
482-
Adds an asset track (for example, subtitles, or an alternate audio track) to an asset. # noqa: E501
482+
Adds an asset track (for example, subtitles, or an alternate audio track) to an asset. Assets must be in the `ready` state before tracks can be added. # noqa: E501
483483
This method makes a synchronous HTTP request by default. To make an
484484
asynchronous HTTP request, please pass async_req=True
485485
@@ -511,7 +511,7 @@ def create_asset_track(self, asset_id, create_track_request, **kwargs): # noqa:
511511
def create_asset_track_with_http_info(self, asset_id, create_track_request, **kwargs): # noqa: E501
512512
"""Create an asset track # noqa: E501
513513
514-
Adds an asset track (for example, subtitles, or an alternate audio track) to an asset. # noqa: E501
514+
Adds an asset track (for example, subtitles, or an alternate audio track) to an asset. Assets must be in the `ready` state before tracks can be added. # noqa: E501
515515
This method makes a synchronous HTTP request by default. To make an
516516
asynchronous HTTP request, please pass async_req=True
517517

mux_python/api_client.py

Lines changed: 1 addition & 1 deletion
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 = 'Mux Python | 5.0.0'
82+
self.user_agent = 'Mux Python | 5.0.1'
8383
self.client_side_validation = configuration.client_side_validation
8484

8585
def __enter__(self):

mux_python/configuration.py

Lines changed: 1 addition & 1 deletion
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: 5.0.0".\
409+
"SDK Package Version: 5.0.1".\
410410
format(env=sys.platform, pyversion=sys.version)
411411

412412
def get_host_settings(self):

mux_python/models/asset_metadata.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __init__(self, title=None, creator_id=None, external_id=None, local_vars_con
7070
def title(self):
7171
"""Gets the title of this AssetMetadata. # noqa: E501
7272
73-
The video title. Max 512 code points. # noqa: E501
73+
The asset title. Max 512 code points. # noqa: E501
7474
7575
:return: The title of this AssetMetadata. # noqa: E501
7676
:rtype: str
@@ -81,7 +81,7 @@ def title(self):
8181
def title(self, title):
8282
"""Sets the title of this AssetMetadata.
8383
84-
The video title. Max 512 code points. # noqa: E501
84+
The asset title. Max 512 code points. # noqa: E501
8585
8686
:param title: The title of this AssetMetadata. # noqa: E501
8787
:type title: str
@@ -96,7 +96,7 @@ def title(self, title):
9696
def creator_id(self):
9797
"""Gets the creator_id of this AssetMetadata. # noqa: E501
9898
99-
This is an identifier you provide to keep track of the creator of the video. Max 128 code points. # noqa: E501
99+
This is an identifier you provide to keep track of the creator of the asset. Max 128 code points. # noqa: E501
100100
101101
:return: The creator_id of this AssetMetadata. # noqa: E501
102102
:rtype: str
@@ -107,7 +107,7 @@ def creator_id(self):
107107
def creator_id(self, creator_id):
108108
"""Sets the creator_id of this AssetMetadata.
109109
110-
This is an identifier you provide to keep track of the creator of the video. Max 128 code points. # noqa: E501
110+
This is an identifier you provide to keep track of the creator of the asset. Max 128 code points. # noqa: E501
111111
112112
:param creator_id: The creator_id of this AssetMetadata. # noqa: E501
113113
:type creator_id: str
@@ -122,7 +122,7 @@ def creator_id(self, creator_id):
122122
def external_id(self):
123123
"""Gets the external_id of this AssetMetadata. # noqa: E501
124124
125-
This is an identifier you provide to link the video to your own data. Max 128 code points. # noqa: E501
125+
This is an identifier you provide to link the asset to your own data. Max 128 code points. # noqa: E501
126126
127127
:return: The external_id of this AssetMetadata. # noqa: E501
128128
:rtype: str
@@ -133,7 +133,7 @@ def external_id(self):
133133
def external_id(self, external_id):
134134
"""Sets the external_id of this AssetMetadata.
135135
136-
This is an identifier you provide to link the video to your own data. Max 128 code points. # noqa: E501
136+
This is an identifier you provide to link the asset to your own data. Max 128 code points. # noqa: E501
137137
138138
:param external_id: The external_id of this AssetMetadata. # noqa: E501
139139
:type external_id: str

mux_python/models/static_rendition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def resolution_tier(self, resolution_tier):
339339
:param resolution_tier: The resolution_tier of this StaticRendition. # noqa: E501
340340
:type resolution_tier: str
341341
"""
342-
allowed_values = ["2160p", "1440p", "1080p", "720p"] # noqa: E501
342+
allowed_values = ["2160p", "1440p", "1080p", "720p", "audio-only"] # noqa: E501
343343
if self.local_vars_configuration.client_side_validation and resolution_tier not in allowed_values: # noqa: E501
344344
raise ValueError(
345345
"Invalid value for `resolution_tier` ({0}), must be one of {1}" # noqa: E501

0 commit comments

Comments
 (0)