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