From 90ba2ba0c9bc4a2e15a34f82f34bcec8d25aef00 Mon Sep 17 00:00:00 2001 From: Justin Sanford Date: Mon, 14 Apr 2025 10:24:45 -0700 Subject: [PATCH] fix: add `audio-only` enum option in `resolution_tier` for Static Rendition responses --- .openapi-generator/FILES | 1 - docs/AssetMetadata.md | 6 +++--- docs/AssetsApi.md | 2 +- gen/generator-config.json | 2 +- mux_python/__init__.py | 2 +- mux_python/api/assets_api.py | 4 ++-- mux_python/api_client.py | 2 +- mux_python/configuration.py | 2 +- mux_python/models/asset_metadata.py | 12 ++++++------ mux_python/models/static_rendition.py | 2 +- setup.py | 2 +- 11 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index ddb3adf..a68d8ca 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -361,5 +361,4 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_asset_metadata.py tox.ini diff --git a/docs/AssetMetadata.md b/docs/AssetMetadata.md index 7167ffd..58c3a09 100644 --- a/docs/AssetMetadata.md +++ b/docs/AssetMetadata.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**title** | **str** | The video title. Max 512 code points. | [optional] -**creator_id** | **str** | This is an identifier you provide to keep track of the creator of the video. Max 128 code points. | [optional] -**external_id** | **str** | This is an identifier you provide to link the video to your own data. Max 128 code points. | [optional] +**title** | **str** | The asset title. Max 512 code points. | [optional] +**creator_id** | **str** | This is an identifier you provide to keep track of the creator of the asset. Max 128 code points. | [optional] +**external_id** | **str** | This is an identifier you provide to link the asset to your own data. Max 128 code points. | [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) diff --git a/docs/AssetsApi.md b/docs/AssetsApi.md index 8d4000e..ac05557 100644 --- a/docs/AssetsApi.md +++ b/docs/AssetsApi.md @@ -250,7 +250,7 @@ Name | Type | Description | Notes Create an asset track -Adds an asset track (for example, subtitles, or an alternate audio track) to an asset. +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. ### Example diff --git a/gen/generator-config.json b/gen/generator-config.json index bb20437..8e2f882 100644 --- a/gen/generator-config.json +++ b/gen/generator-config.json @@ -3,5 +3,5 @@ "packageName": "mux_python", "projectName": "mux_python", "licenseInfo" : "MIT", - "packageVersion": "5.0.0" + "packageVersion": "5.0.1" } diff --git a/mux_python/__init__.py b/mux_python/__init__.py index 5f4d81f..793caaf 100644 --- a/mux_python/__init__.py +++ b/mux_python/__init__.py @@ -15,7 +15,7 @@ from __future__ import absolute_import -__version__ = "5.0.0" +__version__ = "5.0.1" # import apis into sdk package from mux_python.api.assets_api import AssetsApi diff --git a/mux_python/api/assets_api.py b/mux_python/api/assets_api.py index 93a5a44..05d39c6 100644 --- a/mux_python/api/assets_api.py +++ b/mux_python/api/assets_api.py @@ -479,7 +479,7 @@ def create_asset_static_rendition_with_http_info(self, asset_id, create_static_r def create_asset_track(self, asset_id, create_track_request, **kwargs): # noqa: E501 """Create an asset track # noqa: E501 - Adds an asset track (for example, subtitles, or an alternate audio track) to an asset. # noqa: E501 + 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 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -511,7 +511,7 @@ def create_asset_track(self, asset_id, create_track_request, **kwargs): # noqa: def create_asset_track_with_http_info(self, asset_id, create_track_request, **kwargs): # noqa: E501 """Create an asset track # noqa: E501 - Adds an asset track (for example, subtitles, or an alternate audio track) to an asset. # noqa: E501 + 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 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/mux_python/api_client.py b/mux_python/api_client.py index 4a5c4f1..6cc3460 100644 --- a/mux_python/api_client.py +++ b/mux_python/api_client.py @@ -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 | 5.0.0' + self.user_agent = 'Mux Python | 5.0.1' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/mux_python/configuration.py b/mux_python/configuration.py index d887e2b..3f39012 100644 --- a/mux_python/configuration.py +++ b/mux_python/configuration.py @@ -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: 5.0.0".\ + "SDK Package Version: 5.0.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/mux_python/models/asset_metadata.py b/mux_python/models/asset_metadata.py index 24ef695..c3ac3b3 100644 --- a/mux_python/models/asset_metadata.py +++ b/mux_python/models/asset_metadata.py @@ -70,7 +70,7 @@ def __init__(self, title=None, creator_id=None, external_id=None, local_vars_con def title(self): """Gets the title of this AssetMetadata. # noqa: E501 - The video title. Max 512 code points. # noqa: E501 + The asset title. Max 512 code points. # noqa: E501 :return: The title of this AssetMetadata. # noqa: E501 :rtype: str @@ -81,7 +81,7 @@ def title(self): def title(self, title): """Sets the title of this AssetMetadata. - The video title. Max 512 code points. # noqa: E501 + The asset title. Max 512 code points. # noqa: E501 :param title: The title of this AssetMetadata. # noqa: E501 :type title: str @@ -96,7 +96,7 @@ def title(self, title): def creator_id(self): """Gets the creator_id of this AssetMetadata. # noqa: E501 - This is an identifier you provide to keep track of the creator of the video. Max 128 code points. # noqa: E501 + This is an identifier you provide to keep track of the creator of the asset. Max 128 code points. # noqa: E501 :return: The creator_id of this AssetMetadata. # noqa: E501 :rtype: str @@ -107,7 +107,7 @@ def creator_id(self): def creator_id(self, creator_id): """Sets the creator_id of this AssetMetadata. - This is an identifier you provide to keep track of the creator of the video. Max 128 code points. # noqa: E501 + This is an identifier you provide to keep track of the creator of the asset. Max 128 code points. # noqa: E501 :param creator_id: The creator_id of this AssetMetadata. # noqa: E501 :type creator_id: str @@ -122,7 +122,7 @@ def creator_id(self, creator_id): def external_id(self): """Gets the external_id of this AssetMetadata. # noqa: E501 - This is an identifier you provide to link the video to your own data. Max 128 code points. # noqa: E501 + This is an identifier you provide to link the asset to your own data. Max 128 code points. # noqa: E501 :return: The external_id of this AssetMetadata. # noqa: E501 :rtype: str @@ -133,7 +133,7 @@ def external_id(self): def external_id(self, external_id): """Sets the external_id of this AssetMetadata. - This is an identifier you provide to link the video to your own data. Max 128 code points. # noqa: E501 + This is an identifier you provide to link the asset to your own data. Max 128 code points. # noqa: E501 :param external_id: The external_id of this AssetMetadata. # noqa: E501 :type external_id: str diff --git a/mux_python/models/static_rendition.py b/mux_python/models/static_rendition.py index 1551635..e6f27d0 100644 --- a/mux_python/models/static_rendition.py +++ b/mux_python/models/static_rendition.py @@ -339,7 +339,7 @@ def resolution_tier(self, resolution_tier): :param resolution_tier: The resolution_tier of this StaticRendition. # noqa: E501 :type resolution_tier: str """ - allowed_values = ["2160p", "1440p", "1080p", "720p"] # noqa: E501 + allowed_values = ["2160p", "1440p", "1080p", "720p", "audio-only"] # noqa: E501 if self.local_vars_configuration.client_side_validation and resolution_tier not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `resolution_tier` ({0}), must be one of {1}" # noqa: E501 diff --git a/setup.py b/setup.py index 9c0e723..c3dcf80 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "mux_python" -VERSION = "5.0.0" +VERSION = "5.0.1" # To install the library, run the following # # python setup.py install