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.18.0 #82

Merged
merged 2 commits into from
Aug 28, 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
3 changes: 2 additions & 1 deletion docs/Asset.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Name | Type | Description | Notes
**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]
**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]
**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]
**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]
**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]
**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]
**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]
**aspect_ratio** | **str** | The aspect ratio of the asset in the form of `width:height`, for example `16:9`. | [optional]
**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]
Expand Down
2 changes: 1 addition & 1 deletion docs/AssetsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ configuration = mux_python.Configuration(
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
create_asset_request = {"input":[{"url":"https://muxed.s3.amazonaws.com/leds.mp4"}],"playback_policy":["public"],"encoding_tier":"baseline"} # CreateAssetRequest |
create_asset_request = {"input":[{"url":"https://muxed.s3.amazonaws.com/leds.mp4"}],"playback_policy":["public"],"video_quality":"basic"} # CreateAssetRequest |

try:
# Create an asset
Expand Down
3 changes: 2 additions & 1 deletion docs/CreateAssetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Name | Type | Description | Notes
**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]
**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]
**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]
**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]
**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]

[[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
3 changes: 2 additions & 1 deletion docs/DeliveryReport.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Name | Type | Description | Notes
**asset_state** | **str** | The state of the asset. | [optional]
**asset_duration** | **float** | The duration of the asset in seconds. | [optional]
**asset_resolution_tier** | **str** | The resolution tier that the asset was ingested at, affecting billing for ingest & storage | [optional]
**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]
**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]
**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]
**delivered_seconds** | **float** | Total number of delivered seconds during this time window. | [optional]
**delivered_seconds_by_resolution** | [**DeliveryReportDeliveredSecondsByResolution**](DeliveryReportDeliveredSecondsByResolution.md) | | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/PlaybackPolicy.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PlaybackPolicy

* `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.
* `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).
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
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.17.0"
"packageVersion": "3.18.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.17.0"
__version__ = "3.18.0"

# import apis into sdk package
from mux_python.api.assets_api import AssetsApi
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 = 'Mux Python | 3.17.0'
self.user_agent = 'Mux Python | 3.18.0'
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.17.0".\
"SDK Package Version: 3.18.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
40 changes: 37 additions & 3 deletions mux_python/models/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Asset(object):
'resolution_tier': 'str',
'max_resolution_tier': 'str',
'encoding_tier': 'str',
'video_quality': 'str',
'max_stored_frame_rate': 'float',
'aspect_ratio': 'str',
'playback_ids': 'list[PlaybackID]',
Expand Down Expand Up @@ -76,6 +77,7 @@ class Asset(object):
'resolution_tier': 'resolution_tier',
'max_resolution_tier': 'max_resolution_tier',
'encoding_tier': 'encoding_tier',
'video_quality': 'video_quality',
'max_stored_frame_rate': 'max_stored_frame_rate',
'aspect_ratio': 'aspect_ratio',
'playback_ids': 'playback_ids',
Expand All @@ -98,7 +100,7 @@ class Asset(object):
'ingest_type': 'ingest_type'
}

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
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
"""Asset - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
Expand All @@ -112,6 +114,7 @@ def __init__(self, id=None, created_at=None, status=None, duration=None, max_sto
self._resolution_tier = None
self._max_resolution_tier = None
self._encoding_tier = None
self._video_quality = None
self._max_stored_frame_rate = None
self._aspect_ratio = None
self._playback_ids = None
Expand Down Expand Up @@ -150,6 +153,8 @@ def __init__(self, id=None, created_at=None, status=None, duration=None, max_sto
self.max_resolution_tier = max_resolution_tier
if encoding_tier is not None:
self.encoding_tier = encoding_tier
if video_quality is not None:
self.video_quality = video_quality
if max_stored_frame_rate is not None:
self.max_stored_frame_rate = max_stored_frame_rate
if aspect_ratio is not None:
Expand Down Expand Up @@ -380,7 +385,7 @@ def max_resolution_tier(self, max_resolution_tier):
def encoding_tier(self):
"""Gets the encoding_tier of this Asset. # noqa: E501

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
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

:return: The encoding_tier of this Asset. # noqa: E501
:rtype: str
Expand All @@ -391,7 +396,7 @@ def encoding_tier(self):
def encoding_tier(self, encoding_tier):
"""Sets the encoding_tier of this Asset.

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
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

:param encoding_tier: The encoding_tier of this Asset. # noqa: E501
:type encoding_tier: str
Expand All @@ -405,6 +410,35 @@ def encoding_tier(self, encoding_tier):

self._encoding_tier = encoding_tier

@property
def video_quality(self):
"""Gets the video_quality of this Asset. # noqa: E501

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

:return: The video_quality of this Asset. # noqa: E501
:rtype: str
"""
return self._video_quality

@video_quality.setter
def video_quality(self, video_quality):
"""Sets the video_quality of this Asset.

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

:param video_quality: The video_quality of this Asset. # noqa: E501
:type video_quality: str
"""
allowed_values = ["basic", "plus"] # noqa: E501
if self.local_vars_configuration.client_side_validation and video_quality not in allowed_values: # noqa: E501
raise ValueError(
"Invalid value for `video_quality` ({0}), must be one of {1}" # noqa: E501
.format(video_quality, allowed_values)
)

self._video_quality = video_quality

@property
def max_stored_frame_rate(self):
"""Gets the max_stored_frame_rate of this Asset. # noqa: E501
Expand Down
Loading
Loading