mux-python 3.13.0__py3-none-any.whl → 3.15.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
mux_python/__init__.py CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  from __future__ import absolute_import
17
17
 
18
- __version__ = "3.13.0"
18
+ __version__ = "3.15.0"
19
19
 
20
20
  # import apis into sdk package
21
21
  from mux_python.api.assets_api import AssetsApi
@@ -87,6 +87,8 @@ from mux_python.models.error import Error
87
87
  from mux_python.models.export_date import ExportDate
88
88
  from mux_python.models.export_file import ExportFile
89
89
  from mux_python.models.filter_value import FilterValue
90
+ from mux_python.models.generate_track_subtitles_request import GenerateTrackSubtitlesRequest
91
+ from mux_python.models.generate_track_subtitles_response import GenerateTrackSubtitlesResponse
90
92
  from mux_python.models.get_asset_input_info_response import GetAssetInputInfoResponse
91
93
  from mux_python.models.get_asset_or_live_stream_id_response import GetAssetOrLiveStreamIdResponse
92
94
  from mux_python.models.get_asset_or_live_stream_id_response_data import GetAssetOrLiveStreamIdResponseData
@@ -885,6 +885,167 @@ class AssetsApi(object):
885
885
  collection_formats=collection_formats,
886
886
  _request_auth=local_var_params.get('_request_auth'))
887
887
 
