Skip to content

Commit 70431a2

Browse files
authored
3.18.0 (#82)
* 3.18.0 * actually 3.18.0
1 parent 02b8f77 commit 70431a2

13 files changed

+126
-21
lines changed

docs/Asset.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Name | Type | Description | Notes
1010
**max_stored_resolution** | **str** | This field is deprecated. Please use `resolution_tier` instead. The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. | [optional]
1111
**resolution_tier** | **str** | The resolution tier that the asset was ingested at, affecting billing for ingest & storage. This field also represents the highest resolution tier that the content can be delivered at, however the actual resolution may be lower depending on the device, bandwidth, and exact resolution of the uploaded asset. | [optional]
1212
**max_resolution_tier** | **str** | Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. | [optional]
13-
**encoding_tier** | **str** | The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional]
13+
**encoding_tier** | **str** | This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional]
14+
**video_quality** | **str** | The video quality controls the cost, quality, and available platform features for the asset. By default the `plus` video quality is used. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional]
1415
**max_stored_frame_rate** | **float** | The maximum frame rate that has been stored for the asset. The asset may be delivered at lower frame rates depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. This field may return -1 if the frame rate of the input cannot be reliably determined. | [optional]
1516
**aspect_ratio** | **str** | The aspect ratio of the asset in the form of `width:height`, for example `16:9`. | [optional]
1617
**playback_ids** | [**list[PlaybackID]**](PlaybackID.md) | An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/play-your-videos) for more details. | [optional]

docs/AssetsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ configuration = mux_python.Configuration(
5757
with mux_python.ApiClient(configuration) as api_client:
5858
# Create an instance of the API class
5959
api_instance = mux_python.AssetsApi(api_client)
60-
create_asset_request = {"input":[{"url":"https://muxed.s3.amazonaws.com/leds.mp4"}],"playback_policy":["public"],"encoding_tier":"baseline"} # CreateAssetRequest |
60+
create_asset_request = {"input":[{"url":"https://muxed.s3.amazonaws.com/leds.mp4"}],"playback_policy":["public"],"video_quality":"basic"} # CreateAssetRequest |
6161

6262
try:
6363
# Create an asset

docs/CreateAssetRequest.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ Name | Type | Description | Notes
1313
**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]
1414
**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]
1515
**max_resolution_tier** | **str** | Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. | [optional]
16-
**encoding_tier** | **str** | The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional]
16+
**encoding_tier** | **str** | This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional]
17+
**video_quality** | **str** | The video quality controls the cost, quality, and available platform features for the asset. By default the `plus` video quality is used. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional]
1718

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

docs/DeliveryReport.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Name | Type | Description | Notes
1111
**asset_state** | **str** | The state of the asset. | [optional]
1212
**asset_duration** | **float** | The duration of the asset in seconds. | [optional]
1313
**asset_resolution_tier** | **str** | The resolution tier that the asset was ingested at, affecting billing for ingest & storage | [optional]
14-
**asset_encoding_tier** | **str** | The encoding tier that the asset was ingested at. [See the encoding tiers guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional]
14+
**asset_encoding_tier** | **str** | This field is deprecated. Please use `asset_video_quality` instead. The encoding tier that the asset was ingested at. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional]
15+
**asset_video_quality** | **str** | The video quality that the asset was ingested at. This field replaces `asset_encoding_tier`. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional]
1516
**delivered_seconds** | **float** | Total number of delivered seconds during this time window. | [optional]
1617
**delivered_seconds_by_resolution** | [**DeliveryReportDeliveredSecondsByResolution**](DeliveryReportDeliveredSecondsByResolution.md) | | [optional]
1718

docs/PlaybackPolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PlaybackPolicy
22

3-
* `public` playback IDs are accessible by constructing an HLS URL like `https://stream.mux.com/${PLAYBACK_ID}` * `signed` playback IDs should be used with tokens `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for details about creating tokens.
3+
* `public` playback IDs are accessible by constructing an HLS URL like `https://stream.mux.com/${PLAYBACK_ID}` * `signed` playback IDs should be used with tokens `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for details about creating tokens. * `drm` playback IDs are protected with DRM technologies. [See DRM documentation for more details](https://docs.mux.com/guides/protect-videos-with-drm).
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------

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": "3.17.0"
6+
"packageVersion": "3.18.0"
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__ = "3.17.0"
18+
__version__ = "3.18.0"
1919

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

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 | 3.17.0'
82+
self.user_agent = 'Mux Python | 3.18.0'
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: 3.17.0".\
409+
"SDK Package Version: 3.18.0".\
410410
format(env=sys.platform, pyversion=sys.version)
411411

412412
def get_host_settings(self):

