mux-python 3.16.0__py3-none-any.whl → 3.18.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 +5 -1
- mux_python/api/__init__.py +1 -0
- mux_python/api/drm_configurations_api.py +311 -0
- mux_python/api/metrics_api.py +8 -8
- mux_python/api_client.py +1 -1
- mux_python/configuration.py +1 -1
- mux_python/models/__init__.py +3 -0
- mux_python/models/asset.py +37 -3
- mux_python/models/create_asset_request.py +69 -7
- mux_python/models/create_live_stream_request.py +29 -1
- mux_python/models/create_playback_id_request.py +31 -3
- mux_python/models/create_upload_request.py +2 -0
- mux_python/models/delivery_report.py +37 -3
- mux_python/models/drm_configuration.py +134 -0
- mux_python/models/drm_configuration_response.py +132 -0
- mux_python/models/list_drm_configurations_response.py +132 -0
- mux_python/models/playback_id.py +31 -3
- mux_python/models/playback_policy.py +2 -1
- {mux_python-3.16.0.dist-info → mux_python-3.18.0.dist-info}/METADATA +3 -3
- {mux_python-3.16.0.dist-info → mux_python-3.18.0.dist-info}/RECORD +23 -19
- {mux_python-3.16.0.dist-info → mux_python-3.18.0.dist-info}/WHEEL +1 -1
- {mux_python-3.16.0.dist-info → mux_python-3.18.0.dist-info}/LICENSE +0 -0
- {mux_python-3.16.0.dist-info → mux_python-3.18.0.dist-info}/top_level.txt +0 -0
mux_python/__init__.py
CHANGED
|
@@ -15,10 +15,11 @@
|
|
|
15
15
|
|
|
16
16
|
from __future__ import absolute_import
|
|
17
17
|
|
|
18
|
-
__version__ = "3.
|
|
18
|
+
__version__ = "3.18.0"
|
|
19
19
|
|
|
20
20
|
# import apis into sdk package
|
|
21
21
|
from mux_python.api.assets_api import AssetsApi
|
|
22
|
+
from mux_python.api.drm_configurations_api import DRMConfigurationsApi
|
|
22
23
|
from mux_python.api.delivery_usage_api import DeliveryUsageApi
|
|
23
24
|
from mux_python.api.dimensions_api import DimensionsApi
|
|
24
25
|
from mux_python.api.direct_uploads_api import DirectUploadsApi
|
|
@@ -78,6 +79,8 @@ from mux_python.models.create_track_response import CreateTrackResponse
|
|
|
78
79
|
from mux_python.models.create_transcription_vocabulary_request import CreateTranscriptionVocabularyRequest
|
|
79
80
|
from mux_python.models.create_upload_request import CreateUploadRequest
|
|
80
81
|
from mux_python.models.create_web_input_request import CreateWebInputRequest
|
|
82
|
+
from mux_python.models.drm_configuration import DRMConfiguration
|
|
83
|
+
from mux_python.models.drm_configuration_response import DRMConfigurationResponse
|
|
81
84
|
from mux_python.models.delivery_report import DeliveryReport
|
|
82
85
|
from mux_python.models.delivery_report_delivered_seconds_by_resolution import DeliveryReportDeliveredSecondsByResolution
|
|
83
86
|
from mux_python.models.dimension_value import DimensionValue
|
|
@@ -122,6 +125,7 @@ from mux_python.models.list_all_metric_values_response import ListAllMetricValue
|
|
|
122
125
|
from mux_python.models.list_assets_response import ListAssetsResponse
|
|
123
126
|
from mux_python.models.list_breakdown_values_response import ListBreakdownValuesResponse
|
|
124
127
|
from mux_python.models.list_breakdown_values_response_meta import ListBreakdownValuesResponseMeta
|
|
128
|
+
from mux_python.models.list_drm_configurations_response import ListDRMConfigurationsResponse
|
|
125
129
|
from mux_python.models.list_delivery_usage_response import ListDeliveryUsageResponse
|
|
126
130
|
from mux_python.models.list_dimension_values_response import ListDimensionValuesResponse
|
|
127
131
|
from mux_python.models.list_dimensions_response import ListDimensionsResponse
|
mux_python/api/__init__.py
CHANGED
|
@@ -4,6 +4,7 @@ from __future__ import absolute_import
|
|
|
4
4
|
|
|
5
5
|
# import apis into api package
|
|
6
6
|
from mux_python.api.assets_api import AssetsApi
|
|
7
|
+
from mux_python.api.drm_configurations_api import DRMConfigurationsApi
|
|
7
8
|
from mux_python.api.delivery_usage_api import DeliveryUsageApi
|
|
8
9
|
from mux_python.api.dimensions_api import DimensionsApi
|
|
9
10
|
from mux_python.api.direct_uploads_api import DirectUploadsApi
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Mux API
|
|
5
|
+
|
|
6
|
+
Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Contact: devex@mux.com
|
|
10
|
+
Generated by: https://openapi-generator.tech
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from __future__ import absolute_import
|
|
15
|
+
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
|
|
18
|
+
# python 2 and python 3 compatibility library
|
|
19
|
+
import six
|
|
20
|
+
|
|
21
|
+
from mux_python.api_client import ApiClient
|
|
22
|
+
from mux_python.exceptions import ( # noqa: F401
|
|
23
|
+
ApiTypeError,
|
|
24
|
+
ApiValueError
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class DRMConfigurationsApi(object):
|
|
29
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
|
+
Ref: https://openapi-generator.tech
|
|
31
|
+
|
|
32
|
+
Do not edit the class manually.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def __init__(self, api_client=None):
|
|
36
|
+
if api_client is None:
|
|
37
|
+
api_client = ApiClient()
|
|
38
|
+
self.api_client = api_client
|
|
39
|
+
|
|
40
|
+
def get_drm_configuration(self, drm_configuration_id, **kwargs): # noqa: E501
|
|
41
|
+
"""Retrieve a DRM Configuration # noqa: E501
|
|
42
|
+
|
|
43
|
+
Retrieves a single DRM Configuration. # noqa: E501
|
|
44
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
45
|
+
asynchronous HTTP request, please pass async_req=True
|
|
46
|
+
|
|
47
|
+
>>> thread = api.get_drm_configuration(drm_configuration_id, async_req=True)
|
|
48
|
+
>>> result = thread.get()
|
|
49
|
+
|
|
50
|
+
:param drm_configuration_id: The DRM Configuration ID. (required)
|
|
51
|
+
:type drm_configuration_id: str
|
|
52
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
53
|
+
:type async_req: bool, optional
|
|
54
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
55
|
+
be returned without reading/decoding response
|
|
56
|
+
data. Default is True.
|
|
57
|
+
:type _preload_content: bool, optional
|
|
58
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
59
|
+
number provided, it will be total request
|
|
60
|
+
timeout. It can also be a pair (tuple) of
|
|
61
|
+
(connection, read) timeouts.
|
|
62
|
+
:return: Returns the result object.
|
|
63
|
+
If the method is called asynchronously,
|
|
64
|
+
returns the request thread.
|
|
65
|
+
:rtype: DRMConfigurationResponse
|
|
66
|
+
"""
|
|
67
|
+
kwargs['_return_http_data_only'] = True
|
|
68
|
+
return self.get_drm_configuration_with_http_info(drm_configuration_id, **kwargs) # noqa: E501
|
|
69
|
+
|
|
70
|
+
def get_drm_configuration_with_http_info(self, drm_configuration_id, **kwargs): # noqa: E501
|
|
71
|
+
"""Retrieve a DRM Configuration # noqa: E501
|
|
72
|
+
|
|
73
|
+
Retrieves a single DRM Configuration. # noqa: E501
|
|
74
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
75
|
+
asynchronous HTTP request, please pass async_req=True
|
|
76
|
+
|
|
77
|
+
>>> thread = api.get_drm_configuration_with_http_info(drm_configuration_id, async_req=True)
|
|
78
|
+
>>> result = thread.get()
|
|
79
|
+
|
|
80
|
+
:param drm_configuration_id: The DRM Configuration ID. (required)
|
|
81
|
+
:type drm_configuration_id: str
|
|
82
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
83
|
+
:type async_req: bool, optional
|
|
84
|
+
:param _return_http_data_only: response data without head status code
|
|
85
|
+
and headers
|
|
86
|
+
:type _return_http_data_only: bool, optional
|
|
87
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
88
|
+
be returned without reading/decoding response
|
|
89
|
+
data. Default is True.
|
|
90
|
+
:type _preload_content: bool, optional
|
|
91
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
92
|
+
number provided, it will be total request
|
|
93
|
+
timeout. It can also be a pair (tuple) of
|
|
94
|
+
(connection, read) timeouts.
|
|
95
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
96
|
+
request; this effectively ignores the authentication
|
|
97
|
+
in the spec for a single request.
|
|
98
|
+
:type _request_auth: dict, optional
|
|
99
|
+
:return: Returns the result object.
|
|
100
|
+
If the method is called asynchronously,
|
|
101
|
+
returns the request thread.
|
|
102
|
+
:rtype: tuple(DRMConfigurationResponse, status_code(int), headers(HTTPHeaderDict))
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
local_var_params = locals()
|
|
106
|
+
|
|
107
|
+
all_params = [
|
|
108
|
+
'drm_configuration_id'
|
|
109
|
+
]
|
|
110
|
+
all_params.extend(
|
|
111
|
+
[
|
|
112
|
+
'async_req',
|
|
113
|
+
'_return_http_data_only',
|
|
114
|
+
'_preload_content',
|
|
115
|
+
'_request_timeout',
|
|
116
|
+
'_request_auth'
|
|
117
|
+
]
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
121
|
+
if key not in all_params:
|
|
122
|
+
raise ApiTypeError(
|
|
123
|
+
"Got an unexpected keyword argument '%s'"
|
|
124
|
+
" to method get_drm_configuration" % key
|
|
125
|
+
)
|
|
126
|
+
local_var_params[key] = val
|
|
127
|
+
del local_var_params['kwargs']
|
|
128
|
+
# verify the required parameter 'drm_configuration_id' is set
|
|
129
|
+
if self.api_client.client_side_validation and ('drm_configuration_id' not in local_var_params or # noqa: E501
|
|
130
|
+
local_var_params['drm_configuration_id'] is None): # noqa: E501
|
|
131
|
+
raise ApiValueError("Missing the required parameter `drm_configuration_id` when calling `get_drm_configuration`") # noqa: E501
|
|
132
|
+
|
|
133
|
+
collection_formats = {}
|
|
134
|
+
|
|
135
|
+
path_params = {}
|
|
136
|
+
if 'drm_configuration_id' in local_var_params:
|
|
137
|
+
path_params['DRM_CONFIGURATION_ID'] = local_var_params['drm_configuration_id'] # noqa: E501
|
|
138
|
+
|
|
139
|
+
query_params = []
|
|
140
|
+
|
|
141
|
+
header_params = {}
|
|
142
|
+
|
|
143
|
+
form_params = []
|
|
144
|
+
local_var_files = {}
|
|
145
|
+
|
|
146
|
+
body_params = None
|
|
147
|
+
# HTTP header `Accept`
|
|
148
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
149
|
+
['application/json']) # noqa: E501
|
|
150
|
+
|
|
151
|
+
# Authentication setting
|
|
152
|
+
auth_settings = ['accessToken'] # noqa: E501
|
|
153
|
+
|
|
154
|
+
response_types_map = {
|
|
155
|
+
200: "DRMConfigurationResponse",
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return self.api_client.call_api(
|
|
159
|
+
'/video/v1/drm-configurations/{DRM_CONFIGURATION_ID}', 'GET',
|
|
160
|
+
path_params,
|
|
161
|
+
query_params,
|
|
162
|
+
header_params,
|
|
163
|
+
body=body_params,
|
|
164
|
+
post_params=form_params,
|
|
165
|
+
files=local_var_files,
|
|
166
|
+
response_types_map=response_types_map,
|
|
167
|
+
auth_settings=auth_settings,
|
|
168
|
+
async_req=local_var_params.get('async_req'),
|
|
169
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
170
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
171
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
172
|
+
collection_formats=collection_formats,
|
|
173
|
+
_request_auth=local_var_params.get('_request_auth'))
|
|
174
|
+
|
|
175
|
+
def list_drm_configurations(self, **kwargs): # noqa: E501
|
|
176
|
+
"""List DRM Configurations # noqa: E501
|
|
177
|
+
|
|
178
|
+
Returns a list of DRM Configurations # noqa: E501
|
|
179
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
180
|
+
asynchronous HTTP request, please pass async_req=True
|
|
181
|
+
|
|
182
|
+
>>> thread = api.list_drm_configurations(async_req=True)
|
|
183
|
+
>>> result = thread.get()
|
|
184
|
+
|
|
185
|
+
:param page: Offset by this many pages, of the size of `limit`
|
|
186
|
+
:type page: int
|
|
187
|
+
:param limit: Number of items to include in the response
|
|
188
|
+
:type limit: int
|
|
189
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
190
|
+
:type async_req: bool, optional
|
|
191
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
192
|
+
be returned without reading/decoding response
|
|
193
|
+
data. Default is True.
|
|
194
|
+
:type _preload_content: bool, optional
|
|
195
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
196
|
+
number provided, it will be total request
|
|
197
|
+
timeout. It can also be a pair (tuple) of
|
|
198
|
+
(connection, read) timeouts.
|
|
199
|
+
:return: Returns the result object.
|
|
200
|
+
If the method is called asynchronously,
|
|
201
|
+
returns the request thread.
|
|
202
|
+
:rtype: ListDRMConfigurationsResponse
|
|
203
|
+
"""
|
|
204
|
+
kwargs['_return_http_data_only'] = True
|
|
205
|
+
return self.list_drm_configurations_with_http_info(**kwargs) # noqa: E501
|
|
206
|
+
|
|
207
|
+
def list_drm_configurations_with_http_info(self, **kwargs): # noqa: E501
|
|
208
|
+
"""List DRM Configurations # noqa: E501
|
|
209
|
+
|
|
210
|
+
Returns a list of DRM Configurations # noqa: E501
|
|
211
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
212
|
+
asynchronous HTTP request, please pass async_req=True
|
|
213
|
+
|
|
214
|
+
>>> thread = api.list_drm_configurations_with_http_info(async_req=True)
|
|
215
|
+
>>> result = thread.get()
|
|
216
|
+
|
|
217
|
+
:param page: Offset by this many pages, of the size of `limit`
|
|
218
|
+
:type page: int
|
|
219
|
+
:param limit: Number of items to include in the response
|
|
220
|
+
:type limit: int
|
|
221
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
222
|
+
:type async_req: bool, optional
|
|
223
|
+
:param _return_http_data_only: response data without head status code
|
|
224
|
+
and headers
|
|
225
|
+
:type _return_http_data_only: bool, optional
|
|
226
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
227
|
+
be returned without reading/decoding response
|
|
228
|
+
data. Default is True.
|
|
229
|
+
:type _preload_content: bool, optional
|
|
230
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
231
|
+
number provided, it will be total request
|
|
232
|
+
timeout. It can also be a pair (tuple) of
|
|
233
|
+
(connection, read) timeouts.
|
|
234
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
235
|
+
request; this effectively ignores the authentication
|
|
236
|
+
in the spec for a single request.
|
|
237
|
+
:type _request_auth: dict, optional
|
|
238
|
+
:return: Returns the result object.
|
|
239
|
+
If the method is called asynchronously,
|
|
240
|
+
returns the request thread.
|
|
241
|
+
:rtype: tuple(ListDRMConfigurationsResponse, status_code(int), headers(HTTPHeaderDict))
|
|
242
|
+
"""
|
|
243
|
+
|
|
244
|
+
local_var_params = locals()
|
|
245
|
+
|
|
246
|
+
all_params = [
|
|
247
|
+
'page',
|
|
248
|
+
'limit'
|
|
249
|
+
]
|
|
250
|
+
all_params.extend(
|
|
251
|
+
[
|
|
252
|
+
'async_req',
|
|
253
|
+
'_return_http_data_only',
|
|
254
|
+
'_preload_content',
|
|
255
|
+
'_request_timeout',
|
|
256
|
+
'_request_auth'
|
|
257
|
+
]
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
261
|
+
if key not in all_params:
|
|
262
|
+
raise ApiTypeError(
|
|
263
|
+
"Got an unexpected keyword argument '%s'"
|
|
264
|
+
" to method list_drm_configurations" % key
|
|
265
|
+
)
|
|
266
|
+
local_var_params[key] = val
|
|
267
|
+
del local_var_params['kwargs']
|
|
268
|
+
|
|
269
|
+
collection_formats = {}
|
|
270
|
+
|
|
271
|
+
path_params = {}
|
|
272
|
+
|
|
273
|
+
query_params = []
|
|
274
|
+
if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
|
|
275
|
+
query_params.append(('page', local_var_params['page'])) # noqa: E501
|
|
276
|
+
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
|
|
277
|
+
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
|
|
278
|
+
|
|
279
|
+
header_params = {}
|
|
280
|
+
|
|
281
|
+
form_params = []
|
|
282
|
+
local_var_files = {}
|
|
283
|
+
|
|
284
|
+
body_params = None
|
|
285
|
+
# HTTP header `Accept`
|
|
286
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
287
|
+
['application/json']) # noqa: E501
|
|
288
|
+
|
|
289
|
+
# Authentication setting
|
|
290
|
+
auth_settings = ['accessToken'] # noqa: E501
|
|
291
|
+
|
|
292
|
+
response_types_map = {
|
|
293
|
+
200: "ListDRMConfigurationsResponse",
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
return self.api_client.call_api(
|
|
297
|
+
'/video/v1/drm-configurations', 'GET',
|
|
298
|
+
path_params,
|
|
299
|
+
query_params,
|
|
300
|
+
header_params,
|
|
301
|
+
body=body_params,
|
|
302
|
+
post_params=form_params,
|
|
303
|
+
files=local_var_files,
|
|
304
|
+
response_types_map=response_types_map,
|
|
305
|
+
auth_settings=auth_settings,
|
|
306
|
+
async_req=local_var_params.get('async_req'),
|
|
307
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
308
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
309
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
310
|
+
collection_formats=collection_formats,
|
|
311
|
+
_request_auth=local_var_params.get('_request_auth'))
|
mux_python/api/metrics_api.py
CHANGED
|
@@ -55,7 +55,7 @@ class MetricsApi(object):
|
|
|
55
55
|
:type filters: list[str]
|
|
56
56
|
:param metric_filters: Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
|
57
57
|
:type metric_filters: list[str]
|
|
58
|
-
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used.
|
|
58
|
+
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used. The default measurement for each metric is: \"sum\" : `ad_attempt_count`, `ad_break_count`, `ad_break_error_count`, `ad_error_count`, `ad_impression_count`, `playing_time` \"median\" : `ad_preroll_startup_time`, `ad_watch_time`, `aggregate_startup_time`, `content_startup_time`, `content_watch_time`, `max_downscale_percentage`, `max_upscale_percentage`, `page_load_time`, `player_average_live_latency`, `player_startup_time`, `rebuffer_count`, `rebuffer_duration`, `requests_for_first_preroll`, `video_startup_preroll_load_time`, `video_startup_preroll_request_time`, `video_startup_time`, `view_average_request_latency`, `view_average_request_throughput`, `view_max_request_latency`, `weighted_average_bitrate` \"avg\" : `ad_break_error_percentage`, `ad_error_percentage`, `ad_exit_before_start_count`, `ad_exit_before_start_percentage`, `ad_playback_failure_percentage`, `ad_startup_error_count`, `ad_startup_error_percentage`, `content_playback_failure_percentage`, `downscale_percentage`, `exits_before_video_start`, `playback_business_exception_percentage`, `playback_failure_percentage`, `playback_success_score`, `rebuffer_frequency`, `rebuffer_percentage`, `seek_latency`, `smoothness_score`, `startup_time_score`, `upscale_percentage`, `video_quality_score`, `video_startup_business_exception_percentage`, `video_startup_failure_percentage`, `viewer_experience_score` \"count\" : `started_views`, `unique_viewers`
|
|
59
59
|
:type measurement: str
|
|
60
60
|
:param order_direction: Sort order.
|
|
61
61
|
:type order_direction: str
|
|
@@ -97,7 +97,7 @@ class MetricsApi(object):
|
|
|
97
97
|
:type filters: list[str]
|
|
98
98
|
:param metric_filters: Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
|
99
99
|
:type metric_filters: list[str]
|
|
100
|
-
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used.
|
|
100
|
+
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used. The default measurement for each metric is: \"sum\" : `ad_attempt_count`, `ad_break_count`, `ad_break_error_count`, `ad_error_count`, `ad_impression_count`, `playing_time` \"median\" : `ad_preroll_startup_time`, `ad_watch_time`, `aggregate_startup_time`, `content_startup_time`, `content_watch_time`, `max_downscale_percentage`, `max_upscale_percentage`, `page_load_time`, `player_average_live_latency`, `player_startup_time`, `rebuffer_count`, `rebuffer_duration`, `requests_for_first_preroll`, `video_startup_preroll_load_time`, `video_startup_preroll_request_time`, `video_startup_time`, `view_average_request_latency`, `view_average_request_throughput`, `view_max_request_latency`, `weighted_average_bitrate` \"avg\" : `ad_break_error_percentage`, `ad_error_percentage`, `ad_exit_before_start_count`, `ad_exit_before_start_percentage`, `ad_playback_failure_percentage`, `ad_startup_error_count`, `ad_startup_error_percentage`, `content_playback_failure_percentage`, `downscale_percentage`, `exits_before_video_start`, `playback_business_exception_percentage`, `playback_failure_percentage`, `playback_success_score`, `rebuffer_frequency`, `rebuffer_percentage`, `seek_latency`, `smoothness_score`, `startup_time_score`, `upscale_percentage`, `video_quality_score`, `video_startup_business_exception_percentage`, `video_startup_failure_percentage`, `viewer_experience_score` \"count\" : `started_views`, `unique_viewers`
|
|
101
101
|
:type measurement: str
|
|
102
102
|
:param order_direction: Sort order.
|
|
103
103
|
:type order_direction: str
|
|
@@ -235,7 +235,7 @@ class MetricsApi(object):
|
|
|
235
235
|
:type filters: list[str]
|
|
236
236
|
:param metric_filters: Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
|
237
237
|
:type metric_filters: list[str]
|
|
238
|
-
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used.
|
|
238
|
+
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used. The default measurement for each metric is: \"sum\" : `ad_attempt_count`, `ad_break_count`, `ad_break_error_count`, `ad_error_count`, `ad_impression_count`, `playing_time` \"median\" : `ad_preroll_startup_time`, `ad_watch_time`, `aggregate_startup_time`, `content_startup_time`, `content_watch_time`, `max_downscale_percentage`, `max_upscale_percentage`, `page_load_time`, `player_average_live_latency`, `player_startup_time`, `rebuffer_count`, `rebuffer_duration`, `requests_for_first_preroll`, `video_startup_preroll_load_time`, `video_startup_preroll_request_time`, `video_startup_time`, `view_average_request_latency`, `view_average_request_throughput`, `view_max_request_latency`, `weighted_average_bitrate` \"avg\" : `ad_break_error_percentage`, `ad_error_percentage`, `ad_exit_before_start_count`, `ad_exit_before_start_percentage`, `ad_playback_failure_percentage`, `ad_startup_error_count`, `ad_startup_error_percentage`, `content_playback_failure_percentage`, `downscale_percentage`, `exits_before_video_start`, `playback_business_exception_percentage`, `playback_failure_percentage`, `playback_success_score`, `rebuffer_frequency`, `rebuffer_percentage`, `seek_latency`, `smoothness_score`, `startup_time_score`, `upscale_percentage`, `video_quality_score`, `video_startup_business_exception_percentage`, `video_startup_failure_percentage`, `viewer_experience_score` \"count\" : `started_views`, `unique_viewers`
|
|
239
239
|
:type measurement: str
|
|
240
240
|
:param async_req: Whether to execute the request asynchronously.
|
|
241
241
|
:type async_req: bool, optional
|
|
@@ -273,7 +273,7 @@ class MetricsApi(object):
|
|
|
273
273
|
:type filters: list[str]
|
|
274
274
|
:param metric_filters: Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
|
275
275
|
:type metric_filters: list[str]
|
|
276
|
-
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used.
|
|
276
|
+
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used. The default measurement for each metric is: \"sum\" : `ad_attempt_count`, `ad_break_count`, `ad_break_error_count`, `ad_error_count`, `ad_impression_count`, `playing_time` \"median\" : `ad_preroll_startup_time`, `ad_watch_time`, `aggregate_startup_time`, `content_startup_time`, `content_watch_time`, `max_downscale_percentage`, `max_upscale_percentage`, `page_load_time`, `player_average_live_latency`, `player_startup_time`, `rebuffer_count`, `rebuffer_duration`, `requests_for_first_preroll`, `video_startup_preroll_load_time`, `video_startup_preroll_request_time`, `video_startup_time`, `view_average_request_latency`, `view_average_request_throughput`, `view_max_request_latency`, `weighted_average_bitrate` \"avg\" : `ad_break_error_percentage`, `ad_error_percentage`, `ad_exit_before_start_count`, `ad_exit_before_start_percentage`, `ad_playback_failure_percentage`, `ad_startup_error_count`, `ad_startup_error_percentage`, `content_playback_failure_percentage`, `downscale_percentage`, `exits_before_video_start`, `playback_business_exception_percentage`, `playback_failure_percentage`, `playback_success_score`, `rebuffer_frequency`, `rebuffer_percentage`, `seek_latency`, `smoothness_score`, `startup_time_score`, `upscale_percentage`, `video_quality_score`, `video_startup_business_exception_percentage`, `video_startup_failure_percentage`, `viewer_experience_score` \"count\" : `started_views`, `unique_viewers`
|
|
277
277
|
:type measurement: str
|
|
278
278
|
:param async_req: Whether to execute the request asynchronously.
|
|
279
279
|
:type async_req: bool, optional
|
|
@@ -559,7 +559,7 @@ class MetricsApi(object):
|
|
|
559
559
|
:type metric_id: str
|
|
560
560
|
:param group_by: Breakdown value to group the results by
|
|
561
561
|
:type group_by: str
|
|
562
|
-
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used.
|
|
562
|
+
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used. The default measurement for each metric is: \"sum\" : `ad_attempt_count`, `ad_break_count`, `ad_break_error_count`, `ad_error_count`, `ad_impression_count`, `playing_time` \"median\" : `ad_preroll_startup_time`, `ad_watch_time`, `aggregate_startup_time`, `content_startup_time`, `content_watch_time`, `max_downscale_percentage`, `max_upscale_percentage`, `page_load_time`, `player_average_live_latency`, `player_startup_time`, `rebuffer_count`, `rebuffer_duration`, `requests_for_first_preroll`, `video_startup_preroll_load_time`, `video_startup_preroll_request_time`, `video_startup_time`, `view_average_request_latency`, `view_average_request_throughput`, `view_max_request_latency`, `weighted_average_bitrate` \"avg\" : `ad_break_error_percentage`, `ad_error_percentage`, `ad_exit_before_start_count`, `ad_exit_before_start_percentage`, `ad_playback_failure_percentage`, `ad_startup_error_count`, `ad_startup_error_percentage`, `content_playback_failure_percentage`, `downscale_percentage`, `exits_before_video_start`, `playback_business_exception_percentage`, `playback_failure_percentage`, `playback_success_score`, `rebuffer_frequency`, `rebuffer_percentage`, `seek_latency`, `smoothness_score`, `startup_time_score`, `upscale_percentage`, `video_quality_score`, `video_startup_business_exception_percentage`, `video_startup_failure_percentage`, `viewer_experience_score` \"count\" : `started_views`, `unique_viewers`
|
|
563
563
|
:type measurement: str
|
|
564
564
|
:param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
|
565
565
|
:type filters: list[str]
|
|
@@ -607,7 +607,7 @@ class MetricsApi(object):
|
|
|
607
607
|
:type metric_id: str
|
|
608
608
|
:param group_by: Breakdown value to group the results by
|
|
609
609
|
:type group_by: str
|
|
610
|
-
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used.
|
|
610
|
+
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used. The default measurement for each metric is: \"sum\" : `ad_attempt_count`, `ad_break_count`, `ad_break_error_count`, `ad_error_count`, `ad_impression_count`, `playing_time` \"median\" : `ad_preroll_startup_time`, `ad_watch_time`, `aggregate_startup_time`, `content_startup_time`, `content_watch_time`, `max_downscale_percentage`, `max_upscale_percentage`, `page_load_time`, `player_average_live_latency`, `player_startup_time`, `rebuffer_count`, `rebuffer_duration`, `requests_for_first_preroll`, `video_startup_preroll_load_time`, `video_startup_preroll_request_time`, `video_startup_time`, `view_average_request_latency`, `view_average_request_throughput`, `view_max_request_latency`, `weighted_average_bitrate` \"avg\" : `ad_break_error_percentage`, `ad_error_percentage`, `ad_exit_before_start_count`, `ad_exit_before_start_percentage`, `ad_playback_failure_percentage`, `ad_startup_error_count`, `ad_startup_error_percentage`, `content_playback_failure_percentage`, `downscale_percentage`, `exits_before_video_start`, `playback_business_exception_percentage`, `playback_failure_percentage`, `playback_success_score`, `rebuffer_frequency`, `rebuffer_percentage`, `seek_latency`, `smoothness_score`, `startup_time_score`, `upscale_percentage`, `video_quality_score`, `video_startup_business_exception_percentage`, `video_startup_failure_percentage`, `viewer_experience_score` \"count\" : `started_views`, `unique_viewers`
|
|
611
611
|
:type measurement: str
|
|
612
612
|
:param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
|
613
613
|
:type filters: list[str]
|
|
@@ -758,7 +758,7 @@ class MetricsApi(object):
|
|
|
758
758
|
|
|
759
759
|
:param metric_id: ID of the Metric (required)
|
|
760
760
|
:type metric_id: str
|
|
761
|
-
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used.
|
|
761
|
+
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used. The default measurement for each metric is: \"sum\" : `ad_attempt_count`, `ad_break_count`, `ad_break_error_count`, `ad_error_count`, `ad_impression_count`, `playing_time` \"median\" : `ad_preroll_startup_time`, `ad_watch_time`, `aggregate_startup_time`, `content_startup_time`, `content_watch_time`, `max_downscale_percentage`, `max_upscale_percentage`, `page_load_time`, `player_average_live_latency`, `player_startup_time`, `rebuffer_count`, `rebuffer_duration`, `requests_for_first_preroll`, `video_startup_preroll_load_time`, `video_startup_preroll_request_time`, `video_startup_time`, `view_average_request_latency`, `view_average_request_throughput`, `view_max_request_latency`, `weighted_average_bitrate` \"avg\" : `ad_break_error_percentage`, `ad_error_percentage`, `ad_exit_before_start_count`, `ad_exit_before_start_percentage`, `ad_playback_failure_percentage`, `ad_startup_error_count`, `ad_startup_error_percentage`, `content_playback_failure_percentage`, `downscale_percentage`, `exits_before_video_start`, `playback_business_exception_percentage`, `playback_failure_percentage`, `playback_success_score`, `rebuffer_frequency`, `rebuffer_percentage`, `seek_latency`, `smoothness_score`, `startup_time_score`, `upscale_percentage`, `video_quality_score`, `video_startup_business_exception_percentage`, `video_startup_failure_percentage`, `viewer_experience_score` \"count\" : `started_views`, `unique_viewers`
|
|
762
762
|
:type measurement: str
|
|
763
763
|
:param order_direction: Sort order.
|
|
764
764
|
:type order_direction: str
|
|
@@ -798,7 +798,7 @@ class MetricsApi(object):
|
|
|
798
798
|
|
|
799
799
|
:param metric_id: ID of the Metric (required)
|
|
800
800
|
:type metric_id: str
|
|
801
|
-
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used.
|
|
801
|
+
:param measurement: Measurement for the provided metric. If omitted, the default for the metric will be used. The default measurement for each metric is: \"sum\" : `ad_attempt_count`, `ad_break_count`, `ad_break_error_count`, `ad_error_count`, `ad_impression_count`, `playing_time` \"median\" : `ad_preroll_startup_time`, `ad_watch_time`, `aggregate_startup_time`, `content_startup_time`, `content_watch_time`, `max_downscale_percentage`, `max_upscale_percentage`, `page_load_time`, `player_average_live_latency`, `player_startup_time`, `rebuffer_count`, `rebuffer_duration`, `requests_for_first_preroll`, `video_startup_preroll_load_time`, `video_startup_preroll_request_time`, `video_startup_time`, `view_average_request_latency`, `view_average_request_throughput`, `view_max_request_latency`, `weighted_average_bitrate` \"avg\" : `ad_break_error_percentage`, `ad_error_percentage`, `ad_exit_before_start_count`, `ad_exit_before_start_percentage`, `ad_playback_failure_percentage`, `ad_startup_error_count`, `ad_startup_error_percentage`, `content_playback_failure_percentage`, `downscale_percentage`, `exits_before_video_start`, `playback_business_exception_percentage`, `playback_failure_percentage`, `playback_success_score`, `rebuffer_frequency`, `rebuffer_percentage`, `seek_latency`, `smoothness_score`, `startup_time_score`, `upscale_percentage`, `video_quality_score`, `video_startup_business_exception_percentage`, `video_startup_failure_percentage`, `viewer_experience_score` \"count\" : `started_views`, `unique_viewers`
|
|
802
802
|
:type measurement: str
|
|
803
803
|
:param order_direction: Sort order.
|
|
804
804
|
:type order_direction: str
|
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 = '
|
|
82
|
+
self.user_agent = 'Mux Python | 3.18.0'
|
|
83
83
|
self.client_side_validation = configuration.client_side_validation
|
|
84
84
|
|
|
85
85
|
def __enter__(self):
|
mux_python/configuration.py
CHANGED
|
@@ -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.
|
|
409
|
+
"SDK Package Version: 3.18.0".\
|
|
410
410
|
format(env=sys.platform, pyversion=sys.version)
|
|
411
411
|
|
|
412
412
|
def get_host_settings(self):
|
mux_python/models/__init__.py
CHANGED
|
@@ -44,6 +44,8 @@ from mux_python.models.create_track_response import CreateTrackResponse
|
|
|
44
44
|
from mux_python.models.create_transcription_vocabulary_request import CreateTranscriptionVocabularyRequest
|
|
45
45
|
from mux_python.models.create_upload_request import CreateUploadRequest
|
|
46
46
|
from mux_python.models.create_web_input_request import CreateWebInputRequest
|
|
47
|
+
from mux_python.models.drm_configuration import DRMConfiguration
|
|
48
|
+
from mux_python.models.drm_configuration_response import DRMConfigurationResponse
|
|
47
49
|
from mux_python.models.delivery_report import DeliveryReport
|
|
48
50
|
from mux_python.models.delivery_report_delivered_seconds_by_resolution import DeliveryReportDeliveredSecondsByResolution
|
|
49
51
|
from mux_python.models.dimension_value import DimensionValue
|
|
@@ -88,6 +90,7 @@ from mux_python.models.list_all_metric_values_response import ListAllMetricValue
|
|
|
88
90
|
from mux_python.models.list_assets_response import ListAssetsResponse
|
|
89
91
|
from mux_python.models.list_breakdown_values_response import ListBreakdownValuesResponse
|
|
90
92
|
from mux_python.models.list_breakdown_values_response_meta import ListBreakdownValuesResponseMeta
|
|
93
|
+
from mux_python.models.list_drm_configurations_response import ListDRMConfigurationsResponse
|
|
91
94
|
from mux_python.models.list_delivery_usage_response import ListDeliveryUsageResponse
|
|
92
95
|
from mux_python.models.list_dimension_values_response import ListDimensionValuesResponse
|
|
93
96
|
from mux_python.models.list_dimensions_response import ListDimensionsResponse
|
mux_python/models/asset.py
CHANGED
|
@@ -45,6 +45,7 @@ class Asset(object):
|
|
|
45
45
|
'resolution_tier': 'str',
|
|
46
46
|
'max_resolution_tier': 'str',
|
|
47
47
|
'encoding_tier': 'str',
|
|
48
|
+
'video_quality': 'str',
|
|
48
49
|
'max_stored_frame_rate': 'float',
|
|
49
50
|
'aspect_ratio': 'str',
|
|
50
51
|
'playback_ids': 'list[PlaybackID]',
|
|
@@ -76,6 +77,7 @@ class Asset(object):
|
|
|
76
77
|
'resolution_tier': 'resolution_tier',
|
|
77
78
|
'max_resolution_tier': 'max_resolution_tier',
|
|
78
79
|
'encoding_tier': 'encoding_tier',
|
|
80
|
+
'video_quality': 'video_quality',
|
|
79
81
|
'max_stored_frame_rate': 'max_stored_frame_rate',
|
|
80
82
|
'aspect_ratio': 'aspect_ratio',
|
|
81
83
|
'playback_ids': 'playback_ids',
|
|
@@ -98,7 +100,7 @@ class Asset(object):
|
|
|
98
100
|
'ingest_type': 'ingest_type'
|
|
99
101
|
}
|
|
100
102
|
|
|
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
|
|
103
|
+
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
|
|
102
104
|
"""Asset - a model defined in OpenAPI""" # noqa: E501
|
|
103
105
|
if local_vars_configuration is None:
|
|
104
106
|
local_vars_configuration = Configuration.get_default_copy()
|
|
@@ -112,6 +114,7 @@ class Asset(object):
|
|
|
112
114
|
self._resolution_tier = None
|
|
113
115
|
self._max_resolution_tier = None
|
|
114
116
|
self._encoding_tier = None
|
|
117
|
+
self._video_quality = None
|
|
115
118
|
self._max_stored_frame_rate = None
|
|
116
119
|
self._aspect_ratio = None
|
|
117
120
|
self._playback_ids = None
|
|
@@ -150,6 +153,8 @@ class Asset(object):
|
|
|
150
153
|
self.max_resolution_tier = max_resolution_tier
|
|
151
154
|
if encoding_tier is not None:
|
|
152
155
|
self.encoding_tier = encoding_tier
|
|
156
|
+
if video_quality is not None:
|
|
157
|
+
self.video_quality = video_quality
|
|
153
158
|
if max_stored_frame_rate is not None:
|
|
154
159
|
self.max_stored_frame_rate = max_stored_frame_rate
|
|
155
160
|
if aspect_ratio is not None:
|
|
@@ -380,7 +385,7 @@ class Asset(object):
|
|
|
380
385
|
def encoding_tier(self):
|
|
381
386
|
"""Gets the encoding_tier of this Asset. # noqa: E501
|
|
382
387
|
|
|
383
|
-
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
|
|
388
|
+
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
|
|
384
389
|
|
|
385
390
|
:return: The encoding_tier of this Asset. # noqa: E501
|
|
386
391
|
:rtype: str
|
|
@@ -391,7 +396,7 @@ class Asset(object):
|
|
|
391
396
|
def encoding_tier(self, encoding_tier):
|
|
392
397
|
"""Sets the encoding_tier of this Asset.
|
|
393
398
|
|
|
394
|
-
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
|
|
399
|
+
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
|
|
395
400
|
|
|
396
401
|
:param encoding_tier: The encoding_tier of this Asset. # noqa: E501
|
|
397
402
|
:type encoding_tier: str
|
|
@@ -405,6 +410,35 @@ class Asset(object):
|
|
|
405
410
|
|
|
406
411
|
self._encoding_tier = encoding_tier
|
|
407
412
|
|
|
413
|
+
@property
|
|
414
|
+
def video_quality(self):
|
|
415
|
+
"""Gets the video_quality of this Asset. # noqa: E501
|
|
416
|
+
|
|
417
|
+
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
|
|
418
|
+
|
|
419
|
+
:return: The video_quality of this Asset. # noqa: E501
|
|
420
|
+
:rtype: str
|
|
421
|
+
"""
|
|
422
|
+
return self._video_quality
|
|
423
|
+
|
|
424
|
+
@video_quality.setter
|
|
425
|
+
def video_quality(self, video_quality):
|
|
426
|
+
"""Sets the video_quality of this Asset.
|
|
427
|
+
|
|
428
|
+
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
|
|
429
|
+
|
|
430
|
+
:param video_quality: The video_quality of this Asset. # noqa: E501
|
|
431
|
+
:type video_quality: str
|
|
432
|
+
"""
|
|
433
|
+
allowed_values = ["basic", "plus"] # noqa: E501
|
|
434
|
+
if self.local_vars_configuration.client_side_validation and video_quality not in allowed_values: # noqa: E501
|
|
435
|
+
raise ValueError(
|
|
436
|
+
"Invalid value for `video_quality` ({0}), must be one of {1}" # noqa: E501
|
|
437
|
+
.format(video_quality, allowed_values)
|
|
438
|
+
)
|
|
439
|
+
|
|
440
|
+
self._video_quality = video_quality
|
|
441
|
+
|
|
408
442
|
@property
|
|
409
443
|
def max_stored_frame_rate(self):
|
|
410
444
|
"""Gets the max_stored_frame_rate of this Asset. # noqa: E501
|