888
+ def generate_asset_track_subtitles(self, asset_id, track_id, generate_track_subtitles_request, **kwargs): # noqa: E501
889
+ """Generate track subtitles # noqa: E501
890
+
891
+ Generates subtitles (captions) for a given audio track. This API can be used for up to 7 days after an asset is created. # noqa: E501
892
+ This method makes a synchronous HTTP request by default. To make an
893
+ asynchronous HTTP request, please pass async_req=True
894
+
895
+ >>> thread = api.generate_asset_track_subtitles(asset_id, track_id, generate_track_subtitles_request, async_req=True)
896
+ >>> result = thread.get()
897
+
898
+ :param asset_id: The asset ID. (required)
899
+ :type asset_id: str
900
+ :param track_id: The track ID. (required)
901
+ :type track_id: str
902
+ :param generate_track_subtitles_request: (required)
903
+ :type generate_track_subtitles_request: GenerateTrackSubtitlesRequest
904
+ :param async_req: Whether to execute the request asynchronously.
905
+ :type async_req: bool, optional
906
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
907
+ be returned without reading/decoding response
908
+ data. Default is True.
909
+ :type _preload_content: bool, optional
910
+ :param _request_timeout: timeout setting for this request. If one
911
+ number provided, it will be total request
912
+ timeout. It can also be a pair (tuple) of
913
+ (connection, read) timeouts.
914
+ :return: Returns the result object.
915
+ If the method is called asynchronously,
916
+ returns the request thread.
917
+ :rtype: GenerateTrackSubtitlesResponse
918
+ """
919
+ kwargs['_return_http_data_only'] = True
920
+ return self.generate_asset_track_subtitles_with_http_info(asset_id, track_id, generate_track_subtitles_request, **kwargs) # noqa: E501
921
+
922
+ def generate_asset_track_subtitles_with_http_info(self, asset_id, track_id, generate_track_subtitles_request, **kwargs): # noqa: E501
923
+ """Generate track subtitles # noqa: E501
924
+
925
+ Generates subtitles (captions) for a given audio track. This API can be used for up to 7 days after an asset is created. # noqa: E501
926
+ This method makes a synchronous HTTP request by default. To make an
927
+ asynchronous HTTP request, please pass async_req=True
928
+
929
+ >>> thread = api.generate_asset_track_subtitles_with_http_info(asset_id, track_id, generate_track_subtitles_request, async_req=True)
930
+ >>> result = thread.get()
931
+
932
+ :param asset_id: The asset ID. (required)
933
+ :type asset_id: str
934
+ :param track_id: The track ID. (required)
935
+ :type track_id: str
936
+ :param generate_track_subtitles_request: (required)
937
+ :type generate_track_subtitles_request: GenerateTrackSubtitlesRequest
938
+ :param async_req: Whether to execute the request asynchronously.
939
+ :type async_req: bool, optional
940
+ :param _return_http_data_only: response data without head status code
941
+ and headers
942
+ :type _return_http_data_only: bool, optional
943
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
944
+ be returned without reading/decoding response
945
+ data. Default is True.
946
+ :type _preload_content: bool, optional
947
+ :param _request_timeout: timeout setting for this request. If one
948
+ number provided, it will be total request
949
+ timeout. It can also be a pair (tuple) of
950
+ (connection, read) timeouts.
951
+ :param _request_auth: set to override the auth_settings for an a single
952
+ request; this effectively ignores the authentication
953
+ in the spec for a single request.
954
+ :type _request_auth: dict, optional
955
+ :return: Returns the result object.
956
+ If the method is called asynchronously,
957
+ returns the request thread.
958
+ :rtype: tuple(GenerateTrackSubtitlesResponse, status_code(int), headers(HTTPHeaderDict))
959
+ """
960
+
961
+ local_var_params = locals()
962
+
963
+ all_params = [
964
+ 'asset_id',
965
+ 'track_id',
966
+ 'generate_track_subtitles_request'
967
+ ]
968
+ all_params.extend(
969
+ [
970
+ 'async_req',
971
+ '_return_http_data_only',
972
+ '_preload_content',
973
+ '_request_timeout',
974
+ '_request_auth'
975
+ ]
976
+ )
977
+
978
+ for key, val in six.iteritems(local_var_params['kwargs']):
979
+ if key not in all_params:
980
+ raise ApiTypeError(
981
+ "Got an unexpected keyword argument '%s'"
982
+ " to method generate_asset_track_subtitles" % key
983
+ )
984
+ local_var_params[key] = val
985
+ del local_var_params['kwargs']
986
+ # verify the required parameter 'asset_id' is set
987
+ if self.api_client.client_side_validation and ('asset_id' not in local_var_params or # noqa: E501
988
+ local_var_params['asset_id'] is None): # noqa: E501
989
+ raise ApiValueError("Missing the required parameter `asset_id` when calling `generate_asset_track_subtitles`") # noqa: E501
990
+ # verify the required parameter 'track_id' is set
991
+ if self.api_client.client_side_validation and ('track_id' not in local_var_params or # noqa: E501
992
+ local_var_params['track_id'] is None): # noqa: E501
993
+ raise ApiValueError("Missing the required parameter `track_id` when calling `generate_asset_track_subtitles`") # noqa: E501
994
+ # verify the required parameter 'generate_track_subtitles_request' is set
995
+ if self.api_client.client_side_validation and ('generate_track_subtitles_request' not in local_var_params or # noqa: E501
996
+ local_var_params['generate_track_subtitles_request'] is None): # noqa: E501
997
+ raise ApiValueError("Missing the required parameter `generate_track_subtitles_request` when calling `generate_asset_track_subtitles`") # noqa: E501
998
+
999
+ collection_formats = {}
1000
+
1001
+ path_params = {}
1002
+ if 'asset_id' in local_var_params:
1003
+ path_params['ASSET_ID'] = local_var_params['asset_id'] # noqa: E501
1004
+ if 'track_id' in local_var_params:
1005
+ path_params['TRACK_ID'] = local_var_params['track_id'] # noqa: E501
1006
+
1007
+ query_params = []
1008
+
1009
+ header_params = {}
1010
+
1011
+ form_params = []
1012
+ local_var_files = {}
1013
+
1014
+ body_params = None
1015
+ if 'generate_track_subtitles_request' in local_var_params:
1016
+ body_params = local_var_params['generate_track_subtitles_request']
1017
+ # HTTP header `Accept`
1018
+ header_params['Accept'] = self.api_client.select_header_accept(
1019
+ ['application/json']) # noqa: E501
1020
+
1021
+ # HTTP header `Content-Type`
1022
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1023
+ ['application/json']) # noqa: E501
1024
+
1025
+ # Authentication setting
1026
+ auth_settings = ['accessToken'] # noqa: E501
1027
+
1028
+ response_types_map = {
1029
+ 201: "GenerateTrackSubtitlesResponse",
1030
+ }
1031
+
1032
+ return self.api_client.call_api(
1033
+ '/video/v1/assets/{ASSET_ID}/tracks/{TRACK_ID}/generate-subtitles', 'POST',
1034
+ path_params,
1035
+ query_params,
1036
+ header_params,
1037
+ body=body_params,
1038
+ post_params=form_params,
1039
+ files=local_var_files,
1040
+ response_types_map=response_types_map,
1041
+ auth_settings=auth_settings,
1042
+ async_req=local_var_params.get('async_req'),
1043
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1044
+ _preload_content=local_var_params.get('_preload_content', True),
1045
+ _request_timeout=local_var_params.get('_request_timeout'),
1046
+ collection_formats=collection_formats,
1047
+ _request_auth=local_var_params.get('_request_auth'))
1048
+
888
1049
  def get_asset(self, asset_id, **kwargs): # noqa: E501
