mux-python 3.15.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 +9 -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/playback_restrictions_api.py +150 -0
- mux_python/api_client.py +1 -1
- mux_python/configuration.py +1 -1
- mux_python/models/__init__.py +7 -0
- mux_python/models/abridged_video_view.py +29 -3
- mux_python/models/create_asset_request.py +31 -3
- mux_python/models/create_live_stream_request.py +29 -1
- mux_python/models/create_playback_id_request.py +31 -3
- mux_python/models/create_playback_restriction_request.py +29 -3
- mux_python/models/create_upload_request.py +2 -0
- mux_python/models/delivery_report.py +35 -1
- mux_python/models/drm_configuration.py +134 -0
- mux_python/models/drm_configuration_response.py +132 -0
- mux_python/models/generate_track_subtitles_response.py +3 -3
- 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/models/playback_restriction.py +29 -3
- mux_python/models/update_live_stream_new_asset_settings.py +140 -0
- mux_python/models/update_live_stream_request.py +29 -3
- mux_python/models/update_user_agent_restriction_request.py +162 -0
- mux_python/models/user_agent_restriction_request.py +162 -0
- mux_python/models/user_agent_restriction_settings.py +162 -0
- mux_python/models/video_view.py +157 -9
- {mux_python-3.15.0.dist-info → mux_python-3.17.0.dist-info}/METADATA +1 -1
- {mux_python-3.15.0.dist-info → mux_python-3.17.0.dist-info}/RECORD +33 -25
- {mux_python-3.15.0.dist-info → mux_python-3.17.0.dist-info}/WHEEL +1 -1
- {mux_python-3.15.0.dist-info → mux_python-3.17.0.dist-info}/LICENSE +0 -0
- {mux_python-3.15.0.dist-info → mux_python-3.17.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.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
|
|
@@ -194,13 +198,17 @@ from mux_python.models.update_asset_master_access_request import UpdateAssetMast
|
|
|
194
198
|
from mux_python.models.update_asset_request import UpdateAssetRequest
|
|
195
199
|
from mux_python.models.update_live_stream_embedded_subtitles_request import UpdateLiveStreamEmbeddedSubtitlesRequest
|
|
196
200
|
from mux_python.models.update_live_stream_generated_subtitles_request import UpdateLiveStreamGeneratedSubtitlesRequest
|
|
201
|
+
from mux_python.models.update_live_stream_new_asset_settings import UpdateLiveStreamNewAssetSettings
|
|
197
202
|
from mux_python.models.update_live_stream_request import UpdateLiveStreamRequest
|
|
198
203
|
from mux_python.models.update_referrer_domain_restriction_request import UpdateReferrerDomainRestrictionRequest
|
|
199
204
|
from mux_python.models.update_transcription_vocabulary_request import UpdateTranscriptionVocabularyRequest
|
|
205
|
+
from mux_python.models.update_user_agent_restriction_request import UpdateUserAgentRestrictionRequest
|
|
200
206
|
from mux_python.models.update_web_input_url_request import UpdateWebInputUrlRequest
|
|
201
207
|
from mux_python.models.upload import Upload
|
|
202
208
|
from mux_python.models.upload_error import UploadError
|
|
203
209
|
from mux_python.models.upload_response import UploadResponse
|
|
210
|
+
from mux_python.models.user_agent_restriction_request import UserAgentRestrictionRequest
|
|
211
|
+
from mux_python.models.user_agent_restriction_settings import UserAgentRestrictionSettings
|
|
204
212
|
from mux_python.models.video_view import VideoView
|
|
205
213
|
from mux_python.models.video_view_event import VideoViewEvent
|
|
206
214
|
from mux_python.models.video_view_response import VideoViewResponse
|
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
|
|
@@ -727,3 +727,153 @@ class PlaybackRestrictionsApi(object):
|
|
|
727
727
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
728
728
|
collection_formats=collection_formats,
|
|
729
729
|
_request_auth=local_var_params.get('_request_auth'))
|
|
730
|
+
|
|
731
|
+
def update_user_agent_restriction(self, playback_restriction_id, update_user_agent_restriction_request, **kwargs): # noqa: E501
|
|
732
|
+
"""Update the User Agent Restriction # noqa: E501
|
|
733
|
+
|
|
734
|
+
Allows you to modify how Mux validates playback requests with different user agents. Please see [Using User-Agent HTTP header for validation](https://docs.mux.com/guides/secure-video-playback#using-user-agent-http-header-for-validation) for more details on this feature. # noqa: E501
|
|
735
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
736
|
+
asynchronous HTTP request, please pass async_req=True
|
|
737
|
+
|
|
738
|
+
>>> thread = api.update_user_agent_restriction(playback_restriction_id, update_user_agent_restriction_request, async_req=True)
|
|
739
|
+
>>> result = thread.get()
|
|
740
|
+
|
|
741
|
+
:param playback_restriction_id: ID of the Playback Restriction. (required)
|
|
742
|
+
:type playback_restriction_id: str
|
|
743
|
+
:param update_user_agent_restriction_request: (required)
|
|
744
|
+
:type update_user_agent_restriction_request: UpdateUserAgentRestrictionRequest
|
|
745
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
746
|
+
:type async_req: bool, optional
|
|
747
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
748
|
+
be returned without reading/decoding response
|
|
749
|
+
data. Default is True.
|
|
750
|
+
:type _preload_content: bool, optional
|
|
751
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
752
|
+
number provided, it will be total request
|
|
753
|
+
timeout. It can also be a pair (tuple) of
|
|
754
|
+
(connection, read) timeouts.
|
|
755
|
+
:return: Returns the result object.
|
|
756
|
+
If the method is called asynchronously,
|
|
757
|
+
returns the request thread.
|
|
758
|
+
:rtype: PlaybackRestrictionResponse
|
|
759
|
+
"""
|
|
760
|
+
kwargs['_return_http_data_only'] = True
|
|
761
|
+
return self.update_user_agent_restriction_with_http_info(playback_restriction_id, update_user_agent_restriction_request, **kwargs) # noqa: E501
|
|
762
|
+
|
|
763
|
+
def update_user_agent_restriction_with_http_info(self, playback_restriction_id, update_user_agent_restriction_request, **kwargs): # noqa: E501
|
|
764
|
+
"""Update the User Agent Restriction # noqa: E501
|
|
765
|
+
|
|
766
|
+
Allows you to modify how Mux validates playback requests with different user agents. Please see [Using User-Agent HTTP header for validation](https://docs.mux.com/guides/secure-video-playback#using-user-agent-http-header-for-validation) for more details on this feature. # noqa: E501
|
|
767
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
768
|
+
asynchronous HTTP request, please pass async_req=True
|
|
769
|
+
|
|
770
|
+
>>> thread = api.update_user_agent_restriction_with_http_info(playback_restriction_id, update_user_agent_restriction_request, async_req=True)
|
|
771
|
+
>>> result = thread.get()
|
|
772
|
+
|
|
773
|
+
:param playback_restriction_id: ID of the Playback Restriction. (required)
|
|
774
|
+
:type playback_restriction_id: str
|
|
775
|
+
:param update_user_agent_restriction_request: (required)
|
|
776
|
+
:type update_user_agent_restriction_request: UpdateUserAgentRestrictionRequest
|
|
777
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
778
|
+
:type async_req: bool, optional
|
|
779
|
+
:param _return_http_data_only: response data without head status code
|
|
780
|
+
and headers
|
|
781
|
+
:type _return_http_data_only: bool, optional
|
|
782
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
783
|
+
be returned without reading/decoding response
|
|
784
|
+
data. Default is True.
|
|
785
|
+
:type _preload_content: bool, optional
|
|
786
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
787
|
+
number provided, it will be total request
|
|
788
|
+
timeout. It can also be a pair (tuple) of
|
|
789
|
+
(connection, read) timeouts.
|
|
790
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
791
|
+
request; this effectively ignores the authentication
|
|
792
|
+
in the spec for a single request.
|
|
793
|
+
:type _request_auth: dict, optional
|
|
794
|
+
:return: Returns the result object.
|
|
795
|
+
If the method is called asynchronously,
|
|
796
|
+
returns the request thread.
|
|
797
|
+
:rtype: tuple(PlaybackRestrictionResponse, status_code(int), headers(HTTPHeaderDict))
|
|
798
|
+
"""
|
|
799
|
+
|
|
800
|
+
local_var_params = locals()
|
|
801
|
+
|
|
802
|
+
all_params = [
|
|
803
|
+
'playback_restriction_id',
|
|
804
|
+
'update_user_agent_restriction_request'
|
|
805
|
+
]
|
|
806
|
+
all_params.extend(
|
|
807
|
+
[
|
|
808
|
+
'async_req',
|
|
809
|
+
'_return_http_data_only',
|
|
810
|
+
'_preload_content',
|
|
811
|
+
'_request_timeout',
|
|
812
|
+
'_request_auth'
|
|
813
|
+
]
|
|
814
|
+
)
|
|
815
|
+
|
|
816
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
817
|
+
if key not in all_params:
|
|
818
|
+
raise ApiTypeError(
|
|
819
|
+
"Got an unexpected keyword argument '%s'"
|
|
820
|
+
" to method update_user_agent_restriction" % key
|
|
821
|
+
)
|
|
822
|
+
local_var_params[key] = val
|
|
823
|
+
del local_var_params['kwargs']
|
|
824
|
+
# verify the required parameter 'playback_restriction_id' is set
|
|
825
|
+
if self.api_client.client_side_validation and ('playback_restriction_id' not in local_var_params or # noqa: E501
|
|
826
|
+
local_var_params['playback_restriction_id'] is None): # noqa: E501
|
|
827
|
+
raise ApiValueError("Missing the required parameter `playback_restriction_id` when calling `update_user_agent_restriction`") # noqa: E501
|
|
828
|
+
# verify the required parameter 'update_user_agent_restriction_request' is set
|
|
829
|
+
if self.api_client.client_side_validation and ('update_user_agent_restriction_request' not in local_var_params or # noqa: E501
|
|
830
|
+
local_var_params['update_user_agent_restriction_request'] is None): # noqa: E501
|
|
831
|
+
raise ApiValueError("Missing the required parameter `update_user_agent_restriction_request` when calling `update_user_agent_restriction`") # noqa: E501
|
|
832
|
+
|
|
833
|
+
collection_formats = {}
|
|
834
|
+
|
|
835
|
+
path_params = {}
|
|
836
|
+
if 'playback_restriction_id' in local_var_params:
|
|
837
|
+
path_params['PLAYBACK_RESTRICTION_ID'] = local_var_params['playback_restriction_id'] # noqa: E501
|
|
838
|
+
|
|
839
|
+
query_params = []
|
|
840
|
+
|
|
841
|
+
header_params = {}
|
|
842
|
+
|
|
843
|
+
form_params = []
|
|
844
|
+
local_var_files = {}
|
|
845
|
+
|
|
846
|
+
body_params = None
|
|
847
|
+
if 'update_user_agent_restriction_request' in local_var_params:
|
|
848
|
+
body_params = local_var_params['update_user_agent_restriction_request']
|
|
849
|
+
# HTTP header `Accept`
|
|
850
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
851
|
+
['application/json']) # noqa: E501
|
|
852
|
+
|
|
853
|
+
# HTTP header `Content-Type`
|
|
854
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
855
|
+
['application/json']) # noqa: E501
|
|
856
|
+
|
|
857
|
+
# Authentication setting
|
|
858
|
+
auth_settings = ['accessToken'] # noqa: E501
|
|
859
|
+
|
|
860
|
+
response_types_map = {
|
|
861
|
+
200: "PlaybackRestrictionResponse",
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
return self.api_client.call_api(
|
|
865
|
+
'/video/v1/playback-restrictions/{PLAYBACK_RESTRICTION_ID}/user_agent', 'PUT',
|
|
866
|
+
path_params,
|
|
867
|
+
query_params,
|
|
868
|
+
header_params,
|
|
869
|
+
body=body_params,
|
|
870
|
+
post_params=form_params,
|
|
871
|
+
files=local_var_files,
|
|
872
|
+
response_types_map=response_types_map,
|
|
873
|
+
auth_settings=auth_settings,
|
|
874
|
+
async_req=local_var_params.get('async_req'),
|
|
875
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
876
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
877
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
878
|
+
collection_formats=collection_formats,
|
|
879
|
+
_request_auth=local_var_params.get('_request_auth'))
|
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.17.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.17.0".\
|
|
410
410
|
format(env=sys.platform, pyversion=sys.version)
|
|
411
411
|
|
|
412
412
|
def get_host_settings(self):
|