Skip to content

Commit

Permalink
Regenerate for 1.7.0 release (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
philcluff authored May 7, 2020
1 parent 6969881 commit 739a1a1
Show file tree
Hide file tree
Showing 18 changed files with 203 additions and 79 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/Asset.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion docs/CreateAssetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions docs/CreateLiveStreamRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions docs/CreateUploadRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions docs/LiveStream.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions docs/Upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion mux_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion mux_python/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
58 changes: 29 additions & 29 deletions mux_python/models/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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 = {
Expand All @@ -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',
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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):
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 = {}
Expand Down
58 changes: 29 additions & 29 deletions mux_python/models/create_asset_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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):
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 = {}
Expand Down
Loading

0 comments on commit 739a1a1

Please sign in to comment.