889
1050
  """Retrieve an asset # noqa: E501
890
1051
 
@@ -1454,7 +1615,7 @@ class AssetsApi(object):
1454
1615
  _request_auth=local_var_params.get('_request_auth'))
1455
1616
 
1456
1617
  def update_asset(self, asset_id, update_asset_request, **kwargs): # noqa: E501
1457
- """Update an Asset # noqa: E501
1618
+ """Update an asset # noqa: E501
1458
1619
 
1459
1620
  Updates the details of an already-created Asset with the provided Asset ID. This currently supports only the `passthrough` field. # noqa: E501
1460
1621
  This method makes a synchronous HTTP request by default. To make an
@@ -1486,7 +1647,7 @@ class AssetsApi(object):
1486
1647
  return self.update_asset_with_http_info(asset_id, update_asset_request, **kwargs) # noqa: E501
1487
1648
 
1488
1649
  def update_asset_with_http_info(self, asset_id, update_asset_request, **kwargs): # noqa: E501
1489
- """Update an Asset # noqa: E501
1650
+ """Update an asset # noqa: E501
1490
1651
 
1491
1652
  Updates the details of an already-created Asset with the provided Asset ID. This currently supports only the `passthrough` field. # noqa: E501
1492
1653
  This method makes a synchronous HTTP request by default. To make an
@@ -1756,7 +1917,7 @@ class AssetsApi(object):
1756
1917
  def update_asset_mp4_support(self, asset_id, update_asset_mp4_support_request, **kwargs): # noqa: E501
1757
1918
  """Update MP4 support # noqa: E501
1758
1919
 
1759
- Allows you to add or remove mp4 support for assets that were created without it. Currently there are two values supported in this request, `standard` and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question. # noqa: E501
1920
+ Allows you to add or remove mp4 support for assets that were created without it. The values supported are `capped-1080p`, `audio-only`, `audio-only,capped-1080p`, `standard`(deprecated), and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question. # noqa: E501
1760
1921
  This method makes a synchronous HTTP request by default. To make an
1761
1922
  asynchronous HTTP request, please pass async_req=True
1762
1923
 
@@ -1788,7 +1949,7 @@ class AssetsApi(object):
1788
1949
  def update_asset_mp4_support_with_http_info(self, asset_id, update_asset_mp4_support_request, **kwargs): # noqa: E501