mux_python/models/asset.py

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class Asset(object):
4545
'resolution_tier': 'str',
4646
'max_resolution_tier': 'str',
4747
'encoding_tier': 'str',
48+
'video_quality': 'str',
4849
'max_stored_frame_rate': 'float',
4950
'aspect_ratio': 'str',
5051
'playback_ids': 'list[PlaybackID]',
@@ -76,6 +77,7 @@ class Asset(object):
7677
'resolution_tier': 'resolution_tier',
7778
'max_resolution_tier': 'max_resolution_tier',
7879
'encoding_tier': 'encoding_tier',
80+
'video_quality': 'video_quality',
7981
'max_stored_frame_rate': 'max_stored_frame_rate',
8082
'aspect_ratio': 'aspect_ratio',
8183
'playback_ids': 'playback_ids',
@@ -98,7 +100,7 @@ class Asset(object):
98100
'ingest_type': 'ingest_type'
99101
}
100102

101-
def __init__(self, id=None, created_at=None, status=None, duration=None, max_stored_resolution=None, resolution_tier=None, max_resolution_tier=None, encoding_tier=None, max_stored_frame_rate=None, aspect_ratio=None, playback_ids=None, tracks=None, errors=None, per_title_encode=None, upload_id=None, is_live=None, passthrough=None, live_stream_id=None, master=None, master_access='none', mp4_support='none', source_asset_id=None, normalize_audio=False, static_renditions=None, recording_times=None, non_standard_input_reasons=None, test=None, ingest_type=None, local_vars_configuration=None): # noqa: E501
103+
def __init__(self, id=None, created_at=None, status=None, duration=None, max_stored_resolution=None, resolution_tier=None, max_resolution_tier=None, encoding_tier=None, video_quality=None, max_stored_frame_rate=None, aspect_ratio=None, playback_ids=None, tracks=None, errors=None, per_title_encode=None, upload_id=None, is_live=None, passthrough=None, live_stream_id=None, master=None, master_access='none', mp4_support='none', source_asset_id=None, normalize_audio=False, static_renditions=None, recording_times=None, non_standard_input_reasons=None, test=None, ingest_type=None, local_vars_configuration=None): # noqa: E501
102104
"""Asset - a model defined in OpenAPI""" # noqa: E501
103105
if local_vars_configuration is None:
104106
local_vars_configuration = Configuration.get_default_copy()
@@ -112,6 +114,7 @@ def __init__(self, id=None, created_at=None, status=None, duration=None, max_sto
112114
self._resolution_tier = None
113115
self._max_resolution_tier = None
114116
self._encoding_tier = None
117+
self._video_quality = None
115118
self._max_stored_frame_rate = None
116119
self._aspect_ratio = None
117120
self._playback_ids = None
@@ -150,6 +153,8 @@ def __init__(self, id=None, created_at=None, status=None, duration=None, max_sto
150153
self.max_resolution_tier = max_resolution_tier
151154
if encoding_tier is not None:
152155
self.encoding_tier = encoding_tier
156+
if video_quality is not None:
157+
self.video_quality = video_quality
153158
if max_stored_frame_rate is not None:
154159
self.max_stored_frame_rate = max_stored_frame_rate
155160
if aspect_ratio is not None:
@@ -380,7 +385,7 @@ def max_resolution_tier(self, max_resolution_tier):
380385
def encoding_tier(self):
381386
"""Gets the encoding_tier of this Asset. # noqa: E501
382387
383-
The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) # noqa: E501
388+
This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) # noqa: E501
384389
385390
:return: The encoding_tier of this Asset. # noqa: E501
386391
:rtype: str
@@ -391,7 +396,7 @@ def encoding_tier(self):
391396
def encoding_tier(self, encoding_tier):
392397
"""Sets the encoding_tier of this Asset.
393398
394-
The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) # noqa: E501
399+
This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) # noqa: E501
395400
396401
:param encoding_tier: The encoding_tier of this Asset. # noqa: E501
397402
:type encoding_tier: str
@@ -405,6 +410,35 @@ def encoding_tier(self, encoding_tier):
405410

406411
self._encoding_tier = encoding_tier
407412

413+
@property
414+
def video_quality(self):
415+
"""Gets the video_quality of this Asset. # noqa: E501
416+
417+
The video quality controls the cost, quality, and available platform features for the asset. By default the `plus` video quality is used. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) # noqa: E501
418+
419+
:return: The video_quality of this Asset. # noqa: E501
420+
:rtype: str
421+
"""
422+
return self._video_quality
423+
424+
@video_quality.setter
425+
def video_quality(self, video_quality):
426+
"""Sets the video_quality of this Asset.
427+
428+
The video quality controls the cost, quality, and available platform features for the asset. By default the `plus` video quality is used. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) # noqa: E501
429+
430+
:param video_quality: The video_quality of this Asset. # noqa: E501
431+
:type video_quality: str
432+
"""
433+
allowed_values = ["basic", "plus"] # noqa: E501
434+
if self.local_vars_configuration.client_side_validation and video_quality not in allowed_values: # noqa: E501
435+
raise ValueError(
436+
"Invalid value for `video_quality` ({0}), must be one of {1}" # noqa: E501
437+
.format(video_quality, allowed_values)
438+
)
439+
440+
self._video_quality = video_quality
441+
408442
@property
409443
def max_stored_frame_rate(self):
410444
"""Gets the max_stored_frame_rate of this Asset. # noqa: E501

0 commit comments

Comments
 (0)