mux-python 3.16.0__py3-none-any.whl → 3.17.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,10 +15,11 @@
15
15
 
16
16
  from __future__ import absolute_import
17
17
 
18
- __version__ = "3.16.0"
18
+ __version__ = "3.17.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
@@ -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'))
@@ -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 = 'OpenAPI-Generator/3.16.0/python'
82
+ self.user_agent = 'Mux Python | 3.17.0'
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.16.0".\
409
+ "SDK Package Version: 3.17.0".\
410
410
  format(env=sys.platform, pyversion=sys.version)
411
411
 
412
412
  def get_host_settings(self):
@@ -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
@@ -39,6 +39,7 @@ class CreateAssetRequest(object):
39
39
  openapi_types = {
40
40
  'input': 'list[InputSettings]',
41
41
  'playback_policy': 'list[PlaybackPolicy]',
42
+ 'advanced_playback_policies': 'list[CreatePlaybackIDRequest]',
42
43
  'per_title_encode': 'bool',
43
44
  'passthrough': 'str',
44
45
  'mp4_support': 'str',
@@ -52,6 +53,7 @@ class CreateAssetRequest(object):
52
53
  attribute_map = {
53
54
  'input': 'input',
54
55
  'playback_policy': 'playback_policy',
56
+ 'advanced_playback_policies': 'advanced_playback_policies',
55
57
  'per_title_encode': 'per_title_encode',
56
58
  'passthrough': 'passthrough',
57
59
  'mp4_support': 'mp4_support',
@@ -62,7 +64,7 @@ class CreateAssetRequest(object):
62
64
  'encoding_tier': 'encoding_tier'
63
65
  }
64
66
 
65
- 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, max_resolution_tier=None, encoding_tier=None, local_vars_configuration=None): # noqa: E501
67
+ def __init__(self, input=None, playback_policy=None, advanced_playback_policies=None, per_title_encode=None, passthrough=None, mp4_support=None, normalize_audio=False, master_access=None, test=None, max_resolution_tier=None, encoding_tier=None, local_vars_configuration=None): # noqa: E501
66
68
  """CreateAssetRequest - a model defined in OpenAPI""" # noqa: E501
67
69
  if local_vars_configuration is None:
68
70
  local_vars_configuration = Configuration.get_default_copy()
@@ -70,6 +72,7 @@ class CreateAssetRequest(object):
70
72
 
71
73
  self._input = None
72
74
  self._playback_policy = None
75
+ self._advanced_playback_policies = None
73
76
  self._per_title_encode = None
74
77
  self._passthrough = None
75
78
  self._mp4_support = None
@@ -84,6 +87,8 @@ class CreateAssetRequest(object):
84
87
  self.input = input
85
88
  if playback_policy is not None:
86
89
  self.playback_policy = playback_policy
90
+ if advanced_playback_policies is not None:
91
+ self.advanced_playback_policies = advanced_playback_policies
87
92
  if per_title_encode is not None:
88
93
  self.per_title_encode = per_title_encode
89
94
  if passthrough is not None:
@@ -128,7 +133,7 @@ class CreateAssetRequest(object):
128
133
  def playback_policy(self):
129
134
  """Gets the playback_policy of this CreateAssetRequest. # noqa: E501
130
135
 
131
- An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: `\"public\"` (anyone with the playback URL can stream the asset). And `\"signed\"` (an additional access token is required to play the asset). If no playback_policy is set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. # noqa: E501
136
+ An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: * `\"public\"` (anyone with the playback URL can stream the asset). * `\"signed\"` (an additional access token is required to play the asset). If no `playback_policy` is set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. # noqa: E501
132
137
 
133
138
  :return: The playback_policy of this CreateAssetRequest. # noqa: E501
134
139
  :rtype: list[PlaybackPolicy]
@@ -139,7 +144,7 @@ class CreateAssetRequest(object):
139
144
  def playback_policy(self, playback_policy):
140
145
  """Sets the playback_policy of this CreateAssetRequest.
141
146
 
142
- An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: `\"public\"` (anyone with the playback URL can stream the asset). And `\"signed\"` (an additional access token is required to play the asset). If no playback_policy is set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. # noqa: E501
147
+ An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: * `\"public\"` (anyone with the playback URL can stream the asset). * `\"signed\"` (an additional access token is required to play the asset). If no `playback_policy` is set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. # noqa: E501
143
148
 
144
149
  :param playback_policy: The playback_policy of this CreateAssetRequest. # noqa: E501
145
150
  :type playback_policy: list[PlaybackPolicy]
@@ -147,6 +152,29 @@ class CreateAssetRequest(object):
147
152
 
148
153
  self._playback_policy = playback_policy
149
154
 
155
+ @property
156
+ def advanced_playback_policies(self):
157
+ """Gets the advanced_playback_policies of this CreateAssetRequest. # noqa: E501
158
+
159
+ An array of playback policy objects that you want applied to this asset and available through `playback_ids`. `advanced_playback_policies` must be used instead of `playback_policy` when creating a DRM playback ID. # noqa: E501
160
+
161
+ :return: The advanced_playback_policies of this CreateAssetRequest. # noqa: E501
162
+ :rtype: list[CreatePlaybackIDRequest]
163
+ """
164
+ return self._advanced_playback_policies
165
+
166
+ @advanced_playback_policies.setter
167
+ def advanced_playback_policies(self, advanced_playback_policies):
168
+ """Sets the advanced_playback_policies of this CreateAssetRequest.
169
+
170
+ An array of playback policy objects that you want applied to this asset and available through `playback_ids`. `advanced_playback_policies` must be used instead of `playback_policy` when creating a DRM playback ID. # noqa: E501
171
+
172
+ :param advanced_playback_policies: The advanced_playback_policies of this CreateAssetRequest. # noqa: E501
173
+ :type advanced_playback_policies: list[CreatePlaybackIDRequest]
174
+ """
175
+
176
+ self._advanced_playback_policies = advanced_playback_policies
177
+
150
178
  @property