1789
1950
  """Update MP4 support # noqa: E501
1790
1951
 
1791
- Allows you to add or remove mp4 support for assets that were created without it. Currently there are two values supported in this request, `standard` and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question. # noqa: E501
1952
+ Allows you to add or remove mp4 support for assets that were created without it. The values supported are `capped-1080p`, `audio-only`, `audio-only,capped-1080p`, `standard`(deprecated), and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question. # noqa: E501
1792
1953
  This method makes a synchronous HTTP request by default. To make an
1793
1954
  asynchronous HTTP request, please pass async_req=True
1794
1955
 
@@ -746,7 +746,7 @@ class LiveStreamsApi(object):
746
746
  _request_auth=local_var_params.get('_request_auth'))
747
747
 
748
748
  def delete_live_stream_simulcast_target(self, live_stream_id, simulcast_target_id, **kwargs): # noqa: E501
749
- """Delete a Live Stream Simulcast Target # noqa: E501
749
+ """Delete a live stream simulcast target # noqa: E501
750
750
 
751
751
  Delete the simulcast target using the simulcast target ID returned when creating the simulcast target. Simulcast Target can only be deleted when the parent live stream is in idle state. # noqa: E501
752
752
  This method makes a synchronous HTTP request by default. To make an
@@ -778,7 +778,7 @@ class LiveStreamsApi(object):
778
778
  return self.delete_live_stream_simulcast_target_with_http_info(live_stream_id, simulcast_target_id, **kwargs) # noqa: E501
779
779
 
780
780
  def delete_live_stream_simulcast_target_with_http_info(self, live_stream_id, simulcast_target_id, **kwargs): # noqa: E501
781
- """Delete a Live Stream Simulcast Target # noqa: E501
781
+ """Delete a live stream simulcast target # noqa: E501
782
782
 
783
783
  Delete the simulcast target using the simulcast target ID returned when creating the simulcast target. Simulcast Target can only be deleted when the parent live stream is in idle state. # noqa: E501
784
784
  This method makes a synchronous HTTP request by default. To make an
@@ -1437,7 +1437,7 @@ class LiveStreamsApi(object):
1437
1437
  _request_auth=local_var_params.get('_request_auth'))
1438
1438
 
1439
1439
  def get_live_stream_simulcast_target(self, live_stream_id, simulcast_target_id, **kwargs): # noqa: E501
1440
- """Retrieve a Live Stream Simulcast Target # noqa: E501
1440
+ """Retrieve a live stream simulcast target # noqa: E501
1441
1441
 
1442
1442
  Retrieves the details of the simulcast target created for the parent live stream. Supply the unique live stream ID and simulcast target ID that was returned in the response of create simulcast target request, and Mux will return the corresponding information. # noqa: E501
1443
1443
  This method makes a synchronous HTTP request by default. To make an
@@ -1469,7 +1469,7 @@ class LiveStreamsApi(object):
1469
1469
  return self.get_live_stream_simulcast_target_with_http_info(live_stream_id, simulcast_target_id, **kwargs) # noqa: E501
1470
1470
 
1471
1471
  def get_live_stream_simulcast_target_with_http_info(self, live_stream_id, simulcast_target_id, **kwargs): # noqa: E501
1472
- """Retrieve a Live Stream Simulcast Target # noqa: E501
1472
+ """Retrieve a live stream simulcast target # noqa: E501
1473
1473
 
1474
1474
  Retrieves the details of the simulcast target created for the parent live stream. Supply the unique live stream ID and simulcast target ID that was returned in the response of create simulcast target request, and Mux will return the corresponding information. # noqa: E501
1475
1475
  This method makes a synchronous HTTP request by default. To make an
@@ -38,7 +38,7 @@ class PlaybackIDApi(object):
38
38
  self.api_client = api_client
39
39
 
40
40
  def get_asset_or_livestream_id(self, playback_id, **kwargs): # noqa: E501
41
- """Retrieve an Asset or Live Stream ID # noqa: E501
41
+ """Retrieve an asset or live stream ID # noqa: E501
42
42
 
43
43
  Retrieves the Identifier of the Asset or Live Stream associated with the Playback ID. # noqa: E501
44
44
  This method makes a synchronous HTTP request by default. To make an
@@ -68,7 +68,7 @@ class PlaybackIDApi(object):
68
68
  return self.get_asset_or_livestream_id_with_http_info(playback_id, **kwargs) # noqa: E501
69
69
 
70
70
  def get_asset_or_livestream_id_with_http_info(self, playback_id, **kwargs): # noqa: E501
71
- """Retrieve an Asset or Live Stream ID # noqa: E501
71
+ """Retrieve an asset or live stream ID # noqa: E501
72
72
 
73
73
  Retrieves the Identifier of the Asset or Live Stream associated with the Playback ID. # noqa: E501
74
74
  This method makes a synchronous HTTP request by default. To make an
mux_python/api_client.py CHANGED
@@ -79,7 +79,7 @@ class ApiClient(object):
79
79
  self.default_headers[header_name] = header_value
80
80
  self.cookie = cookie
81
81
  # Set default User-Agent.
82
- self.user_agent = 'OpenAPI-Generator/3.13.0/python'
82
+ self.user_agent = 'OpenAPI-Generator/3.15.0/python'
83
83
  self.client_side_validation = configuration.client_side_validation
84
84
 
85
85
  def __enter__(self):
@@ -406,7 +406,7 @@ conf = mux_python.Configuration(
406
406
  "OS: {env}\n"\
407
407
  "Python Version: {pyversion}\n"\
408
408
  "Version of the API: v1\n"\
409
- "SDK Package Version: 3.13.0".\
409
+ "SDK Package Version: 3.15.0".\
410
410
  format(env=sys.platform, pyversion=sys.version)
411
411
 
412
412
  def get_host_settings(self):
@@ -53,6 +53,8 @@ from mux_python.models.error import Error
53
53
  from mux_python.models.export_date import ExportDate
54
54
  from mux_python.models.export_file import ExportFile
55
55
  from mux_python.models.filter_value import FilterValue
56
+ from mux_python.models.generate_track_subtitles_request import GenerateTrackSubtitlesRequest
57
+ from mux_python.models.generate_track_subtitles_response import GenerateTrackSubtitlesResponse
56
58
  from mux_python.models.get_asset_input_info_response import GetAssetInputInfoResponse
57
59
  from mux_python.models.get_asset_or_live_stream_id_response import GetAssetOrLiveStreamIdResponse
58
60
  from mux_python.models.get_asset_or_live_stream_id_response_data import GetAssetOrLiveStreamIdResponseData
@@ -63,7 +63,8 @@ class Asset(object):
63
63
  'static_renditions': 'AssetStaticRenditions',
64
64
  'recording_times': 'list[AssetRecordingTimes]',
65
65
  'non_standard_input_reasons': 'AssetNonStandardInputReasons',
66
- 'test': 'bool'
66
+ 'test': 'bool',
67
+ 'ingest_type': 'str'
67
68
  }
68
69
 
69
70
  attribute_map = {
@@ -93,10 +94,11 @@ class Asset(object):
93
94
  'static_renditions': 'static_renditions',
94
95
  'recording_times': 'recording_times',
95
96
  'non_standard_input_reasons': 'non_standard_input_reasons',
96
- 'test': 'test'
97
+ 'test': 'test',
98
+ 'ingest_type': 'ingest_type'
97
99
  }
98
100
 
99
- 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, local_vars_configuration=None): # noqa: E501
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
100
102
  """Asset - a model defined in OpenAPI""" # noqa: E501
101
103
  if local_vars_configuration is None:
102
104
  local_vars_configuration = Configuration.get_default_copy()
@@ -129,6 +131,7 @@ class Asset(object):
129
131
  self._recording_times = None
130
132
  self._non_standard_input_reasons = None
131
133
  self._test = None
134
+ self._ingest_type = None
132
135
  self.discriminator = None
133
136
 
134
137
  if id is not None:
@@ -185,6 +188,8 @@ class Asset(object):
185
188
  self.non_standard_input_reasons = non_standard_input_reasons
186
189
  if test is not None:
187
190
  self.test = test
191
+ if ingest_type is not None:
192
+ self.ingest_type = ingest_type
188
193
 
189
194
  @property
190
195
  def id(self):
@@ -692,7 +697,7 @@ class Asset(object):
692
697
  :param mp4_support: The mp4_support of this Asset. # noqa: E501
693
698
  :type mp4_support: str
694
699
  """
