byteplus-sdk 1.0.62__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.
- byteplus_sdk/ApiInfo.py +13 -0
- byteplus_sdk/Credentials.py +15 -0
- byteplus_sdk/Policy.py +91 -0
- byteplus_sdk/ServiceInfo.py +11 -0
- byteplus_sdk/ServiceInfoHttps.py +11 -0
- byteplus_sdk/__init__.py +2 -0
- byteplus_sdk/auth/MetaData.py +29 -0
- byteplus_sdk/auth/SignerV4.py +145 -0
- byteplus_sdk/auth/__init__.py +0 -0
- byteplus_sdk/base/Request.py +51 -0
- byteplus_sdk/base/Service.py +227 -0
- byteplus_sdk/base/__init__.py +0 -0
- byteplus_sdk/base/models/__init__.py +0 -0
- byteplus_sdk/base/models/base/__init__.py +0 -0
- byteplus_sdk/base/models/base/base_pb2.py +46 -0
- byteplus_sdk/cdn/__init__.py +0 -0
- byteplus_sdk/cdn/service.py +1203 -0
- byteplus_sdk/const/Const.py +66 -0
- byteplus_sdk/const/__init__.py +0 -0
- byteplus_sdk/example/__init__.py +1 -0
- byteplus_sdk/example/cdn/__init__.py +3 -0
- byteplus_sdk/example/cdn/add_cdn_certificate.py +27 -0
- byteplus_sdk/example/cdn/add_cdn_domain.py +35 -0
- byteplus_sdk/example/cdn/add_template_domain.py +26 -0
- byteplus_sdk/example/cdn/create_cipher_template.py +25 -0
- byteplus_sdk/example/cdn/create_rule_engine_template.py +161 -0
- byteplus_sdk/example/cdn/create_service_template.py +41 -0
- byteplus_sdk/example/cdn/delete_cdn_domain.py +19 -0
- byteplus_sdk/example/cdn/delete_template.py +20 -0
- byteplus_sdk/example/cdn/describe_accounting_data.py +24 -0
- byteplus_sdk/example/cdn/describe_cdn_access_log.py +23 -0
- byteplus_sdk/example/cdn/describe_cdn_config.py +19 -0
- byteplus_sdk/example/cdn/describe_cdn_data.py +29 -0
- byteplus_sdk/example/cdn/describe_cdn_data_detail.py +25 -0
- byteplus_sdk/example/cdn/describe_cdn_detail.py +26 -0
- byteplus_sdk/example/cdn/describe_cdn_origin_data.py +24 -0
- byteplus_sdk/example/cdn/describe_cdn_region_and_isp.py +19 -0
- byteplus_sdk/example/cdn/describe_cdn_service.py +15 -0
- byteplus_sdk/example/cdn/describe_cdn_upper_ip.py +19 -0
- byteplus_sdk/example/cdn/describe_cipher_template.py +20 -0
- byteplus_sdk/example/cdn/describe_content_block_tasks.py +23 -0
- byteplus_sdk/example/cdn/describe_content_quota.py +14 -0
- byteplus_sdk/example/cdn/describe_content_tasks.py +21 -0
- byteplus_sdk/example/cdn/describe_edge_nrt_data_summary.py +23 -0
- byteplus_sdk/example/cdn/describe_edge_statistical_data.py +24 -0
- byteplus_sdk/example/cdn/describe_edge_top_nrt_data.py +25 -0
- byteplus_sdk/example/cdn/describe_edge_top_statistical_data.py +25 -0
- byteplus_sdk/example/cdn/describe_edge_top_status_code.py +22 -0
- byteplus_sdk/example/cdn/describe_ip_info.py +19 -0
- byteplus_sdk/example/cdn/describe_ip_list_info.py +20 -0
- byteplus_sdk/example/cdn/describe_origin_nrt_data_summary.py +23 -0
- byteplus_sdk/example/cdn/describe_origin_top_nrt_data.py +24 -0
- byteplus_sdk/example/cdn/describe_origin_top_status_code.py +22 -0
- byteplus_sdk/example/cdn/describe_rule_engine_template.py +23 -0
- byteplus_sdk/example/cdn/describe_service_template.py +20 -0
- byteplus_sdk/example/cdn/describe_template_domains.py +22 -0
- byteplus_sdk/example/cdn/describe_templates.py +30 -0
- byteplus_sdk/example/cdn/duplicate_template.py +23 -0
- byteplus_sdk/example/cdn/list_cdn_cert_info.py +19 -0
- byteplus_sdk/example/cdn/list_cdn_domains.py +19 -0
- byteplus_sdk/example/cdn/list_cert_info.py +20 -0
- byteplus_sdk/example/cdn/lock_template.py +20 -0
- byteplus_sdk/example/cdn/release_template.py +23 -0
- byteplus_sdk/example/cdn/start_cdn_domain.py +19 -0
- byteplus_sdk/example/cdn/stop_cdn_domain.py +19 -0
- byteplus_sdk/example/cdn/submit_block_task.py +18 -0
- byteplus_sdk/example/cdn/submit_preload_task.py +18 -0
- byteplus_sdk/example/cdn/submit_refresh_task.py +19 -0
- byteplus_sdk/example/cdn/submit_unblock_task.py +18 -0
- byteplus_sdk/example/cdn/update_cdn_config.py +34 -0
- byteplus_sdk/example/cdn/update_cipher_template.py +48 -0
- byteplus_sdk/example/cdn/update_rule_engine_template.py +62 -0
- byteplus_sdk/example/cdn/update_service_template.py +42 -0
- byteplus_sdk/example/cdn/update_template_domain.py +29 -0
- byteplus_sdk/example/live/__init__.py +0 -0
- byteplus_sdk/example/rtc/RtcService.py +53 -0
- byteplus_sdk/example/rtc/__init__.py +0 -0
- byteplus_sdk/example/rtc/example_get_record_task.py +25 -0
- byteplus_sdk/example/rtc/example_start_record.py +86 -0
- byteplus_sdk/example/visual/__init__.py +0 -0
- byteplus_sdk/example/visual/cv_cancel_task.py +19 -0
- byteplus_sdk/example/visual/cv_get_result.py +19 -0
- byteplus_sdk/example/visual/cv_process.py +20 -0
- byteplus_sdk/example/visual/cv_submit_task.py +19 -0
- byteplus_sdk/example/visual/cv_sync2async_get_result.py +20 -0
- byteplus_sdk/example/visual/cv_sync2async_submit_task.py +20 -0
- byteplus_sdk/example/visual/example_common.py +32 -0
- byteplus_sdk/iam/IamService.py +42 -0
- byteplus_sdk/iam/__init__.py +0 -0
- byteplus_sdk/live/LiveService.py +571 -0
- byteplus_sdk/live/__init__.py +1 -0
- byteplus_sdk/live/v20200801/__init__.py +1 -0
- byteplus_sdk/live/v20200801/live_config.py +18 -0
- byteplus_sdk/live/v20200801/live_service.py +12 -0
- byteplus_sdk/live/v20200801/live_trait.py +62 -0
- byteplus_sdk/live/v20230101/__init__.py +1 -0
- byteplus_sdk/live/v20230101/live_config.py +171 -0
- byteplus_sdk/live/v20230101/live_service.py +12 -0
- byteplus_sdk/live/v20230101/live_trait.py +1133 -0
- byteplus_sdk/sms/SmsService.py +158 -0
- byteplus_sdk/sms/__init__.py +0 -0
- byteplus_sdk/util/Functions.py +37 -0
- byteplus_sdk/util/Util.py +116 -0
- byteplus_sdk/util/__init__.py +0 -0
- byteplus_sdk/visual/VisualService.py +142 -0
- byteplus_sdk/visual/__init__.py +0 -0
- byteplus_sdk/vod/VodService.py +2941 -0
- byteplus_sdk/vod/VodServiceConfig.py +134 -0
- byteplus_sdk/vod/__init__.py +0 -0
- byteplus_sdk/vod/models/__init__.py +0 -0
- byteplus_sdk/vod/models/business/__init__.py +0 -0
- byteplus_sdk/vod/models/business/vod_apps_manage_pb2.py +35 -0
- byteplus_sdk/vod/models/business/vod_callback_pb2.py +32 -0
- byteplus_sdk/vod/models/business/vod_cdn_pb2.py +434 -0
- byteplus_sdk/vod/models/business/vod_common_pb2.py +342 -0
- byteplus_sdk/vod/models/business/vod_edit_pb2.py +55 -0
- byteplus_sdk/vod/models/business/vod_measure_pb2.py +395 -0
- byteplus_sdk/vod/models/business/vod_media_pb2.py +547 -0
- byteplus_sdk/vod/models/business/vod_play_pb2.py +95 -0
- byteplus_sdk/vod/models/business/vod_project_pb2.py +45 -0
- byteplus_sdk/vod/models/business/vod_quality_platform_pb2.py +46 -0
- byteplus_sdk/vod/models/business/vod_smart_strategy_pb2.py +53 -0
- byteplus_sdk/vod/models/business/vod_space_pb2.py +63 -0
- byteplus_sdk/vod/models/business/vod_upload_pb2.py +344 -0
- byteplus_sdk/vod/models/business/vod_workflow_pb2.py +389 -0
- byteplus_sdk/vod/models/request/__init__.py +0 -0
- byteplus_sdk/vod/models/request/request_vod_pb2.py +1250 -0
- byteplus_sdk/vod/models/response/__init__.py +0 -0
- byteplus_sdk/vod/models/response/response_vod_pb2.py +1199 -0
- byteplus_sdk-1.0.62.dist-info/METADATA +24 -0
- byteplus_sdk-1.0.62.dist-info/RECORD +134 -0
- byteplus_sdk-1.0.62.dist-info/WHEEL +5 -0
- byteplus_sdk-1.0.62.dist-info/licenses/LICENSE +201 -0
- byteplus_sdk-1.0.62.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1133 @@
|
|
|
1
|
+
# coding:utf-8
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
from byteplus_sdk.base.Service import Service
|
|
5
|
+
from byteplus_sdk.const.Const import *
|
|
6
|
+
from byteplus_sdk.util.Util import *
|
|
7
|
+
from byteplus_sdk.Policy import *
|
|
8
|
+
from byteplus_sdk.live.v20230101.live_config import * # Modify it if necessary
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class LiveTrait(Service):
|
|
12
|
+
def __init__(self, param=None):
|
|
13
|
+
if param is None:
|
|
14
|
+
param = {}
|
|
15
|
+
self.param = param
|
|
16
|
+
region = param.get('region', REGION_CN_NORTH1)
|
|
17
|
+
self.service_info = LiveTrait.get_service_info(region)
|
|
18
|
+
self.api_info = LiveTrait.get_api_info()
|
|
19
|
+
if param.get('ak', None) and param.get('sk', None):
|
|
20
|
+
self.set_ak(param['ak'])
|
|
21
|
+
self.set_sk(param['sk'])
|
|
22
|
+
super(LiveTrait, self).__init__(self.service_info, self.api_info)
|
|
23
|
+
|
|
24
|
+
@staticmethod
|
|
25
|
+
def get_service_info(region):
|
|
26
|
+
service_info = service_info_map.get(region, None)
|
|
27
|
+
if not service_info:
|
|
28
|
+
raise Exception('Not support region %s' % region)
|
|
29
|
+
return service_info
|
|
30
|
+
|
|
31
|
+
@staticmethod
|
|
32
|
+
def get_api_info():
|
|
33
|
+
return api_info
|
|
34
|
+
|
|
35
|
+
def api_get(self, action, params, doseq=0):
|
|
36
|
+
res = self.get(action, params, doseq)
|
|
37
|
+
if res == '':
|
|
38
|
+
raise Exception("%s: empty response" % action)
|
|
39
|
+
res_json = json.loads(json.dumps(res))
|
|
40
|
+
return res_json
|
|
41
|
+
|
|
42
|
+
def api_post(self, action, params, body):
|
|
43
|
+
res = self.json(action, params, body)
|
|
44
|
+
if res == '':
|
|
45
|
+
raise Exception("%s: empty response" % action)
|
|
46
|
+
res_json = json.loads(json.dumps(res))
|
|
47
|
+
return res_json
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def delete_transcode_preset(self, body):
|
|
51
|
+
res = self.api_post('DeleteTranscodePreset', [], body)
|
|
52
|
+
if res == '':
|
|
53
|
+
raise Exception("empty response")
|
|
54
|
+
res_json = json.loads(res)
|
|
55
|
+
return res_json
|
|
56
|
+
|
|
57
|
+
def update_transcode_preset(self, body):
|
|
58
|
+
res = self.api_post('UpdateTranscodePreset', [], body)
|
|
59
|
+
if res == '':
|
|
60
|
+
raise Exception("empty response")
|
|
61
|
+
res_json = json.loads(res)
|
|
62
|
+
return res_json
|
|
63
|
+
|
|
64
|
+
def list_common_trans_preset_detail(self, body):
|
|
65
|
+
res = self.api_post('ListCommonTransPresetDetail', [], body)
|
|
66
|
+
if res == '':
|
|
67
|
+
raise Exception("empty response")
|
|
68
|
+
res_json = json.loads(res)
|
|
69
|
+
return res_json
|
|
70
|
+
|
|
71
|
+
def list_vhost_trans_code_preset(self, body):
|
|
72
|
+
res = self.api_post('ListVhostTransCodePreset', [], body)
|
|
73
|
+
if res == '':
|
|
74
|
+
raise Exception("empty response")
|
|
75
|
+
res_json = json.loads(res)
|
|
76
|
+
return res_json
|
|
77
|
+
|
|
78
|
+
def create_transcode_preset(self, body):
|
|
79
|
+
res = self.api_post('CreateTranscodePreset', [], body)
|
|
80
|
+
if res == '':
|
|
81
|
+
raise Exception("empty response")
|
|
82
|
+
res_json = json.loads(res)
|
|
83
|
+
return res_json
|
|
84
|
+
|
|
85
|
+
def create_watermark_preset(self, body):
|
|
86
|
+
res = self.api_post('CreateWatermarkPreset', [], body)
|
|
87
|
+
if res == '':
|
|
88
|
+
raise Exception("empty response")
|
|
89
|
+
res_json = json.loads(res)
|
|
90
|
+
return res_json
|
|
91
|
+
|
|
92
|
+
def update_watermark_preset(self, body):
|
|
93
|
+
res = self.api_post('UpdateWatermarkPreset', [], body)
|
|
94
|
+
if res == '':
|
|
95
|
+
raise Exception("empty response")
|
|
96
|
+
res_json = json.loads(res)
|
|
97
|
+
return res_json
|
|
98
|
+
|
|
99
|
+
def delete_watermark_preset(self, body):
|
|
100
|
+
res = self.api_post('DeleteWatermarkPreset', [], body)
|
|
101
|
+
if res == '':
|
|
102
|
+
raise Exception("empty response")
|
|
103
|
+
res_json = json.loads(res)
|
|
104
|
+
return res_json
|
|
105
|
+
|
|
106
|
+
def list_watermark_preset(self, body):
|
|
107
|
+
res = self.api_post('ListWatermarkPreset', [], body)
|
|
108
|
+
if res == '':
|
|
109
|
+
raise Exception("empty response")
|
|
110
|
+
res_json = json.loads(res)
|
|
111
|
+
return res_json
|
|
112
|
+
|
|
113
|
+
def list_vhost_watermark_preset(self, body):
|
|
114
|
+
res = self.api_post('ListVhostWatermarkPreset', [], body)
|
|
115
|
+
if res == '':
|
|
116
|
+
raise Exception("empty response")
|
|
117
|
+
res_json = json.loads(res)
|
|
118
|
+
return res_json
|
|
119
|
+
|
|
120
|
+
def delete_record_preset(self, body):
|
|
121
|
+
res = self.api_post('DeleteRecordPreset', [], body)
|
|
122
|
+
if res == '':
|
|
123
|
+
raise Exception("empty response")
|
|
124
|
+
res_json = json.loads(res)
|
|
125
|
+
return res_json
|
|
126
|
+
|
|
127
|
+
def update_record_preset_v2(self, body):
|
|
128
|
+
res = self.api_post('UpdateRecordPresetV2', [], body)
|
|
129
|
+
if res == '':
|
|
130
|
+
raise Exception("empty response")
|
|
131
|
+
res_json = json.loads(res)
|
|
132
|
+
return res_json
|
|
133
|
+
|
|
134
|
+
def describe_record_task_file_history(self, body):
|
|
135
|
+
res = self.api_post('DescribeRecordTaskFileHistory', [], body)
|
|
136
|
+
if res == '':
|
|
137
|
+
raise Exception("empty response")
|
|
138
|
+
res_json = json.loads(res)
|
|
139
|
+
return res_json
|
|
140
|
+
|
|
141
|
+
def list_vhost_record_preset_v2(self, body):
|
|
142
|
+
res = self.api_post('ListVhostRecordPresetV2', [], body)
|
|
143
|
+
if res == '':
|
|
144
|
+
raise Exception("empty response")
|
|
145
|
+
res_json = json.loads(res)
|
|
146
|
+
return res_json
|
|
147
|
+
|
|
148
|
+
def create_record_preset_v2(self, body):
|
|
149
|
+
res = self.api_post('CreateRecordPresetV2', [], body)
|
|
150
|
+
if res == '':
|
|
151
|
+
raise Exception("empty response")
|
|
152
|
+
res_json = json.loads(res)
|
|
153
|
+
return res_json
|
|
154
|
+
|
|
155
|
+
def delete_snapshot_preset(self, body):
|
|
156
|
+
res = self.api_post('DeleteSnapshotPreset', [], body)
|
|
157
|
+
if res == '':
|
|
158
|
+
raise Exception("empty response")
|
|
159
|
+
res_json = json.loads(res)
|
|
160
|
+
return res_json
|
|
161
|
+
|
|
162
|
+
def update_snapshot_preset(self, body):
|
|
163
|
+
res = self.api_post('UpdateSnapshotPreset', [], body)
|
|
164
|
+
if res == '':
|
|
165
|
+
raise Exception("empty response")
|
|
166
|
+
res_json = json.loads(res)
|
|
167
|
+
return res_json
|
|
168
|
+
|
|
169
|
+
def describe_cdn_snapshot_history(self, body):
|
|
170
|
+
res = self.api_post('DescribeCDNSnapshotHistory', [], body)
|
|
171
|
+
if res == '':
|
|
172
|
+
raise Exception("empty response")
|
|
173
|
+
res_json = json.loads(res)
|
|
174
|
+
return res_json
|
|
175
|
+
|
|
176
|
+
def list_vhost_snapshot_preset(self, body):
|
|
177
|
+
res = self.api_post('ListVhostSnapshotPreset', [], body)
|
|
178
|
+
if res == '':
|
|
179
|
+
raise Exception("empty response")
|
|
180
|
+
res_json = json.loads(res)
|
|
181
|
+
return res_json
|
|
182
|
+
|
|
183
|
+
def create_snapshot_preset(self, body):
|
|
184
|
+
res = self.api_post('CreateSnapshotPreset', [], body)
|
|
185
|
+
if res == '':
|
|
186
|
+
raise Exception("empty response")
|
|
187
|
+
res_json = json.loads(res)
|
|
188
|
+
return res_json
|
|
189
|
+
|
|
190
|
+
def delete_time_shift_preset_v2(self, body):
|
|
191
|
+
res = self.api_post('DeleteTimeShiftPresetV2', [], body)
|
|
192
|
+
if res == '':
|
|
193
|
+
raise Exception("empty response")
|
|
194
|
+
res_json = json.loads(res)
|
|
195
|
+
return res_json
|
|
196
|
+
|
|
197
|
+
def create_time_shift_preset_v2(self, body):
|
|
198
|
+
res = self.api_post('CreateTimeShiftPresetV2', [], body)
|
|
199
|
+
if res == '':
|
|
200
|
+
raise Exception("empty response")
|
|
201
|
+
res_json = json.loads(res)
|
|
202
|
+
return res_json
|
|
203
|
+
|
|
204
|
+
def update_time_shift_preset_v2(self, body):
|
|
205
|
+
res = self.api_post('UpdateTimeShiftPresetV2', [], body)
|
|
206
|
+
if res == '':
|
|
207
|
+
raise Exception("empty response")
|
|
208
|
+
res_json = json.loads(res)
|
|
209
|
+
return res_json
|
|
210
|
+
|
|
211
|
+
def list_time_shift_preset_v2(self, body):
|
|
212
|
+
res = self.api_post('ListTimeShiftPresetV2', [], body)
|
|
213
|
+
if res == '':
|
|
214
|
+
raise Exception("empty response")
|
|
215
|
+
res_json = json.loads(res)
|
|
216
|
+
return res_json
|
|
217
|
+
|
|
218
|
+
def delete_callback(self, body):
|
|
219
|
+
res = self.api_post('DeleteCallback', [], body)
|
|
220
|
+
if res == '':
|
|
221
|
+
raise Exception("empty response")
|
|
222
|
+
res_json = json.loads(res)
|
|
223
|
+
return res_json
|
|
224
|
+
|
|
225
|
+
def describe_callback(self, body):
|
|
226
|
+
res = self.api_post('DescribeCallback', [], body)
|
|
227
|
+
if res == '':
|
|
228
|
+
raise Exception("empty response")
|
|
229
|
+
res_json = json.loads(res)
|
|
230
|
+
return res_json
|
|
231
|
+
|
|
232
|
+
def update_callback(self, body):
|
|
233
|
+
res = self.api_post('UpdateCallback', [], body)
|
|
234
|
+
if res == '':
|
|
235
|
+
raise Exception("empty response")
|
|
236
|
+
res_json = json.loads(res)
|
|
237
|
+
return res_json
|
|
238
|
+
|
|
239
|
+
def delete_cert(self, body):
|
|
240
|
+
res = self.api_post('DeleteCert', [], body)
|
|
241
|
+
if res == '':
|
|
242
|
+
raise Exception("empty response")
|
|
243
|
+
res_json = json.loads(res)
|
|
244
|
+
return res_json
|
|
245
|
+
|
|
246
|
+
def describe_cert_detail_secret_v2(self, body):
|
|
247
|
+
res = self.api_post('DescribeCertDetailSecretV2', [], body)
|
|
248
|
+
if res == '':
|
|
249
|
+
raise Exception("empty response")
|
|
250
|
+
res_json = json.loads(res)
|
|
251
|
+
return res_json
|
|
252
|
+
|
|
253
|
+
def list_cert_v2(self, body):
|
|
254
|
+
res = self.api_post('ListCertV2', [], body)
|
|
255
|
+
if res == '':
|
|
256
|
+
raise Exception("empty response")
|
|
257
|
+
res_json = json.loads(res)
|
|
258
|
+
return res_json
|
|
259
|
+
|
|
260
|
+
def create_cert(self, body):
|
|
261
|
+
res = self.api_post('CreateCert', [], body)
|
|
262
|
+
if res == '':
|
|
263
|
+
raise Exception("empty response")
|
|
264
|
+
res_json = json.loads(res)
|
|
265
|
+
return res_json
|
|
266
|
+
|
|
267
|
+
def bind_cert(self, body):
|
|
268
|
+
res = self.api_post('BindCert', [], body)
|
|
269
|
+
if res == '':
|
|
270
|
+
raise Exception("empty response")
|
|
271
|
+
res_json = json.loads(res)
|
|
272
|
+
return res_json
|
|
273
|
+
|
|
274
|
+
def unbind_cert(self, body):
|
|
275
|
+
res = self.api_post('UnbindCert', [], body)
|
|
276
|
+
if res == '':
|
|
277
|
+
raise Exception("empty response")
|
|
278
|
+
res_json = json.loads(res)
|
|
279
|
+
return res_json
|
|
280
|
+
|
|
281
|
+
def delete_domain(self, body):
|
|
282
|
+
res = self.api_post('DeleteDomain', [], body)
|
|
283
|
+
if res == '':
|
|
284
|
+
raise Exception("empty response")
|
|
285
|
+
res_json = json.loads(res)
|
|
286
|
+
return res_json
|
|
287
|
+
|
|
288
|
+
def enable_domain(self, body):
|
|
289
|
+
res = self.api_post('EnableDomain', [], body)
|
|
290
|
+
if res == '':
|
|
291
|
+
raise Exception("empty response")
|
|
292
|
+
res_json = json.loads(res)
|
|
293
|
+
return res_json
|
|
294
|
+
|
|
295
|
+
def create_domain_v2(self, body):
|
|
296
|
+
res = self.api_post('CreateDomainV2', [], body)
|
|
297
|
+
if res == '':
|
|
298
|
+
raise Exception("empty response")
|
|
299
|
+
res_json = json.loads(res)
|
|
300
|
+
return res_json
|
|
301
|
+
|
|
302
|
+
def update_domain_vhost(self, body):
|
|
303
|
+
res = self.api_post('UpdateDomainVhost', [], body)
|
|
304
|
+
if res == '':
|
|
305
|
+
raise Exception("empty response")
|
|
306
|
+
res_json = json.loads(res)
|
|
307
|
+
return res_json
|
|
308
|
+
|
|
309
|
+
def describe_domain(self, body):
|
|
310
|
+
res = self.api_post('DescribeDomain', [], body)
|
|
311
|
+
if res == '':
|
|
312
|
+
raise Exception("empty response")
|
|
313
|
+
res_json = json.loads(res)
|
|
314
|
+
return res_json
|
|
315
|
+
|
|
316
|
+
def list_domain_detail(self, body):
|
|
317
|
+
res = self.api_post('ListDomainDetail', [], body)
|
|
318
|
+
if res == '':
|
|
319
|
+
raise Exception("empty response")
|
|
320
|
+
res_json = json.loads(res)
|
|
321
|
+
return res_json
|
|
322
|
+
|
|
323
|
+
def disable_domain(self, body):
|
|
324
|
+
res = self.api_post('DisableDomain', [], body)
|
|
325
|
+
if res == '':
|
|
326
|
+
raise Exception("empty response")
|
|
327
|
+
res_json = json.loads(res)
|
|
328
|
+
return res_json
|
|
329
|
+
|
|
330
|
+
def create_live_video_quality_analysis_task(self, body):
|
|
331
|
+
res = self.api_post('CreateLiveVideoQualityAnalysisTask', [], body)
|
|
332
|
+
if res == '':
|
|
333
|
+
raise Exception("empty response")
|
|
334
|
+
res_json = json.loads(res)
|
|
335
|
+
return res_json
|
|
336
|
+
|
|
337
|
+
def delete_live_video_quality_analysis_task(self, body):
|
|
338
|
+
res = self.api_post('DeleteLiveVideoQualityAnalysisTask', [], body)
|
|
339
|
+
if res == '':
|
|
340
|
+
raise Exception("empty response")
|
|
341
|
+
res_json = json.loads(res)
|
|
342
|
+
return res_json
|
|
343
|
+
|
|
344
|
+
def get_live_video_quality_analysis_task_detail(self, body):
|
|
345
|
+
res = self.api_post('GetLiveVideoQualityAnalysisTaskDetail', [], body)
|
|
346
|
+
if res == '':
|
|
347
|
+
raise Exception("empty response")
|
|
348
|
+
res_json = json.loads(res)
|
|
349
|
+
return res_json
|
|
350
|
+
|
|
351
|
+
def list_live_video_quality_analysis_tasks(self, body):
|
|
352
|
+
res = self.api_post('ListLiveVideoQualityAnalysisTasks', [], body)
|
|
353
|
+
if res == '':
|
|
354
|
+
raise Exception("empty response")
|
|
355
|
+
res_json = json.loads(res)
|
|
356
|
+
return res_json
|
|
357
|
+
|
|
358
|
+
def stop_pull_to_push_task(self, body):
|
|
359
|
+
res = self.api_post('StopPullToPushTask', [], body)
|
|
360
|
+
if res == '':
|
|
361
|
+
raise Exception("empty response")
|
|
362
|
+
res_json = json.loads(res)
|
|
363
|
+
return res_json
|
|
364
|
+
|
|
365
|
+
def create_pull_to_push_task(self, body):
|
|
366
|
+
res = self.api_post('CreatePullToPushTask', [], body)
|
|
367
|
+
if res == '':
|
|
368
|
+
raise Exception("empty response")
|
|
369
|
+
res_json = json.loads(res)
|
|
370
|
+
return res_json
|
|
371
|
+
|
|
372
|
+
def create_pull_to_push_group(self, body):
|
|
373
|
+
res = self.api_post('CreatePullToPushGroup', [], body)
|
|
374
|
+
if res == '':
|
|
375
|
+
raise Exception("empty response")
|
|
376
|
+
res_json = json.loads(res)
|
|
377
|
+
return res_json
|
|
378
|
+
|
|
379
|
+
def delete_pull_to_push_task(self, body):
|
|
380
|
+
res = self.api_post('DeletePullToPushTask', [], body)
|
|
381
|
+
if res == '':
|
|
382
|
+
raise Exception("empty response")
|
|
383
|
+
res_json = json.loads(res)
|
|
384
|
+
return res_json
|
|
385
|
+
|
|
386
|
+
def delete_pull_to_push_group(self, body):
|
|
387
|
+
res = self.api_post('DeletePullToPushGroup', [], body)
|
|
388
|
+
if res == '':
|
|
389
|
+
raise Exception("empty response")
|
|
390
|
+
res_json = json.loads(res)
|
|
391
|
+
return res_json
|
|
392
|
+
|
|
393
|
+
def restart_pull_to_push_task(self, body):
|
|
394
|
+
res = self.api_post('RestartPullToPushTask', [], body)
|
|
395
|
+
if res == '':
|
|
396
|
+
raise Exception("empty response")
|
|
397
|
+
res_json = json.loads(res)
|
|
398
|
+
return res_json
|
|
399
|
+
|
|
400
|
+
def update_pull_to_push_task(self, body):
|
|
401
|
+
res = self.api_post('UpdatePullToPushTask', [], body)
|
|
402
|
+
if res == '':
|
|
403
|
+
raise Exception("empty response")
|
|
404
|
+
res_json = json.loads(res)
|
|
405
|
+
return res_json
|
|
406
|
+
|
|
407
|
+
def list_pull_to_push_group(self, body):
|
|
408
|
+
res = self.api_post('ListPullToPushGroup', [], body)
|
|
409
|
+
if res == '':
|
|
410
|
+
raise Exception("empty response")
|
|
411
|
+
res_json = json.loads(res)
|
|
412
|
+
return res_json
|
|
413
|
+
|
|
414
|
+
def list_pull_to_push_task(self, query):
|
|
415
|
+
res = self.api_get('ListPullToPushTask', query)
|
|
416
|
+
if res == '':
|
|
417
|
+
raise Exception("empty response")
|
|
418
|
+
res_json = json.loads(res)
|
|
419
|
+
return res_json
|
|
420
|
+
|
|
421
|
+
def list_pull_to_push_task_v2(self, body):
|
|
422
|
+
res = self.api_post('ListPullToPushTaskV2', [], body)
|
|
423
|
+
if res == '':
|
|
424
|
+
raise Exception("empty response")
|
|
425
|
+
res_json = json.loads(res)
|
|
426
|
+
return res_json
|
|
427
|
+
|
|
428
|
+
def delete_relay_source_rewrite(self, body):
|
|
429
|
+
res = self.api_post('DeleteRelaySourceRewrite', [], body)
|
|
430
|
+
if res == '':
|
|
431
|
+
raise Exception("empty response")
|
|
432
|
+
res_json = json.loads(res)
|
|
433
|
+
return res_json
|
|
434
|
+
|
|
435
|
+
def delete_relay_source_v3(self, body):
|
|
436
|
+
res = self.api_post('DeleteRelaySourceV3', [], body)
|
|
437
|
+
if res == '':
|
|
438
|
+
raise Exception("empty response")
|
|
439
|
+
res_json = json.loads(res)
|
|
440
|
+
return res_json
|
|
441
|
+
|
|
442
|
+
def update_relay_source_rewrite(self, body):
|
|
443
|
+
res = self.api_post('UpdateRelaySourceRewrite', [], body)
|
|
444
|
+
if res == '':
|
|
445
|
+
raise Exception("empty response")
|
|
446
|
+
res_json = json.loads(res)
|
|
447
|
+
return res_json
|
|
448
|
+
|
|
449
|
+
def describe_relay_source_rewrite(self, body):
|
|
450
|
+
res = self.api_post('DescribeRelaySourceRewrite', [], body)
|
|
451
|
+
if res == '':
|
|
452
|
+
raise Exception("empty response")
|
|
453
|
+
res_json = json.loads(res)
|
|
454
|
+
return res_json
|
|
455
|
+
|
|
456
|
+
def describe_relay_source_v3(self, body):
|
|
457
|
+
res = self.api_post('DescribeRelaySourceV3', [], body)
|
|
458
|
+
if res == '':
|
|
459
|
+
raise Exception("empty response")
|
|
460
|
+
res_json = json.loads(res)
|
|
461
|
+
return res_json
|
|
462
|
+
|
|
463
|
+
def update_relay_source_v3(self, body):
|
|
464
|
+
res = self.api_post('UpdateRelaySourceV3', [], body)
|
|
465
|
+
if res == '':
|
|
466
|
+
raise Exception("empty response")
|
|
467
|
+
res_json = json.loads(res)
|
|
468
|
+
return res_json
|
|
469
|
+
|
|
470
|
+
def kill_stream(self, body):
|
|
471
|
+
res = self.api_post('KillStream', [], body)
|
|
472
|
+
if res == '':
|
|
473
|
+
raise Exception("empty response")
|
|
474
|
+
res_json = json.loads(res)
|
|
475
|
+
return res_json
|
|
476
|
+
|
|
477
|
+
def describe_closed_stream_info_by_page(self, query):
|
|
478
|
+
res = self.api_get('DescribeClosedStreamInfoByPage', query)
|
|
479
|
+
if res == '':
|
|
480
|
+
raise Exception("empty response")
|
|
481
|
+
res_json = json.loads(res)
|
|
482
|
+
return res_json
|
|
483
|
+
|
|
484
|
+
def describe_live_stream_info_by_page(self, query):
|
|
485
|
+
res = self.api_get('DescribeLiveStreamInfoByPage', query)
|
|
486
|
+
if res == '':
|
|
487
|
+
raise Exception("empty response")
|
|
488
|
+
res_json = json.loads(res)
|
|
489
|
+
return res_json
|
|
490
|
+
|
|
491
|
+
def describe_live_stream_state(self, query):
|
|
492
|
+
res = self.api_get('DescribeLiveStreamState', query)
|
|
493
|
+
if res == '':
|
|
494
|
+
raise Exception("empty response")
|
|
495
|
+
res_json = json.loads(res)
|
|
496
|
+
return res_json
|
|
497
|
+
|
|
498
|
+
def describe_forbidden_stream_info_by_page(self, query):
|
|
499
|
+
res = self.api_get('DescribeForbiddenStreamInfoByPage', query)
|
|
500
|
+
if res == '':
|
|
501
|
+
raise Exception("empty response")
|
|
502
|
+
res_json = json.loads(res)
|
|
503
|
+
return res_json
|
|
504
|
+
|
|
505
|
+
def forbid_stream(self, body):
|
|
506
|
+
res = self.api_post('ForbidStream', [], body)
|
|
507
|
+
if res == '':
|
|
508
|
+
raise Exception("empty response")
|
|
509
|
+
res_json = json.loads(res)
|
|
510
|
+
return res_json
|
|
511
|
+
|
|
512
|
+
def resume_stream(self, body):
|
|
513
|
+
res = self.api_post('ResumeStream', [], body)
|
|
514
|
+
if res == '':
|
|
515
|
+
raise Exception("empty response")
|
|
516
|
+
res_json = json.loads(res)
|
|
517
|
+
return res_json
|
|
518
|
+
|
|
519
|
+
def generate_play_url(self, body):
|
|
520
|
+
res = self.api_post('GeneratePlayURL', [], body)
|
|
521
|
+
if res == '':
|
|
522
|
+
raise Exception("empty response")
|
|
523
|
+
res_json = json.loads(res)
|
|
524
|
+
return res_json
|
|
525
|
+
|
|
526
|
+
def generate_push_url(self, body):
|
|
527
|
+
res = self.api_post('GeneratePushURL', [], body)
|
|
528
|
+
if res == '':
|
|
529
|
+
raise Exception("empty response")
|
|
530
|
+
res_json = json.loads(res)
|
|
531
|
+
return res_json
|
|
532
|
+
|
|
533
|
+
def describe_live_top_play_data(self, body):
|
|
534
|
+
res = self.api_post('DescribeLiveTopPlayData', [], body)
|
|
535
|
+
if res == '':
|
|
536
|
+
raise Exception("empty response")
|
|
537
|
+
res_json = json.loads(res)
|
|
538
|
+
return res_json
|
|
539
|
+
|
|
540
|
+
def describe_live_region_data(self, body):
|
|
541
|
+
res = self.api_post('DescribeLiveRegionData', [], body)
|
|
542
|
+
if res == '':
|
|
543
|
+
raise Exception("empty response")
|
|
544
|
+
res_json = json.loads(res)
|
|
545
|
+
return res_json
|
|
546
|
+
|
|
547
|
+
def describe_live_source_stream_metrics(self, body):
|
|
548
|
+
res = self.api_post('DescribeLiveSourceStreamMetrics', [], body)
|
|
549
|
+
if res == '':
|
|
550
|
+
raise Exception("empty response")
|
|
551
|
+
res_json = json.loads(res)
|
|
552
|
+
return res_json
|
|
553
|
+
|
|
554
|
+
def describe_live_push_stream_metrics(self, body):
|
|
555
|
+
res = self.api_post('DescribeLivePushStreamMetrics', [], body)
|
|
556
|
+
if res == '':
|
|
557
|
+
raise Exception("empty response")
|
|
558
|
+
res_json = json.loads(res)
|
|
559
|
+
return res_json
|
|
560
|
+
|
|
561
|
+
def describe_live_stream_session_data(self, body):
|
|
562
|
+
res = self.api_post('DescribeLiveStreamSessionData', [], body)
|
|
563
|
+
if res == '':
|
|
564
|
+
raise Exception("empty response")
|
|
565
|
+
res_json = json.loads(res)
|
|
566
|
+
return res_json
|
|
567
|
+
|
|
568
|
+
def describe_live_play_status_code_data(self, body):
|
|
569
|
+
res = self.api_post('DescribeLivePlayStatusCodeData', [], body)
|
|
570
|
+
if res == '':
|
|
571
|
+
raise Exception("empty response")
|
|
572
|
+
res_json = json.loads(res)
|
|
573
|
+
return res_json
|
|
574
|
+
|
|
575
|
+
def describe_live_batch_push_stream_metrics(self, body):
|
|
576
|
+
res = self.api_post('DescribeLiveBatchPushStreamMetrics', [], body)
|
|
577
|
+
if res == '':
|
|
578
|
+
raise Exception("empty response")
|
|
579
|
+
res_json = json.loads(res)
|
|
580
|
+
return res_json
|
|
581
|
+
|
|
582
|
+
def describe_live_push_stream_info_data(self, body):
|
|
583
|
+
res = self.api_post('DescribeLivePushStreamInfoData', [], body)
|
|
584
|
+
if res == '':
|
|
585
|
+
raise Exception("empty response")
|
|
586
|
+
res_json = json.loads(res)
|
|
587
|
+
return res_json
|
|
588
|
+
|
|
589
|
+
def describe_live_transcode_info_data(self, body):
|
|
590
|
+
res = self.api_post('DescribeLiveTranscodeInfoData', [], body)
|
|
591
|
+
if res == '':
|
|
592
|
+
raise Exception("empty response")
|
|
593
|
+
res_json = json.loads(res)
|
|
594
|
+
return res_json
|
|
595
|
+
|
|
596
|
+
def describe_live_source_bandwidth_data(self, body):
|
|
597
|
+
res = self.api_post('DescribeLiveSourceBandwidthData', [], body)
|
|
598
|
+
if res == '':
|
|
599
|
+
raise Exception("empty response")
|
|
600
|
+
res_json = json.loads(res)
|
|
601
|
+
return res_json
|
|
602
|
+
|
|
603
|
+
def describe_live_source_traffic_data(self, body):
|
|
604
|
+
res = self.api_post('DescribeLiveSourceTrafficData', [], body)
|
|
605
|
+
if res == '':
|
|
606
|
+
raise Exception("empty response")
|
|
607
|
+
res_json = json.loads(res)
|
|
608
|
+
return res_json
|
|
609
|
+
|
|
610
|
+
def describe_live_metric_bandwidth_data(self, body):
|
|
611
|
+
res = self.api_post('DescribeLiveMetricBandwidthData', [], body)
|
|
612
|
+
if res == '':
|
|
613
|
+
raise Exception("empty response")
|
|
614
|
+
res_json = json.loads(res)
|
|
615
|
+
return res_json
|
|
616
|
+
|
|
617
|
+
def describe_live_metric_traffic_data(self, body):
|
|
618
|
+
res = self.api_post('DescribeLiveMetricTrafficData', [], body)
|
|
619
|
+
if res == '':
|
|
620
|
+
raise Exception("empty response")
|
|
621
|
+
res_json = json.loads(res)
|
|
622
|
+
return res_json
|
|
623
|
+
|
|
624
|
+
def describe_live_edge_stat_data(self, body):
|
|
625
|
+
res = self.api_post('DescribeLiveEdgeStatData', [], body)
|
|
626
|
+
if res == '':
|
|
627
|
+
raise Exception("empty response")
|
|
628
|
+
res_json = json.loads(res)
|
|
629
|
+
return res_json
|
|
630
|
+
|
|
631
|
+
def describe_live_isp_data(self, body):
|
|
632
|
+
res = self.api_post('DescribeLiveISPData', [], body)
|
|
633
|
+
if res == '':
|
|
634
|
+
raise Exception("empty response")
|
|
635
|
+
res_json = json.loads(res)
|
|
636
|
+
return res_json
|
|
637
|
+
|
|
638
|
+
def describe_live_p95_peak_bandwidth_data(self, body):
|
|
639
|
+
res = self.api_post('DescribeLiveP95PeakBandwidthData', [], body)
|
|
640
|
+
if res == '':
|
|
641
|
+
raise Exception("empty response")
|
|
642
|
+
res_json = json.loads(res)
|
|
643
|
+
return res_json
|
|
644
|
+
|
|
645
|
+
def describe_live_asr_duration_data(self, body):
|
|
646
|
+
res = self.api_post('DescribeLiveASRDurationData', [], body)
|
|
647
|
+
if res == '':
|
|
648
|
+
raise Exception("empty response")
|
|
649
|
+
res_json = json.loads(res)
|
|
650
|
+
return res_json
|
|
651
|
+
|
|
652
|
+
def describe_live_pull_to_push_bandwidth_data(self, body):
|
|
653
|
+
res = self.api_post('DescribeLivePullToPushBandwidthData', [], body)
|
|
654
|
+
if res == '':
|
|
655
|
+
raise Exception("empty response")
|
|
656
|
+
res_json = json.loads(res)
|
|
657
|
+
return res_json
|
|
658
|
+
|
|
659
|
+
def describe_live_pull_to_push_data(self, body):
|
|
660
|
+
res = self.api_post('DescribeLivePullToPushData', [], body)
|
|
661
|
+
if res == '':
|
|
662
|
+
raise Exception("empty response")
|
|
663
|
+
res_json = json.loads(res)
|
|
664
|
+
return res_json
|
|
665
|
+
|
|
666
|
+
def describe_live_bandwidth_data(self, body):
|
|
667
|
+
res = self.api_post('DescribeLiveBandwidthData', [], body)
|
|
668
|
+
if res == '':
|
|
669
|
+
raise Exception("empty response")
|
|
670
|
+
res_json = json.loads(res)
|
|
671
|
+
return res_json
|
|
672
|
+
|
|
673
|
+
def describe_live_record_data(self, body):
|
|
674
|
+
res = self.api_post('DescribeLiveRecordData', [], body)
|
|
675
|
+
if res == '':
|
|
676
|
+
raise Exception("empty response")
|
|
677
|
+
res_json = json.loads(res)
|
|
678
|
+
return res_json
|
|
679
|
+
|
|
680
|
+
def describe_live_snapshot_data(self, body):
|
|
681
|
+
res = self.api_post('DescribeLiveSnapshotData', [], body)
|
|
682
|
+
if res == '':
|
|
683
|
+
raise Exception("empty response")
|
|
684
|
+
res_json = json.loads(res)
|
|
685
|
+
return res_json
|
|
686
|
+
|
|
687
|
+
def describe_live_traffic_data(self, body):
|
|
688
|
+
res = self.api_post('DescribeLiveTrafficData', [], body)
|
|
689
|
+
if res == '':
|
|
690
|
+
raise Exception("empty response")
|
|
691
|
+
res_json = json.loads(res)
|
|
692
|
+
return res_json
|
|
693
|
+
|
|
694
|
+
def describe_live_transcode_data(self, body):
|
|
695
|
+
res = self.api_post('DescribeLiveTranscodeData', [], body)
|
|
696
|
+
if res == '':
|
|
697
|
+
raise Exception("empty response")
|
|
698
|
+
res_json = json.loads(res)
|
|
699
|
+
return res_json
|
|
700
|
+
|
|
701
|
+
def describe_live_storage_space_data(self, body):
|
|
702
|
+
res = self.api_post('DescribeLiveStorageSpaceData', [], body)
|
|
703
|
+
if res == '':
|
|
704
|
+
raise Exception("empty response")
|
|
705
|
+
res_json = json.loads(res)
|
|
706
|
+
return res_json
|
|
707
|
+
|
|
708
|
+
def describe_live_log_data(self, body):
|
|
709
|
+
res = self.api_post('DescribeLiveLogData', [], body)
|
|
710
|
+
if res == '':
|
|
711
|
+
raise Exception("empty response")
|
|
712
|
+
res_json = json.loads(res)
|
|
713
|
+
return res_json
|
|
714
|
+
|
|
715
|
+
def delete_referer(self, body):
|
|
716
|
+
res = self.api_post('DeleteReferer', [], body)
|
|
717
|
+
if res == '':
|
|
718
|
+
raise Exception("empty response")
|
|
719
|
+
res_json = json.loads(res)
|
|
720
|
+
return res_json
|
|
721
|
+
|
|
722
|
+
def describe_referer(self, body):
|
|
723
|
+
res = self.api_post('DescribeReferer', [], body)
|
|
724
|
+
if res == '':
|
|
725
|
+
raise Exception("empty response")
|
|
726
|
+
res_json = json.loads(res)
|
|
727
|
+
return res_json
|
|
728
|
+
|
|
729
|
+
def describe_auth(self, body):
|
|
730
|
+
res = self.api_post('DescribeAuth', [], body)
|
|
731
|
+
if res == '':
|
|
732
|
+
raise Exception("empty response")
|
|
733
|
+
res_json = json.loads(res)
|
|
734
|
+
return res_json
|
|
735
|
+
|
|
736
|
+
def update_referer(self, body):
|
|
737
|
+
res = self.api_post('UpdateReferer', [], body)
|
|
738
|
+
if res == '':
|
|
739
|
+
raise Exception("empty response")
|
|
740
|
+
res_json = json.loads(res)
|
|
741
|
+
return res_json
|
|
742
|
+
|
|
743
|
+
def update_auth_key(self, body):
|
|
744
|
+
res = self.api_post('UpdateAuthKey', [], body)
|
|
745
|
+
if res == '':
|
|
746
|
+
raise Exception("empty response")
|
|
747
|
+
res_json = json.loads(res)
|
|
748
|
+
return res_json
|
|
749
|
+
|
|
750
|
+
def delete_hls_config(self, body):
|
|
751
|
+
res = self.api_post('DeleteHLSConfig', [], body)
|
|
752
|
+
if res == '':
|
|
753
|
+
raise Exception("empty response")
|
|
754
|
+
res_json = json.loads(res)
|
|
755
|
+
return res_json
|
|
756
|
+
|
|
757
|
+
def update_hls_config(self, body):
|
|
758
|
+
res = self.api_post('UpdateHLSConfig', [], body)
|
|
759
|
+
if res == '':
|
|
760
|
+
raise Exception("empty response")
|
|
761
|
+
res_json = json.loads(res)
|
|
762
|
+
return res_json
|
|
763
|
+
|
|
764
|
+
def describe_hls_config(self, body):
|
|
765
|
+
res = self.api_post('DescribeHLSConfig', [], body)
|
|
766
|
+
if res == '':
|
|
767
|
+
raise Exception("empty response")
|
|
768
|
+
res_json = json.loads(res)
|
|
769
|
+
return res_json
|
|
770
|
+
|
|
771
|
+
def delete_http_header_config(self, body):
|
|
772
|
+
res = self.api_post('DeleteHTTPHeaderConfig', [], body)
|
|
773
|
+
if res == '':
|
|
774
|
+
raise Exception("empty response")
|
|
775
|
+
res_json = json.loads(res)
|
|
776
|
+
return res_json
|
|
777
|
+
|
|
778
|
+
def enable_http_header_config(self, body):
|
|
779
|
+
res = self.api_post('EnableHTTPHeaderConfig', [], body)
|
|
780
|
+
if res == '':
|
|
781
|
+
raise Exception("empty response")
|
|
782
|
+
res_json = json.loads(res)
|
|
783
|
+
return res_json
|
|
784
|
+
|
|
785
|
+
def describe_http_header_config(self, body):
|
|
786
|
+
res = self.api_post('DescribeHTTPHeaderConfig', [], body)
|
|
787
|
+
if res == '':
|
|
788
|
+
raise Exception("empty response")
|
|
789
|
+
res_json = json.loads(res)
|
|
790
|
+
return res_json
|
|
791
|
+
|
|
792
|
+
def update_http_header_config(self, body):
|
|
793
|
+
res = self.api_post('UpdateHTTPHeaderConfig', [], body)
|
|
794
|
+
if res == '':
|
|
795
|
+
raise Exception("empty response")
|
|
796
|
+
res_json = json.loads(res)
|
|
797
|
+
return res_json
|
|
798
|
+
|
|
799
|
+
def update_encrypt_drm(self, body):
|
|
800
|
+
res = self.api_post('UpdateEncryptDRM', [], body)
|
|
801
|
+
if res == '':
|
|
802
|
+
raise Exception("empty response")
|
|
803
|
+
res_json = json.loads(res)
|
|
804
|
+
return res_json
|
|
805
|
+
|
|
806
|
+
def update_encrypt_hls(self, body):
|
|
807
|
+
res = self.api_post('UpdateEncryptHLS', [], body)
|
|
808
|
+
if res == '':
|
|
809
|
+
raise Exception("empty response")
|
|
810
|
+
res_json = json.loads(res)
|
|
811
|
+
return res_json
|
|
812
|
+
|
|
813
|
+
def get_hls_encrypt_data_key(self, query):
|
|
814
|
+
res = self.api_get('GetHLSEncryptDataKey', query)
|
|
815
|
+
if res == '':
|
|
816
|
+
raise Exception("empty response")
|
|
817
|
+
res_json = json.loads(res)
|
|
818
|
+
return res_json
|
|
819
|
+
|
|
820
|
+
def describe_encrypt_hls(self, body):
|
|
821
|
+
res = self.api_post('DescribeEncryptHLS', [], body)
|
|
822
|
+
if res == '':
|
|
823
|
+
raise Exception("empty response")
|
|
824
|
+
res_json = json.loads(res)
|
|
825
|
+
return res_json
|
|
826
|
+
|
|
827
|
+
def describe_license_drm(self, query, body):
|
|
828
|
+
res = self.api_post('DescribeLicenseDRM', query, body)
|
|
829
|
+
if res == '':
|
|
830
|
+
raise Exception("empty response")
|
|
831
|
+
res_json = json.loads(res)
|
|
832
|
+
return res_json
|
|
833
|
+
|
|
834
|
+
def describe_cert_drm(self, query):
|
|
835
|
+
res = self.api_get('DescribeCertDRM', query)
|
|
836
|
+
if res == '':
|
|
837
|
+
raise Exception("empty response")
|
|
838
|
+
res_json = json.loads(res)
|
|
839
|
+
return res_json
|
|
840
|
+
|
|
841
|
+
def describe_encrypt_drm(self, body):
|
|
842
|
+
res = self.api_post('DescribeEncryptDRM', [], body)
|
|
843
|
+
if res == '':
|
|
844
|
+
raise Exception("empty response")
|
|
845
|
+
res_json = json.loads(res)
|
|
846
|
+
return res_json
|
|
847
|
+
|
|
848
|
+
def bind_encrypt_drm(self, body):
|
|
849
|
+
res = self.api_post('BindEncryptDRM', [], body)
|
|
850
|
+
if res == '':
|
|
851
|
+
raise Exception("empty response")
|
|
852
|
+
res_json = json.loads(res)
|
|
853
|
+
return res_json
|
|
854
|
+
|
|
855
|
+
def un_bind_encrypt_drm(self, body):
|
|
856
|
+
res = self.api_post('UnBindEncryptDRM', [], body)
|
|
857
|
+
if res == '':
|
|
858
|
+
raise Exception("empty response")
|
|
859
|
+
res_json = json.loads(res)
|
|
860
|
+
return res_json
|
|
861
|
+
|
|
862
|
+
def list_bind_encrypt_drm(self, body):
|
|
863
|
+
res = self.api_post('ListBindEncryptDRM', [], body)
|
|
864
|
+
if res == '':
|
|
865
|
+
raise Exception("empty response")
|
|
866
|
+
res_json = json.loads(res)
|
|
867
|
+
return res_json
|
|
868
|
+
|
|
869
|
+
def create_transcode_preset_batch(self, body):
|
|
870
|
+
res = self.api_post('CreateTranscodePresetBatch', [], body)
|
|
871
|
+
if res == '':
|
|
872
|
+
raise Exception("empty response")
|
|
873
|
+
res_json = json.loads(res)
|
|
874
|
+
return res_json
|
|
875
|
+
|
|
876
|
+
def delete_transcode_preset_batch(self, body):
|
|
877
|
+
res = self.api_post('DeleteTranscodePresetBatch', [], body)
|
|
878
|
+
if res == '':
|
|
879
|
+
raise Exception("empty response")
|
|
880
|
+
res_json = json.loads(res)
|
|
881
|
+
return res_json
|
|
882
|
+
|
|
883
|
+
def delete_ip_access_rule(self, body):
|
|
884
|
+
res = self.api_post('DeleteIPAccessRule', [], body)
|
|
885
|
+
if res == '':
|
|
886
|
+
raise Exception("empty response")
|
|
887
|
+
res_json = json.loads(res)
|
|
888
|
+
return res_json
|
|
889
|
+
|
|
890
|
+
def delete_region_access_rule(self, body):
|
|
891
|
+
res = self.api_post('DeleteRegionAccessRule', [], body)
|
|
892
|
+
if res == '':
|
|
893
|
+
raise Exception("empty response")
|
|
894
|
+
res_json = json.loads(res)
|
|
895
|
+
return res_json
|
|
896
|
+
|
|
897
|
+
def update_ip_access_rule(self, body):
|
|
898
|
+
res = self.api_post('UpdateIPAccessRule', [], body)
|
|
899
|
+
if res == '':
|
|
900
|
+
raise Exception("empty response")
|
|
901
|
+
res_json = json.loads(res)
|
|
902
|
+
return res_json
|
|
903
|
+
|
|
904
|
+
def update_region_access_rule(self, body):
|
|
905
|
+
res = self.api_post('UpdateRegionAccessRule', [], body)
|
|
906
|
+
if res == '':
|
|
907
|
+
raise Exception("empty response")
|
|
908
|
+
res_json = json.loads(res)
|
|
909
|
+
return res_json
|
|
910
|
+
|
|
911
|
+
def describe_ip_access_rule(self, body):
|
|
912
|
+
res = self.api_post('DescribeIPAccessRule', [], body)
|
|
913
|
+
if res == '':
|
|
914
|
+
raise Exception("empty response")
|
|
915
|
+
res_json = json.loads(res)
|
|
916
|
+
return res_json
|
|
917
|
+
|
|
918
|
+
def describe_region_access_rule(self, body):
|
|
919
|
+
res = self.api_post('DescribeRegionAccessRule', [], body)
|
|
920
|
+
if res == '':
|
|
921
|
+
raise Exception("empty response")
|
|
922
|
+
res_json = json.loads(res)
|
|
923
|
+
return res_json
|
|
924
|
+
|
|
925
|
+
def delete_cmaf_config(self, body):
|
|
926
|
+
res = self.api_post('DeleteCMAFConfig', [], body)
|
|
927
|
+
if res == '':
|
|
928
|
+
raise Exception("empty response")
|
|
929
|
+
res_json = json.loads(res)
|
|
930
|
+
return res_json
|
|
931
|
+
|
|
932
|
+
def update_cmaf_config(self, body):
|
|
933
|
+
res = self.api_post('UpdateCMAFConfig', [], body)
|
|
934
|
+
if res == '':
|
|
935
|
+
raise Exception("empty response")
|
|
936
|
+
res_json = json.loads(res)
|
|
937
|
+
return res_json
|
|
938
|
+
|
|
939
|
+
def describe_cmaf_config(self, body):
|
|
940
|
+
res = self.api_post('DescribeCMAFConfig', [], body)
|
|
941
|
+
if res == '':
|
|
942
|
+
raise Exception("empty response")
|
|
943
|
+
res_json = json.loads(res)
|
|
944
|
+
return res_json
|
|
945
|
+
|
|
946
|
+
def delete_latency_config(self, body):
|
|
947
|
+
res = self.api_post('DeleteLatencyConfig', [], body)
|
|
948
|
+
if res == '':
|
|
949
|
+
raise Exception("empty response")
|
|
950
|
+
res_json = json.loads(res)
|
|
951
|
+
return res_json
|
|
952
|
+
|
|
953
|
+
def describe_latency_config(self, body):
|
|
954
|
+
res = self.api_post('DescribeLatencyConfig', [], body)
|
|
955
|
+
if res == '':
|
|
956
|
+
raise Exception("empty response")
|
|
957
|
+
res_json = json.loads(res)
|
|
958
|
+
return res_json
|
|
959
|
+
|
|
960
|
+
def update_latency_config(self, body):
|
|
961
|
+
res = self.api_post('UpdateLatencyConfig', [], body)
|
|
962
|
+
if res == '':
|
|
963
|
+
raise Exception("empty response")
|
|
964
|
+
res_json = json.loads(res)
|
|
965
|
+
return res_json
|
|
966
|
+
|
|
967
|
+
def create_cloud_mix_task(self, body):
|
|
968
|
+
res = self.api_post('CreateCloudMixTask', [], body)
|
|
969
|
+
if res == '':
|
|
970
|
+
raise Exception("empty response")
|
|
971
|
+
res_json = json.loads(res)
|
|
972
|
+
return res_json
|
|
973
|
+
|
|
974
|
+
def update_cloud_mix_task(self, body):
|
|
975
|
+
res = self.api_post('UpdateCloudMixTask', [], body)
|
|
976
|
+
if res == '':
|
|
977
|
+
raise Exception("empty response")
|
|
978
|
+
res_json = json.loads(res)
|
|
979
|
+
return res_json
|
|
980
|
+
|
|
981
|
+
def get_cloud_mix_task_detail(self, body):
|
|
982
|
+
res = self.api_post('GetCloudMixTaskDetail', [], body)
|
|
983
|
+
if res == '':
|
|
984
|
+
raise Exception("empty response")
|
|
985
|
+
res_json = json.loads(res)
|
|
986
|
+
return res_json
|
|
987
|
+
|
|
988
|
+
def list_cloud_mix_task(self, body):
|
|
989
|
+
res = self.api_post('ListCloudMixTask', [], body)
|
|
990
|
+
if res == '':
|
|
991
|
+
raise Exception("empty response")
|
|
992
|
+
res_json = json.loads(res)
|
|
993
|
+
return res_json
|
|
994
|
+
|
|
995
|
+
def delete_cloud_mix_task(self, body):
|
|
996
|
+
res = self.api_post('DeleteCloudMixTask', [], body)
|
|
997
|
+
if res == '':
|
|
998
|
+
raise Exception("empty response")
|
|
999
|
+
res_json = json.loads(res)
|
|
1000
|
+
return res_json
|
|
1001
|
+
|
|
1002
|
+
def delete_cluster_rate_limit(self, body):
|
|
1003
|
+
res = self.api_post('DeleteClusterRateLimit', [], body)
|
|
1004
|
+
if res == '':
|
|
1005
|
+
raise Exception("empty response")
|
|
1006
|
+
res_json = json.loads(res)
|
|
1007
|
+
return res_json
|
|
1008
|
+
|
|
1009
|
+
def describe_cluster_rate_limit(self, body):
|
|
1010
|
+
res = self.api_post('DescribeClusterRateLimit', [], body)
|
|
1011
|
+
if res == '':
|
|
1012
|
+
raise Exception("empty response")
|
|
1013
|
+
res_json = json.loads(res)
|
|
1014
|
+
return res_json
|
|
1015
|
+
|
|
1016
|
+
def update_cluster_rate_limit(self, body):
|
|
1017
|
+
res = self.api_post('UpdateClusterRateLimit', [], body)
|
|
1018
|
+
if res == '':
|
|
1019
|
+
raise Exception("empty response")
|
|
1020
|
+
res_json = json.loads(res)
|
|
1021
|
+
return res_json
|
|
1022
|
+
|
|
1023
|
+
def delete_user_agent_access_rule(self, body):
|
|
1024
|
+
res = self.api_post('DeleteUserAgentAccessRule', [], body)
|
|
1025
|
+
if res == '':
|
|
1026
|
+
raise Exception("empty response")
|
|
1027
|
+
res_json = json.loads(res)
|
|
1028
|
+
return res_json
|
|
1029
|
+
|
|
1030
|
+
def describe_user_agent_access_rule(self, body):
|
|
1031
|
+
res = self.api_post('DescribeUserAgentAccessRule', [], body)
|
|
1032
|
+
if res == '':
|
|
1033
|
+
raise Exception("empty response")
|
|
1034
|
+
res_json = json.loads(res)
|
|
1035
|
+
return res_json
|
|
1036
|
+
|
|
1037
|
+
def update_user_agent_access_rule(self, body):
|
|
1038
|
+
res = self.api_post('UpdateUserAgentAccessRule', [], body)
|
|
1039
|
+
if res == '':
|
|
1040
|
+
raise Exception("empty response")
|
|
1041
|
+
res_json = json.loads(res)
|
|
1042
|
+
return res_json
|
|
1043
|
+
|
|
1044
|
+
def delete_format_access_rule(self, body):
|
|
1045
|
+
res = self.api_post('DeleteFormatAccessRule', [], body)
|
|
1046
|
+
if res == '':
|
|
1047
|
+
raise Exception("empty response")
|
|
1048
|
+
res_json = json.loads(res)
|
|
1049
|
+
return res_json
|
|
1050
|
+
|
|
1051
|
+
def describe_format_access_rule(self, body):
|
|
1052
|
+
res = self.api_post('DescribeFormatAccessRule', [], body)
|
|
1053
|
+
if res == '':
|
|
1054
|
+
raise Exception("empty response")
|
|
1055
|
+
res_json = json.loads(res)
|
|
1056
|
+
return res_json
|
|
1057
|
+
|
|
1058
|
+
def update_format_access_rule(self, body):
|
|
1059
|
+
res = self.api_post('UpdateFormatAccessRule', [], body)
|
|
1060
|
+
if res == '':
|
|
1061
|
+
raise Exception("empty response")
|
|
1062
|
+
res_json = json.loads(res)
|
|
1063
|
+
return res_json
|
|
1064
|
+
|
|
1065
|
+
def delete_subtitle_transcode_preset(self, body):
|
|
1066
|
+
res = self.api_post('DeleteSubtitleTranscodePreset', [], body)
|
|
1067
|
+
if res == '':
|
|
1068
|
+
raise Exception("empty response")
|
|
1069
|
+
res_json = json.loads(res)
|
|
1070
|
+
return res_json
|
|
1071
|
+
|
|
1072
|
+
def update_subtitle_transcode_preset(self, body):
|
|
1073
|
+
res = self.api_post('UpdateSubtitleTranscodePreset', [], body)
|
|
1074
|
+
if res == '':
|
|
1075
|
+
raise Exception("empty response")
|
|
1076
|
+
res_json = json.loads(res)
|
|
1077
|
+
return res_json
|
|
1078
|
+
|
|
1079
|
+
def list_vhost_subtitle_transcode_preset(self, body):
|
|
1080
|
+
res = self.api_post('ListVhostSubtitleTranscodePreset', [], body)
|
|
1081
|
+
if res == '':
|
|
1082
|
+
raise Exception("empty response")
|
|
1083
|
+
res_json = json.loads(res)
|
|
1084
|
+
return res_json
|
|
1085
|
+
|
|
1086
|
+
def create_subtitle_transcode_preset(self, body):
|
|
1087
|
+
res = self.api_post('CreateSubtitleTranscodePreset', [], body)
|
|
1088
|
+
if res == '':
|
|
1089
|
+
raise Exception("empty response")
|
|
1090
|
+
res_json = json.loads(res)
|
|
1091
|
+
return res_json
|
|
1092
|
+
|
|
1093
|
+
def create_live_pad_preset(self, body):
|
|
1094
|
+
res = self.api_post('CreateLivePadPreset', [], body)
|
|
1095
|
+
if res == '':
|
|
1096
|
+
raise Exception("empty response")
|
|
1097
|
+
res_json = json.loads(res)
|
|
1098
|
+
return res_json
|
|
1099
|
+
|
|
1100
|
+
def delete_live_pad_preset(self, body):
|
|
1101
|
+
res = self.api_post('DeleteLivePadPreset', [], body)
|
|
1102
|
+
if res == '':
|
|
1103
|
+
raise Exception("empty response")
|
|
1104
|
+
res_json = json.loads(res)
|
|
1105
|
+
return res_json
|
|
1106
|
+
|
|
1107
|
+
def stop_live_pad_stream(self, body):
|
|
1108
|
+
res = self.api_post('StopLivePadStream', [], body)
|
|
1109
|
+
if res == '':
|
|
1110
|
+
raise Exception("empty response")
|
|
1111
|
+
res_json = json.loads(res)
|
|
1112
|
+
return res_json
|
|
1113
|
+
|
|
1114
|
+
def update_live_pad_preset(self, body):
|
|
1115
|
+
res = self.api_post('UpdateLivePadPreset', [], body)
|
|
1116
|
+
if res == '':
|
|
1117
|
+
raise Exception("empty response")
|
|
1118
|
+
res_json = json.loads(res)
|
|
1119
|
+
return res_json
|
|
1120
|
+
|
|
1121
|
+
def describe_live_pad_stream_list(self, body):
|
|
1122
|
+
res = self.api_post('DescribeLivePadStreamList', [], body)
|
|
1123
|
+
if res == '':
|
|
1124
|
+
raise Exception("empty response")
|
|
1125
|
+
res_json = json.loads(res)
|
|
1126
|
+
return res_json
|
|
1127
|
+
|
|
1128
|
+
def describe_live_pad_preset_detail(self, body):
|
|
1129
|
+
res = self.api_post('DescribeLivePadPresetDetail', [], body)
|
|
1130
|
+
if res == '':
|
|
1131
|
+
raise Exception("empty response")
|
|
1132
|
+
res_json = json.loads(res)
|
|
1133
|
+
return res_json
|