151
179
  def per_title_encode(self):
152
180
  """Gets the per_title_encode of this CreateAssetRequest. # noqa: E501
@@ -38,6 +38,7 @@ class CreateLiveStreamRequest(object):
38
38
  """
39
39
  openapi_types = {
40
40
  'playback_policy': 'list[PlaybackPolicy]',
41
+ 'advanced_playback_policies': 'list[CreatePlaybackIDRequest]',
41
42
  'new_asset_settings': 'CreateAssetRequest',
42
43
  'reconnect_window': 'float',
43
44
  'use_slate_for_standard_latency': 'bool',
@@ -56,6 +57,7 @@ class CreateLiveStreamRequest(object):
56
57
 
57
58
  attribute_map = {
58
59
  'playback_policy': 'playback_policy',
60
+ 'advanced_playback_policies': 'advanced_playback_policies',
59
61
  'new_asset_settings': 'new_asset_settings',
60
62
  'reconnect_window': 'reconnect_window',
61
63
  'use_slate_for_standard_latency': 'use_slate_for_standard_latency',
@@ -72,13 +74,14 @@ class CreateLiveStreamRequest(object):
72
74
  'max_continuous_duration': 'max_continuous_duration'
73
75
  }
74
76
 
75
- def __init__(self, playback_policy=None, new_asset_settings=None, reconnect_window=60, use_slate_for_standard_latency=False, reconnect_slate_url=None, passthrough=None, audio_only=None, embedded_subtitles=None, generated_subtitles=None, reduced_latency=None, low_latency=None, latency_mode=None, test=None, simulcast_targets=None, max_continuous_duration=43200, local_vars_configuration=None): # noqa: E501
77
+ def __init__(self, playback_policy=None, advanced_playback_policies=None, new_asset_settings=None, reconnect_window=60, use_slate_for_standard_latency=False, reconnect_slate_url=None, passthrough=None, audio_only=None, embedded_subtitles=None, generated_subtitles=None, reduced_latency=None, low_latency=None, latency_mode=None, test=None, simulcast_targets=None, max_continuous_duration=43200, local_vars_configuration=None): # noqa: E501
76
78
  """CreateLiveStreamRequest - a model defined in OpenAPI""" # noqa: E501
77
79
  if local_vars_configuration is None:
78
80
  local_vars_configuration = Configuration.get_default_copy()
79
81
  self.local_vars_configuration = local_vars_configuration
80
82
 
81
83
  self._playback_policy = None
84
+ self._advanced_playback_policies = None
82
85
  self._new_asset_settings = None
83
86
  self._reconnect_window = None
84
87
  self._use_slate_for_standard_latency = None
@@ -97,6 +100,8 @@ class CreateLiveStreamRequest(object):
97
100
 
98
101
  if playback_policy is not None:
99
102
  self.playback_policy = playback_policy
103
+ if advanced_playback_policies is not None:
104
+ self.advanced_playback_policies = advanced_playback_policies
100
105
  if new_asset_settings is not None:
101
106
  self.new_asset_settings = new_asset_settings
102
107
  if reconnect_window is not None:
@@ -147,6 +152,29 @@ class CreateLiveStreamRequest(object):
147
152
 
148
153
  self._playback_policy = playback_policy
149
154
 
155
+ @property
156
+ def advanced_playback_policies(self):
157
+ """Gets the advanced_playback_policies of this CreateLiveStreamRequest. # noqa: E501
158
+
159
+ An array of playback policy objects that you want applied to this asset and available through `playback_ids`. `advanced_playback_policies` must be used instead of `playback_policy` when creating a DRM playback ID. # noqa: E501
160
+
161
+ :return: The advanced_playback_policies of this CreateLiveStreamRequest. # noqa: E501
162
+ :rtype: list[CreatePlaybackIDRequest]
163
+ """
164
+ return self._advanced_playback_policies
165
+
166
+ @advanced_playback_policies.setter
167
+ def advanced_playback_policies(self, advanced_playback_policies):
168
+ """Sets the advanced_playback_policies of this CreateLiveStreamRequest.
169
+
170
+ An array of playback policy objects that you want applied to this asset and available through `playback_ids`. `advanced_playback_policies` must be used instead of `playback_policy` when creating a DRM playback ID. # noqa: E501
171
+
172
+ :param advanced_playback_policies: The advanced_playback_policies of this CreateLiveStreamRequest. # noqa: E501
173
+ :type advanced_playback_policies: list[CreatePlaybackIDRequest]
174
+ """
175
+
176
+ self._advanced_playback_policies = advanced_playback_policies
177
+
150
178
  @property
151
179
  def new_asset_settings(self):
152
180
  """Gets the new_asset_settings of this CreateLiveStreamRequest. # noqa: E501