kingsoftcloud-sdk-python 1.5.8.44__py2.py3-none-any.whl → 1.5.8.49__py2.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.
- {kingsoftcloud_sdk_python-1.5.8.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/METADATA +24 -13
- {kingsoftcloud_sdk_python-1.5.8.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/RECORD +118 -118
- {kingsoftcloud_sdk_python-1.5.8.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/WHEEL +1 -1
- ksyun/__init__.py +1 -1
- ksyun/client/actiontrail/v20190401/client.py +1 -3
- ksyun/client/aicp/v20240612/client.py +168 -53
- ksyun/client/aicp/v20240612/models.py +192 -7
- ksyun/client/aicp/v20251212/client.py +2 -2
- ksyun/client/aicp/v20251212/models.py +1 -1
- ksyun/client/bill/v20180601/client.py +3 -5
- ksyun/client/bill/v20220601/client.py +2 -4
- ksyun/client/bill_union/v20200101/client.py +9 -11
- ksyun/client/bill_union/v20200101/models.py +5 -5
- ksyun/client/bill_union/v20221222/client.py +6 -8
- ksyun/client/bill_union/v20250801/client.py +2 -4
- ksyun/client/bill_union/v20250801/models.py +1 -1
- ksyun/client/bws/v20160304/client.py +7 -9
- ksyun/client/cdn/v20160901/client.py +3 -5
- ksyun/client/cdn/v20200630/client.py +17 -19
- ksyun/client/cdn/v20200901/client.py +7 -9
- ksyun/client/cdn/v20211201/client.py +1 -3
- ksyun/client/cdn/v3/client.py +43 -45
- ksyun/client/cdn/v3/models.py +11 -11
- ksyun/client/cen/v20160304/client.py +26 -28
- ksyun/client/clickhouse/v20210101/client.py +39 -41
- ksyun/client/cloud_advisor/v20250610/client.py +3 -5
- ksyun/client/dmp/v20240101/client.py +20 -22
- ksyun/client/dts/v20180108/client.py +19 -21
- ksyun/client/ebs/v20160304/client.py +28 -30
- ksyun/client/ebs/v20160304/models.py +1 -1
- ksyun/client/eip/v20160304/client.py +12 -14
- ksyun/client/epc/v20151101/client.py +105 -107
- ksyun/client/epc/v20151101/models.py +19 -4
- ksyun/client/iam/v20151101/client.py +65 -67
- ksyun/client/iam/v20240513/client.py +1 -3
- ksyun/client/iam/v20240703/client.py +1 -3
- ksyun/client/influxdb/v20191010/client.py +27 -29
- ksyun/client/kad/v20161122/client.py +8 -10
- ksyun/client/kce/v20180314/client.py +17 -19
- ksyun/client/kce/v20190806/client.py +34 -36
- ksyun/client/kce/v20201231/client.py +1 -3
- ksyun/client/kce/v20230101/client.py +9 -11
- ksyun/client/kce/v20230306/client.py +22 -24
- ksyun/client/kce/v20231115/client.py +2 -4
- ksyun/client/kce2/v20230101/client.py +15 -17
- ksyun/client/kcf/v20211215/client.py +9 -11
- ksyun/client/kci/v20200702/client.py +15 -17
- ksyun/client/kci/v20200702/models.py +1 -1
- ksyun/client/kcm/v20160304/client.py +10 -12
- ksyun/client/kcrs/v20211109/client.py +44 -46
- ksyun/client/kcs/v20160701/client.py +66 -68
- ksyun/client/kcs/v20170401/client.py +1 -3
- ksyun/client/kcs/v20240701/client.py +1 -3
- ksyun/client/kead/v20200101/client.py +3 -5
- ksyun/client/kec/v20160304/client.py +565 -105
- ksyun/client/kec/v20160304/models.py +689 -22
- ksyun/client/ked/v1/client.py +44 -46
- ksyun/client/kes/v20201215/client.py +8 -10
- ksyun/client/ket/v20170101/client.py +8 -10
- ksyun/client/kfw/v20160304/client.py +648 -12
- ksyun/client/kfw/v20160304/models.py +1003 -9
- ksyun/client/kingpay/v1/client.py +1 -3
- ksyun/client/kkms/v20160304/client.py +8 -10
- ksyun/client/klog/v20200731/client.py +16 -18
- ksyun/client/kls/v20170101/client.py +8 -10
- ksyun/client/kmr/v20210902/client.py +23 -25
- ksyun/client/kmr/v20231231/client.py +7 -9
- ksyun/client/kmr/v20240814/client.py +19 -21
- ksyun/client/knad/v20230323/client.py +17 -19
- ksyun/client/kpfs/v20240930/client.py +54 -54
- ksyun/client/kpfs/v20240930/models.py +286 -81
- ksyun/client/krds/v20160701/client.py +91 -93
- ksyun/client/krds/v20200825/client.py +10 -12
- ksyun/client/memcached/v20180627/client.py +13 -15
- ksyun/client/milvus/v20231010/client.py +19 -21
- ksyun/client/mongodb/v20170101/client.py +44 -46
- ksyun/client/mongodb/v20250101/client.py +1 -3
- ksyun/client/monitor/v20100525/client.py +2 -4
- ksyun/client/monitor/v20181114/client.py +1 -3
- ksyun/client/monitor/v20210101/client.py +12 -14
- ksyun/client/monitor/v20220101/client.py +2 -4
- ksyun/client/monitor/v20250101/client.py +45 -3
- ksyun/client/monitor/v20250101/models.py +34 -2
- ksyun/client/pdns/v20160304/client.py +35 -37
- ksyun/client/postgresql/v20181225/client.py +50 -52
- ksyun/client/postgresql/v20181225/models.py +1 -1
- ksyun/client/rabbitmq/v20191017/client.py +19 -21
- ksyun/client/relyt/v20240117/client.py +1 -3
- ksyun/client/resourcemanager/v20210320/client.py +8 -10
- ksyun/client/sks/v20151101/client.py +6 -8
- ksyun/client/sks/v20151101/models.py +21 -2
- ksyun/client/slb/v20160304/client.py +93 -95
- ksyun/client/slb/v20160304/models.py +5 -5
- ksyun/client/slb/v20250430/client.py +35 -37
- ksyun/client/sqlserver/v20190425/client.py +46 -48
- ksyun/client/sts/v20151101/client.py +2 -4
- ksyun/client/tagv2/v20200901/client.py +10 -12
- ksyun/client/ter/v20240415/client.py +5 -7
- ksyun/client/tidb/v20210520/client.py +40 -42
- ksyun/client/trade/v20200114/client.py +1 -3
- ksyun/client/trade/v20200831/client.py +1 -3
- ksyun/client/trade/v20250220/client.py +4 -6
- ksyun/client/trade/v20250321/client.py +4 -6
- ksyun/client/trade/v20250828/client.py +1 -3
- ksyun/client/trade/v20250828/models.py +1 -1
- ksyun/client/vpc/v20160304/client.py +132 -134
- ksyun/client/vpc/v20160304/models.py +5 -0
- ksyun/client/waf/v20200707/client.py +20 -22
- ksyun/common/abstract_client.py +15 -3
- ksyun/common/abstract_model.py +3 -3
- ksyun/common/common_client.py +2 -0
- ksyun/common/credential.py +2 -0
- ksyun/common/exception/ksyun_sdk_exception.py +11 -7
- ksyun/common/http/request.py +2 -0
- ksyun/common/profile/client_profile.py +3 -0
- ksyun/common/profile/http_profile.py +2 -0
- {kingsoftcloud_sdk_python-1.5.8.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/licenses/LICENSE +0 -0
- {kingsoftcloud_sdk_python-1.5.8.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/top_level.txt +0 -0
|
@@ -28,7 +28,7 @@ class CdnClient(AbstractClient):
|
|
|
28
28
|
if isinstance(e, KsyunSDKException):
|
|
29
29
|
raise
|
|
30
30
|
else:
|
|
31
|
-
raise KsyunSDKException(
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
def GetServerData(self, request):
|
|
@@ -51,7 +51,7 @@ class CdnClient(AbstractClient):
|
|
|
51
51
|
if isinstance(e, KsyunSDKException):
|
|
52
52
|
raise
|
|
53
53
|
else:
|
|
54
|
-
raise KsyunSDKException(
|
|
54
|
+
raise KsyunSDKException(message=str(e))
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
def GetDomainRankingListData(self, request):
|
|
@@ -74,7 +74,7 @@ class CdnClient(AbstractClient):
|
|
|
74
74
|
if isinstance(e, KsyunSDKException):
|
|
75
75
|
raise
|
|
76
76
|
else:
|
|
77
|
-
raise KsyunSDKException(
|
|
77
|
+
raise KsyunSDKException(message=str(e))
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
def GetAreaIspData(self, request):
|
|
@@ -97,7 +97,7 @@ class CdnClient(AbstractClient):
|
|
|
97
97
|
if isinstance(e, KsyunSDKException):
|
|
98
98
|
raise
|
|
99
99
|
else:
|
|
100
|
-
raise KsyunSDKException(
|
|
100
|
+
raise KsyunSDKException(message=str(e))
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
def GetTopReferData(self, request):
|
|
@@ -120,7 +120,7 @@ class CdnClient(AbstractClient):
|
|
|
120
120
|
if isinstance(e, KsyunSDKException):
|
|
121
121
|
raise
|
|
122
122
|
else:
|
|
123
|
-
raise KsyunSDKException(
|
|
123
|
+
raise KsyunSDKException(message=str(e))
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
def GetTopUrlData(self, request):
|
|
@@ -143,7 +143,7 @@ class CdnClient(AbstractClient):
|
|
|
143
143
|
if isinstance(e, KsyunSDKException):
|
|
144
144
|
raise
|
|
145
145
|
else:
|
|
146
|
-
raise KsyunSDKException(
|
|
146
|
+
raise KsyunSDKException(message=str(e))
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
def GetRealTimeHitRateData(self, request):
|
|
@@ -166,7 +166,7 @@ class CdnClient(AbstractClient):
|
|
|
166
166
|
if isinstance(e, KsyunSDKException):
|
|
167
167
|
raise
|
|
168
168
|
else:
|
|
169
|
-
raise KsyunSDKException(
|
|
169
|
+
raise KsyunSDKException(message=str(e))
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
def GetReqHitRateData(self, request):
|
|
@@ -189,7 +189,7 @@ class CdnClient(AbstractClient):
|
|
|
189
189
|
if isinstance(e, KsyunSDKException):
|
|
190
190
|
raise
|
|
191
191
|
else:
|
|
192
|
-
raise KsyunSDKException(
|
|
192
|
+
raise KsyunSDKException(message=str(e))
|
|
193
193
|
|
|
194
194
|
|
|
195
195
|
def GetFlowHitRateData(self, request):
|
|
@@ -212,7 +212,7 @@ class CdnClient(AbstractClient):
|
|
|
212
212
|
if isinstance(e, KsyunSDKException):
|
|
213
213
|
raise
|
|
214
214
|
else:
|
|
215
|
-
raise KsyunSDKException(
|
|
215
|
+
raise KsyunSDKException(message=str(e))
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
def GetDomainRequestPeriodRatioData(self, request):
|
|
@@ -235,7 +235,7 @@ class CdnClient(AbstractClient):
|
|
|
235
235
|
if isinstance(e, KsyunSDKException):
|
|
236
236
|
raise
|
|
237
237
|
else:
|
|
238
|
-
raise KsyunSDKException(
|
|
238
|
+
raise KsyunSDKException(message=str(e))
|
|
239
239
|
|
|
240
240
|
|
|
241
241
|
def GetUvData(self, request):
|
|
@@ -258,7 +258,7 @@ class CdnClient(AbstractClient):
|
|
|
258
258
|
if isinstance(e, KsyunSDKException):
|
|
259
259
|
raise
|
|
260
260
|
else:
|
|
261
|
-
raise KsyunSDKException(
|
|
261
|
+
raise KsyunSDKException(message=str(e))
|
|
262
262
|
|
|
263
263
|
|
|
264
264
|
def GetTopIpData(self, request):
|
|
@@ -281,7 +281,7 @@ class CdnClient(AbstractClient):
|
|
|
281
281
|
if isinstance(e, KsyunSDKException):
|
|
282
282
|
raise
|
|
283
283
|
else:
|
|
284
|
-
raise KsyunSDKException(
|
|
284
|
+
raise KsyunSDKException(message=str(e))
|
|
285
285
|
|
|
286
286
|
|
|
287
287
|
def GetSrcDomainHttpCodeDetailedData(self, request):
|
|
@@ -304,7 +304,7 @@ class CdnClient(AbstractClient):
|
|
|
304
304
|
if isinstance(e, KsyunSDKException):
|
|
305
305
|
raise
|
|
306
306
|
else:
|
|
307
|
-
raise KsyunSDKException(
|
|
307
|
+
raise KsyunSDKException(message=str(e))
|
|
308
308
|
|
|
309
309
|
|
|
310
310
|
def GetSrcDomainHttpCodeData(self, request):
|
|
@@ -327,7 +327,7 @@ class CdnClient(AbstractClient):
|
|
|
327
327
|
if isinstance(e, KsyunSDKException):
|
|
328
328
|
raise
|
|
329
329
|
else:
|
|
330
|
-
raise KsyunSDKException(
|
|
330
|
+
raise KsyunSDKException(message=str(e))
|
|
331
331
|
|
|
332
332
|
|
|
333
333
|
def GetDomainHttpCodeDetailedData(self, request):
|
|
@@ -350,7 +350,7 @@ class CdnClient(AbstractClient):
|
|
|
350
350
|
if isinstance(e, KsyunSDKException):
|
|
351
351
|
raise
|
|
352
352
|
else:
|
|
353
|
-
raise KsyunSDKException(
|
|
353
|
+
raise KsyunSDKException(message=str(e))
|
|
354
354
|
|
|
355
355
|
|
|
356
356
|
def GetDomainHttpCodeData(self, request):
|
|
@@ -373,7 +373,7 @@ class CdnClient(AbstractClient):
|
|
|
373
373
|
if isinstance(e, KsyunSDKException):
|
|
374
374
|
raise
|
|
375
375
|
else:
|
|
376
|
-
raise KsyunSDKException(
|
|
376
|
+
raise KsyunSDKException(message=str(e))
|
|
377
377
|
|
|
378
378
|
|
|
379
379
|
def GetEntryRateData(self, request):
|
|
@@ -396,6 +396,4 @@ class CdnClient(AbstractClient):
|
|
|
396
396
|
if isinstance(e, KsyunSDKException):
|
|
397
397
|
raise
|
|
398
398
|
else:
|
|
399
|
-
raise KsyunSDKException(
|
|
400
|
-
|
|
401
|
-
|
|
399
|
+
raise KsyunSDKException(message=str(e))
|
|
@@ -28,7 +28,7 @@ class CdnClient(AbstractClient):
|
|
|
28
28
|
if isinstance(e, KsyunSDKException):
|
|
29
29
|
raise
|
|
30
30
|
else:
|
|
31
|
-
raise KsyunSDKException(
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
def GetUserUsageDataExportTask(self, request):
|
|
@@ -51,7 +51,7 @@ class CdnClient(AbstractClient):
|
|
|
51
51
|
if isinstance(e, KsyunSDKException):
|
|
52
52
|
raise
|
|
53
53
|
else:
|
|
54
|
-
raise KsyunSDKException(
|
|
54
|
+
raise KsyunSDKException(message=str(e))
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
def DeleteUserUsageDataExportTask(self, request):
|
|
@@ -74,7 +74,7 @@ class CdnClient(AbstractClient):
|
|
|
74
74
|
if isinstance(e, KsyunSDKException):
|
|
75
75
|
raise
|
|
76
76
|
else:
|
|
77
|
-
raise KsyunSDKException(
|
|
77
|
+
raise KsyunSDKException(message=str(e))
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
def GetDomainUsageData(self, request):
|
|
@@ -97,7 +97,7 @@ class CdnClient(AbstractClient):
|
|
|
97
97
|
if isinstance(e, KsyunSDKException):
|
|
98
98
|
raise
|
|
99
99
|
else:
|
|
100
|
-
raise KsyunSDKException(
|
|
100
|
+
raise KsyunSDKException(message=str(e))
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
def CreateUsageDetailDataExportTask(self, request):
|
|
@@ -120,7 +120,7 @@ class CdnClient(AbstractClient):
|
|
|
120
120
|
if isinstance(e, KsyunSDKException):
|
|
121
121
|
raise
|
|
122
122
|
else:
|
|
123
|
-
raise KsyunSDKException(
|
|
123
|
+
raise KsyunSDKException(message=str(e))
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
def GetUsageDetailDataExportTask(self, request):
|
|
@@ -143,7 +143,7 @@ class CdnClient(AbstractClient):
|
|
|
143
143
|
if isinstance(e, KsyunSDKException):
|
|
144
144
|
raise
|
|
145
145
|
else:
|
|
146
|
-
raise KsyunSDKException(
|
|
146
|
+
raise KsyunSDKException(message=str(e))
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
def DeleteUsageDetailDataExportTask(self, request):
|
|
@@ -166,6 +166,4 @@ class CdnClient(AbstractClient):
|
|
|
166
166
|
if isinstance(e, KsyunSDKException):
|
|
167
167
|
raise
|
|
168
168
|
else:
|
|
169
|
-
raise KsyunSDKException(
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
raise KsyunSDKException(message=str(e))
|
ksyun/client/cdn/v3/client.py
CHANGED
|
@@ -28,7 +28,7 @@ class CdnClient(AbstractClient):
|
|
|
28
28
|
if isinstance(e, KsyunSDKException):
|
|
29
29
|
raise
|
|
30
30
|
else:
|
|
31
|
-
raise KsyunSDKException(
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
def GetClientRequestData(self, request):
|
|
@@ -51,7 +51,7 @@ class CdnClient(AbstractClient):
|
|
|
51
51
|
if isinstance(e, KsyunSDKException):
|
|
52
52
|
raise
|
|
53
53
|
else:
|
|
54
|
-
raise KsyunSDKException(
|
|
54
|
+
raise KsyunSDKException(message=str(e))
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
def GetCdnDomains(self, request):
|
|
@@ -74,7 +74,7 @@ class CdnClient(AbstractClient):
|
|
|
74
74
|
if isinstance(e, KsyunSDKException):
|
|
75
75
|
raise
|
|
76
76
|
else:
|
|
77
|
-
raise KsyunSDKException(
|
|
77
|
+
raise KsyunSDKException(message=str(e))
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
def DeleteCdnDomain(self, request):
|
|
@@ -97,7 +97,7 @@ class CdnClient(AbstractClient):
|
|
|
97
97
|
if isinstance(e, KsyunSDKException):
|
|
98
98
|
raise
|
|
99
99
|
else:
|
|
100
|
-
raise KsyunSDKException(
|
|
100
|
+
raise KsyunSDKException(message=str(e))
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
def GetCdnDomainBasicInfo(self, request):
|
|
@@ -120,7 +120,7 @@ class CdnClient(AbstractClient):
|
|
|
120
120
|
if isinstance(e, KsyunSDKException):
|
|
121
121
|
raise
|
|
122
122
|
else:
|
|
123
|
-
raise KsyunSDKException(
|
|
123
|
+
raise KsyunSDKException(message=str(e))
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
def ModifyCdnDomainBasicInfo(self, request):
|
|
@@ -143,7 +143,7 @@ class CdnClient(AbstractClient):
|
|
|
143
143
|
if isinstance(e, KsyunSDKException):
|
|
144
144
|
raise
|
|
145
145
|
else:
|
|
146
|
-
raise KsyunSDKException(
|
|
146
|
+
raise KsyunSDKException(message=str(e))
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
def AddCdnDomain(self, request):
|
|
@@ -166,7 +166,7 @@ class CdnClient(AbstractClient):
|
|
|
166
166
|
if isinstance(e, KsyunSDKException):
|
|
167
167
|
raise
|
|
168
168
|
else:
|
|
169
|
-
raise KsyunSDKException(
|
|
169
|
+
raise KsyunSDKException(message=str(e))
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
def GetDomainConfigs(self, request):
|
|
@@ -189,7 +189,7 @@ class CdnClient(AbstractClient):
|
|
|
189
189
|
if isinstance(e, KsyunSDKException):
|
|
190
190
|
raise
|
|
191
191
|
else:
|
|
192
|
-
raise KsyunSDKException(
|
|
192
|
+
raise KsyunSDKException(message=str(e))
|
|
193
193
|
|
|
194
194
|
|
|
195
195
|
def StartStopCdnDomain(self, request):
|
|
@@ -212,7 +212,7 @@ class CdnClient(AbstractClient):
|
|
|
212
212
|
if isinstance(e, KsyunSDKException):
|
|
213
213
|
raise
|
|
214
214
|
else:
|
|
215
|
-
raise KsyunSDKException(
|
|
215
|
+
raise KsyunSDKException(message=str(e))
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
def SetCacheRuleConfig(self, request):
|
|
@@ -235,7 +235,7 @@ class CdnClient(AbstractClient):
|
|
|
235
235
|
if isinstance(e, KsyunSDKException):
|
|
236
236
|
raise
|
|
237
237
|
else:
|
|
238
|
-
raise KsyunSDKException(
|
|
238
|
+
raise KsyunSDKException(message=str(e))
|
|
239
239
|
|
|
240
240
|
|
|
241
241
|
def SetBackOriginHostConfig(self, request):
|
|
@@ -258,7 +258,7 @@ class CdnClient(AbstractClient):
|
|
|
258
258
|
if isinstance(e, KsyunSDKException):
|
|
259
259
|
raise
|
|
260
260
|
else:
|
|
261
|
-
raise KsyunSDKException(
|
|
261
|
+
raise KsyunSDKException(message=str(e))
|
|
262
262
|
|
|
263
263
|
|
|
264
264
|
def GetValidDomainList(self, request):
|
|
@@ -281,7 +281,7 @@ class CdnClient(AbstractClient):
|
|
|
281
281
|
if isinstance(e, KsyunSDKException):
|
|
282
282
|
raise
|
|
283
283
|
else:
|
|
284
|
-
raise KsyunSDKException(
|
|
284
|
+
raise KsyunSDKException(message=str(e))
|
|
285
285
|
|
|
286
286
|
|
|
287
287
|
def GetDomainAuthContent(self, request):
|
|
@@ -304,7 +304,7 @@ class CdnClient(AbstractClient):
|
|
|
304
304
|
if isinstance(e, KsyunSDKException):
|
|
305
305
|
raise
|
|
306
306
|
else:
|
|
307
|
-
raise KsyunSDKException(
|
|
307
|
+
raise KsyunSDKException(message=str(e))
|
|
308
308
|
|
|
309
309
|
|
|
310
310
|
def SetVideoSeekConfig(self, request):
|
|
@@ -327,7 +327,7 @@ class CdnClient(AbstractClient):
|
|
|
327
327
|
if isinstance(e, KsyunSDKException):
|
|
328
328
|
raise
|
|
329
329
|
else:
|
|
330
|
-
raise KsyunSDKException(
|
|
330
|
+
raise KsyunSDKException(message=str(e))
|
|
331
331
|
|
|
332
332
|
|
|
333
333
|
def SetPageCompressConfig(self, request):
|
|
@@ -350,7 +350,7 @@ class CdnClient(AbstractClient):
|
|
|
350
350
|
if isinstance(e, KsyunSDKException):
|
|
351
351
|
raise
|
|
352
352
|
else:
|
|
353
|
-
raise KsyunSDKException(
|
|
353
|
+
raise KsyunSDKException(message=str(e))
|
|
354
354
|
|
|
355
355
|
|
|
356
356
|
def SetBrCompressConfig(self, request):
|
|
@@ -373,7 +373,7 @@ class CdnClient(AbstractClient):
|
|
|
373
373
|
if isinstance(e, KsyunSDKException):
|
|
374
374
|
raise
|
|
375
375
|
else:
|
|
376
|
-
raise KsyunSDKException(
|
|
376
|
+
raise KsyunSDKException(message=str(e))
|
|
377
377
|
|
|
378
378
|
|
|
379
379
|
def SetIgnoreQueryStringConfig(self, request):
|
|
@@ -396,7 +396,7 @@ class CdnClient(AbstractClient):
|
|
|
396
396
|
if isinstance(e, KsyunSDKException):
|
|
397
397
|
raise
|
|
398
398
|
else:
|
|
399
|
-
raise KsyunSDKException(
|
|
399
|
+
raise KsyunSDKException(message=str(e))
|
|
400
400
|
|
|
401
401
|
|
|
402
402
|
def SetSetOriginAdvancedConfig(self, request):
|
|
@@ -419,7 +419,7 @@ class CdnClient(AbstractClient):
|
|
|
419
419
|
if isinstance(e, KsyunSDKException):
|
|
420
420
|
raise
|
|
421
421
|
else:
|
|
422
|
-
raise KsyunSDKException(
|
|
422
|
+
raise KsyunSDKException(message=str(e))
|
|
423
423
|
|
|
424
424
|
|
|
425
425
|
def ValidateDomainOwner(self, request):
|
|
@@ -442,7 +442,7 @@ class CdnClient(AbstractClient):
|
|
|
442
442
|
if isinstance(e, KsyunSDKException):
|
|
443
443
|
raise
|
|
444
444
|
else:
|
|
445
|
-
raise KsyunSDKException(
|
|
445
|
+
raise KsyunSDKException(message=str(e))
|
|
446
446
|
|
|
447
447
|
|
|
448
448
|
def SetHttp2OptionConfig(self, request):
|
|
@@ -465,7 +465,7 @@ class CdnClient(AbstractClient):
|
|
|
465
465
|
if isinstance(e, KsyunSDKException):
|
|
466
466
|
raise
|
|
467
467
|
else:
|
|
468
|
-
raise KsyunSDKException(
|
|
468
|
+
raise KsyunSDKException(message=str(e))
|
|
469
469
|
|
|
470
470
|
|
|
471
471
|
def SetReferProtectionConfig(self, request):
|
|
@@ -488,7 +488,7 @@ class CdnClient(AbstractClient):
|
|
|
488
488
|
if isinstance(e, KsyunSDKException):
|
|
489
489
|
raise
|
|
490
490
|
else:
|
|
491
|
-
raise KsyunSDKException(
|
|
491
|
+
raise KsyunSDKException(message=str(e))
|
|
492
492
|
|
|
493
493
|
|
|
494
494
|
def SetIpProtectionConfig(self, request):
|
|
@@ -511,7 +511,7 @@ class CdnClient(AbstractClient):
|
|
|
511
511
|
if isinstance(e, KsyunSDKException):
|
|
512
512
|
raise
|
|
513
513
|
else:
|
|
514
|
-
raise KsyunSDKException(
|
|
514
|
+
raise KsyunSDKException(message=str(e))
|
|
515
515
|
|
|
516
516
|
|
|
517
517
|
def SetHttpHeadersConfig(self, request):
|
|
@@ -534,7 +534,7 @@ class CdnClient(AbstractClient):
|
|
|
534
534
|
if isinstance(e, KsyunSDKException):
|
|
535
535
|
raise
|
|
536
536
|
else:
|
|
537
|
-
raise KsyunSDKException(
|
|
537
|
+
raise KsyunSDKException(message=str(e))
|
|
538
538
|
|
|
539
539
|
|
|
540
540
|
def DeleteHttpHeadersConfig(self, request):
|
|
@@ -557,7 +557,7 @@ class CdnClient(AbstractClient):
|
|
|
557
557
|
if isinstance(e, KsyunSDKException):
|
|
558
558
|
raise
|
|
559
559
|
else:
|
|
560
|
-
raise KsyunSDKException(
|
|
560
|
+
raise KsyunSDKException(message=str(e))
|
|
561
561
|
|
|
562
562
|
|
|
563
563
|
def GetHttpHeaderList(self, request):
|
|
@@ -580,7 +580,7 @@ class CdnClient(AbstractClient):
|
|
|
580
580
|
if isinstance(e, KsyunSDKException):
|
|
581
581
|
raise
|
|
582
582
|
else:
|
|
583
|
-
raise KsyunSDKException(
|
|
583
|
+
raise KsyunSDKException(message=str(e))
|
|
584
584
|
|
|
585
585
|
|
|
586
586
|
def SetRequestAuthConfig(self, request):
|
|
@@ -603,7 +603,7 @@ class CdnClient(AbstractClient):
|
|
|
603
603
|
if isinstance(e, KsyunSDKException):
|
|
604
604
|
raise
|
|
605
605
|
else:
|
|
606
|
-
raise KsyunSDKException(
|
|
606
|
+
raise KsyunSDKException(message=str(e))
|
|
607
607
|
|
|
608
608
|
|
|
609
609
|
def SetForceRedirectConfig(self, request):
|
|
@@ -626,7 +626,7 @@ class CdnClient(AbstractClient):
|
|
|
626
626
|
if isinstance(e, KsyunSDKException):
|
|
627
627
|
raise
|
|
628
628
|
else:
|
|
629
|
-
raise KsyunSDKException(
|
|
629
|
+
raise KsyunSDKException(message=str(e))
|
|
630
630
|
|
|
631
631
|
|
|
632
632
|
def SetErrorPageConfig(self, request):
|
|
@@ -649,7 +649,7 @@ class CdnClient(AbstractClient):
|
|
|
649
649
|
if isinstance(e, KsyunSDKException):
|
|
650
650
|
raise
|
|
651
651
|
else:
|
|
652
|
-
raise KsyunSDKException(
|
|
652
|
+
raise KsyunSDKException(message=str(e))
|
|
653
653
|
|
|
654
654
|
|
|
655
655
|
def SetTLSVersionConfig(self, request):
|
|
@@ -672,7 +672,7 @@ class CdnClient(AbstractClient):
|
|
|
672
672
|
if isinstance(e, KsyunSDKException):
|
|
673
673
|
raise
|
|
674
674
|
else:
|
|
675
|
-
raise KsyunSDKException(
|
|
675
|
+
raise KsyunSDKException(message=str(e))
|
|
676
676
|
|
|
677
677
|
|
|
678
678
|
def GetBillingMode(self, request):
|
|
@@ -695,7 +695,7 @@ class CdnClient(AbstractClient):
|
|
|
695
695
|
if isinstance(e, KsyunSDKException):
|
|
696
696
|
raise
|
|
697
697
|
else:
|
|
698
|
-
raise KsyunSDKException(
|
|
698
|
+
raise KsyunSDKException(message=str(e))
|
|
699
699
|
|
|
700
700
|
|
|
701
701
|
def GetBlockUrlQuota(self, request):
|
|
@@ -718,7 +718,7 @@ class CdnClient(AbstractClient):
|
|
|
718
718
|
if isinstance(e, KsyunSDKException):
|
|
719
719
|
raise
|
|
720
720
|
else:
|
|
721
|
-
raise KsyunSDKException(
|
|
721
|
+
raise KsyunSDKException(message=str(e))
|
|
722
722
|
|
|
723
723
|
|
|
724
724
|
def GetBandwidthData(self, request):
|
|
@@ -741,7 +741,7 @@ class CdnClient(AbstractClient):
|
|
|
741
741
|
if isinstance(e, KsyunSDKException):
|
|
742
742
|
raise
|
|
743
743
|
else:
|
|
744
|
-
raise KsyunSDKException(
|
|
744
|
+
raise KsyunSDKException(message=str(e))
|
|
745
745
|
|
|
746
746
|
|
|
747
747
|
def GetFlowData(self, request):
|
|
@@ -764,7 +764,7 @@ class CdnClient(AbstractClient):
|
|
|
764
764
|
if isinstance(e, KsyunSDKException):
|
|
765
765
|
raise
|
|
766
766
|
else:
|
|
767
|
-
raise KsyunSDKException(
|
|
767
|
+
raise KsyunSDKException(message=str(e))
|
|
768
768
|
|
|
769
769
|
|
|
770
770
|
def GetPvData(self, request):
|
|
@@ -787,7 +787,7 @@ class CdnClient(AbstractClient):
|
|
|
787
787
|
if isinstance(e, KsyunSDKException):
|
|
788
788
|
raise
|
|
789
789
|
else:
|
|
790
|
-
raise KsyunSDKException(
|
|
790
|
+
raise KsyunSDKException(message=str(e))
|
|
791
791
|
|
|
792
792
|
|
|
793
793
|
def SetDomainLogService(self, request):
|
|
@@ -810,7 +810,7 @@ class CdnClient(AbstractClient):
|
|
|
810
810
|
if isinstance(e, KsyunSDKException):
|
|
811
811
|
raise
|
|
812
812
|
else:
|
|
813
|
-
raise KsyunSDKException(
|
|
813
|
+
raise KsyunSDKException(message=str(e))
|
|
814
814
|
|
|
815
815
|
|
|
816
816
|
def SetCertificate(self, request):
|
|
@@ -833,7 +833,7 @@ class CdnClient(AbstractClient):
|
|
|
833
833
|
if isinstance(e, KsyunSDKException):
|
|
834
834
|
raise
|
|
835
835
|
else:
|
|
836
|
-
raise KsyunSDKException(
|
|
836
|
+
raise KsyunSDKException(message=str(e))
|
|
837
837
|
|
|
838
838
|
|
|
839
839
|
def RemoveCertificates(self, request):
|
|
@@ -856,7 +856,7 @@ class CdnClient(AbstractClient):
|
|
|
856
856
|
if isinstance(e, KsyunSDKException):
|
|
857
857
|
raise
|
|
858
858
|
else:
|
|
859
|
-
raise KsyunSDKException(
|
|
859
|
+
raise KsyunSDKException(message=str(e))
|
|
860
860
|
|
|
861
861
|
|
|
862
862
|
def AssociateCertificateConfig(self, request):
|
|
@@ -879,7 +879,7 @@ class CdnClient(AbstractClient):
|
|
|
879
879
|
if isinstance(e, KsyunSDKException):
|
|
880
880
|
raise
|
|
881
881
|
else:
|
|
882
|
-
raise KsyunSDKException(
|
|
882
|
+
raise KsyunSDKException(message=str(e))
|
|
883
883
|
|
|
884
884
|
|
|
885
885
|
def ValidateIP(self, request):
|
|
@@ -902,7 +902,7 @@ class CdnClient(AbstractClient):
|
|
|
902
902
|
if isinstance(e, KsyunSDKException):
|
|
903
903
|
raise
|
|
904
904
|
else:
|
|
905
|
-
raise KsyunSDKException(
|
|
905
|
+
raise KsyunSDKException(message=str(e))
|
|
906
906
|
|
|
907
907
|
|
|
908
908
|
def SetCdnBlockDomainUrl(self, request):
|
|
@@ -925,7 +925,7 @@ class CdnClient(AbstractClient):
|
|
|
925
925
|
if isinstance(e, KsyunSDKException):
|
|
926
926
|
raise
|
|
927
927
|
else:
|
|
928
|
-
raise KsyunSDKException(
|
|
928
|
+
raise KsyunSDKException(message=str(e))
|
|
929
929
|
|
|
930
930
|
|
|
931
931
|
def SyncRefreshCaches(self, request):
|
|
@@ -948,7 +948,7 @@ class CdnClient(AbstractClient):
|
|
|
948
948
|
if isinstance(e, KsyunSDKException):
|
|
949
949
|
raise
|
|
950
950
|
else:
|
|
951
|
-
raise KsyunSDKException(
|
|
951
|
+
raise KsyunSDKException(message=str(e))
|
|
952
952
|
|
|
953
953
|
|
|
954
954
|
def InsertPreloadCaches(self, request):
|
|
@@ -971,7 +971,7 @@ class CdnClient(AbstractClient):
|
|
|
971
971
|
if isinstance(e, KsyunSDKException):
|
|
972
972
|
raise
|
|
973
973
|
else:
|
|
974
|
-
raise KsyunSDKException(
|
|
974
|
+
raise KsyunSDKException(message=str(e))
|
|
975
975
|
|
|
976
976
|
|
|
977
977
|
def GetCntvRefreshOrPreloadTask(self, request):
|
|
@@ -994,6 +994,4 @@ class CdnClient(AbstractClient):
|
|
|
994
994
|
if isinstance(e, KsyunSDKException):
|
|
995
995
|
raise
|
|
996
996
|
else:
|
|
997
|
-
raise KsyunSDKException(
|
|
998
|
-
|
|
999
|
-
|
|
997
|
+
raise KsyunSDKException(message=str(e))
|
ksyun/client/cdn/v3/models.py
CHANGED
|
@@ -13,9 +13,9 @@ class GetDomainLogsRequest(AbstractModel):
|
|
|
13
13
|
:param EndTime: 查询结束时间,格式yyyy-MM-dd,开始时间和结束时间均不指定时,默认是当天,若已指定开始时间StartTime,则EndTime为必填项
|
|
14
14
|
:type PathPrefix: String
|
|
15
15
|
:param PageSize: 分页大小,取值为1-500,最大500,默认50
|
|
16
|
-
:type PathPrefix:
|
|
16
|
+
:type PathPrefix: Long
|
|
17
17
|
:param PageNumber: 取得第几页,取值为:1-10000,最大10000,默认1
|
|
18
|
-
:type PathPrefix:
|
|
18
|
+
:type PathPrefix: Long
|
|
19
19
|
"""
|
|
20
20
|
self.DomainId = None
|
|
21
21
|
self.StartTime = None
|
|
@@ -119,13 +119,13 @@ class GetCdnDomainsRequest(AbstractModel):
|
|
|
119
119
|
def __init__(self):
|
|
120
120
|
r"""根据用户查询域名信息列表-V3版本
|
|
121
121
|
:param PageSize: 分页大小,默认20,最大500,取值1~500间整数
|
|
122
|
-
:type PathPrefix:
|
|
122
|
+
:type PathPrefix: Long
|
|
123
123
|
:param PageNumber: 取第几页。默认为1,取值1~10000
|
|
124
|
-
:type PathPrefix:
|
|
124
|
+
:type PathPrefix: Long
|
|
125
125
|
:param DomainName: 按域名过滤,默认为空,为空时代表当前用户下所有域名,域名长度最大255,不支持多个域名同时查询
|
|
126
126
|
:type PathPrefix: String
|
|
127
127
|
:param ProjectId: 查询指定项目下的域名。默认为空,为空时查询当前用户下所有域名ProjectId可至金山云控制台-资源管理-项目管理查询
|
|
128
|
-
:type PathPrefix:
|
|
128
|
+
:type PathPrefix: Long
|
|
129
129
|
:param DomainStatus: 按域名状态过滤。默认为空,为空时查询当前用户下所有域名的全部状态,取值为:online:正在运行;offline:已停止;configuring:配置中;configure_failed:配置失败 ;icp_checking:审核中;icp_check_failed:审核失败;locked:已封禁;locking:封禁中
|
|
130
130
|
:type PathPrefix: String
|
|
131
131
|
:param CdnType: 产品类型:file:大文件下载,video:音视频点播,page:图片小文件,wcdn:全站加速,默认为空,代表当前用户下全部产品类型(包括wcdn产品,不支持live:流媒体直播),支持同时查询多个产品类型,两个类型之间用英文逗号(半角)隔开
|
|
@@ -944,9 +944,9 @@ class GetBandwidthDataRequest(AbstractModel):
|
|
|
944
944
|
:param Regions: S区域名称,枚举类型表见使用须知,支持多区域查询,多个区域用逗号(半角)分隔,缺省为 CN缺省为 CN
|
|
945
945
|
:type PathPrefix: String
|
|
946
946
|
:param ResultType: 取值为0:多域名多区域数据做合并;1:每个域名每个区域的数据分别返回
|
|
947
|
-
:type PathPrefix:
|
|
947
|
+
:type PathPrefix: Long
|
|
948
948
|
:param Granularity: 统计粒度,取值为 5(默认):5分钟粒度;10:10分钟粒度;20:20分钟粒度;60:1小时粒度;240:4小时粒度;480:8小时粒度;1440:1天粒度;以上粒度的带宽值均取该粒度时间段的带宽峰值,即每5分钟有效带宽值的最高带宽
|
|
949
|
-
:type PathPrefix:
|
|
949
|
+
:type PathPrefix: Long
|
|
950
950
|
:param DataType: 数据类型,取值为edge:服务数据; origin:回源数据(push:直播推流加速暂不支持查询回源数据); 支持多类型选择,多个类型用逗号(半角)分隔,缺省为 edge
|
|
951
951
|
:type PathPrefix: String
|
|
952
952
|
:param ProtocolType: 协议类型, 取值为http:http协议数据;https:https协议数据;缺省默认返回全部协议数据(当CdnType=live时,请忽略此参数)
|
|
@@ -1000,9 +1000,9 @@ class GetFlowDataRequest(AbstractModel):
|
|
|
1000
1000
|
:param Regions: 区域名称,枚举类型表见[使用须知](使用须知),支持多区域查询,多个区域用逗号(半角)分隔,缺省为 CN缺省为 CN
|
|
1001
1001
|
:type PathPrefix: String
|
|
1002
1002
|
:param ResultType: 取值为0:多域名多区域数据做合并;1:每个域名每个区域的数据分别返回
|
|
1003
|
-
:type PathPrefix:
|
|
1003
|
+
:type PathPrefix: Long
|
|
1004
1004
|
:param Granularity: 统计粒度,取值为 5(默认):5分钟粒度;10:10分钟粒度;20:20分钟粒度;60:1小时粒度;240:4小时粒度;480:8小时粒度;1440:1天粒度;以上粒度流量值均取该粒度时间段的流量总和
|
|
1005
|
-
:type PathPrefix:
|
|
1005
|
+
:type PathPrefix: Long
|
|
1006
1006
|
:param DataType: 数据类型,取值为edge:服务数据; origin:回源数据(push:直播推流加速暂不支持查询回源数据); 支持多类型选择,多个类型用逗号(半角)分隔,缺省为edge
|
|
1007
1007
|
:type PathPrefix: String
|
|
1008
1008
|
:param ProtocolType: 协议类型, 取值为http:htts协议数据; https:https协议数据;缺省默认返回全部协议数据
|
|
@@ -1056,9 +1056,9 @@ class GetPvDataRequest(AbstractModel):
|
|
|
1056
1056
|
:param Regions: 区域名称,枚举类型表见[使用须知](https://docs.ksyun.com/documents/196#36),支持多区域查询,多个区域用逗号(半角)分隔,缺省为 CN缺省为 CN
|
|
1057
1057
|
:type PathPrefix: String
|
|
1058
1058
|
:param ResultType: 取值为0:多域名多区域数据做合并;1:每个域名每个区域的数据分别返回
|
|
1059
|
-
:type PathPrefix:
|
|
1059
|
+
:type PathPrefix: Long
|
|
1060
1060
|
:param Granularity: 统计粒度,取值为 5(默认):5分钟粒度;10:10分钟粒度;20:20分钟粒度;60:1小时粒度;240:4小时粒度;480:8小时粒度;1440:1天粒度;以上粒度的请求数均取该粒度时间段的请求数总和
|
|
1061
|
-
:type PathPrefix:
|
|
1061
|
+
:type PathPrefix: Long
|
|
1062
1062
|
:param DataType: 数据类型, 取值为edge:服务数据; origin:回源数据; 支持多类型选择,多个类型用逗号(半角)分隔,缺省为edge
|
|
1063
1063
|
:type PathPrefix: String
|
|
1064
1064
|
:param ProtocolType: 协议类型, 取值为http:http协议数据; https:https协议数据(直播不支持区分协议查询),默认返回全部协议数据
|