From 739a1a1f8ad8ac3bb7bd02b8407e74fb811adfe2 Mon Sep 17 00:00:00 2001 From: Phil Cluff <578330+GeneticGenesis@users.noreply.github.com> Date: Thu, 7 May 2020 20:19:43 +0100 Subject: [PATCH] Regenerate for 1.7.0 release (#21) --- README.md | 6 +- docs/Asset.md | 2 +- docs/CreateAssetRequest.md | 2 +- docs/CreateLiveStreamRequest.md | 1 + docs/CreateUploadRequest.md | 1 + docs/LiveStream.md | 1 + docs/Upload.md | 1 + mux_python/__init__.py | 2 +- mux_python/api_client.py | 2 +- mux_python/configuration.py | 2 +- mux_python/models/asset.py | 58 +++++++++---------- mux_python/models/create_asset_request.py | 58 +++++++++---------- .../models/create_live_stream_request.py | 32 +++++++++- mux_python/models/create_upload_request.py | 32 +++++++++- .../models/input_settings_overlay_settings.py | 12 ++++ mux_python/models/live_stream.py | 32 +++++++++- mux_python/models/upload.py | 32 +++++++++- setup.py | 6 +- 18 files changed, 203 insertions(+), 79 deletions(-) diff --git a/README.md b/README.md index 1e2b768..39d92c5 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,14 @@ Official Mux API wrapper for python projects, supporting both Mux Data and Mux V Not familiar with Mux? Check out https://mux.com/ for more information. -## Requirements. +## Requirements Python 2.7 or 3.4+ +### Compatibility with Ubuntu 14.04 + +Mux uses cross signed TLS root certificates, which may not be compatible with Ubuntu 14.04 LTS [as documented in this issue](https://github.com/certifi/python-certifi/issues/26). We suggest upgrading to a later LTS operating system if you encounter this issue. + ## Installation ### Via pip diff --git a/docs/Asset.md b/docs/Asset.md index 97f7dcb..817e00b 100644 --- a/docs/Asset.md +++ b/docs/Asset.md @@ -13,7 +13,6 @@ Name | Type | Description | Notes **aspect_ratio** | **str** | | [optional] **playback_ids** | [**list[PlaybackID]**](PlaybackID.md) | | [optional] **tracks** | [**list[Track]**](Track.md) | | [optional] -**demo** | **bool** | | [optional] **errors** | [**AssetErrors**](AssetErrors.md) | | [optional] **per_title_encode** | **bool** | | [optional] **is_live** | **bool** | | [optional] @@ -24,6 +23,7 @@ Name | Type | Description | Notes **mp4_support** | **str** | | [optional] [default to 'none'] **normalize_audio** | **bool** | | [optional] [default to False] **static_renditions** | [**AssetStaticRenditions**](AssetStaticRenditions.md) | | [optional] +**test** | **bool** | | [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/CreateAssetRequest.md b/docs/CreateAssetRequest.md index 798d0d7..169df40 100644 --- a/docs/CreateAssetRequest.md +++ b/docs/CreateAssetRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **input** | [**list[InputSettings]**](InputSettings.md) | | [optional] **playback_policy** | [**list[PlaybackPolicy]**](PlaybackPolicy.md) | | [optional] -**demo** | **bool** | | [optional] **per_title_encode** | **bool** | | [optional] **passthrough** | **str** | | [optional] **mp4_support** | **str** | | [optional] **normalize_audio** | **bool** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional] [default to False] **master_access** | **str** | | [optional] +**test** | **bool** | | [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/CreateLiveStreamRequest.md b/docs/CreateLiveStreamRequest.md index 17fce3c..5203683 100644 --- a/docs/CreateLiveStreamRequest.md +++ b/docs/CreateLiveStreamRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **reconnect_window** | **float** | When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. Defaults to 60 seconds on the API if not specified. | [optional] **passthrough** | **str** | | [optional] **reduced_latency** | **bool** | Latency is the time from when the streamer does something in real life to when you see it happen in the player. Set this if you want lower latency for your live stream. Note: Reconnect windows are incompatible with Reduced Latency and will always be set to zero (0) seconds. Read more here: https://mux.com/blog/reduced-latency-for-mux-live-streaming-now-available/ | [optional] +**test** | **bool** | | [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/CreateUploadRequest.md b/docs/CreateUploadRequest.md index 1eb2666..3d362ea 100644 --- a/docs/CreateUploadRequest.md +++ b/docs/CreateUploadRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **timeout** | **int** | Max time in seconds for the signed upload URL to be valid. If a successful upload has not occurred before the timeout limit, the direct upload is marked `timed_out` | [optional] [default to 3600] **cors_origin** | **str** | If the upload URL will be used in a browser, you must specify the origin in order for the signed URL to have the correct CORS headers. | [optional] **new_asset_settings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | +**test** | **bool** | | [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/LiveStream.md b/docs/LiveStream.md index 1f468b9..4f0978b 100644 --- a/docs/LiveStream.md +++ b/docs/LiveStream.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **reconnect_window** | **float** | | [optional] **reduced_latency** | **bool** | | [optional] **simulcast_targets** | [**list[SimulcastTarget]**](SimulcastTarget.md) | | [optional] +**test** | **bool** | | [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/Upload.md b/docs/Upload.md index 8823d97..de3145e 100644 --- a/docs/Upload.md +++ b/docs/Upload.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **error** | [**UploadError**](UploadError.md) | | [optional] **cors_origin** | **str** | If the upload URL will be used in a browser, you must specify the origin in order for the signed URL to have the correct CORS headers. | [optional] **url** | **str** | The URL to upload the associated source media to. | [optional] +**test** | **bool** | | [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/mux_python/__init__.py b/mux_python/__init__.py index 00c8a46..1a83e03 100644 --- a/mux_python/__init__.py +++ b/mux_python/__init__.py @@ -11,7 +11,7 @@ from __future__ import absolute_import -__version__ = "1.6.0" +__version__ = "1.7.0" # import apis into sdk package from mux_python.api.assets_api import AssetsApi diff --git a/mux_python/api_client.py b/mux_python/api_client.py index db3890f..cd1978e 100644 --- a/mux_python/api_client.py +++ b/mux_python/api_client.py @@ -72,7 +72,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 | 1.6.0' + self.user_agent = 'Mux Python | 1.7.0' def __del__(self): if self._pool: diff --git a/mux_python/configuration.py b/mux_python/configuration.py index d41a61c..dcb2218 100644 --- a/mux_python/configuration.py +++ b/mux_python/configuration.py @@ -228,5 +228,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 1.6.0".\ + "SDK Package Version: 1.7.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/mux_python/models/asset.py b/mux_python/models/asset.py index d47e551..e7d77e7 100644 --- a/mux_python/models/asset.py +++ b/mux_python/models/asset.py @@ -32,7 +32,6 @@ class Asset(object): 'aspect_ratio': 'str', 'playback_ids': 'list[PlaybackID]', 'tracks': 'list[Track]', - 'demo': 'bool', 'errors': 'AssetErrors', 'per_title_encode': 'bool', 'is_live': 'bool', @@ -42,7 +41,8 @@ class Asset(object): 'master_access': 'str', 'mp4_support': 'str', 'normalize_audio': 'bool', - 'static_renditions': 'AssetStaticRenditions' + 'static_renditions': 'AssetStaticRenditions', + 'test': 'bool' } attribute_map = { @@ -56,7 +56,6 @@ class Asset(object): 'aspect_ratio': 'aspect_ratio', 'playback_ids': 'playback_ids', 'tracks': 'tracks', - 'demo': 'demo', 'errors': 'errors', 'per_title_encode': 'per_title_encode', 'is_live': 'is_live', @@ -66,10 +65,11 @@ class Asset(object): 'master_access': 'master_access', 'mp4_support': 'mp4_support', 'normalize_audio': 'normalize_audio', - 'static_renditions': 'static_renditions' + 'static_renditions': 'static_renditions', + 'test': 'test' } - def __init__(self, id=None, created_at=None, deleted_at=None, status=None, duration=None, max_stored_resolution=None, max_stored_frame_rate=None, aspect_ratio=None, playback_ids=None, tracks=None, demo=None, errors=None, per_title_encode=None, is_live=None, passthrough=None, live_stream_id=None, master=None, master_access='none', mp4_support='none', normalize_audio=False, static_renditions=None): # noqa: E501 + def __init__(self, id=None, created_at=None, deleted_at=None, status=None, duration=None, max_stored_resolution=None, max_stored_frame_rate=None, aspect_ratio=None, playback_ids=None, tracks=None, errors=None, per_title_encode=None, is_live=None, passthrough=None, live_stream_id=None, master=None, master_access='none', mp4_support='none', normalize_audio=False, static_renditions=None, test=None): # noqa: E501 """Asset - a model defined in OpenAPI""" # noqa: E501 self._id = None @@ -82,7 +82,6 @@ def __init__(self, id=None, created_at=None, deleted_at=None, status=None, durat self._aspect_ratio = None self._playback_ids = None self._tracks = None - self._demo = None self._errors = None self._per_title_encode = None self._is_live = None @@ -93,6 +92,7 @@ def __init__(self, id=None, created_at=None, deleted_at=None, status=None, durat self._mp4_support = None self._normalize_audio = None self._static_renditions = None + self._test = None self.discriminator = None if id is not None: @@ -115,8 +115,6 @@ def __init__(self, id=None, created_at=None, deleted_at=None, status=None, durat self.playback_ids = playback_ids if tracks is not None: self.tracks = tracks - if demo is not None: - self.demo = demo if errors is not None: self.errors = errors if per_title_encode is not None: @@ -137,6 +135,8 @@ def __init__(self, id=None, created_at=None, deleted_at=None, status=None, durat self.normalize_audio = normalize_audio if static_renditions is not None: self.static_renditions = static_renditions + if test is not None: + self.test = test @property def id(self): @@ -348,27 +348,6 @@ def tracks(self, tracks): self._tracks = tracks - @property - def demo(self): - """Gets the demo of this Asset. # noqa: E501 - - - :return: The demo of this Asset. # noqa: E501 - :rtype: bool - """ - return self._demo - - @demo.setter - def demo(self, demo): - """Sets the demo of this Asset. - - - :param demo: The demo of this Asset. # noqa: E501 - :type: bool - """ - - self._demo = demo - @property def errors(self): """Gets the errors of this Asset. # noqa: E501 @@ -591,6 +570,27 @@ def static_renditions(self, static_renditions): self._static_renditions = static_renditions + @property + def test(self): + """Gets the test of this Asset. # noqa: E501 + + + :return: The test of this Asset. # noqa: E501 + :rtype: bool + """ + return self._test + + @test.setter + def test(self, test): + """Sets the test of this Asset. + + + :param test: The test of this Asset. # noqa: E501 + :type: bool + """ + + self._test = test + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/mux_python/models/create_asset_request.py b/mux_python/models/create_asset_request.py index 270ec99..40ea7f4 100644 --- a/mux_python/models/create_asset_request.py +++ b/mux_python/models/create_asset_request.py @@ -24,44 +24,42 @@ class CreateAssetRequest(object): openapi_types = { 'input': 'list[InputSettings]', 'playback_policy': 'list[PlaybackPolicy]', - 'demo': 'bool', 'per_title_encode': 'bool', 'passthrough': 'str', 'mp4_support': 'str', 'normalize_audio': 'bool', - 'master_access': 'str' + 'master_access': 'str', + 'test': 'bool' } attribute_map = { 'input': 'input', 'playback_policy': 'playback_policy', - 'demo': 'demo', 'per_title_encode': 'per_title_encode', 'passthrough': 'passthrough', 'mp4_support': 'mp4_support', 'normalize_audio': 'normalize_audio', - 'master_access': 'master_access' + 'master_access': 'master_access', + 'test': 'test' } - def __init__(self, input=None, playback_policy=None, demo=None, per_title_encode=None, passthrough=None, mp4_support=None, normalize_audio=False, master_access=None): # noqa: E501 + def __init__(self, input=None, playback_policy=None, per_title_encode=None, passthrough=None, mp4_support=None, normalize_audio=False, master_access=None, test=None): # noqa: E501 """CreateAssetRequest - a model defined in OpenAPI""" # noqa: E501 self._input = None self._playback_policy = None - self._demo = None self._per_title_encode = None self._passthrough = None self._mp4_support = None self._normalize_audio = None self._master_access = None + self._test = None self.discriminator = None if input is not None: self.input = input if playback_policy is not None: self.playback_policy = playback_policy - if demo is not None: - self.demo = demo if per_title_encode is not None: self.per_title_encode = per_title_encode if passthrough is not None: @@ -72,6 +70,8 @@ def __init__(self, input=None, playback_policy=None, demo=None, per_title_encode self.normalize_audio = normalize_audio if master_access is not None: self.master_access = master_access + if test is not None: + self.test = test @property def input(self): @@ -115,27 +115,6 @@ def playback_policy(self, playback_policy): self._playback_policy = playback_policy - @property - def demo(self): - """Gets the demo of this CreateAssetRequest. # noqa: E501 - - - :return: The demo of this CreateAssetRequest. # noqa: E501 - :rtype: bool - """ - return self._demo - - @demo.setter - def demo(self, demo): - """Sets the demo of this CreateAssetRequest. - - - :param demo: The demo of this CreateAssetRequest. # noqa: E501 - :type: bool - """ - - self._demo = demo - @property def per_title_encode(self): """Gets the per_title_encode of this CreateAssetRequest. # noqa: E501 @@ -255,6 +234,27 @@ def master_access(self, master_access): self._master_access = master_access + @property + def test(self): + """Gets the test of this CreateAssetRequest. # noqa: E501 + + + :return: The test of this CreateAssetRequest. # noqa: E501 + :rtype: bool + """ + return self._test + + @test.setter + def test(self, test): + """Sets the test of this CreateAssetRequest. + + + :param test: The test of this CreateAssetRequest. # noqa: E501 + :type: bool + """ + + self._test = test + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/mux_python/models/create_live_stream_request.py b/mux_python/models/create_live_stream_request.py index e0e63d7..af8be43 100644 --- a/mux_python/models/create_live_stream_request.py +++ b/mux_python/models/create_live_stream_request.py @@ -26,7 +26,8 @@ class CreateLiveStreamRequest(object): 'new_asset_settings': 'CreateAssetRequest', 'reconnect_window': 'float', 'passthrough': 'str', - 'reduced_latency': 'bool' + 'reduced_latency': 'bool', + 'test': 'bool' } attribute_map = { @@ -34,10 +35,11 @@ class CreateLiveStreamRequest(object): 'new_asset_settings': 'new_asset_settings', 'reconnect_window': 'reconnect_window', 'passthrough': 'passthrough', - 'reduced_latency': 'reduced_latency' + 'reduced_latency': 'reduced_latency', + 'test': 'test' } - def __init__(self, playback_policy=None, new_asset_settings=None, reconnect_window=None, passthrough=None, reduced_latency=None): # noqa: E501 + def __init__(self, playback_policy=None, new_asset_settings=None, reconnect_window=None, passthrough=None, reduced_latency=None, test=None): # noqa: E501 """CreateLiveStreamRequest - a model defined in OpenAPI""" # noqa: E501 self._playback_policy = None @@ -45,6 +47,7 @@ def __init__(self, playback_policy=None, new_asset_settings=None, reconnect_wind self._reconnect_window = None self._passthrough = None self._reduced_latency = None + self._test = None self.discriminator = None if playback_policy is not None: @@ -57,6 +60,8 @@ def __init__(self, playback_policy=None, new_asset_settings=None, reconnect_wind self.passthrough = passthrough if reduced_latency is not None: self.reduced_latency = reduced_latency + if test is not None: + self.test = test @property def playback_policy(self): @@ -171,6 +176,27 @@ def reduced_latency(self, reduced_latency): self._reduced_latency = reduced_latency + @property + def test(self): + """Gets the test of this CreateLiveStreamRequest. # noqa: E501 + + + :return: The test of this CreateLiveStreamRequest. # noqa: E501 + :rtype: bool + """ + return self._test + + @test.setter + def test(self, test): + """Sets the test of this CreateLiveStreamRequest. + + + :param test: The test of this CreateLiveStreamRequest. # noqa: E501 + :type: bool + """ + + self._test = test + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/mux_python/models/create_upload_request.py b/mux_python/models/create_upload_request.py index 5a62d97..2813ee6 100644 --- a/mux_python/models/create_upload_request.py +++ b/mux_python/models/create_upload_request.py @@ -24,21 +24,24 @@ class CreateUploadRequest(object): openapi_types = { 'timeout': 'int', 'cors_origin': 'str', - 'new_asset_settings': 'CreateAssetRequest' + 'new_asset_settings': 'CreateAssetRequest', + 'test': 'bool' } attribute_map = { 'timeout': 'timeout', 'cors_origin': 'cors_origin', - 'new_asset_settings': 'new_asset_settings' + 'new_asset_settings': 'new_asset_settings', + 'test': 'test' } - def __init__(self, timeout=3600, cors_origin=None, new_asset_settings=None): # noqa: E501 + def __init__(self, timeout=3600, cors_origin=None, new_asset_settings=None, test=None): # noqa: E501 """CreateUploadRequest - a model defined in OpenAPI""" # noqa: E501 self._timeout = None self._cors_origin = None self._new_asset_settings = None + self._test = None self.discriminator = None if timeout is not None: @@ -46,6 +49,8 @@ def __init__(self, timeout=3600, cors_origin=None, new_asset_settings=None): # if cors_origin is not None: self.cors_origin = cors_origin self.new_asset_settings = new_asset_settings + if test is not None: + self.test = test @property def timeout(self): @@ -120,6 +125,27 @@ def new_asset_settings(self, new_asset_settings): self._new_asset_settings = new_asset_settings + @property + def test(self): + """Gets the test of this CreateUploadRequest. # noqa: E501 + + + :return: The test of this CreateUploadRequest. # noqa: E501 + :rtype: bool + """ + return self._test + + @test.setter + def test(self, test): + """Sets the test of this CreateUploadRequest. + + + :param test: The test of this CreateUploadRequest. # noqa: E501 + :type: bool + """ + + self._test = test + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/mux_python/models/input_settings_overlay_settings.py b/mux_python/models/input_settings_overlay_settings.py index a4daa44..0af7d90 100644 --- a/mux_python/models/input_settings_overlay_settings.py +++ b/mux_python/models/input_settings_overlay_settings.py @@ -86,6 +86,12 @@ def vertical_align(self, vertical_align): :param vertical_align: The vertical_align of this InputSettingsOverlaySettings. # noqa: E501 :type: str """ + allowed_values = ["top", "middle", "bottom"] # noqa: E501 + if vertical_align not in allowed_values: + raise ValueError( + "Invalid value for `vertical_align` ({0}), must be one of {1}" # noqa: E501 + .format(vertical_align, allowed_values) + ) self._vertical_align = vertical_align @@ -128,6 +134,12 @@ def horizontal_align(self, horizontal_align): :param horizontal_align: The horizontal_align of this InputSettingsOverlaySettings. # noqa: E501 :type: str """ + allowed_values = ["left", "center", "right"] # noqa: E501 + if horizontal_align not in allowed_values: + raise ValueError( + "Invalid value for `horizontal_align` ({0}), must be one of {1}" # noqa: E501 + .format(horizontal_align, allowed_values) + ) self._horizontal_align = horizontal_align diff --git a/mux_python/models/live_stream.py b/mux_python/models/live_stream.py index 483f011..8f1f5be 100644 --- a/mux_python/models/live_stream.py +++ b/mux_python/models/live_stream.py @@ -33,7 +33,8 @@ class LiveStream(object): 'passthrough': 'str', 'reconnect_window': 'float', 'reduced_latency': 'bool', - 'simulcast_targets': 'list[SimulcastTarget]' + 'simulcast_targets': 'list[SimulcastTarget]', + 'test': 'bool' } attribute_map = { @@ -48,10 +49,11 @@ class LiveStream(object): 'passthrough': 'passthrough', 'reconnect_window': 'reconnect_window', 'reduced_latency': 'reduced_latency', - 'simulcast_targets': 'simulcast_targets' + 'simulcast_targets': 'simulcast_targets', + 'test': 'test' } - def __init__(self, id=None, created_at=None, stream_key=None, active_asset_id=None, recent_asset_ids=None, status=None, playback_ids=None, new_asset_settings=None, passthrough=None, reconnect_window=None, reduced_latency=None, simulcast_targets=None): # noqa: E501 + def __init__(self, id=None, created_at=None, stream_key=None, active_asset_id=None, recent_asset_ids=None, status=None, playback_ids=None, new_asset_settings=None, passthrough=None, reconnect_window=None, reduced_latency=None, simulcast_targets=None, test=None): # noqa: E501 """LiveStream - a model defined in OpenAPI""" # noqa: E501 self._id = None @@ -66,6 +68,7 @@ def __init__(self, id=None, created_at=None, stream_key=None, active_asset_id=No self._reconnect_window = None self._reduced_latency = None self._simulcast_targets = None + self._test = None self.discriminator = None if id is not None: @@ -92,6 +95,8 @@ def __init__(self, id=None, created_at=None, stream_key=None, active_asset_id=No self.reduced_latency = reduced_latency if simulcast_targets is not None: self.simulcast_targets = simulcast_targets + if test is not None: + self.test = test @property def id(self): @@ -345,6 +350,27 @@ def simulcast_targets(self, simulcast_targets): self._simulcast_targets = simulcast_targets + @property + def test(self): + """Gets the test of this LiveStream. # noqa: E501 + + + :return: The test of this LiveStream. # noqa: E501 + :rtype: bool + """ + return self._test + + @test.setter + def test(self, test): + """Sets the test of this LiveStream. + + + :param test: The test of this LiveStream. # noqa: E501 + :type: bool + """ + + self._test = test + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/mux_python/models/upload.py b/mux_python/models/upload.py index 878fd5a..1408b51 100644 --- a/mux_python/models/upload.py +++ b/mux_python/models/upload.py @@ -29,7 +29,8 @@ class Upload(object): 'asset_id': 'str', 'error': 'UploadError', 'cors_origin': 'str', - 'url': 'str' + 'url': 'str', + 'test': 'bool' } attribute_map = { @@ -40,10 +41,11 @@ class Upload(object): 'asset_id': 'asset_id', 'error': 'error', 'cors_origin': 'cors_origin', - 'url': 'url' + 'url': 'url', + 'test': 'test' } - def __init__(self, id=None, timeout=3600, status=None, new_asset_settings=None, asset_id=None, error=None, cors_origin=None, url=None): # noqa: E501 + def __init__(self, id=None, timeout=3600, status=None, new_asset_settings=None, asset_id=None, error=None, cors_origin=None, url=None, test=None): # noqa: E501 """Upload - a model defined in OpenAPI""" # noqa: E501 self._id = None @@ -54,6 +56,7 @@ def __init__(self, id=None, timeout=3600, status=None, new_asset_settings=None, self._error = None self._cors_origin = None self._url = None + self._test = None self.discriminator = None if id is not None: @@ -72,6 +75,8 @@ def __init__(self, id=None, timeout=3600, status=None, new_asset_settings=None, self.cors_origin = cors_origin if url is not None: self.url = url + if test is not None: + self.test = test @property def id(self): @@ -259,6 +264,27 @@ def url(self, url): self._url = url + @property + def test(self): + """Gets the test of this Upload. # noqa: E501 + + + :return: The test of this Upload. # noqa: E501 + :rtype: bool + """ + return self._test + + @test.setter + def test(self, test): + """Sets the test of this Upload. + + + :param test: The test of this Upload. # noqa: E501 + :type: bool + """ + + self._test = test + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/setup.py b/setup.py index a4bd76f..961be46 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "mux_python" -VERSION = "1.6.0" +VERSION = "1.7.0" # To install the library, run the following # # python setup.py install @@ -26,8 +26,8 @@ description="Official Mux API wrapper for python projects 🐍.", author_email="sdks@mux.com", url="https://github.com/muxinc/mux-python", - download_url="https://github.com/muxinc/mux-python/archive/1.6.0.tar.gz", - keywords=["Mux Video", "Video", "Live Stream", "VOD", "Streaming"], + download_url="https://github.com/muxinc/mux-python/archive/1.7.0.tar.gz", + keywords=["Mux API", "Video", "Live Stream", "VOD", "Streaming"], install_requires=REQUIRES, packages=find_packages(), include_package_data=True,