695
- allowed_values = ["standard", "none"] # noqa: E501
700
+ allowed_values = ["standard", "none", "capped-1080p", "audio-only", "audio-only,capped-1080p"] # noqa: E501
696
701
  if self.local_vars_configuration.client_side_validation and mp4_support not in allowed_values: # noqa: E501
697
702
  raise ValueError(
698
703
  "Invalid value for `mp4_support` ({0}), must be one of {1}" # noqa: E501
@@ -835,6 +840,35 @@ class Asset(object):
835
840
 
836
841
  self._test = test
837
842
 
843
+ @property
844
+ def ingest_type(self):
845
+ """Gets the ingest_type of this Asset. # noqa: E501
846
+
847
+ The type of ingest used to create the asset. # noqa: E501
848
+
849
+ :return: The ingest_type of this Asset. # noqa: E501
850
+ :rtype: str
851
+ """
852
+ return self._ingest_type
853
+
854
+ @ingest_type.setter
855
+ def ingest_type(self, ingest_type):
856
+ """Sets the ingest_type of this Asset.
857
+
858
+ The type of ingest used to create the asset. # noqa: E501
859
+
860
+ :param ingest_type: The ingest_type of this Asset. # noqa: E501
861
+ :type ingest_type: str
862
+ """
863
+ allowed_values = ["on_demand_url", "on_demand_direct_upload", "on_demand_clip", "live_rtmp", "live_srt"] # noqa: E501
864
+ if self.local_vars_configuration.client_side_validation and ingest_type not in allowed_values: # noqa: E501
865
+ raise ValueError(
866
+ "Invalid value for `ingest_type` ({0}), must be one of {1}" # noqa: E501
867
+ .format(ingest_type, allowed_values)
868
+ )
869
+
870
+ self._ingest_type = ingest_type
871
+
838
872
  def to_dict(self, serialize=False):
839
873
  """Returns the model properties as a dict"""
840
874
  result = {}
@@ -99,7 +99,7 @@ class AssetStaticRenditionsFiles(object):
99
99
  :param name: The name of this AssetStaticRenditionsFiles. # noqa: E501
100
100
  :type name: str
101
101
  """
102
- allowed_values = ["low.mp4", "medium.mp4", "high.mp4", "audio.m4a"] # noqa: E501
102
+ allowed_values = ["low.mp4", "medium.mp4", "high.mp4", "audio.m4a", "capped-1080p.mp4"] # noqa: E501
103
103
  if self.local_vars_configuration.client_side_validation and name not in allowed_values: # noqa: E501
104
104
  raise ValueError(
105
105
  "Invalid value for `name` ({0}), must be one of {1}" # noqa: E501
@@ -195,7 +195,7 @@ class CreateAssetRequest(object):
195
195
  def mp4_support(self):
196
196
  """Gets the mp4_support of this CreateAssetRequest. # noqa: E501
197
197
 
198
- Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. # noqa: E501
198
+ Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. # noqa: E501
199
199
 
200
200
  :return: The mp4_support of this CreateAssetRequest. # noqa: E501
201
201
  :rtype: str
@@ -206,12 +206,12 @@ class CreateAssetRequest(object):
206
206
  def mp4_support(self, mp4_support):
207
207
  """Sets the mp4_support of this CreateAssetRequest.
208
208
 
209
- Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. # noqa: E501
209
+ Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. # noqa: E501
210
210
 
211
211
  :param mp4_support: The mp4_support of this CreateAssetRequest. # noqa: E501
212
212
  :type mp4_support: str
213
213
  """
214
- allowed_values = ["none", "standard"] # noqa: E501
214
+ allowed_values = ["none", "standard", "capped-1080p", "audio-only", "audio-only,capped-1080p"] # noqa: E501
215
215
  if self.local_vars_configuration.client_side_validation and mp4_support not in allowed_values: # noqa: E501
216
216
  raise ValueError(
217
217
  "Invalid value for `mp4_support` ({0}), must be one of {1}" # noqa: E501
@@ -93,7 +93,7 @@ class CreateSimulcastTargetRequest(object):
93
93
  def stream_key(self):
94
94
  """Gets the stream_key of this CreateSimulcastTargetRequest. # noqa: E501
95
95
 
96
- Stream Key represents a stream identifier on the third party live streaming service to send the parent live stream to. # noqa: E501
96
+ Stream Key represents a stream identifier on the third party live streaming service to send the parent live stream to. Only used for RTMP(s) simulcast destinations. # noqa: E501
97
97
 
98
98
  :return: The stream_key of this CreateSimulcastTargetRequest. # noqa: E501
99
99
  :rtype: str
@@ -104,7 +104,7 @@ class CreateSimulcastTargetRequest(object):
104
104
  def stream_key(self, stream_key):
105
105
  """Sets the stream_key of this CreateSimulcastTargetRequest.
106
106
 
107
- Stream Key represents a stream identifier on the third party live streaming service to send the parent live stream to. # noqa: E501
107
+ Stream Key represents a stream identifier on the third party live streaming service to send the parent live stream to. Only used for RTMP(s) simulcast destinations. # noqa: E501
108
108
 
109
109
  :param stream_key: The stream_key of this CreateSimulcastTargetRequest. # noqa: E501
110
110
  :type stream_key: str
@@ -116,7 +116,7 @@ class CreateSimulcastTargetRequest(object):
116
116
  def url(self):
117
117
  """Gets the url of this CreateSimulcastTargetRequest. # noqa: E501
118
118
 
119
- RTMP hostname including application name for the third party live streaming service. Example: `rtmp://live.example.com/app`. # noqa: E501
119
+ The RTMP(s) or SRT endpoint for a simulcast destination. * For RTMP(s) destinations, this should include the application name for the third party live streaming service, for example: `rtmp://live.example.com/app`. * For SRT destinations, this should be a fully formed SRT connection string, for example: `srt://srt-live.example.com:1234?streamid={stream_key}&passphrase={srt_passphrase}`. Note: SRT simulcast targets can only be used when an source is connected over SRT. # noqa: E501
120
120
 
121
121
  :return: The url of this CreateSimulcastTargetRequest. # noqa: E501
122
122
  :rtype: str
@@ -127,7 +127,7 @@ class CreateSimulcastTargetRequest(object):
127
127
  def url(self, url):
128
128
  """Sets the url of this CreateSimulcastTargetRequest.
129
129
 
130
- RTMP hostname including application name for the third party live streaming service. Example: `rtmp://live.example.com/app`. # noqa: E501
130
+ The RTMP(s) or SRT endpoint for a simulcast destination. * For RTMP(s) destinations, this should include the application name for the third party live streaming service, for example: `rtmp://live.example.com/app`. * For SRT destinations, this should be a fully formed SRT connection string, for example: `srt://srt-live.example.com:1234?streamid={stream_key}&passphrase={srt_passphrase}`. Note: SRT simulcast targets can only be used when an source is connected over SRT. # noqa: E501
131
131
 
132
132
  :param url: The url of this CreateSimulcastTargetRequest. # noqa: E501
133
133
  :type url: str
@@ -44,7 +44,8 @@ class Error(object):
44
44
  'last_seen': 'str',
45
45
  'description': 'str',
46
46
  'count': 'int',
47
- 'code': 'int'
47
+ 'code': 'int',
48
+ 'player_error_code': 'str'
48
49
  }
49
50
 
50
51
  attribute_map = {
@@ -55,10 +56,11 @@ class Error(object):
55
56
  'last_seen': 'last_seen',
56
57
  'description': 'description',
57
58
  'count': 'count',
58
- 'code': 'code'
59
+ 'code': 'code',
60
+ 'player_error_code': 'player_error_code'
59
61
  }
60
62
 
61
- def __init__(self, id=None, percentage=None, notes=None, message=None, last_seen=None, description=None, count=None, code=None, local_vars_configuration=None): # noqa: E501
63
+ def __init__(self, id=None, percentage=None, notes=None, message=None, last_seen=None, description=None, count=None, code=None, player_error_code=None, local_vars_configuration=None): # noqa: E501
62
64
  """Error - a model defined in OpenAPI""" # noqa: E501
63
65
  if local_vars_configuration is None:
64
66
  local_vars_configuration = Configuration.get_default_copy()
@@ -72,6 +74,7 @@ class Error(object):
72
74
  self._description = None
73
75
  self._count = None
74
76
  self._code = None
77
+ self._player_error_code = None
75
78
  self.discriminator = None
76
79
 
77
80
  if id is not None:
@@ -86,6 +89,7 @@ class Error(object):
86
89
  if count is not None:
87
90
  self.count = count
88
91
  self.code = code
92
+ self.player_error_code = player_error_code
89
93
 
90
94
  @property
91
95
  def id(self):
@@ -271,6 +275,29 @@ class Error(object):
271
275
 
272
276
  self._code = code
273
277
 
278
+ @property
279
+ def player_error_code(self):
280
+ """Gets the player_error_code of this Error. # noqa: E501
281
+
282
+ The string version of the error code # noqa: E501
283
+
284
+ :return: The player_error_code of this Error. # noqa: E501
285
+ :rtype: str
286
+ """
287
+ return self._player_error_code
288
+
289
+ @player_error_code.setter
290
+ def player_error_code(self, player_error_code):
291
+ """Sets the player_error_code of this Error.
292
+
293
+ The string version of the error code # noqa: E501
294
+
295
+ :param player_error_code: The player_error_code of this Error. # noqa: E501
296
+ :type player_error_code: str
297
+ """
298
+
299
+ self._player_error_code = player_error_code
300
+
274
301
  def to_dict(self, serialize=False):
275
302
  """Returns the model properties as a dict"""
276
303
  result = {}