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 AicpClient(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 ModifyNotebook(self, request):
|
|
@@ -51,7 +51,7 @@ class AicpClient(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 DeleteNotebook(self, request):
|
|
@@ -74,7 +74,7 @@ class AicpClient(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 DescribeNotebooks(self, request):
|
|
@@ -97,7 +97,7 @@ class AicpClient(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 CreateNotebook(self, request):
|
|
@@ -120,7 +120,99 @@ class AicpClient(AbstractClient):
|
|
|
120
120
|
if isinstance(e, KsyunSDKException):
|
|
121
121
|
raise
|
|
122
122
|
else:
|
|
123
|
-
raise KsyunSDKException(
|
|
123
|
+
raise KsyunSDKException(message=str(e))
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def CreateImage(self, request):
|
|
127
|
+
"""新建自定义镜像
|
|
128
|
+
:param request: Request instance for CreateImage.
|
|
129
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.CreateImageRequest`
|
|
130
|
+
"""
|
|
131
|
+
try:
|
|
132
|
+
params = request._serialize()
|
|
133
|
+
body = self.call_judge("CreateImage", params, "application/x-www-form-urlencoded")
|
|
134
|
+
response = json.loads(body)
|
|
135
|
+
if "Error" not in response:
|
|
136
|
+
return body
|
|
137
|
+
else:
|
|
138
|
+
code = response["Error"]["Code"]
|
|
139
|
+
message = response["Error"]["Message"]
|
|
140
|
+
req_id = response["RequestId"]
|
|
141
|
+
raise KsyunSDKException(code, message, req_id)
|
|
142
|
+
except Exception as e:
|
|
143
|
+
if isinstance(e, KsyunSDKException):
|
|
144
|
+
raise
|
|
145
|
+
else:
|
|
146
|
+
raise KsyunSDKException(message=str(e))
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def DeleteImage(self, request):
|
|
150
|
+
"""删除自定义镜像
|
|
151
|
+
:param request: Request instance for DeleteImage.
|
|
152
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.DeleteImageRequest`
|
|
153
|
+
"""
|
|
154
|
+
try:
|
|
155
|
+
params = request._serialize()
|
|
156
|
+
body = self.call_judge("DeleteImage", params, "application/x-www-form-urlencoded")
|
|
157
|
+
response = json.loads(body)
|
|
158
|
+
if "Error" not in response:
|
|
159
|
+
return body
|
|
160
|
+
else:
|
|
161
|
+
code = response["Error"]["Code"]
|
|
162
|
+
message = response["Error"]["Message"]
|
|
163
|
+
req_id = response["RequestId"]
|
|
164
|
+
raise KsyunSDKException(code, message, req_id)
|
|
165
|
+
except Exception as e:
|
|
166
|
+
if isinstance(e, KsyunSDKException):
|
|
167
|
+
raise
|
|
168
|
+
else:
|
|
169
|
+
raise KsyunSDKException(message=str(e))
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def ModifyImage(self, request):
|
|
173
|
+
"""修改自定义镜像
|
|
174
|
+
:param request: Request instance for ModifyImage.
|
|
175
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.ModifyImageRequest`
|
|
176
|
+
"""
|
|
177
|
+
try:
|
|
178
|
+
params = request._serialize()
|
|
179
|
+
body = self.call_judge("ModifyImage", params, "application/x-www-form-urlencoded")
|
|
180
|
+
response = json.loads(body)
|
|
181
|
+
if "Error" not in response:
|
|
182
|
+
return body
|
|
183
|
+
else:
|
|
184
|
+
code = response["Error"]["Code"]
|
|
185
|
+
message = response["Error"]["Message"]
|
|
186
|
+
req_id = response["RequestId"]
|
|
187
|
+
raise KsyunSDKException(code, message, req_id)
|
|
188
|
+
except Exception as e:
|
|
189
|
+
if isinstance(e, KsyunSDKException):
|
|
190
|
+
raise
|
|
191
|
+
else:
|
|
192
|
+
raise KsyunSDKException(message=str(e))
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def DescribeImages(self, request):
|
|
196
|
+
"""查询镜像列表
|
|
197
|
+
:param request: Request instance for DescribeImages.
|
|
198
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.DescribeImagesRequest`
|
|
199
|
+
"""
|
|
200
|
+
try:
|
|
201
|
+
params = request._serialize()
|
|
202
|
+
body = self.call_judge("DescribeImages", params, "application/x-www-form-urlencoded")
|
|
203
|
+
response = json.loads(body)
|
|
204
|
+
if "Error" not in response:
|
|
205
|
+
return body
|
|
206
|
+
else:
|
|
207
|
+
code = response["Error"]["Code"]
|
|
208
|
+
message = response["Error"]["Message"]
|
|
209
|
+
req_id = response["RequestId"]
|
|
210
|
+
raise KsyunSDKException(code, message, req_id)
|
|
211
|
+
except Exception as e:
|
|
212
|
+
if isinstance(e, KsyunSDKException):
|
|
213
|
+
raise
|
|
214
|
+
else:
|
|
215
|
+
raise KsyunSDKException(message=str(e))
|
|
124
216
|
|
|
125
217
|
|
|
126
218
|
def StopNotebook(self, request):
|
|
@@ -143,7 +235,7 @@ class AicpClient(AbstractClient):
|
|
|
143
235
|
if isinstance(e, KsyunSDKException):
|
|
144
236
|
raise
|
|
145
237
|
else:
|
|
146
|
-
raise KsyunSDKException(
|
|
238
|
+
raise KsyunSDKException(message=str(e))
|
|
147
239
|
|
|
148
240
|
|
|
149
241
|
def StartNotebook(self, request):
|
|
@@ -166,7 +258,7 @@ class AicpClient(AbstractClient):
|
|
|
166
258
|
if isinstance(e, KsyunSDKException):
|
|
167
259
|
raise
|
|
168
260
|
else:
|
|
169
|
-
raise KsyunSDKException(
|
|
261
|
+
raise KsyunSDKException(message=str(e))
|
|
170
262
|
|
|
171
263
|
|
|
172
264
|
def GetWebIdeUrl(self, request):
|
|
@@ -189,7 +281,7 @@ class AicpClient(AbstractClient):
|
|
|
189
281
|
if isinstance(e, KsyunSDKException):
|
|
190
282
|
raise
|
|
191
283
|
else:
|
|
192
|
-
raise KsyunSDKException(
|
|
284
|
+
raise KsyunSDKException(message=str(e))
|
|
193
285
|
|
|
194
286
|
|
|
195
287
|
def DescribeNotebookEvents(self, request):
|
|
@@ -212,7 +304,7 @@ class AicpClient(AbstractClient):
|
|
|
212
304
|
if isinstance(e, KsyunSDKException):
|
|
213
305
|
raise
|
|
214
306
|
else:
|
|
215
|
-
raise KsyunSDKException(
|
|
307
|
+
raise KsyunSDKException(message=str(e))
|
|
216
308
|
|
|
217
309
|
|
|
218
310
|
def DescribeNotebookLog(self, request):
|
|
@@ -235,7 +327,7 @@ class AicpClient(AbstractClient):
|
|
|
235
327
|
if isinstance(e, KsyunSDKException):
|
|
236
328
|
raise
|
|
237
329
|
else:
|
|
238
|
-
raise KsyunSDKException(
|
|
330
|
+
raise KsyunSDKException(message=str(e))
|
|
239
331
|
|
|
240
332
|
|
|
241
333
|
def StopNotebookSavingImage(self, request):
|
|
@@ -258,7 +350,7 @@ class AicpClient(AbstractClient):
|
|
|
258
350
|
if isinstance(e, KsyunSDKException):
|
|
259
351
|
raise
|
|
260
352
|
else:
|
|
261
|
-
raise KsyunSDKException(
|
|
353
|
+
raise KsyunSDKException(message=str(e))
|
|
262
354
|
|
|
263
355
|
|
|
264
356
|
def EnableApikeyStatus(self, request):
|
|
@@ -281,7 +373,7 @@ class AicpClient(AbstractClient):
|
|
|
281
373
|
if isinstance(e, KsyunSDKException):
|
|
282
374
|
raise
|
|
283
375
|
else:
|
|
284
|
-
raise KsyunSDKException(
|
|
376
|
+
raise KsyunSDKException(message=str(e))
|
|
285
377
|
|
|
286
378
|
|
|
287
379
|
def ModifyApikey(self, request):
|
|
@@ -304,7 +396,7 @@ class AicpClient(AbstractClient):
|
|
|
304
396
|
if isinstance(e, KsyunSDKException):
|
|
305
397
|
raise
|
|
306
398
|
else:
|
|
307
|
-
raise KsyunSDKException(
|
|
399
|
+
raise KsyunSDKException(message=str(e))
|
|
308
400
|
|
|
309
401
|
|
|
310
402
|
def ActivateApiService(self, request):
|
|
@@ -327,7 +419,7 @@ class AicpClient(AbstractClient):
|
|
|
327
419
|
if isinstance(e, KsyunSDKException):
|
|
328
420
|
raise
|
|
329
421
|
else:
|
|
330
|
-
raise KsyunSDKException(
|
|
422
|
+
raise KsyunSDKException(message=str(e))
|
|
331
423
|
|
|
332
424
|
|
|
333
425
|
def DeleteApikey(self, request):
|
|
@@ -350,7 +442,7 @@ class AicpClient(AbstractClient):
|
|
|
350
442
|
if isinstance(e, KsyunSDKException):
|
|
351
443
|
raise
|
|
352
444
|
else:
|
|
353
|
-
raise KsyunSDKException(
|
|
445
|
+
raise KsyunSDKException(message=str(e))
|
|
354
446
|
|
|
355
447
|
|
|
356
448
|
def DescribeModels(self, request):
|
|
@@ -373,7 +465,7 @@ class AicpClient(AbstractClient):
|
|
|
373
465
|
if isinstance(e, KsyunSDKException):
|
|
374
466
|
raise
|
|
375
467
|
else:
|
|
376
|
-
raise KsyunSDKException(
|
|
468
|
+
raise KsyunSDKException(message=str(e))
|
|
377
469
|
|
|
378
470
|
|
|
379
471
|
def CreateApikey(self, request):
|
|
@@ -396,7 +488,7 @@ class AicpClient(AbstractClient):
|
|
|
396
488
|
if isinstance(e, KsyunSDKException):
|
|
397
489
|
raise
|
|
398
490
|
else:
|
|
399
|
-
raise KsyunSDKException(
|
|
491
|
+
raise KsyunSDKException(message=str(e))
|
|
400
492
|
|
|
401
493
|
|
|
402
494
|
def GetModelDetail(self, request):
|
|
@@ -419,7 +511,7 @@ class AicpClient(AbstractClient):
|
|
|
419
511
|
if isinstance(e, KsyunSDKException):
|
|
420
512
|
raise
|
|
421
513
|
else:
|
|
422
|
-
raise KsyunSDKException(
|
|
514
|
+
raise KsyunSDKException(message=str(e))
|
|
423
515
|
|
|
424
516
|
|
|
425
517
|
def DescribeApikeys(self, request):
|
|
@@ -442,7 +534,7 @@ class AicpClient(AbstractClient):
|
|
|
442
534
|
if isinstance(e, KsyunSDKException):
|
|
443
535
|
raise
|
|
444
536
|
else:
|
|
445
|
-
raise KsyunSDKException(
|
|
537
|
+
raise KsyunSDKException(message=str(e))
|
|
446
538
|
|
|
447
539
|
|
|
448
540
|
def QueryTokenData(self, request):
|
|
@@ -465,7 +557,7 @@ class AicpClient(AbstractClient):
|
|
|
465
557
|
if isinstance(e, KsyunSDKException):
|
|
466
558
|
raise
|
|
467
559
|
else:
|
|
468
|
-
raise KsyunSDKException(
|
|
560
|
+
raise KsyunSDKException(message=str(e))
|
|
469
561
|
|
|
470
562
|
|
|
471
563
|
def DisableApikeyStatus(self, request):
|
|
@@ -488,7 +580,7 @@ class AicpClient(AbstractClient):
|
|
|
488
580
|
if isinstance(e, KsyunSDKException):
|
|
489
581
|
raise
|
|
490
582
|
else:
|
|
491
|
-
raise KsyunSDKException(
|
|
583
|
+
raise KsyunSDKException(message=str(e))
|
|
492
584
|
|
|
493
585
|
|
|
494
586
|
def GetApiService(self, request):
|
|
@@ -511,7 +603,7 @@ class AicpClient(AbstractClient):
|
|
|
511
603
|
if isinstance(e, KsyunSDKException):
|
|
512
604
|
raise
|
|
513
605
|
else:
|
|
514
|
-
raise KsyunSDKException(
|
|
606
|
+
raise KsyunSDKException(message=str(e))
|
|
515
607
|
|
|
516
608
|
|
|
517
609
|
def GetBatchInferenceJobsFinalResultDownloadUrl(self, request):
|
|
@@ -534,7 +626,7 @@ class AicpClient(AbstractClient):
|
|
|
534
626
|
if isinstance(e, KsyunSDKException):
|
|
535
627
|
raise
|
|
536
628
|
else:
|
|
537
|
-
raise KsyunSDKException(
|
|
629
|
+
raise KsyunSDKException(message=str(e))
|
|
538
630
|
|
|
539
631
|
|
|
540
632
|
def DescribeInferenceJobsKs3AuthInfo(self, request):
|
|
@@ -557,7 +649,7 @@ class AicpClient(AbstractClient):
|
|
|
557
649
|
if isinstance(e, KsyunSDKException):
|
|
558
650
|
raise
|
|
559
651
|
else:
|
|
560
|
-
raise KsyunSDKException(
|
|
652
|
+
raise KsyunSDKException(message=str(e))
|
|
561
653
|
|
|
562
654
|
|
|
563
655
|
def StopBatchInferenceJob(self, request):
|
|
@@ -580,7 +672,7 @@ class AicpClient(AbstractClient):
|
|
|
580
672
|
if isinstance(e, KsyunSDKException):
|
|
581
673
|
raise
|
|
582
674
|
else:
|
|
583
|
-
raise KsyunSDKException(
|
|
675
|
+
raise KsyunSDKException(message=str(e))
|
|
584
676
|
|
|
585
677
|
|
|
586
678
|
def CreateBatchInferenceJob(self, request):
|
|
@@ -603,7 +695,7 @@ class AicpClient(AbstractClient):
|
|
|
603
695
|
if isinstance(e, KsyunSDKException):
|
|
604
696
|
raise
|
|
605
697
|
else:
|
|
606
|
-
raise KsyunSDKException(
|
|
698
|
+
raise KsyunSDKException(message=str(e))
|
|
607
699
|
|
|
608
700
|
|
|
609
701
|
def ModifyBatchInferenceJob(self, request):
|
|
@@ -626,7 +718,7 @@ class AicpClient(AbstractClient):
|
|
|
626
718
|
if isinstance(e, KsyunSDKException):
|
|
627
719
|
raise
|
|
628
720
|
else:
|
|
629
|
-
raise KsyunSDKException(
|
|
721
|
+
raise KsyunSDKException(message=str(e))
|
|
630
722
|
|
|
631
723
|
|
|
632
724
|
def DescribeBatchInferenceJobs(self, request):
|
|
@@ -649,7 +741,7 @@ class AicpClient(AbstractClient):
|
|
|
649
741
|
if isinstance(e, KsyunSDKException):
|
|
650
742
|
raise
|
|
651
743
|
else:
|
|
652
|
-
raise KsyunSDKException(
|
|
744
|
+
raise KsyunSDKException(message=str(e))
|
|
653
745
|
|
|
654
746
|
|
|
655
747
|
def DeleteBatchInferenceJob(self, request):
|
|
@@ -672,7 +764,7 @@ class AicpClient(AbstractClient):
|
|
|
672
764
|
if isinstance(e, KsyunSDKException):
|
|
673
765
|
raise
|
|
674
766
|
else:
|
|
675
|
-
raise KsyunSDKException(
|
|
767
|
+
raise KsyunSDKException(message=str(e))
|
|
676
768
|
|
|
677
769
|
|
|
678
770
|
def EnableModels(self, request):
|
|
@@ -695,7 +787,7 @@ class AicpClient(AbstractClient):
|
|
|
695
787
|
if isinstance(e, KsyunSDKException):
|
|
696
788
|
raise
|
|
697
789
|
else:
|
|
698
|
-
raise KsyunSDKException(
|
|
790
|
+
raise KsyunSDKException(message=str(e))
|
|
699
791
|
|
|
700
792
|
|
|
701
793
|
def DescribeModelQuotas(self, request):
|
|
@@ -718,7 +810,7 @@ class AicpClient(AbstractClient):
|
|
|
718
810
|
if isinstance(e, KsyunSDKException):
|
|
719
811
|
raise
|
|
720
812
|
else:
|
|
721
|
-
raise KsyunSDKException(
|
|
813
|
+
raise KsyunSDKException(message=str(e))
|
|
722
814
|
|
|
723
815
|
|
|
724
816
|
def DisableModels(self, request):
|
|
@@ -741,7 +833,7 @@ class AicpClient(AbstractClient):
|
|
|
741
833
|
if isinstance(e, KsyunSDKException):
|
|
742
834
|
raise
|
|
743
835
|
else:
|
|
744
|
-
raise KsyunSDKException(
|
|
836
|
+
raise KsyunSDKException(message=str(e))
|
|
745
837
|
|
|
746
838
|
|
|
747
839
|
def EnableOverFreeLimit(self, request):
|
|
@@ -764,7 +856,7 @@ class AicpClient(AbstractClient):
|
|
|
764
856
|
if isinstance(e, KsyunSDKException):
|
|
765
857
|
raise
|
|
766
858
|
else:
|
|
767
|
-
raise KsyunSDKException(
|
|
859
|
+
raise KsyunSDKException(message=str(e))
|
|
768
860
|
|
|
769
861
|
|
|
770
862
|
def DisableOverFreeLimit(self, request):
|
|
@@ -787,7 +879,7 @@ class AicpClient(AbstractClient):
|
|
|
787
879
|
if isinstance(e, KsyunSDKException):
|
|
788
880
|
raise
|
|
789
881
|
else:
|
|
790
|
-
raise KsyunSDKException(
|
|
882
|
+
raise KsyunSDKException(message=str(e))
|
|
791
883
|
|
|
792
884
|
|
|
793
885
|
def CreateTrainJob(self, request):
|
|
@@ -810,7 +902,7 @@ class AicpClient(AbstractClient):
|
|
|
810
902
|
if isinstance(e, KsyunSDKException):
|
|
811
903
|
raise
|
|
812
904
|
else:
|
|
813
|
-
raise KsyunSDKException(
|
|
905
|
+
raise KsyunSDKException(message=str(e))
|
|
814
906
|
|
|
815
907
|
|
|
816
908
|
def DescribeTrainJobEvents(self, request):
|
|
@@ -833,7 +925,7 @@ class AicpClient(AbstractClient):
|
|
|
833
925
|
if isinstance(e, KsyunSDKException):
|
|
834
926
|
raise
|
|
835
927
|
else:
|
|
836
|
-
raise KsyunSDKException(
|
|
928
|
+
raise KsyunSDKException(message=str(e))
|
|
837
929
|
|
|
838
930
|
|
|
839
931
|
def StopTrainJob(self, request):
|
|
@@ -856,7 +948,7 @@ class AicpClient(AbstractClient):
|
|
|
856
948
|
if isinstance(e, KsyunSDKException):
|
|
857
949
|
raise
|
|
858
950
|
else:
|
|
859
|
-
raise KsyunSDKException(
|
|
951
|
+
raise KsyunSDKException(message=str(e))
|
|
860
952
|
|
|
861
953
|
|
|
862
954
|
def DescribeTrainJob(self, request):
|
|
@@ -879,7 +971,7 @@ class AicpClient(AbstractClient):
|
|
|
879
971
|
if isinstance(e, KsyunSDKException):
|
|
880
972
|
raise
|
|
881
973
|
else:
|
|
882
|
-
raise KsyunSDKException(
|
|
974
|
+
raise KsyunSDKException(message=str(e))
|
|
883
975
|
|
|
884
976
|
|
|
885
977
|
def StartTrainJob(self, request):
|
|
@@ -902,7 +994,7 @@ class AicpClient(AbstractClient):
|
|
|
902
994
|
if isinstance(e, KsyunSDKException):
|
|
903
995
|
raise
|
|
904
996
|
else:
|
|
905
|
-
raise KsyunSDKException(
|
|
997
|
+
raise KsyunSDKException(message=str(e))
|
|
906
998
|
|
|
907
999
|
|
|
908
1000
|
def DeleteTrainJob(self, request):
|
|
@@ -925,7 +1017,7 @@ class AicpClient(AbstractClient):
|
|
|
925
1017
|
if isinstance(e, KsyunSDKException):
|
|
926
1018
|
raise
|
|
927
1019
|
else:
|
|
928
|
-
raise KsyunSDKException(
|
|
1020
|
+
raise KsyunSDKException(message=str(e))
|
|
929
1021
|
|
|
930
1022
|
|
|
931
1023
|
def ModifyTrainJob(self, request):
|
|
@@ -948,7 +1040,7 @@ class AicpClient(AbstractClient):
|
|
|
948
1040
|
if isinstance(e, KsyunSDKException):
|
|
949
1041
|
raise
|
|
950
1042
|
else:
|
|
951
|
-
raise KsyunSDKException(
|
|
1043
|
+
raise KsyunSDKException(message=str(e))
|
|
952
1044
|
|
|
953
1045
|
|
|
954
1046
|
def DescribeTrainJobPodLogs(self, request):
|
|
@@ -971,7 +1063,7 @@ class AicpClient(AbstractClient):
|
|
|
971
1063
|
if isinstance(e, KsyunSDKException):
|
|
972
1064
|
raise
|
|
973
1065
|
else:
|
|
974
|
-
raise KsyunSDKException(
|
|
1066
|
+
raise KsyunSDKException(message=str(e))
|
|
975
1067
|
|
|
976
1068
|
|
|
977
1069
|
def DescribeTrainJobPods(self, request):
|
|
@@ -994,7 +1086,7 @@ class AicpClient(AbstractClient):
|
|
|
994
1086
|
if isinstance(e, KsyunSDKException):
|
|
995
1087
|
raise
|
|
996
1088
|
else:
|
|
997
|
-
raise KsyunSDKException(
|
|
1089
|
+
raise KsyunSDKException(message=str(e))
|
|
998
1090
|
|
|
999
1091
|
|
|
1000
1092
|
def DescribeResourcePools(self, request):
|
|
@@ -1017,7 +1109,7 @@ class AicpClient(AbstractClient):
|
|
|
1017
1109
|
if isinstance(e, KsyunSDKException):
|
|
1018
1110
|
raise
|
|
1019
1111
|
else:
|
|
1020
|
-
raise KsyunSDKException(
|
|
1112
|
+
raise KsyunSDKException(message=str(e))
|
|
1021
1113
|
|
|
1022
1114
|
|
|
1023
1115
|
def DescribeResourcePoolInstances(self, request):
|
|
@@ -1040,7 +1132,7 @@ class AicpClient(AbstractClient):
|
|
|
1040
1132
|
if isinstance(e, KsyunSDKException):
|
|
1041
1133
|
raise
|
|
1042
1134
|
else:
|
|
1043
|
-
raise KsyunSDKException(
|
|
1135
|
+
raise KsyunSDKException(message=str(e))
|
|
1044
1136
|
|
|
1045
1137
|
|
|
1046
1138
|
def CreateInferenceEndpoint(self, request):
|
|
@@ -1063,7 +1155,7 @@ class AicpClient(AbstractClient):
|
|
|
1063
1155
|
if isinstance(e, KsyunSDKException):
|
|
1064
1156
|
raise
|
|
1065
1157
|
else:
|
|
1066
|
-
raise KsyunSDKException(
|
|
1158
|
+
raise KsyunSDKException(message=str(e))
|
|
1067
1159
|
|
|
1068
1160
|
|
|
1069
1161
|
def DescribeInferenceEndpoints(self, request):
|
|
@@ -1086,7 +1178,7 @@ class AicpClient(AbstractClient):
|
|
|
1086
1178
|
if isinstance(e, KsyunSDKException):
|
|
1087
1179
|
raise
|
|
1088
1180
|
else:
|
|
1089
|
-
raise KsyunSDKException(
|
|
1181
|
+
raise KsyunSDKException(message=str(e))
|
|
1090
1182
|
|
|
1091
1183
|
|
|
1092
1184
|
def EnableEndpointRateLimit(self, request):
|
|
@@ -1109,7 +1201,7 @@ class AicpClient(AbstractClient):
|
|
|
1109
1201
|
if isinstance(e, KsyunSDKException):
|
|
1110
1202
|
raise
|
|
1111
1203
|
else:
|
|
1112
|
-
raise KsyunSDKException(
|
|
1204
|
+
raise KsyunSDKException(message=str(e))
|
|
1113
1205
|
|
|
1114
1206
|
|
|
1115
1207
|
def UpdateInferenceEndpoint(self, request):
|
|
@@ -1132,7 +1224,7 @@ class AicpClient(AbstractClient):
|
|
|
1132
1224
|
if isinstance(e, KsyunSDKException):
|
|
1133
1225
|
raise
|
|
1134
1226
|
else:
|
|
1135
|
-
raise KsyunSDKException(
|
|
1227
|
+
raise KsyunSDKException(message=str(e))
|
|
1136
1228
|
|
|
1137
1229
|
|
|
1138
1230
|
def StartInferenceEndpoint(self, request):
|
|
@@ -1155,7 +1247,7 @@ class AicpClient(AbstractClient):
|
|
|
1155
1247
|
if isinstance(e, KsyunSDKException):
|
|
1156
1248
|
raise
|
|
1157
1249
|
else:
|
|
1158
|
-
raise KsyunSDKException(
|
|
1250
|
+
raise KsyunSDKException(message=str(e))
|
|
1159
1251
|
|
|
1160
1252
|
|
|
1161
1253
|
def StopInferenceEndpoint(self, request):
|
|
@@ -1178,7 +1270,7 @@ class AicpClient(AbstractClient):
|
|
|
1178
1270
|
if isinstance(e, KsyunSDKException):
|
|
1179
1271
|
raise
|
|
1180
1272
|
else:
|
|
1181
|
-
raise KsyunSDKException(
|
|
1273
|
+
raise KsyunSDKException(message=str(e))
|
|
1182
1274
|
|
|
1183
1275
|
|
|
1184
1276
|
def DeleteInferenceEndpoint(self, request):
|
|
@@ -1201,7 +1293,7 @@ class AicpClient(AbstractClient):
|
|
|
1201
1293
|
if isinstance(e, KsyunSDKException):
|
|
1202
1294
|
raise
|
|
1203
1295
|
else:
|
|
1204
|
-
raise KsyunSDKException(
|
|
1296
|
+
raise KsyunSDKException(message=str(e))
|
|
1205
1297
|
|
|
1206
1298
|
|
|
1207
1299
|
def DisableEndpointRateLimit(self, request):
|
|
@@ -1224,6 +1316,29 @@ class AicpClient(AbstractClient):
|
|
|
1224
1316
|
if isinstance(e, KsyunSDKException):
|
|
1225
1317
|
raise
|
|
1226
1318
|
else:
|
|
1227
|
-
raise KsyunSDKException(
|
|
1319
|
+
raise KsyunSDKException(message=str(e))
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
def SetKcrPersonalToken(self, request):
|
|
1323
|
+
"""配置个人版镜像仓库访问凭证
|
|
1324
|
+
:param request: Request instance for SetKcrPersonalToken.
|
|
1325
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.SetKcrPersonalTokenRequest`
|
|
1326
|
+
"""
|
|
1327
|
+
try:
|
|
1328
|
+
params = request._serialize()
|
|
1329
|
+
body = self.call_judge("SetKcrPersonalToken", params, "application/json")
|
|
1330
|
+
response = json.loads(body)
|
|
1331
|
+
if "Error" not in response:
|
|
1332
|
+
return body
|
|
1333
|
+
else:
|
|
1334
|
+
code = response["Error"]["Code"]
|
|
1335
|
+
message = response["Error"]["Message"]
|
|
1336
|
+
req_id = response["RequestId"]
|
|
1337
|
+
raise KsyunSDKException(code, message, req_id)
|
|
1338
|
+
except Exception as e:
|
|
1339
|
+
if isinstance(e, KsyunSDKException):
|
|
1340
|
+
raise
|
|
1341
|
+
else:
|
|
1342
|
+
raise KsyunSDKException(message=str(e))
|
|
1228
1343
|
|
|
1229
1344
|
|