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,1203 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
import json
|
|
3
|
+
import threading
|
|
4
|
+
|
|
5
|
+
from byteplus_sdk.ApiInfo import ApiInfo
|
|
6
|
+
from byteplus_sdk.Credentials import Credentials
|
|
7
|
+
from byteplus_sdk.base.Service import Service
|
|
8
|
+
from byteplus_sdk.ServiceInfo import ServiceInfo
|
|
9
|
+
|
|
10
|
+
GET = "GET"
|
|
11
|
+
POST = "POST"
|
|
12
|
+
SERVICE_VERSION = "2021-03-01"
|
|
13
|
+
|
|
14
|
+
service_info_map = {
|
|
15
|
+
"ap-singapore-1": ServiceInfo("open.byteplusapi.com", {'accept': 'application/json', },
|
|
16
|
+
Credentials('', '', "CDN", "ap-singapore-1"), 60 * 1, 60 * 5, "https"),
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
api_info = {
|
|
20
|
+
"AddCdnDomain": ApiInfo("POST", "/", {
|
|
21
|
+
"Action": "AddCdnDomain", "Version": SERVICE_VERSION}, {}, {}),
|
|
22
|
+
|
|
23
|
+
"StartCdnDomain": ApiInfo("POST", "/", {
|
|
24
|
+
"Action": "StartCdnDomain", "Version": SERVICE_VERSION}, {}, {}),
|
|
25
|
+
|
|
26
|
+
"StopCdnDomain": ApiInfo("POST", "/", {
|
|
27
|
+
"Action": "StopCdnDomain", "Version": SERVICE_VERSION}, {}, {}),
|
|
28
|
+
|
|
29
|
+
"DeleteCdnDomain": ApiInfo("POST", "/", {
|
|
30
|
+
"Action": "DeleteCdnDomain", "Version": SERVICE_VERSION}, {}, {}),
|
|
31
|
+
|
|
32
|
+
"ListCdnDomains": ApiInfo("POST", "/", {
|
|
33
|
+
"Action": "ListCdnDomains", "Version": SERVICE_VERSION}, {}, {}),
|
|
34
|
+
|
|
35
|
+
"DescribeCdnConfig": ApiInfo("POST", "/", {
|
|
36
|
+
"Action": "DescribeCdnConfig", "Version": SERVICE_VERSION}, {}, {}),
|
|
37
|
+
|
|
38
|
+
"UpdateCdnConfig": ApiInfo("POST", "/", {
|
|
39
|
+
"Action": "UpdateCdnConfig", "Version": SERVICE_VERSION}, {}, {}),
|
|
40
|
+
|
|
41
|
+
"DescribeCdnData": ApiInfo("POST", "/", {
|
|
42
|
+
"Action": "DescribeCdnData", "Version": SERVICE_VERSION}, {}, {}),
|
|
43
|
+
|
|
44
|
+
"DescribeEdgeNrtDataSummary": ApiInfo("POST", "/", {
|
|
45
|
+
"Action": "DescribeEdgeNrtDataSummary", "Version": SERVICE_VERSION}, {}, {}),
|
|
46
|
+
|
|
47
|
+
"DescribeCdnOriginData": ApiInfo("POST", "/", {
|
|
48
|
+
"Action": "DescribeCdnOriginData", "Version": SERVICE_VERSION}, {}, {}),
|
|
49
|
+
|
|
50
|
+
"DescribeOriginNrtDataSummary": ApiInfo("POST", "/", {
|
|
51
|
+
"Action": "DescribeOriginNrtDataSummary", "Version": SERVICE_VERSION}, {}, {}),
|
|
52
|
+
|
|
53
|
+
"DescribeCdnDataDetail": ApiInfo("POST", "/", {
|
|
54
|
+
"Action": "DescribeCdnDataDetail", "Version": SERVICE_VERSION}, {}, {}),
|
|
55
|
+
|
|
56
|
+
"DescribeDistrictIspData": ApiInfo("POST", "/", {
|
|
57
|
+
"Action": "DescribeDistrictIspData", "Version": SERVICE_VERSION}, {}, {}),
|
|
58
|
+
|
|
59
|
+
"DescribeEdgeStatisticalData": ApiInfo("POST", "/", {
|
|
60
|
+
"Action": "DescribeEdgeStatisticalData", "Version": SERVICE_VERSION}, {}, {}),
|
|
61
|
+
|
|
62
|
+
"DescribeEdgeTopNrtData": ApiInfo("POST", "/", {
|
|
63
|
+
"Action": "DescribeEdgeTopNrtData", "Version": SERVICE_VERSION}, {}, {}),
|
|
64
|
+
|
|
65
|
+
"DescribeOriginTopNrtData": ApiInfo("POST", "/", {
|
|
66
|
+
"Action": "DescribeOriginTopNrtData", "Version": SERVICE_VERSION}, {}, {}),
|
|
67
|
+
|
|
68
|
+
"DescribeEdgeTopStatusCode": ApiInfo("POST", "/", {
|
|
69
|
+
"Action": "DescribeEdgeTopStatusCode", "Version": SERVICE_VERSION}, {}, {}),
|
|
70
|
+
|
|
71
|
+
"DescribeOriginTopStatusCode": ApiInfo("POST", "/", {
|
|
72
|
+
"Action": "DescribeOriginTopStatusCode", "Version": SERVICE_VERSION}, {}, {}),
|
|
73
|
+
|
|
74
|
+
"DescribeEdgeTopStatisticalData": ApiInfo("POST", "/", {
|
|
75
|
+
"Action": "DescribeEdgeTopStatisticalData", "Version": SERVICE_VERSION}, {}, {}),
|
|
76
|
+
|
|
77
|
+
"DescribeCdnRegionAndIsp": ApiInfo("POST", "/", {
|
|
78
|
+
"Action": "DescribeCdnRegionAndIsp", "Version": SERVICE_VERSION}, {}, {}),
|
|
79
|
+
|
|
80
|
+
"DescribeCdnService": ApiInfo("POST", "/", {
|
|
81
|
+
"Action": "DescribeCdnService", "Version": SERVICE_VERSION}, {}, {}),
|
|
82
|
+
|
|
83
|
+
"DescribeAccountingData": ApiInfo("POST", "/", {
|
|
84
|
+
"Action": "DescribeAccountingData", "Version": SERVICE_VERSION}, {}, {}),
|
|
85
|
+
|
|
86
|
+
"SubmitRefreshTask": ApiInfo("POST", "/", {
|
|
87
|
+
"Action": "SubmitRefreshTask", "Version": SERVICE_VERSION}, {}, {}),
|
|
88
|
+
|
|
89
|
+
"SubmitPreloadTask": ApiInfo("POST", "/", {
|
|
90
|
+
"Action": "SubmitPreloadTask", "Version": SERVICE_VERSION}, {}, {}),
|
|
91
|
+
|
|
92
|
+
"DescribeContentTasks": ApiInfo("POST", "/", {
|
|
93
|
+
"Action": "DescribeContentTasks", "Version": SERVICE_VERSION}, {}, {}),
|
|
94
|
+
|
|
95
|
+
"DescribeContentQuota": ApiInfo("POST", "/", {
|
|
96
|
+
"Action": "DescribeContentQuota", "Version": SERVICE_VERSION}, {}, {}),
|
|
97
|
+
|
|
98
|
+
"SubmitBlockTask": ApiInfo("POST", "/", {
|
|
99
|
+
"Action": "SubmitBlockTask", "Version": SERVICE_VERSION}, {}, {}),
|
|
100
|
+
|
|
101
|
+
"SubmitUnblockTask": ApiInfo("POST", "/", {
|
|
102
|
+
"Action": "SubmitUnblockTask", "Version": SERVICE_VERSION}, {}, {}),
|
|
103
|
+
|
|
104
|
+
"DescribeContentBlockTasks": ApiInfo("POST", "/", {
|
|
105
|
+
"Action": "DescribeContentBlockTasks", "Version": SERVICE_VERSION}, {}, {}),
|
|
106
|
+
|
|
107
|
+
"DescribeCdnAccessLog": ApiInfo("POST", "/", {
|
|
108
|
+
"Action": "DescribeCdnAccessLog", "Version": SERVICE_VERSION}, {}, {}),
|
|
109
|
+
|
|
110
|
+
"DescribeIPInfo": ApiInfo("POST", "/", {
|
|
111
|
+
"Action": "DescribeIPInfo", "Version": SERVICE_VERSION}, {}, {}),
|
|
112
|
+
|
|
113
|
+
"DescribeIPListInfo": ApiInfo("POST", "/", {
|
|
114
|
+
"Action": "DescribeIPListInfo", "Version": SERVICE_VERSION}, {}, {}),
|
|
115
|
+
|
|
116
|
+
"DescribeCdnUpperIp": ApiInfo("POST", "/", {
|
|
117
|
+
"Action": "DescribeCdnUpperIp", "Version": SERVICE_VERSION}, {}, {}),
|
|
118
|
+
|
|
119
|
+
"ListResourceTags": ApiInfo("POST", "/", {
|
|
120
|
+
"Action": "ListResourceTags", "Version": SERVICE_VERSION}, {}, {}),
|
|
121
|
+
|
|
122
|
+
"AddCdnCertificate": ApiInfo("POST", "/", {
|
|
123
|
+
"Action": "AddCdnCertificate", "Version": SERVICE_VERSION}, {}, {}),
|
|
124
|
+
|
|
125
|
+
"ListCertInfo": ApiInfo("POST", "/", {
|
|
126
|
+
"Action": "ListCertInfo", "Version": SERVICE_VERSION}, {}, {}),
|
|
127
|
+
|
|
128
|
+
"ListCdnCertInfo": ApiInfo("POST", "/", {
|
|
129
|
+
"Action": "ListCdnCertInfo", "Version": SERVICE_VERSION}, {}, {}),
|
|
130
|
+
|
|
131
|
+
"DescribeCertConfig": ApiInfo("POST", "/", {
|
|
132
|
+
"Action": "DescribeCertConfig", "Version": SERVICE_VERSION}, {}, {}),
|
|
133
|
+
|
|
134
|
+
"BatchDeployCert": ApiInfo("POST", "/", {
|
|
135
|
+
"Action": "BatchDeployCert", "Version": SERVICE_VERSION}, {}, {}),
|
|
136
|
+
|
|
137
|
+
"DeleteCdnCertificate": ApiInfo("POST", "/", {
|
|
138
|
+
"Action": "DeleteCdnCertificate", "Version": SERVICE_VERSION}, {}, {}),
|
|
139
|
+
|
|
140
|
+
"DescribeAccountingSummary": ApiInfo("POST", "/", {
|
|
141
|
+
"Action": "DescribeAccountingSummary", "Version": SERVICE_VERSION}, {}, {}),
|
|
142
|
+
|
|
143
|
+
"DescribeTemplates": ApiInfo("POST", "/", {
|
|
144
|
+
"Action": "DescribeTemplates", "Version": SERVICE_VERSION}, {}, {}),
|
|
145
|
+
|
|
146
|
+
"DescribeServiceTemplate": ApiInfo("POST", "/", {
|
|
147
|
+
"Action": "DescribeServiceTemplate", "Version": SERVICE_VERSION}, {}, {}),
|
|
148
|
+
|
|
149
|
+
"DescribeCipherTemplate": ApiInfo("POST", "/", {
|
|
150
|
+
"Action": "DescribeCipherTemplate", "Version": SERVICE_VERSION}, {}, {}),
|
|
151
|
+
|
|
152
|
+
"CreateCipherTemplate": ApiInfo("POST", "/", {
|
|
153
|
+
"Action": "CreateCipherTemplate", "Version": SERVICE_VERSION}, {}, {}),
|
|
154
|
+
|
|
155
|
+
"UpdateServiceTemplate": ApiInfo("POST", "/", {
|
|
156
|
+
"Action": "UpdateServiceTemplate", "Version": SERVICE_VERSION}, {}, {}),
|
|
157
|
+
|
|
158
|
+
"UpdateCipherTemplate": ApiInfo("POST", "/", {
|
|
159
|
+
"Action": "UpdateCipherTemplate", "Version": SERVICE_VERSION}, {}, {}),
|
|
160
|
+
|
|
161
|
+
"DuplicateTemplate": ApiInfo("POST", "/", {
|
|
162
|
+
"Action": "DuplicateTemplate", "Version": SERVICE_VERSION}, {}, {}),
|
|
163
|
+
|
|
164
|
+
"LockTemplate": ApiInfo("POST", "/", {
|
|
165
|
+
"Action": "LockTemplate", "Version": SERVICE_VERSION}, {}, {}),
|
|
166
|
+
|
|
167
|
+
"DeleteTemplate": ApiInfo("POST", "/", {
|
|
168
|
+
"Action": "DeleteTemplate", "Version": SERVICE_VERSION}, {}, {}),
|
|
169
|
+
|
|
170
|
+
"DescribeTemplateDomains": ApiInfo("POST", "/", {
|
|
171
|
+
"Action": "DescribeTemplateDomains", "Version": SERVICE_VERSION}, {}, {}),
|
|
172
|
+
|
|
173
|
+
"AddTemplateDomain": ApiInfo("POST", "/", {
|
|
174
|
+
"Action": "AddTemplateDomain", "Version": SERVICE_VERSION}, {}, {}),
|
|
175
|
+
|
|
176
|
+
"UpdateTemplateDomain": ApiInfo("POST", "/", {
|
|
177
|
+
"Action": "UpdateTemplateDomain", "Version": SERVICE_VERSION}, {}, {}),
|
|
178
|
+
|
|
179
|
+
"CreateServiceTemplate": ApiInfo("POST", "/", {
|
|
180
|
+
"Action": "CreateServiceTemplate", "Version": SERVICE_VERSION}, {}, {}),
|
|
181
|
+
|
|
182
|
+
"CreateTemplateVersion": ApiInfo("POST", "/", {
|
|
183
|
+
"Action": "CreateTemplateVersion", "Version": SERVICE_VERSION}, {}, {}),
|
|
184
|
+
|
|
185
|
+
"DescribeTemplateReleaseVersions": ApiInfo("POST", "/", {
|
|
186
|
+
"Action": "DescribeTemplateReleaseVersions", "Version": SERVICE_VERSION}, {}, {}),
|
|
187
|
+
|
|
188
|
+
"DescribeDomainShared": ApiInfo("POST", "/", {
|
|
189
|
+
"Action": "DescribeDomainShared", "Version": SERVICE_VERSION}, {}, {}),
|
|
190
|
+
|
|
191
|
+
"DescribeCdnIP": ApiInfo("POST", "/", {
|
|
192
|
+
"Action": "DescribeCdnIP", "Version": SERVICE_VERSION}, {}, {}),
|
|
193
|
+
|
|
194
|
+
"DescribeDistrictData": ApiInfo("POST", "/", {
|
|
195
|
+
"Action": "DescribeDistrictData", "Version": SERVICE_VERSION}, {}, {}),
|
|
196
|
+
|
|
197
|
+
"DescribeEdgeData": ApiInfo("POST", "/", {
|
|
198
|
+
"Action": "DescribeEdgeData", "Version": SERVICE_VERSION}, {}, {}),
|
|
199
|
+
|
|
200
|
+
"DescribeDistrictSummary": ApiInfo("POST", "/", {
|
|
201
|
+
"Action": "DescribeDistrictSummary", "Version": SERVICE_VERSION}, {}, {}),
|
|
202
|
+
|
|
203
|
+
"DescribeEdgeSummary": ApiInfo("POST", "/", {
|
|
204
|
+
"Action": "DescribeEdgeSummary", "Version": SERVICE_VERSION}, {}, {}),
|
|
205
|
+
|
|
206
|
+
"DescribeOriginData": ApiInfo("POST", "/", {
|
|
207
|
+
"Action": "DescribeOriginData", "Version": SERVICE_VERSION}, {}, {}),
|
|
208
|
+
|
|
209
|
+
"DescribeOriginSummary": ApiInfo("POST", "/", {
|
|
210
|
+
"Action": "DescribeOriginSummary", "Version": SERVICE_VERSION}, {}, {}),
|
|
211
|
+
|
|
212
|
+
"DescribeUserData": ApiInfo("POST", "/", {
|
|
213
|
+
"Action": "DescribeUserData", "Version": SERVICE_VERSION}, {}, {}),
|
|
214
|
+
|
|
215
|
+
"DescribeDistrictRanking": ApiInfo("POST", "/", {
|
|
216
|
+
"Action": "DescribeDistrictRanking", "Version": SERVICE_VERSION}, {}, {}),
|
|
217
|
+
|
|
218
|
+
"DescribeEdgeRanking": ApiInfo("POST", "/", {
|
|
219
|
+
"Action": "DescribeEdgeRanking", "Version": SERVICE_VERSION}, {}, {}),
|
|
220
|
+
|
|
221
|
+
"DescribeOriginRanking": ApiInfo("POST", "/", {
|
|
222
|
+
"Action": "DescribeOriginRanking", "Version": SERVICE_VERSION}, {}, {}),
|
|
223
|
+
|
|
224
|
+
"DescribeEdgeStatusCodeRanking": ApiInfo("POST", "/", {
|
|
225
|
+
"Action": "DescribeEdgeStatusCodeRanking", "Version": SERVICE_VERSION}, {}, {}),
|
|
226
|
+
|
|
227
|
+
"DescribeOriginStatusCodeRanking": ApiInfo("POST", "/", {
|
|
228
|
+
"Action": "DescribeOriginStatusCodeRanking", "Version": SERVICE_VERSION}, {}, {}),
|
|
229
|
+
|
|
230
|
+
"DescribeStatisticalRanking": ApiInfo("POST", "/", {
|
|
231
|
+
"Action": "DescribeStatisticalRanking", "Version": SERVICE_VERSION}, {}, {}),
|
|
232
|
+
|
|
233
|
+
"BatchUpdateCdnConfig": ApiInfo("POST", "/", {
|
|
234
|
+
"Action": "BatchUpdateCdnConfig", "Version": SERVICE_VERSION}, {}, {}),
|
|
235
|
+
|
|
236
|
+
"AddCertificate": ApiInfo("POST", "/", {
|
|
237
|
+
"Action": "AddCertificate", "Version": SERVICE_VERSION}, {}, {}),
|
|
238
|
+
|
|
239
|
+
"DeleteUsageReport": ApiInfo("POST", "/", {
|
|
240
|
+
"Action": "DeleteUsageReport", "Version": SERVICE_VERSION}, {}, {}),
|
|
241
|
+
|
|
242
|
+
"CreateUsageReport": ApiInfo("POST", "/", {
|
|
243
|
+
"Action": "CreateUsageReport", "Version": SERVICE_VERSION}, {}, {}),
|
|
244
|
+
|
|
245
|
+
"ListUsageReports": ApiInfo("POST", "/", {
|
|
246
|
+
"Action": "ListUsageReports", "Version": SERVICE_VERSION}, {}, {}),
|
|
247
|
+
|
|
248
|
+
"DescribeSharedConfig": ApiInfo("POST", "/", {
|
|
249
|
+
"Action": "DescribeSharedConfig", "Version": SERVICE_VERSION}, {}, {}),
|
|
250
|
+
|
|
251
|
+
"ListSharedConfig": ApiInfo("POST", "/", {
|
|
252
|
+
"Action": "ListSharedConfig", "Version": SERVICE_VERSION}, {}, {}),
|
|
253
|
+
|
|
254
|
+
"DeleteSharedConfig": ApiInfo("POST", "/", {
|
|
255
|
+
"Action": "DeleteSharedConfig", "Version": SERVICE_VERSION}, {}, {}),
|
|
256
|
+
|
|
257
|
+
"UpdateSharedConfig": ApiInfo("POST", "/", {
|
|
258
|
+
"Action": "UpdateSharedConfig", "Version": SERVICE_VERSION}, {}, {}),
|
|
259
|
+
|
|
260
|
+
"AddSharedConfig": ApiInfo("POST", "/", {
|
|
261
|
+
"Action": "AddSharedConfig", "Version": SERVICE_VERSION}, {}, {}),
|
|
262
|
+
|
|
263
|
+
"TagResources": ApiInfo("POST", "/", {
|
|
264
|
+
"Action": "TagResources", "Version": SERVICE_VERSION}, {}, {}),
|
|
265
|
+
|
|
266
|
+
"UntagResources": ApiInfo("POST", "/", {
|
|
267
|
+
"Action": "UntagResources", "Version": SERVICE_VERSION}, {}, {}),
|
|
268
|
+
|
|
269
|
+
"ReleaseTemplate": ApiInfo("POST", "/", {
|
|
270
|
+
"Action": "ReleaseTemplate", "Version": SERVICE_VERSION}, {}, {}),
|
|
271
|
+
|
|
272
|
+
"CreateRuleEngineTemplate": ApiInfo("POST", "/", {
|
|
273
|
+
"Action": "CreateRuleEngineTemplate", "Version": SERVICE_VERSION}, {}, {}),
|
|
274
|
+
|
|
275
|
+
"UpdateRuleEngineTemplate": ApiInfo("POST", "/", {
|
|
276
|
+
"Action": "UpdateRuleEngineTemplate", "Version": SERVICE_VERSION}, {}, {}),
|
|
277
|
+
|
|
278
|
+
"DescribeRuleEngineTemplate": ApiInfo("POST", "/", {
|
|
279
|
+
"Action": "DescribeRuleEngineTemplate", "Version": SERVICE_VERSION}, {}, {}),
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
class CDNService(Service):
|
|
286
|
+
_instance_lock = threading.Lock()
|
|
287
|
+
|
|
288
|
+
def __new__(cls, *args, **kwargs):
|
|
289
|
+
if not hasattr(CDNService, "_instance"):
|
|
290
|
+
with CDNService._instance_lock:
|
|
291
|
+
if not hasattr(CDNService, "_instance"):
|
|
292
|
+
CDNService._instance = object.__new__(cls)
|
|
293
|
+
return CDNService._instance
|
|
294
|
+
|
|
295
|
+
def __init__(self, region="ap-singapore-1"):
|
|
296
|
+
self.service_info = CDNService.get_service_info(region)
|
|
297
|
+
self.api_info = CDNService.get_api_info()
|
|
298
|
+
super(CDNService, self).__init__(self.service_info, self.api_info)
|
|
299
|
+
|
|
300
|
+
@staticmethod
|
|
301
|
+
def get_service_info(region_name):
|
|
302
|
+
service_info = service_info_map.get(region_name, None)
|
|
303
|
+
if not service_info:
|
|
304
|
+
raise Exception('do not support region %s' % region_name)
|
|
305
|
+
return service_info
|
|
306
|
+
|
|
307
|
+
@staticmethod
|
|
308
|
+
def get_api_info():
|
|
309
|
+
return api_info
|
|
310
|
+
|
|
311
|
+
@staticmethod
|
|
312
|
+
def use_post():
|
|
313
|
+
return POST
|
|
314
|
+
|
|
315
|
+
@staticmethod
|
|
316
|
+
def use_get():
|
|
317
|
+
return GET
|
|
318
|
+
|
|
319
|
+
def send_request(self, action, params, method=POST):
|
|
320
|
+
method = str(method).upper()
|
|
321
|
+
if method == 'POST':
|
|
322
|
+
res = self.json(action, [], json.dumps(params))
|
|
323
|
+
elif method == "GET":
|
|
324
|
+
self.get_api_info()[action].method = self.use_get()
|
|
325
|
+
res = self.request(action, params, json.dumps({}))
|
|
326
|
+
self.get_api_info()[action].method = self.use_post()
|
|
327
|
+
else:
|
|
328
|
+
raise Exception("not support method %s" % method)
|
|
329
|
+
return res
|
|
330
|
+
|
|
331
|
+
def add_cdn_domain(self, params=None):
|
|
332
|
+
if params is None:
|
|
333
|
+
params = {}
|
|
334
|
+
action = "AddCdnDomain"
|
|
335
|
+
res = self.json(action, [], params)
|
|
336
|
+
if res == '':
|
|
337
|
+
raise Exception("%s: empty response" % action)
|
|
338
|
+
res_json = json.loads(res)
|
|
339
|
+
return res_json
|
|
340
|
+
|
|
341
|
+
def start_cdn_domain(self, params=None):
|
|
342
|
+
if params is None:
|
|
343
|
+
params = {}
|
|
344
|
+
action = "StartCdnDomain"
|
|
345
|
+
res = self.json(action, [], params)
|
|
346
|
+
if res == '':
|
|
347
|
+
raise Exception("%s: empty response" % action)
|
|
348
|
+
res_json = json.loads(res)
|
|
349
|
+
return res_json
|
|
350
|
+
|
|
351
|
+
def stop_cdn_domain(self, params=None):
|
|
352
|
+
if params is None:
|
|
353
|
+
params = {}
|
|
354
|
+
action = "StopCdnDomain"
|
|
355
|
+
res = self.json(action, [], params)
|
|
356
|
+
if res == '':
|
|
357
|
+
raise Exception("%s: empty response" % action)
|
|
358
|
+
res_json = json.loads(res)
|
|
359
|
+
return res_json
|
|
360
|
+
|
|
361
|
+
def delete_cdn_domain(self, params=None):
|
|
362
|
+
if params is None:
|
|
363
|
+
params = {}
|
|
364
|
+
action = "DeleteCdnDomain"
|
|
365
|
+
res = self.json(action, [], params)
|
|
366
|
+
if res == '':
|
|
367
|
+
raise Exception("%s: empty response" % action)
|
|
368
|
+
res_json = json.loads(res)
|
|
369
|
+
return res_json
|
|
370
|
+
|
|
371
|
+
def list_cdn_domains(self, params=None):
|
|
372
|
+
if params is None:
|
|
373
|
+
params = {}
|
|
374
|
+
action = "ListCdnDomains"
|
|
375
|
+
res = self.json(action, [], params)
|
|
376
|
+
if res == '':
|
|
377
|
+
raise Exception("%s: empty response" % action)
|
|
378
|
+
res_json = json.loads(res)
|
|
379
|
+
return res_json
|
|
380
|
+
|
|
381
|
+
def describe_cdn_config(self, params=None):
|
|
382
|
+
if params is None:
|
|
383
|
+
params = {}
|
|
384
|
+
action = "DescribeCdnConfig"
|
|
385
|
+
res = self.json(action, [], params)
|
|
386
|
+
if res == '':
|
|
387
|
+
raise Exception("%s: empty response" % action)
|
|
388
|
+
res_json = json.loads(res)
|
|
389
|
+
return res_json
|
|
390
|
+
|
|
391
|
+
def update_cdn_config(self, params=None):
|
|
392
|
+
if params is None:
|
|
393
|
+
params = {}
|
|
394
|
+
action = "UpdateCdnConfig"
|
|
395
|
+
res = self.json(action, [], params)
|
|
396
|
+
if res == '':
|
|
397
|
+
raise Exception("%s: empty response" % action)
|
|
398
|
+
res_json = json.loads(res)
|
|
399
|
+
return res_json
|
|
400
|
+
|
|
401
|
+
def describe_cdn_data(self, params=None):
|
|
402
|
+
if params is None:
|
|
403
|
+
params = {}
|
|
404
|
+
action = "DescribeCdnData"
|
|
405
|
+
res = self.json(action, [], params)
|
|
406
|
+
if res == '':
|
|
407
|
+
raise Exception("%s: empty response" % action)
|
|
408
|
+
res_json = json.loads(res)
|
|
409
|
+
return res_json
|
|
410
|
+
|
|
411
|
+
def describe_edge_nrt_data_summary(self, params=None):
|
|
412
|
+
if params is None:
|
|
413
|
+
params = {}
|
|
414
|
+
action = "DescribeEdgeNrtDataSummary"
|
|
415
|
+
res = self.json(action, [], params)
|
|
416
|
+
if res == '':
|
|
417
|
+
raise Exception("%s: empty response" % action)
|
|
418
|
+
res_json = json.loads(res)
|
|
419
|
+
return res_json
|
|
420
|
+
|
|
421
|
+
def describe_cdn_origin_data(self, params=None):
|
|
422
|
+
if params is None:
|
|
423
|
+
params = {}
|
|
424
|
+
action = "DescribeCdnOriginData"
|
|
425
|
+
res = self.json(action, [], params)
|
|
426
|
+
if res == '':
|
|
427
|
+
raise Exception("%s: empty response" % action)
|
|
428
|
+
res_json = json.loads(res)
|
|
429
|
+
return res_json
|
|
430
|
+
|
|
431
|
+
def describe_origin_nrt_data_summary(self, params=None):
|
|
432
|
+
if params is None:
|
|
433
|
+
params = {}
|
|
434
|
+
action = "DescribeOriginNrtDataSummary"
|
|
435
|
+
res = self.json(action, [], params)
|
|
436
|
+
if res == '':
|
|
437
|
+
raise Exception("%s: empty response" % action)
|
|
438
|
+
res_json = json.loads(res)
|
|
439
|
+
return res_json
|
|
440
|
+
|
|
441
|
+
def describe_cdn_data_detail(self, params=None):
|
|
442
|
+
if params is None:
|
|
443
|
+
params = {}
|
|
444
|
+
action = "DescribeCdnDataDetail"
|
|
445
|
+
res = self.json(action, [], params)
|
|
446
|
+
if res == '':
|
|
447
|
+
raise Exception("%s: empty response" % action)
|
|
448
|
+
res_json = json.loads(res)
|
|
449
|
+
return res_json
|
|
450
|
+
|
|
451
|
+
def describe_district_isp_data(self, params=None):
|
|
452
|
+
if params is None:
|
|
453
|
+
params = {}
|
|
454
|
+
action = "DescribeDistrictIspData"
|
|
455
|
+
res = self.json(action, [], params)
|
|
456
|
+
if res == '':
|
|
457
|
+
raise Exception("%s: empty response" % action)
|
|
458
|
+
res_json = json.loads(res)
|
|
459
|
+
return res_json
|
|
460
|
+
|
|
461
|
+
def describe_edge_statistical_data(self, params=None):
|
|
462
|
+
if params is None:
|
|
463
|
+
params = {}
|
|
464
|
+
action = "DescribeEdgeStatisticalData"
|
|
465
|
+
res = self.json(action, [], params)
|
|
466
|
+
if res == '':
|
|
467
|
+
raise Exception("%s: empty response" % action)
|
|
468
|
+
res_json = json.loads(res)
|
|
469
|
+
return res_json
|
|
470
|
+
|
|
471
|
+
def describe_edge_top_nrt_data(self, params=None):
|
|
472
|
+
if params is None:
|
|
473
|
+
params = {}
|
|
474
|
+
action = "DescribeEdgeTopNrtData"
|
|
475
|
+
res = self.json(action, [], params)
|
|
476
|
+
if res == '':
|
|
477
|
+
raise Exception("%s: empty response" % action)
|
|
478
|
+
res_json = json.loads(res)
|
|
479
|
+
return res_json
|
|
480
|
+
|
|
481
|
+
def describe_origin_top_nrt_data(self, params=None):
|
|
482
|
+
if params is None:
|
|
483
|
+
params = {}
|
|
484
|
+
action = "DescribeOriginTopNrtData"
|
|
485
|
+
res = self.json(action, [], params)
|
|
486
|
+
if res == '':
|
|
487
|
+
raise Exception("%s: empty response" % action)
|
|
488
|
+
res_json = json.loads(res)
|
|
489
|
+
return res_json
|
|
490
|
+
|
|
491
|
+
def describe_edge_top_status_code(self, params=None):
|
|
492
|
+
if params is None:
|
|
493
|
+
params = {}
|
|
494
|
+
action = "DescribeEdgeTopStatusCode"
|
|
495
|
+
res = self.json(action, [], params)
|
|
496
|
+
if res == '':
|
|
497
|
+
raise Exception("%s: empty response" % action)
|
|
498
|
+
res_json = json.loads(res)
|
|
499
|
+
return res_json
|
|
500
|
+
|
|
501
|
+
def describe_origin_top_status_code(self, params=None):
|
|
502
|
+
if params is None:
|
|
503
|
+
params = {}
|
|
504
|
+
action = "DescribeOriginTopStatusCode"
|
|
505
|
+
res = self.json(action, [], params)
|
|
506
|
+
if res == '':
|
|
507
|
+
raise Exception("%s: empty response" % action)
|
|
508
|
+
res_json = json.loads(res)
|
|
509
|
+
return res_json
|
|
510
|
+
|
|
511
|
+
def describe_edge_top_statistical_data(self, params=None):
|
|
512
|
+
if params is None:
|
|
513
|
+
params = {}
|
|
514
|
+
action = "DescribeEdgeTopStatisticalData"
|
|
515
|
+
res = self.json(action, [], params)
|
|
516
|
+
if res == '':
|
|
517
|
+
raise Exception("%s: empty response" % action)
|
|
518
|
+
res_json = json.loads(res)
|
|
519
|
+
return res_json
|
|
520
|
+
|
|
521
|
+
def describe_cdn_region_and_isp(self, params=None):
|
|
522
|
+
if params is None:
|
|
523
|
+
params = {}
|
|
524
|
+
action = "DescribeCdnRegionAndIsp"
|
|
525
|
+
res = self.json(action, [], params)
|
|
526
|
+
if res == '':
|
|
527
|
+
raise Exception("%s: empty response" % action)
|
|
528
|
+
res_json = json.loads(res)
|
|
529
|
+
return res_json
|
|
530
|
+
|
|
531
|
+
def describe_cdn_service(self, params=None):
|
|
532
|
+
if params is None:
|
|
533
|
+
params = {}
|
|
534
|
+
action = "DescribeCdnService"
|
|
535
|
+
res = self.json(action, [], params)
|
|
536
|
+
if res == '':
|
|
537
|
+
raise Exception("%s: empty response" % action)
|
|
538
|
+
res_json = json.loads(res)
|
|
539
|
+
return res_json
|
|
540
|
+
|
|
541
|
+
def describe_accounting_data(self, params=None):
|
|
542
|
+
if params is None:
|
|
543
|
+
params = {}
|
|
544
|
+
action = "DescribeAccountingData"
|
|
545
|
+
res = self.json(action, [], params)
|
|
546
|
+
if res == '':
|
|
547
|
+
raise Exception("%s: empty response" % action)
|
|
548
|
+
res_json = json.loads(res)
|
|
549
|
+
return res_json
|
|
550
|
+
|
|
551
|
+
def submit_refresh_task(self, params=None):
|
|
552
|
+
if params is None:
|
|
553
|
+
params = {}
|
|
554
|
+
action = "SubmitRefreshTask"
|
|
555
|
+
res = self.json(action, [], params)
|
|
556
|
+
if res == '':
|
|
557
|
+
raise Exception("%s: empty response" % action)
|
|
558
|
+
res_json = json.loads(res)
|
|
559
|
+
return res_json
|
|
560
|
+
|
|
561
|
+
def submit_preload_task(self, params=None):
|
|
562
|
+
if params is None:
|
|
563
|
+
params = {}
|
|
564
|
+
action = "SubmitPreloadTask"
|
|
565
|
+
res = self.json(action, [], params)
|
|
566
|
+
if res == '':
|
|
567
|
+
raise Exception("%s: empty response" % action)
|
|
568
|
+
res_json = json.loads(res)
|
|
569
|
+
return res_json
|
|
570
|
+
|
|
571
|
+
def describe_content_tasks(self, params=None):
|
|
572
|
+
if params is None:
|
|
573
|
+
params = {}
|
|
574
|
+
action = "DescribeContentTasks"
|
|
575
|
+
res = self.json(action, [], params)
|
|
576
|
+
if res == '':
|
|
577
|
+
raise Exception("%s: empty response" % action)
|
|
578
|
+
res_json = json.loads(res)
|
|
579
|
+
return res_json
|
|
580
|
+
|
|
581
|
+
def describe_content_quota(self, params=None):
|
|
582
|
+
if params is None:
|
|
583
|
+
params = {}
|
|
584
|
+
action = "DescribeContentQuota"
|
|
585
|
+
res = self.json(action, [], params)
|
|
586
|
+
if res == '':
|
|
587
|
+
raise Exception("%s: empty response" % action)
|
|
588
|
+
res_json = json.loads(res)
|
|
589
|
+
return res_json
|
|
590
|
+
|
|
591
|
+
def submit_block_task(self, params=None):
|
|
592
|
+
if params is None:
|
|
593
|
+
params = {}
|
|
594
|
+
action = "SubmitBlockTask"
|
|
595
|
+
res = self.json(action, [], params)
|
|
596
|
+
if res == '':
|
|
597
|
+
raise Exception("%s: empty response" % action)
|
|
598
|
+
res_json = json.loads(res)
|
|
599
|
+
return res_json
|
|
600
|
+
|
|
601
|
+
def submit_unblock_task(self, params=None):
|
|
602
|
+
if params is None:
|
|
603
|
+
params = {}
|
|
604
|
+
action = "SubmitUnblockTask"
|
|
605
|
+
res = self.json(action, [], params)
|
|
606
|
+
if res == '':
|
|
607
|
+
raise Exception("%s: empty response" % action)
|
|
608
|
+
res_json = json.loads(res)
|
|
609
|
+
return res_json
|
|
610
|
+
|
|
611
|
+
def describe_content_block_tasks(self, params=None):
|
|
612
|
+
if params is None:
|
|
613
|
+
params = {}
|
|
614
|
+
action = "DescribeContentBlockTasks"
|
|
615
|
+
res = self.json(action, [], params)
|
|
616
|
+
if res == '':
|
|
617
|
+
raise Exception("%s: empty response" % action)
|
|
618
|
+
res_json = json.loads(res)
|
|
619
|
+
return res_json
|
|
620
|
+
|
|
621
|
+
def describe_cdn_access_log(self, params=None):
|
|
622
|
+
if params is None:
|
|
623
|
+
params = {}
|
|
624
|
+
action = "DescribeCdnAccessLog"
|
|
625
|
+
res = self.json(action, [], params)
|
|
626
|
+
if res == '':
|
|
627
|
+
raise Exception("%s: empty response" % action)
|
|
628
|
+
res_json = json.loads(res)
|
|
629
|
+
return res_json
|
|
630
|
+
|
|
631
|
+
def describe_ip_info(self, params=None):
|
|
632
|
+
if params is None:
|
|
633
|
+
params = {}
|
|
634
|
+
action = "DescribeIPInfo"
|
|
635
|
+
res = self.json(action, [], params)
|
|
636
|
+
if res == '':
|
|
637
|
+
raise Exception("%s: empty response" % action)
|
|
638
|
+
res_json = json.loads(res)
|
|
639
|
+
return res_json
|
|
640
|
+
|
|
641
|
+
def describe_ip_list_info(self, params=None):
|
|
642
|
+
if params is None:
|
|
643
|
+
params = {}
|
|
644
|
+
action = "DescribeIPListInfo"
|
|
645
|
+
res = self.json(action, [], params)
|
|
646
|
+
if res == '':
|
|
647
|
+
raise Exception("%s: empty response" % action)
|
|
648
|
+
res_json = json.loads(res)
|
|
649
|
+
return res_json
|
|
650
|
+
|
|
651
|
+
# deprecated, use describe_ip_list_info instead
|
|
652
|
+
def describe_iplist_info(self, params=None):
|
|
653
|
+
return self.describe_ip_list_info(params)
|
|
654
|
+
|
|
655
|
+
def describe_cdn_upper_ip(self, params=None):
|
|
656
|
+
if params is None:
|
|
657
|
+
params = {}
|
|
658
|
+
action = "DescribeCdnUpperIp"
|
|
659
|
+
res = self.json(action, [], params)
|
|
660
|
+
if res == '':
|
|
661
|
+
raise Exception("%s: empty response" % action)
|
|
662
|
+
res_json = json.loads(res)
|
|
663
|
+
return res_json
|
|
664
|
+
|
|
665
|
+
def list_resource_tags(self, params=None):
|
|
666
|
+
if params is None:
|
|
667
|
+
params = {}
|
|
668
|
+
action = "ListResourceTags"
|
|
669
|
+
res = self.json(action, [], params)
|
|
670
|
+
if res == '':
|
|
671
|
+
raise Exception("%s: empty response" % action)
|
|
672
|
+
res_json = json.loads(res)
|
|
673
|
+
return res_json
|
|
674
|
+
|
|
675
|
+
def add_cdn_certificate(self, params=None):
|
|
676
|
+
if params is None:
|
|
677
|
+
params = {}
|
|
678
|
+
action = "AddCdnCertificate"
|
|
679
|
+
res = self.json(action, [], params)
|
|
680
|
+
if res == '':
|
|
681
|
+
raise Exception("%s: empty response" % action)
|
|
682
|
+
res_json = json.loads(res)
|
|
683
|
+
return res_json
|
|
684
|
+
|
|
685
|
+
def list_cert_info(self, params=None):
|
|
686
|
+
if params is None:
|
|
687
|
+
params = {}
|
|
688
|
+
action = "ListCertInfo"
|
|
689
|
+
res = self.json(action, [], params)
|
|
690
|
+
if res == '':
|
|
691
|
+
raise Exception("%s: empty response" % action)
|
|
692
|
+
res_json = json.loads(res)
|
|
693
|
+
return res_json
|
|
694
|
+
|
|
695
|
+
def list_cdn_cert_info(self, params=None):
|
|
696
|
+
if params is None:
|
|
697
|
+
params = {}
|
|
698
|
+
action = "ListCdnCertInfo"
|
|
699
|
+
res = self.json(action, [], params)
|
|
700
|
+
if res == '':
|
|
701
|
+
raise Exception("%s: empty response" % action)
|
|
702
|
+
res_json = json.loads(res)
|
|
703
|
+
return res_json
|
|
704
|
+
|
|
705
|
+
def describe_cert_config(self, params=None):
|
|
706
|
+
if params is None:
|
|
707
|
+
params = {}
|
|
708
|
+
action = "DescribeCertConfig"
|
|
709
|
+
res = self.json(action, [], params)
|
|
710
|
+
if res == '':
|
|
711
|
+
raise Exception("%s: empty response" % action)
|
|
712
|
+
res_json = json.loads(res)
|
|
713
|
+
return res_json
|
|
714
|
+
|
|
715
|
+
def batch_deploy_cert(self, params=None):
|
|
716
|
+
if params is None:
|
|
717
|
+
params = {}
|
|
718
|
+
action = "BatchDeployCert"
|
|
719
|
+
res = self.json(action, [], params)
|
|
720
|
+
if res == '':
|
|
721
|
+
raise Exception("%s: empty response" % action)
|
|
722
|
+
res_json = json.loads(res)
|
|
723
|
+
return res_json
|
|
724
|
+
|
|
725
|
+
def delete_cdn_certificate(self, params=None):
|
|
726
|
+
if params is None:
|
|
727
|
+
params = {}
|
|
728
|
+
action = "DeleteCdnCertificate"
|
|
729
|
+
res = self.json(action, [], params)
|
|
730
|
+
if res == '':
|
|
731
|
+
raise Exception("%s: empty response" % action)
|
|
732
|
+
res_json = json.loads(res)
|
|
733
|
+
return res_json
|
|
734
|
+
|
|
735
|
+
def describe_accounting_summary(self, params=None):
|
|
736
|
+
if params is None:
|
|
737
|
+
params = {}
|
|
738
|
+
action = "DescribeAccountingSummary"
|
|
739
|
+
res = self.json(action, [], params)
|
|
740
|
+
if res == '':
|
|
741
|
+
raise Exception("%s: empty response" % action)
|
|
742
|
+
res_json = json.loads(res)
|
|
743
|
+
return res_json
|
|
744
|
+
|
|
745
|
+
def describe_templates(self, params=None):
|
|
746
|
+
if params is None:
|
|
747
|
+
params = {}
|
|
748
|
+
action = "DescribeTemplates"
|
|
749
|
+
res = self.json(action, [], params)
|
|
750
|
+
if res == '':
|
|
751
|
+
raise Exception("%s: empty response" % action)
|
|
752
|
+
res_json = json.loads(res)
|
|
753
|
+
return res_json
|
|
754
|
+
|
|
755
|
+
def describe_service_template(self, params=None):
|
|
756
|
+
if params is None:
|
|
757
|
+
params = {}
|
|
758
|
+
action = "DescribeServiceTemplate"
|
|
759
|
+
res = self.json(action, [], params)
|
|
760
|
+
if res == '':
|
|
761
|
+
raise Exception("%s: empty response" % action)
|
|
762
|
+
res_json = json.loads(res)
|
|
763
|
+
return res_json
|
|
764
|
+
|
|
765
|
+
def describe_cipher_template(self, params=None):
|
|
766
|
+
if params is None:
|
|
767
|
+
params = {}
|
|
768
|
+
action = "DescribeCipherTemplate"
|
|
769
|
+
res = self.json(action, [], params)
|
|
770
|
+
if res == '':
|
|
771
|
+
raise Exception("%s: empty response" % action)
|
|
772
|
+
res_json = json.loads(res)
|
|
773
|
+
return res_json
|
|
774
|
+
|
|
775
|
+
def create_cipher_template(self, params=None):
|
|
776
|
+
if params is None:
|
|
777
|
+
params = {}
|
|
778
|
+
action = "CreateCipherTemplate"
|
|
779
|
+
res = self.json(action, [], params)
|
|
780
|
+
if res == '':
|
|
781
|
+
raise Exception("%s: empty response" % action)
|
|
782
|
+
res_json = json.loads(res)
|
|
783
|
+
return res_json
|
|
784
|
+
|
|
785
|
+
def update_service_template(self, params=None):
|
|
786
|
+
if params is None:
|
|
787
|
+
params = {}
|
|
788
|
+
action = "UpdateServiceTemplate"
|
|
789
|
+
res = self.json(action, [], params)
|
|
790
|
+
if res == '':
|
|
791
|
+
raise Exception("%s: empty response" % action)
|
|
792
|
+
res_json = json.loads(res)
|
|
793
|
+
return res_json
|
|
794
|
+
|
|
795
|
+
def update_cipher_template(self, params=None):
|
|
796
|
+
if params is None:
|
|
797
|
+
params = {}
|
|
798
|
+
action = "UpdateCipherTemplate"
|
|
799
|
+
res = self.json(action, [], params)
|
|
800
|
+
if res == '':
|
|
801
|
+
raise Exception("%s: empty response" % action)
|
|
802
|
+
res_json = json.loads(res)
|
|
803
|
+
return res_json
|
|
804
|
+
|
|
805
|
+
def duplicate_template(self, params=None):
|
|
806
|
+
if params is None:
|
|
807
|
+
params = {}
|
|
808
|
+
action = "DuplicateTemplate"
|
|
809
|
+
res = self.json(action, [], params)
|
|
810
|
+
if res == '':
|
|
811
|
+
raise Exception("%s: empty response" % action)
|
|
812
|
+
res_json = json.loads(res)
|
|
813
|
+
return res_json
|
|
814
|
+
|
|
815
|
+
def lock_template(self, params=None):
|
|
816
|
+
if params is None:
|
|
817
|
+
params = {}
|
|
818
|
+
action = "LockTemplate"
|
|
819
|
+
res = self.json(action, [], params)
|
|
820
|
+
if res == '':
|
|
821
|
+
raise Exception("%s: empty response" % action)
|
|
822
|
+
res_json = json.loads(res)
|
|
823
|
+
return res_json
|
|
824
|
+
|
|
825
|
+
def delete_template(self, params=None):
|
|
826
|
+
if params is None:
|
|
827
|
+
params = {}
|
|
828
|
+
action = "DeleteTemplate"
|
|
829
|
+
res = self.json(action, [], params)
|
|
830
|
+
if res == '':
|
|
831
|
+
raise Exception("%s: empty response" % action)
|
|
832
|
+
res_json = json.loads(res)
|
|
833
|
+
return res_json
|
|
834
|
+
|
|
835
|
+
def describe_template_domains(self, params=None):
|
|
836
|
+
if params is None:
|
|
837
|
+
params = {}
|
|
838
|
+
action = "DescribeTemplateDomains"
|
|
839
|
+
res = self.json(action, [], params)
|
|
840
|
+
if res == '':
|
|
841
|
+
raise Exception("%s: empty response" % action)
|
|
842
|
+
res_json = json.loads(res)
|
|
843
|
+
return res_json
|
|
844
|
+
|
|
845
|
+
def add_template_domain(self, params=None):
|
|
846
|
+
if params is None:
|
|
847
|
+
params = {}
|
|
848
|
+
action = "AddTemplateDomain"
|
|
849
|
+
res = self.json(action, [], params)
|
|
850
|
+
if res == '':
|
|
851
|
+
raise Exception("%s: empty response" % action)
|
|
852
|
+
res_json = json.loads(res)
|
|
853
|
+
return res_json
|
|
854
|
+
|
|
855
|
+
def update_template_domain(self, params=None):
|
|
856
|
+
if params is None:
|
|
857
|
+
params = {}
|
|
858
|
+
action = "UpdateTemplateDomain"
|
|
859
|
+
res = self.json(action, [], params)
|
|
860
|
+
if res == '':
|
|
861
|
+
raise Exception("%s: empty response" % action)
|
|
862
|
+
res_json = json.loads(res)
|
|
863
|
+
return res_json
|
|
864
|
+
|
|
865
|
+
def create_service_template(self, params=None):
|
|
866
|
+
if params is None:
|
|
867
|
+
params = {}
|
|
868
|
+
action = "CreateServiceTemplate"
|
|
869
|
+
res = self.json(action, [], params)
|
|
870
|
+
if res == '':
|
|
871
|
+
raise Exception("%s: empty response" % action)
|
|
872
|
+
res_json = json.loads(res)
|
|
873
|
+
return res_json
|
|
874
|
+
|
|
875
|
+
def create_template_version(self, params=None):
|
|
876
|
+
if params is None:
|
|
877
|
+
params = {}
|
|
878
|
+
action = "CreateTemplateVersion"
|
|
879
|
+
res = self.json(action, [], params)
|
|
880
|
+
if res == '':
|
|
881
|
+
raise Exception("%s: empty response" % action)
|
|
882
|
+
res_json = json.loads(res)
|
|
883
|
+
return res_json
|
|
884
|
+
|
|
885
|
+
def describe_template_release_versions(self, params=None):
|
|
886
|
+
if params is None:
|
|
887
|
+
params = {}
|
|
888
|
+
action = "DescribeTemplateReleaseVersions"
|
|
889
|
+
res = self.json(action, [], params)
|
|
890
|
+
if res == '':
|
|
891
|
+
raise Exception("%s: empty response" % action)
|
|
892
|
+
res_json = json.loads(res)
|
|
893
|
+
return res_json
|
|
894
|
+
|
|
895
|
+
def describe_domain_shared(self, params=None):
|
|
896
|
+
if params is None:
|
|
897
|
+
params = {}
|
|
898
|
+
action = "DescribeDomainShared"
|
|
899
|
+
res = self.json(action, [], params)
|
|
900
|
+
if res == '':
|
|
901
|
+
raise Exception("%s: empty response" % action)
|
|
902
|
+
res_json = json.loads(res)
|
|
903
|
+
return res_json
|
|
904
|
+
|
|
905
|
+
def describe_cdn_ip(self, params=None):
|
|
906
|
+
if params is None:
|
|
907
|
+
params = {}
|
|
908
|
+
action = "DescribeCdnIP"
|
|
909
|
+
res = self.json(action, [], params)
|
|
910
|
+
if res == '':
|
|
911
|
+
raise Exception("%s: empty response" % action)
|
|
912
|
+
res_json = json.loads(res)
|
|
913
|
+
return res_json
|
|
914
|
+
|
|
915
|
+
def describe_district_data(self, params=None):
|
|
916
|
+
if params is None:
|
|
917
|
+
params = {}
|
|
918
|
+
action = "DescribeDistrictData"
|
|
919
|
+
res = self.json(action, [], params)
|
|
920
|
+
if res == '':
|
|
921
|
+
raise Exception("%s: empty response" % action)
|
|
922
|
+
res_json = json.loads(res)
|
|
923
|
+
return res_json
|
|
924
|
+
|
|
925
|
+
def describe_edge_data(self, params=None):
|
|
926
|
+
if params is None:
|
|
927
|
+
params = {}
|
|
928
|
+
action = "DescribeEdgeData"
|
|
929
|
+
res = self.json(action, [], params)
|
|
930
|
+
if res == '':
|
|
931
|
+
raise Exception("%s: empty response" % action)
|
|
932
|
+
res_json = json.loads(res)
|
|
933
|
+
return res_json
|
|
934
|
+
|
|
935
|
+
def describe_district_summary(self, params=None):
|
|
936
|
+
if params is None:
|
|
937
|
+
params = {}
|
|
938
|
+
action = "DescribeDistrictSummary"
|
|
939
|
+
res = self.json(action, [], params)
|
|
940
|
+
if res == '':
|
|
941
|
+
raise Exception("%s: empty response" % action)
|
|
942
|
+
res_json = json.loads(res)
|
|
943
|
+
return res_json
|
|
944
|
+
|
|
945
|
+
def describe_edge_summary(self, params=None):
|
|
946
|
+
if params is None:
|
|
947
|
+
params = {}
|
|
948
|
+
action = "DescribeEdgeSummary"
|
|
949
|
+
res = self.json(action, [], params)
|
|
950
|
+
if res == '':
|
|
951
|
+
raise Exception("%s: empty response" % action)
|
|
952
|
+
res_json = json.loads(res)
|
|
953
|
+
return res_json
|
|
954
|
+
|
|
955
|
+
def describe_origin_data(self, params=None):
|
|
956
|
+
if params is None:
|
|
957
|
+
params = {}
|
|
958
|
+
action = "DescribeOriginData"
|
|
959
|
+
res = self.json(action, [], params)
|
|
960
|
+
if res == '':
|
|
961
|
+
raise Exception("%s: empty response" % action)
|
|
962
|
+
res_json = json.loads(res)
|
|
963
|
+
return res_json
|
|
964
|
+
|
|
965
|
+
def describe_origin_summary(self, params=None):
|
|
966
|
+
if params is None:
|
|
967
|
+
params = {}
|
|
968
|
+
action = "DescribeOriginSummary"
|
|
969
|
+
res = self.json(action, [], params)
|
|
970
|
+
if res == '':
|
|
971
|
+
raise Exception("%s: empty response" % action)
|
|
972
|
+
res_json = json.loads(res)
|
|
973
|
+
return res_json
|
|
974
|
+
|
|
975
|
+
def describe_user_data(self, params=None):
|
|
976
|
+
if params is None:
|
|
977
|
+
params = {}
|
|
978
|
+
action = "DescribeUserData"
|
|
979
|
+
res = self.json(action, [], params)
|
|
980
|
+
if res == '':
|
|
981
|
+
raise Exception("%s: empty response" % action)
|
|
982
|
+
res_json = json.loads(res)
|
|
983
|
+
return res_json
|
|
984
|
+
|
|
985
|
+
def describe_district_ranking(self, params=None):
|
|
986
|
+
if params is None:
|
|
987
|
+
params = {}
|
|
988
|
+
action = "DescribeDistrictRanking"
|
|
989
|
+
res = self.json(action, [], params)
|
|
990
|
+
if res == '':
|
|
991
|
+
raise Exception("%s: empty response" % action)
|
|
992
|
+
res_json = json.loads(res)
|
|
993
|
+
return res_json
|
|
994
|
+
|
|
995
|
+
def describe_edge_ranking(self, params=None):
|
|
996
|
+
if params is None:
|
|
997
|
+
params = {}
|
|
998
|
+
action = "DescribeEdgeRanking"
|
|
999
|
+
res = self.json(action, [], params)
|
|
1000
|
+
if res == '':
|
|
1001
|
+
raise Exception("%s: empty response" % action)
|
|
1002
|
+
res_json = json.loads(res)
|
|
1003
|
+
return res_json
|
|
1004
|
+
|
|
1005
|
+
def describe_origin_ranking(self, params=None):
|
|
1006
|
+
if params is None:
|
|
1007
|
+
params = {}
|
|
1008
|
+
action = "DescribeOriginRanking"
|
|
1009
|
+
res = self.json(action, [], params)
|
|
1010
|
+
if res == '':
|
|
1011
|
+
raise Exception("%s: empty response" % action)
|
|
1012
|
+
res_json = json.loads(res)
|
|
1013
|
+
return res_json
|
|
1014
|
+
|
|
1015
|
+
def describe_edge_status_code_ranking(self, params=None):
|
|
1016
|
+
if params is None:
|
|
1017
|
+
params = {}
|
|
1018
|
+
action = "DescribeEdgeStatusCodeRanking"
|
|
1019
|
+
res = self.json(action, [], params)
|
|
1020
|
+
if res == '':
|
|
1021
|
+
raise Exception("%s: empty response" % action)
|
|
1022
|
+
res_json = json.loads(res)
|
|
1023
|
+
return res_json
|
|
1024
|
+
|
|
1025
|
+
def describe_origin_status_code_ranking(self, params=None):
|
|
1026
|
+
if params is None:
|
|
1027
|
+
params = {}
|
|
1028
|
+
action = "DescribeOriginStatusCodeRanking"
|
|
1029
|
+
res = self.json(action, [], params)
|
|
1030
|
+
if res == '':
|
|
1031
|
+
raise Exception("%s: empty response" % action)
|
|
1032
|
+
res_json = json.loads(res)
|
|
1033
|
+
return res_json
|
|
1034
|
+
|
|
1035
|
+
def describe_statistical_ranking(self, params=None):
|
|
1036
|
+
if params is None:
|
|
1037
|
+
params = {}
|
|
1038
|
+
action = "DescribeStatisticalRanking"
|
|
1039
|
+
res = self.json(action, [], params)
|
|
1040
|
+
if res == '':
|
|
1041
|
+
raise Exception("%s: empty response" % action)
|
|
1042
|
+
res_json = json.loads(res)
|
|
1043
|
+
return res_json
|
|
1044
|
+
|
|
1045
|
+
def batch_update_cdn_config(self, params=None):
|
|
1046
|
+
if params is None:
|
|
1047
|
+
params = {}
|
|
1048
|
+
action = "BatchUpdateCdnConfig"
|
|
1049
|
+
res = self.json(action, [], params)
|
|
1050
|
+
if res == '':
|
|
1051
|
+
raise Exception("%s: empty response" % action)
|
|
1052
|
+
res_json = json.loads(res)
|
|
1053
|
+
return res_json
|
|
1054
|
+
|
|
1055
|
+
def add_certificate(self, params=None):
|
|
1056
|
+
if params is None:
|
|
1057
|
+
params = {}
|
|
1058
|
+
action = "AddCertificate"
|
|
1059
|
+
res = self.json(action, [], params)
|
|
1060
|
+
if res == '':
|
|
1061
|
+
raise Exception("%s: empty response" % action)
|
|
1062
|
+
res_json = json.loads(res)
|
|
1063
|
+
return res_json
|
|
1064
|
+
|
|
1065
|
+
def delete_usage_report(self, params=None):
|
|
1066
|
+
if params is None:
|
|
1067
|
+
params = {}
|
|
1068
|
+
action = "DeleteUsageReport"
|
|
1069
|
+
res = self.json(action, [], params)
|
|
1070
|
+
if res == '':
|
|
1071
|
+
raise Exception("%s: empty response" % action)
|
|
1072
|
+
res_json = json.loads(res)
|
|
1073
|
+
return res_json
|
|
1074
|
+
|
|
1075
|
+
def create_usage_report(self, params=None):
|
|
1076
|
+
if params is None:
|
|
1077
|
+
params = {}
|
|
1078
|
+
action = "CreateUsageReport"
|
|
1079
|
+
res = self.json(action, [], params)
|
|
1080
|
+
if res == '':
|
|
1081
|
+
raise Exception("%s: empty response" % action)
|
|
1082
|
+
res_json = json.loads(res)
|
|
1083
|
+
return res_json
|
|
1084
|
+
|
|
1085
|
+
def list_usage_reports(self, params=None):
|
|
1086
|
+
if params is None:
|
|
1087
|
+
params = {}
|
|
1088
|
+
action = "ListUsageReports"
|
|
1089
|
+
res = self.json(action, [], params)
|
|
1090
|
+
if res == '':
|
|
1091
|
+
raise Exception("%s: empty response" % action)
|
|
1092
|
+
res_json = json.loads(res)
|
|
1093
|
+
return res_json
|
|
1094
|
+
|
|
1095
|
+
def describe_shared_config(self, params=None):
|
|
1096
|
+
if params is None:
|
|
1097
|
+
params = {}
|
|
1098
|
+
action = "DescribeSharedConfig"
|
|
1099
|
+
res = self.json(action, [], params)
|
|
1100
|
+
if res == '':
|
|
1101
|
+
raise Exception("%s: empty response" % action)
|
|
1102
|
+
res_json = json.loads(res)
|
|
1103
|
+
return res_json
|
|
1104
|
+
|
|
1105
|
+
def list_shared_config(self, params=None):
|
|
1106
|
+
if params is None:
|
|
1107
|
+
params = {}
|
|
1108
|
+
action = "ListSharedConfig"
|
|
1109
|
+
res = self.json(action, [], params)
|
|
1110
|
+
if res == '':
|
|
1111
|
+
raise Exception("%s: empty response" % action)
|
|
1112
|
+
res_json = json.loads(res)
|
|
1113
|
+
return res_json
|
|
1114
|
+
|
|
1115
|
+
def delete_shared_config(self, params=None):
|
|
1116
|
+
if params is None:
|
|
1117
|
+
params = {}
|
|
1118
|
+
action = "DeleteSharedConfig"
|
|
1119
|
+
res = self.json(action, [], params)
|
|
1120
|
+
if res == '':
|
|
1121
|
+
raise Exception("%s: empty response" % action)
|
|
1122
|
+
res_json = json.loads(res)
|
|
1123
|
+
return res_json
|
|
1124
|
+
|
|
1125
|
+
def update_shared_config(self, params=None):
|
|
1126
|
+
if params is None:
|
|
1127
|
+
params = {}
|
|
1128
|
+
action = "UpdateSharedConfig"
|
|
1129
|
+
res = self.json(action, [], params)
|
|
1130
|
+
if res == '':
|
|
1131
|
+
raise Exception("%s: empty response" % action)
|
|
1132
|
+
res_json = json.loads(res)
|
|
1133
|
+
return res_json
|
|
1134
|
+
|
|
1135
|
+
def add_shared_config(self, params=None):
|
|
1136
|
+
if params is None:
|
|
1137
|
+
params = {}
|
|
1138
|
+
action = "AddSharedConfig"
|
|
1139
|
+
res = self.json(action, [], params)
|
|
1140
|
+
if res == '':
|
|
1141
|
+
raise Exception("%s: empty response" % action)
|
|
1142
|
+
res_json = json.loads(res)
|
|
1143
|
+
return res_json
|
|
1144
|
+
|
|
1145
|
+
def tag_resources(self, params=None):
|
|
1146
|
+
if params is None:
|
|
1147
|
+
params = {}
|
|
1148
|
+
action = "TagResources"
|
|
1149
|
+
res = self.json(action, [], params)
|
|
1150
|
+
if res == '':
|
|
1151
|
+
raise Exception("%s: empty response" % action)
|
|
1152
|
+
res_json = json.loads(res)
|
|
1153
|
+
return res_json
|
|
1154
|
+
|
|
1155
|
+
def untag_resources(self, params=None):
|
|
1156
|
+
if params is None:
|
|
1157
|
+
params = {}
|
|
1158
|
+
action = "UntagResources"
|
|
1159
|
+
res = self.json(action, [], params)
|
|
1160
|
+
if res == '':
|
|
1161
|
+
raise Exception("%s: empty response" % action)
|
|
1162
|
+
res_json = json.loads(res)
|
|
1163
|
+
return res_json
|
|
1164
|
+
|
|
1165
|
+
def release_template(self, params=None):
|
|
1166
|
+
if params is None:
|
|
1167
|
+
params = {}
|
|
1168
|
+
action = "ReleaseTemplate"
|
|
1169
|
+
res = self.json(action, [], params)
|
|
1170
|
+
if res == '':
|
|
1171
|
+
raise Exception("%s: empty response" % action)
|
|
1172
|
+
res_json = json.loads(res)
|
|
1173
|
+
return res_json
|
|
1174
|
+
|
|
1175
|
+
def create_rule_engine_template(self, params=None):
|
|
1176
|
+
if params is None:
|
|
1177
|
+
params = {}
|
|
1178
|
+
action = "CreateRuleEngineTemplate"
|
|
1179
|
+
res = self.json(action, [], params)
|
|
1180
|
+
if res == '':
|
|
1181
|
+
raise Exception("%s: empty response" % action)
|
|
1182
|
+
res_json = json.loads(res)
|
|
1183
|
+
return res_json
|
|
1184
|
+
|
|
1185
|
+
def update_rule_engine_template(self, params=None):
|
|
1186
|
+
if params is None:
|
|
1187
|
+
params = {}
|
|
1188
|
+
action = "UpdateRuleEngineTemplate"
|
|
1189
|
+
res = self.json(action, [], params)
|
|
1190
|
+
if res == '':
|
|
1191
|
+
raise Exception("%s: empty response" % action)
|
|
1192
|
+
res_json = json.loads(res)
|
|
1193
|
+
return res_json
|
|
1194
|
+
|
|
1195
|
+
def describe_rule_engine_template(self, params=None):
|
|
1196
|
+
if params is None:
|
|
1197
|
+
params = {}
|
|
1198
|
+
action = "DescribeRuleEngineTemplate"
|
|
1199
|
+
res = self.json(action, [], params)
|
|
1200
|
+
if res == '':
|
|
1201
|
+
raise Exception("%s: empty response" % action)
|
|
1202
|
+
res_json = json.loads(res)
|
|
1203
|
+
return res_json
|