byteplus-sdk 1.0.26__tar.gz → 1.0.27__tar.gz
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.
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/PKG-INFO +1 -1
- byteplus-sdk-1.0.27/byteplus_sdk/__init__.py +2 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/VodService.py +410 -4
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/VodServiceConfig.py +2 -0
- byteplus-sdk-1.0.27/byteplus_sdk/vod/models/business/vod_cdn_pb2.py +384 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/business/vod_common_pb2.py +82 -22
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/request/request_vod_pb2.py +336 -176
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/response/response_vod_pb2.py +229 -69
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk.egg-info/PKG-INFO +1 -1
- byteplus-sdk-1.0.26/byteplus_sdk/__init__.py +0 -2
- byteplus-sdk-1.0.26/byteplus_sdk/vod/models/business/vod_cdn_pb2.py +0 -301
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/LICENSE +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/README.md +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/ApiInfo.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/Credentials.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/Policy.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/ServiceInfo.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/ServiceInfoHttps.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/auth/MetaData.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/auth/SignerV4.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/auth/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/base/Request.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/base/Service.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/base/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/base/models/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/base/models/base/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/base/models/base/base_pb2.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/cdn/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/cdn/service.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/const/Const.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/const/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/add_cdn_certificate.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/add_cdn_domain.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/add_template_domain.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/create_cipher_template.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/create_service_template.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/delete_cdn_domain.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/delete_template.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_accounting_data.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_cdn_access_log.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_cdn_config.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_cdn_data.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_cdn_data_detail.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_cdn_detail.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_cdn_origin_data.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_cdn_region_and_isp.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_cdn_service.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_cdn_upper_ip.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_cipher_template.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_content_block_tasks.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_content_quota.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_content_tasks.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_edge_nrt_data_summary.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_edge_statistical_data.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_edge_top_nrt_data.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_edge_top_statistical_data.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_edge_top_status_code.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_ip_info.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_ip_list_info.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_origin_nrt_data_summary.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_origin_top_nrt_data.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_origin_top_status_code.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_service_template.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_template_domains.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/describe_templates.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/duplicate_template.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/list_cdn_cert_info.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/list_cdn_domains.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/list_cert_info.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/lock_template.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/start_cdn_domain.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/stop_cdn_domain.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/submit_block_task.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/submit_preload_task.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/submit_refresh_task.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/submit_unblock_task.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/update_cdn_config.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/update_cipher_template.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/update_service_template.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/cdn/update_template_domain.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/live/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/rtc/RtcService.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/rtc/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/rtc/example_get_record_task.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/rtc/example_start_record.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/visual/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/example/visual/example_common.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/iam/IamService.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/iam/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/live/LiveService.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/live/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/live/v20200801/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/live/v20200801/live_config.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/live/v20200801/live_service.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/live/v20200801/live_trait.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/live/v20230101/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/live/v20230101/live_config.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/live/v20230101/live_service.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/live/v20230101/live_trait.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/sms/SmsService.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/sms/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/util/Functions.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/util/Util.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/util/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/visual/VisualService.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/visual/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/business/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/business/vod_apps_manage_pb2.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/business/vod_callback_pb2.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/business/vod_edit_pb2.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/business/vod_measure_pb2.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/business/vod_media_pb2.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/business/vod_play_pb2.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/business/vod_smart_strategy_pb2.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/business/vod_space_pb2.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/business/vod_upload_pb2.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/business/vod_workflow_pb2.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/request/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk/vod/models/response/__init__.py +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk.egg-info/SOURCES.txt +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk.egg-info/dependency_links.txt +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk.egg-info/requires.txt +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/byteplus_sdk.egg-info/top_level.txt +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/setup.cfg +0 -0
- {byteplus-sdk-1.0.26 → byteplus-sdk-1.0.27}/setup.py +0 -0
|
@@ -121,6 +121,35 @@ class VodService(VodServiceConfig):
|
|
|
121
121
|
else:
|
|
122
122
|
return base64.b64encode(data.decode('utf-8'))
|
|
123
123
|
|
|
124
|
+
def get_third_party_drm_auth_token(self, request, expire):
|
|
125
|
+
try:
|
|
126
|
+
if sys.version_info[0] == 3:
|
|
127
|
+
jsonData = MessageToJson(request, False, True)
|
|
128
|
+
params = json.loads(jsonData)
|
|
129
|
+
for k, v in params.items():
|
|
130
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
131
|
+
continue
|
|
132
|
+
else:
|
|
133
|
+
params[k] = json.dumps(v)
|
|
134
|
+
else:
|
|
135
|
+
params = MessageToDict(request, False, True)
|
|
136
|
+
for k, v in params.items():
|
|
137
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
138
|
+
continue
|
|
139
|
+
else:
|
|
140
|
+
params[k] = json.dumps(v)
|
|
141
|
+
if expire > 0:
|
|
142
|
+
params['X-Expires'] = str(expire)
|
|
143
|
+
token = self.get_sign_url('GetDrmLicense', params)
|
|
144
|
+
ret = {'TokenVersion': 'V2', 'GetDrmLicenseToken': token}
|
|
145
|
+
data = json.dumps(ret)
|
|
146
|
+
except Exception as Argument:
|
|
147
|
+
raise Argument
|
|
148
|
+
else:
|
|
149
|
+
if sys.version_info[0] == 3:
|
|
150
|
+
return base64.b64encode(data.encode('utf-8')).decode('utf-8')
|
|
151
|
+
else:
|
|
152
|
+
return base64.b64encode(data.decode('utf-8'))
|
|
124
153
|
def get_subtitle_auth_token(self, request, expire):
|
|
125
154
|
try:
|
|
126
155
|
if request.Vid == "":
|
|
@@ -192,7 +221,7 @@ class VodService(VodServiceConfig):
|
|
|
192
221
|
url = 'https://{}/{}'.format(host, oid)
|
|
193
222
|
headers = {'Content-CRC32': check_sum, 'Authorization': auth}
|
|
194
223
|
|
|
195
|
-
if storage_class ==
|
|
224
|
+
if storage_class == byteplus.vod.models.business.vod_upload_pb2.Archive:
|
|
196
225
|
headers['X-Upload-Storage-Class'] = 'archive'
|
|
197
226
|
|
|
198
227
|
upload_status, resp = self.put(url, file_path, headers)
|
|
@@ -235,7 +264,7 @@ class VodService(VodServiceConfig):
|
|
|
235
264
|
if is_large_file:
|
|
236
265
|
headers['X-Storage-Mode'] = 'gateway'
|
|
237
266
|
|
|
238
|
-
if storage_class ==
|
|
267
|
+
if storage_class == byteplus.vod.models.business.vod_upload_pb2.Archive:
|
|
239
268
|
headers['X-Upload-Storage-Class'] = 'archive'
|
|
240
269
|
|
|
241
270
|
|
|
@@ -257,7 +286,7 @@ class VodService(VodServiceConfig):
|
|
|
257
286
|
if is_large_file:
|
|
258
287
|
headers['X-Storage-Mode'] = 'gateway'
|
|
259
288
|
|
|
260
|
-
if storage_class ==
|
|
289
|
+
if storage_class == byteplus.vod.models.business.vod_upload_pb2.Archive:
|
|
261
290
|
headers['X-Upload-Storage-Class'] = 'archive'
|
|
262
291
|
|
|
263
292
|
upload_status, resp = self.put_data(url, data, headers)
|
|
@@ -289,7 +318,7 @@ class VodService(VodServiceConfig):
|
|
|
289
318
|
if is_large_file:
|
|
290
319
|
headers['X-Storage-Mode'] = 'gateway'
|
|
291
320
|
|
|
292
|
-
if storage_class ==
|
|
321
|
+
if storage_class == byteplus.vod.models.business.vod_upload_pb2.Archive:
|
|
293
322
|
headers['X-Upload-Storage-Class'] = 'archive'
|
|
294
323
|
|
|
295
324
|
upload_status, resp = self.put_data(url, data, headers)
|
|
@@ -436,6 +465,40 @@ class VodService(VodServiceConfig):
|
|
|
436
465
|
else:
|
|
437
466
|
return Parse(res, VodGetPlayInfoResponse(), True)
|
|
438
467
|
|
|
468
|
+
#
|
|
469
|
+
# GetPrivateDrmPlayAuth.
|
|
470
|
+
#
|
|
471
|
+
# @param request VodGetPrivateDrmPlayAuthRequest
|
|
472
|
+
# @return VodGetPrivateDrmPlayAuthResponse
|
|
473
|
+
# @raise Exception
|
|
474
|
+
def get_private_drm_play_auth(self, request):
|
|
475
|
+
try:
|
|
476
|
+
if sys.version_info[0] == 3:
|
|
477
|
+
jsonData = MessageToJson(request, False, True)
|
|
478
|
+
params = json.loads(jsonData)
|
|
479
|
+
for k, v in params.items():
|
|
480
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
481
|
+
continue
|
|
482
|
+
else:
|
|
483
|
+
params[k] = json.dumps(v)
|
|
484
|
+
else:
|
|
485
|
+
params = MessageToDict(request, False, True)
|
|
486
|
+
for k, v in params.items():
|
|
487
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
488
|
+
continue
|
|
489
|
+
else:
|
|
490
|
+
params[k] = json.dumps(v)
|
|
491
|
+
res = self.get("GetPrivateDrmPlayAuth", params)
|
|
492
|
+
except Exception as Argument:
|
|
493
|
+
try:
|
|
494
|
+
resp = Parse(Argument.__str__(), VodGetPrivateDrmPlayAuthResponse(), True)
|
|
495
|
+
except Exception:
|
|
496
|
+
raise Argument
|
|
497
|
+
else:
|
|
498
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
499
|
+
else:
|
|
500
|
+
return Parse(res, VodGetPrivateDrmPlayAuthResponse(), True)
|
|
501
|
+
|
|
439
502
|
#
|
|
440
503
|
# GetPlayInfoWithLiveTimeShiftScene.
|
|
441
504
|
#
|
|
@@ -1558,6 +1621,176 @@ class VodService(VodServiceConfig):
|
|
|
1558
1621
|
else:
|
|
1559
1622
|
return Parse(res, VodDescribeVodSpaceStorageDataResponse(), True)
|
|
1560
1623
|
|
|
1624
|
+
#
|
|
1625
|
+
# StartDomain.
|
|
1626
|
+
#
|
|
1627
|
+
# @param request VodStartDomainRequest
|
|
1628
|
+
# @return VodStartDomainResponse
|
|
1629
|
+
# @raise Exception
|
|
1630
|
+
def start_domain(self, request):
|
|
1631
|
+
try:
|
|
1632
|
+
if sys.version_info[0] == 3:
|
|
1633
|
+
jsonData = MessageToJson(request, False, True)
|
|
1634
|
+
params = json.loads(jsonData)
|
|
1635
|
+
for k, v in params.items():
|
|
1636
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
1637
|
+
continue
|
|
1638
|
+
else:
|
|
1639
|
+
params[k] = json.dumps(v)
|
|
1640
|
+
else:
|
|
1641
|
+
params = MessageToDict(request, False, True)
|
|
1642
|
+
for k, v in params.items():
|
|
1643
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
1644
|
+
continue
|
|
1645
|
+
else:
|
|
1646
|
+
params[k] = json.dumps(v)
|
|
1647
|
+
res = self.get("StartDomain", params)
|
|
1648
|
+
except Exception as Argument:
|
|
1649
|
+
try:
|
|
1650
|
+
resp = Parse(Argument.__str__(), VodStartDomainResponse(), True)
|
|
1651
|
+
except Exception:
|
|
1652
|
+
raise Argument
|
|
1653
|
+
else:
|
|
1654
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
1655
|
+
else:
|
|
1656
|
+
return Parse(res, VodStartDomainResponse(), True)
|
|
1657
|
+
|
|
1658
|
+
#
|
|
1659
|
+
# StopDomain.
|
|
1660
|
+
#
|
|
1661
|
+
# @param request VodStopDomainRequest
|
|
1662
|
+
# @return VodStopDomainResponse
|
|
1663
|
+
# @raise Exception
|
|
1664
|
+
def stop_domain(self, request):
|
|
1665
|
+
try:
|
|
1666
|
+
if sys.version_info[0] == 3:
|
|
1667
|
+
jsonData = MessageToJson(request, False, True)
|
|
1668
|
+
params = json.loads(jsonData)
|
|
1669
|
+
for k, v in params.items():
|
|
1670
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
1671
|
+
continue
|
|
1672
|
+
else:
|
|
1673
|
+
params[k] = json.dumps(v)
|
|
1674
|
+
else:
|
|
1675
|
+
params = MessageToDict(request, False, True)
|
|
1676
|
+
for k, v in params.items():
|
|
1677
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
1678
|
+
continue
|
|
1679
|
+
else:
|
|
1680
|
+
params[k] = json.dumps(v)
|
|
1681
|
+
res = self.get("StopDomain", params)
|
|
1682
|
+
except Exception as Argument:
|
|
1683
|
+
try:
|
|
1684
|
+
resp = Parse(Argument.__str__(), VodStopDomainResponse(), True)
|
|
1685
|
+
except Exception:
|
|
1686
|
+
raise Argument
|
|
1687
|
+
else:
|
|
1688
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
1689
|
+
else:
|
|
1690
|
+
return Parse(res, VodStopDomainResponse(), True)
|
|
1691
|
+
|
|
1692
|
+
#
|
|
1693
|
+
# AddDomainToScheduler.
|
|
1694
|
+
#
|
|
1695
|
+
# @param request VodAddDomainToSchedulerRequest
|
|
1696
|
+
# @return VodAddDomainToSchedulerResponse
|
|
1697
|
+
# @raise Exception
|
|
1698
|
+
def add_domain_to_scheduler(self, request):
|
|
1699
|
+
try:
|
|
1700
|
+
if sys.version_info[0] == 3:
|
|
1701
|
+
jsonData = MessageToJson(request, False, True)
|
|
1702
|
+
params = json.loads(jsonData)
|
|
1703
|
+
for k, v in params.items():
|
|
1704
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
1705
|
+
continue
|
|
1706
|
+
else:
|
|
1707
|
+
params[k] = json.dumps(v)
|
|
1708
|
+
else:
|
|
1709
|
+
params = MessageToDict(request, False, True)
|
|
1710
|
+
for k, v in params.items():
|
|
1711
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
1712
|
+
continue
|
|
1713
|
+
else:
|
|
1714
|
+
params[k] = json.dumps(v)
|
|
1715
|
+
res = self.get("AddDomainToScheduler", params)
|
|
1716
|
+
except Exception as Argument:
|
|
1717
|
+
try:
|
|
1718
|
+
resp = Parse(Argument.__str__(), VodAddDomainToSchedulerResponse(), True)
|
|
1719
|
+
except Exception:
|
|
1720
|
+
raise Argument
|
|
1721
|
+
else:
|
|
1722
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
1723
|
+
else:
|
|
1724
|
+
return Parse(res, VodAddDomainToSchedulerResponse(), True)
|
|
1725
|
+
|
|
1726
|
+
#
|
|
1727
|
+
# RemoveDomainFromScheduler.
|
|
1728
|
+
#
|
|
1729
|
+
# @param request VodRemoveDomainFromSchedulerRequest
|
|
1730
|
+
# @return VodRemoveDomainFromSchedulerResponse
|
|
1731
|
+
# @raise Exception
|
|
1732
|
+
def remove_domain_from_scheduler(self, request):
|
|
1733
|
+
try:
|
|
1734
|
+
if sys.version_info[0] == 3:
|
|
1735
|
+
jsonData = MessageToJson(request, False, True)
|
|
1736
|
+
params = json.loads(jsonData)
|
|
1737
|
+
for k, v in params.items():
|
|
1738
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
1739
|
+
continue
|
|
1740
|
+
else:
|
|
1741
|
+
params[k] = json.dumps(v)
|
|
1742
|
+
else:
|
|
1743
|
+
params = MessageToDict(request, False, True)
|
|
1744
|
+
for k, v in params.items():
|
|
1745
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
1746
|
+
continue
|
|
1747
|
+
else:
|
|
1748
|
+
params[k] = json.dumps(v)
|
|
1749
|
+
res = self.get("RemoveDomainFromScheduler", params)
|
|
1750
|
+
except Exception as Argument:
|
|
1751
|
+
try:
|
|
1752
|
+
resp = Parse(Argument.__str__(), VodRemoveDomainFromSchedulerResponse(), True)
|
|
1753
|
+
except Exception:
|
|
1754
|
+
raise Argument
|
|
1755
|
+
else:
|
|
1756
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
1757
|
+
else:
|
|
1758
|
+
return Parse(res, VodRemoveDomainFromSchedulerResponse(), True)
|
|
1759
|
+
|
|
1760
|
+
#
|
|
1761
|
+
# UpdateDomainPlayRule.
|
|
1762
|
+
#
|
|
1763
|
+
# @param request VodUpdateDomainPlayRuleRequestRequest
|
|
1764
|
+
# @return VodUpdateDomainPlayRuleResponse
|
|
1765
|
+
# @raise Exception
|
|
1766
|
+
def update_domain_play_rule(self, request):
|
|
1767
|
+
try:
|
|
1768
|
+
if sys.version_info[0] == 3:
|
|
1769
|
+
jsonData = MessageToJson(request, False, True)
|
|
1770
|
+
params = json.loads(jsonData)
|
|
1771
|
+
for k, v in params.items():
|
|
1772
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
1773
|
+
continue
|
|
1774
|
+
else:
|
|
1775
|
+
params[k] = json.dumps(v)
|
|
1776
|
+
else:
|
|
1777
|
+
params = MessageToDict(request, False, True)
|
|
1778
|
+
for k, v in params.items():
|
|
1779
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
1780
|
+
continue
|
|
1781
|
+
else:
|
|
1782
|
+
params[k] = json.dumps(v)
|
|
1783
|
+
res = self.get("UpdateDomainPlayRule", params)
|
|
1784
|
+
except Exception as Argument:
|
|
1785
|
+
try:
|
|
1786
|
+
resp = Parse(Argument.__str__(), VodUpdateDomainPlayRuleResponse(), True)
|
|
1787
|
+
except Exception:
|
|
1788
|
+
raise Argument
|
|
1789
|
+
else:
|
|
1790
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
1791
|
+
else:
|
|
1792
|
+
return Parse(res, VodUpdateDomainPlayRuleResponse(), True)
|
|
1793
|
+
|
|
1561
1794
|
#
|
|
1562
1795
|
# ListDomain.
|
|
1563
1796
|
#
|
|
@@ -1830,6 +2063,40 @@ class VodService(VodServiceConfig):
|
|
|
1830
2063
|
else:
|
|
1831
2064
|
return Parse(res, VodCdnStatisticsCommonResponse(), True)
|
|
1832
2065
|
|
|
2066
|
+
#
|
|
2067
|
+
# ListCdnUsageDataDetail.
|
|
2068
|
+
#
|
|
2069
|
+
# @param request VodListCdnUsageDataDetailRequest
|
|
2070
|
+
# @return VodListCdnUsageDataDetailResponse
|
|
2071
|
+
# @raise Exception
|
|
2072
|
+
def list_cdn_usage_data_detail(self, request):
|
|
2073
|
+
try:
|
|
2074
|
+
if sys.version_info[0] == 3:
|
|
2075
|
+
jsonData = MessageToJson(request, False, True)
|
|
2076
|
+
params = json.loads(jsonData)
|
|
2077
|
+
for k, v in params.items():
|
|
2078
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
2079
|
+
continue
|
|
2080
|
+
else:
|
|
2081
|
+
params[k] = json.dumps(v)
|
|
2082
|
+
else:
|
|
2083
|
+
params = MessageToDict(request, False, True)
|
|
2084
|
+
for k, v in params.items():
|
|
2085
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
2086
|
+
continue
|
|
2087
|
+
else:
|
|
2088
|
+
params[k] = json.dumps(v)
|
|
2089
|
+
res = self.get("ListCdnUsageDataDetail", params)
|
|
2090
|
+
except Exception as Argument:
|
|
2091
|
+
try:
|
|
2092
|
+
resp = Parse(Argument.__str__(), VodListCdnUsageDataDetailResponse(), True)
|
|
2093
|
+
except Exception:
|
|
2094
|
+
raise Argument
|
|
2095
|
+
else:
|
|
2096
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
2097
|
+
else:
|
|
2098
|
+
return Parse(res, VodListCdnUsageDataDetailResponse(), True)
|
|
2099
|
+
|
|
1833
2100
|
#
|
|
1834
2101
|
# ListCdnStatusData.
|
|
1835
2102
|
#
|
|
@@ -1864,6 +2131,40 @@ class VodService(VodServiceConfig):
|
|
|
1864
2131
|
else:
|
|
1865
2132
|
return Parse(res, VodCdnStatisticsCommonResponse(), True)
|
|
1866
2133
|
|
|
2134
|
+
#
|
|
2135
|
+
# ListCdnStatusDataDetail.
|
|
2136
|
+
#
|
|
2137
|
+
# @param request VodListCdnStatusDataDetailRequest
|
|
2138
|
+
# @return VodListCdnStatusDataDetailResponse
|
|
2139
|
+
# @raise Exception
|
|
2140
|
+
def list_cdn_status_data_detail(self, request):
|
|
2141
|
+
try:
|
|
2142
|
+
if sys.version_info[0] == 3:
|
|
2143
|
+
jsonData = MessageToJson(request, False, True)
|
|
2144
|
+
params = json.loads(jsonData)
|
|
2145
|
+
for k, v in params.items():
|
|
2146
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
2147
|
+
continue
|
|
2148
|
+
else:
|
|
2149
|
+
params[k] = json.dumps(v)
|
|
2150
|
+
else:
|
|
2151
|
+
params = MessageToDict(request, False, True)
|
|
2152
|
+
for k, v in params.items():
|
|
2153
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
2154
|
+
continue
|
|
2155
|
+
else:
|
|
2156
|
+
params[k] = json.dumps(v)
|
|
2157
|
+
res = self.get("ListCdnStatusDataDetail", params)
|
|
2158
|
+
except Exception as Argument:
|
|
2159
|
+
try:
|
|
2160
|
+
resp = Parse(Argument.__str__(), VodListCdnStatusDataDetailResponse(), True)
|
|
2161
|
+
except Exception:
|
|
2162
|
+
raise Argument
|
|
2163
|
+
else:
|
|
2164
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
2165
|
+
else:
|
|
2166
|
+
return Parse(res, VodListCdnStatusDataDetailResponse(), True)
|
|
2167
|
+
|
|
1867
2168
|
#
|
|
1868
2169
|
# DescribeIpInfo.
|
|
1869
2170
|
#
|
|
@@ -1966,6 +2267,76 @@ class VodService(VodServiceConfig):
|
|
|
1966
2267
|
else:
|
|
1967
2268
|
return Parse(res, VodCdnStatisticsCommonResponse(), True)
|
|
1968
2269
|
|
|
2270
|
+
#
|
|
2271
|
+
# SubmitBlockTasks.
|
|
2272
|
+
#
|
|
2273
|
+
# @param request VodSubmitBlockTasksRequest
|
|
2274
|
+
# @return VodSubmitBlockTasksResponse
|
|
2275
|
+
# @raise Exception
|
|
2276
|
+
def submit_block_tasks(self, request):
|
|
2277
|
+
try:
|
|
2278
|
+
if sys.version_info[0] == 3:
|
|
2279
|
+
jsonData = MessageToJson(request, False, True)
|
|
2280
|
+
params = json.loads(jsonData)
|
|
2281
|
+
for k, v in params.items():
|
|
2282
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
2283
|
+
continue
|
|
2284
|
+
else:
|
|
2285
|
+
params[k] = json.dumps(v)
|
|
2286
|
+
else:
|
|
2287
|
+
params = MessageToDict(request, False, True)
|
|
2288
|
+
for k, v in params.items():
|
|
2289
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
2290
|
+
continue
|
|
2291
|
+
else:
|
|
2292
|
+
params[k] = json.dumps(v)
|
|
2293
|
+
res = self.post("SubmitBlockTasks",{},params)
|
|
2294
|
+
except Exception as Argument:
|
|
2295
|
+
try:
|
|
2296
|
+
resp = Parse(Argument.__str__(), VodSubmitBlockTasksResponse(), True)
|
|
2297
|
+
except Exception:
|
|
2298
|
+
raise Argument
|
|
2299
|
+
else:
|
|
2300
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
2301
|
+
else:
|
|
2302
|
+
return Parse(res, VodSubmitBlockTasksResponse(), True)
|
|
2303
|
+
|
|
2304
|
+
|
|
2305
|
+
#
|
|
2306
|
+
# GetContentBlockTasks.
|
|
2307
|
+
#
|
|
2308
|
+
# @param request VodGetContentBlockTasksRequest
|
|
2309
|
+
# @return VodGetContentBlockTasksResponse
|
|
2310
|
+
# @raise Exception
|
|
2311
|
+
def get_content_block_tasks(self, request):
|
|
2312
|
+
try:
|
|
2313
|
+
if sys.version_info[0] == 3:
|
|
2314
|
+
jsonData = MessageToJson(request, False, True)
|
|
2315
|
+
params = json.loads(jsonData)
|
|
2316
|
+
for k, v in params.items():
|
|
2317
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
2318
|
+
continue
|
|
2319
|
+
else:
|
|
2320
|
+
params[k] = json.dumps(v)
|
|
2321
|
+
else:
|
|
2322
|
+
params = MessageToDict(request, False, True)
|
|
2323
|
+
for k, v in params.items():
|
|
2324
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
2325
|
+
continue
|
|
2326
|
+
else:
|
|
2327
|
+
params[k] = json.dumps(v)
|
|
2328
|
+
res = self.post("GetContentBlockTasks",{},params)
|
|
2329
|
+
except Exception as Argument:
|
|
2330
|
+
try:
|
|
2331
|
+
resp = Parse(Argument.__str__(), VodGetContentBlockTasksResponse(), True)
|
|
2332
|
+
except Exception:
|
|
2333
|
+
raise Argument
|
|
2334
|
+
else:
|
|
2335
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
2336
|
+
else:
|
|
2337
|
+
return Parse(res, VodGetContentBlockTasksResponse(), True)
|
|
2338
|
+
|
|
2339
|
+
|
|
1969
2340
|
#
|
|
1970
2341
|
# CreateDomain.
|
|
1971
2342
|
#
|
|
@@ -2034,6 +2405,41 @@ class VodService(VodServiceConfig):
|
|
|
2034
2405
|
else:
|
|
2035
2406
|
return Parse(res, VodUpdateDomainExpireV2Response(), True)
|
|
2036
2407
|
|
|
2408
|
+
#
|
|
2409
|
+
# AddOrUpdateCertificate.
|
|
2410
|
+
#
|
|
2411
|
+
# @param request AddOrUpdateCertificateV2Request
|
|
2412
|
+
# @return AddOrUpdateCertificateV2Response
|
|
2413
|
+
# @raise Exception
|
|
2414
|
+
def add_or_update_certificate(self, request):
|
|
2415
|
+
try:
|
|
2416
|
+
if sys.version_info[0] == 3:
|
|
2417
|
+
jsonData = MessageToJson(request, False, True)
|
|
2418
|
+
params = json.loads(jsonData)
|
|
2419
|
+
for k, v in params.items():
|
|
2420
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
2421
|
+
continue
|
|
2422
|
+
else:
|
|
2423
|
+
params[k] = json.dumps(v)
|
|
2424
|
+
else:
|
|
2425
|
+
params = MessageToDict(request, False, True)
|
|
2426
|
+
for k, v in params.items():
|
|
2427
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
2428
|
+
continue
|
|
2429
|
+
else:
|
|
2430
|
+
params[k] = json.dumps(v)
|
|
2431
|
+
res = self.post("AddOrUpdateCertificate",{},params)
|
|
2432
|
+
except Exception as Argument:
|
|
2433
|
+
try:
|
|
2434
|
+
resp = Parse(Argument.__str__(), AddOrUpdateCertificateV2Response(), True)
|
|
2435
|
+
except Exception:
|
|
2436
|
+
raise Argument
|
|
2437
|
+
else:
|
|
2438
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
2439
|
+
else:
|
|
2440
|
+
return Parse(res, AddOrUpdateCertificateV2Response(), True)
|
|
2441
|
+
|
|
2442
|
+
|
|
2037
2443
|
#
|
|
2038
2444
|
# AddCallbackSubscription.
|
|
2039
2445
|
#
|
|
@@ -97,6 +97,8 @@ class VodServiceConfig(Service):
|
|
|
97
97
|
# 计量计费
|
|
98
98
|
"DescribeVodSpaceTranscodeData": ApiInfo("GET", "/", {"Action": "DescribeVodSpaceTranscodeData", "Version": "2023-01-01"}, {}, {}),
|
|
99
99
|
"DescribeVodSnapshotData": ApiInfo("GET", "/", {"Action": "DescribeVodSnapshotData", "Version": "2023-01-01"}, {}, {}),
|
|
100
|
+
# 商业drm
|
|
101
|
+
"GetDrmLicense": ApiInfo("POST", "/", {"Action": "GetDrmLicense", "Version": "2023-01-01"}, {}, {}),
|
|
100
102
|
}
|
|
101
103
|
return api_info
|
|
102
104
|
|