kingsoftcloud-sdk-python 1.5.8.47__py2.py3-none-any.whl → 1.5.8.48__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.47.dist-info → kingsoftcloud_sdk_python-1.5.8.48.dist-info}/METADATA +1 -1
- {kingsoftcloud_sdk_python-1.5.8.47.dist-info → kingsoftcloud_sdk_python-1.5.8.48.dist-info}/RECORD +9 -9
- ksyun/__init__.py +1 -1
- ksyun/client/aicp/v20240612/client.py +117 -0
- ksyun/client/aicp/v20240612/models.py +185 -0
- ksyun/client/aicp/v20251212/client.py +2 -0
- {kingsoftcloud_sdk_python-1.5.8.47.dist-info → kingsoftcloud_sdk_python-1.5.8.48.dist-info}/WHEEL +0 -0
- {kingsoftcloud_sdk_python-1.5.8.47.dist-info → kingsoftcloud_sdk_python-1.5.8.48.dist-info}/licenses/LICENSE +0 -0
- {kingsoftcloud_sdk_python-1.5.8.47.dist-info → kingsoftcloud_sdk_python-1.5.8.48.dist-info}/top_level.txt +0 -0
{kingsoftcloud_sdk_python-1.5.8.47.dist-info → kingsoftcloud_sdk_python-1.5.8.48.dist-info}/RECORD
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
2
|
-
ksyun/__init__.py,sha256=
|
|
1
|
+
kingsoftcloud_sdk_python-1.5.8.48.dist-info/licenses/LICENSE,sha256=AJyIQ6mPzTpsFn6i0cG6OPVdhJ85l_mfdoOR7J4DnRw,11351
|
|
2
|
+
ksyun/__init__.py,sha256=VmtriFjPL6dUxm0PHGdxKY3rqtVVSnYaTxbb4UTTudc,624
|
|
3
3
|
ksyun/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
ksyun/client/actiontrail/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
ksyun/client/actiontrail/v20190401/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -7,10 +7,10 @@ ksyun/client/actiontrail/v20190401/client.py,sha256=h2Vn_QdsdjUg6EGwGG0_UeljmWp4
|
|
|
7
7
|
ksyun/client/actiontrail/v20190401/models.py,sha256=Gp8mcXLF9_DN3fq-Posjl4pNfta5d5TK2DSyF8a32zo,2959
|
|
8
8
|
ksyun/client/aicp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
ksyun/client/aicp/v20240612/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
ksyun/client/aicp/v20240612/client.py,sha256=
|
|
11
|
-
ksyun/client/aicp/v20240612/models.py,sha256=
|
|
10
|
+
ksyun/client/aicp/v20240612/client.py,sha256=JBFWfpaVZY8NYntlcGvjwhnmhfyjH79sVLOJyxzVN3A,53467
|
|
11
|
+
ksyun/client/aicp/v20240612/models.py,sha256=njBE_5cS7jXZHqCsxq9ezeXyncoT8ASyqCvZtcn3AnY,65315
|
|
12
12
|
ksyun/client/aicp/v20251212/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
-
ksyun/client/aicp/v20251212/client.py,sha256=
|
|
13
|
+
ksyun/client/aicp/v20251212/client.py,sha256=AZyqPkPIaCzcqCrtwR9lpyyJMcYGaKFG3FEE3-m9F5s,2067
|
|
14
14
|
ksyun/client/aicp/v20251212/models.py,sha256=w9Y6ZLObN_vuephkOJueOegGli8bUamBdgaLtqftsT8,4229
|
|
15
15
|
ksyun/client/bill/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
ksyun/client/bill/v20180601/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -327,7 +327,7 @@ ksyun/common/http/request.py,sha256=x8cWSnSQWFqitiTUZ1DAS4UVS96oR-K-X8adgeGmOmY,
|
|
|
327
327
|
ksyun/common/profile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
328
328
|
ksyun/common/profile/client_profile.py,sha256=RJGav6wx8kPnEQ1unEwzys1ZJuP9jUXCcAMleJDacqU,1594
|
|
329
329
|
ksyun/common/profile/http_profile.py,sha256=pf_F81rldkVfDyUynNTIyjIIxrHqA3WsJ1oirTa9Rhg,2621
|
|
330
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
331
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
332
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
333
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
330
|
+
kingsoftcloud_sdk_python-1.5.8.48.dist-info/METADATA,sha256=hDvr66YNgKF9IIP16YDrAd2rD62qCizwofW3erQ0YVg,2117
|
|
331
|
+
kingsoftcloud_sdk_python-1.5.8.48.dist-info/WHEEL,sha256=Q6xS052dXadQWXcEVKSI037R6NoyqhUlJ5BcYz2iMP4,110
|
|
332
|
+
kingsoftcloud_sdk_python-1.5.8.48.dist-info/top_level.txt,sha256=mzM04AZwi_rRte0l5x-qpr79yKptjcaFLfIPtRA-8Dk,6
|
|
333
|
+
kingsoftcloud_sdk_python-1.5.8.48.dist-info/RECORD,,
|
ksyun/__init__.py
CHANGED
|
@@ -123,6 +123,98 @@ class AicpClient(AbstractClient):
|
|
|
123
123
|
raise KsyunSDKException(message=str(e))
|
|
124
124
|
|
|
125
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))
|
|
216
|
+
|
|
217
|
+
|
|
126
218
|
def StopNotebook(self, request):
|
|
127
219
|
"""停止开发任务
|
|
128
220
|
:param request: Request instance for StopNotebook.
|
|
@@ -1225,3 +1317,28 @@ class AicpClient(AbstractClient):
|
|
|
1225
1317
|
raise
|
|
1226
1318
|
else:
|
|
1227
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))
|
|
1343
|
+
|
|
1344
|
+
|
|
@@ -416,6 +416,170 @@ class CreateNotebookRequest(AbstractModel):
|
|
|
416
416
|
self.RunOnCPU = params.get("RunOnCPU")
|
|
417
417
|
|
|
418
418
|
|
|
419
|
+
class CreateImageRequest(AbstractModel):
|
|
420
|
+
"""CreateImage请求参数结构体
|
|
421
|
+
"""
|
|
422
|
+
|
|
423
|
+
def __init__(self):
|
|
424
|
+
r"""新建自定义镜像
|
|
425
|
+
:param ImageName: 自定义镜像名称
|
|
426
|
+
:type PathPrefix: String
|
|
427
|
+
:param Description: 描述信息
|
|
428
|
+
:type PathPrefix: String
|
|
429
|
+
:param ImageType: 镜像类型
|
|
430
|
+
:type PathPrefix: String
|
|
431
|
+
:param Namespace: 命名空间
|
|
432
|
+
:type PathPrefix: String
|
|
433
|
+
:param NamespacePermission: 命名空间权限
|
|
434
|
+
:type PathPrefix: String
|
|
435
|
+
:param ImageRepo: 镜像仓库
|
|
436
|
+
:type PathPrefix: String
|
|
437
|
+
:param ImageVersion: 镜像版本
|
|
438
|
+
:type PathPrefix: String
|
|
439
|
+
:param OfficialInstance: 企业镜像实例,当ImageType=Official不能为空
|
|
440
|
+
:type PathPrefix: String
|
|
441
|
+
:param UserName: 用户名,当ImageType=Official不能为空
|
|
442
|
+
:type PathPrefix: String
|
|
443
|
+
:param Password: 密码,当ImageType=Official不能为空
|
|
444
|
+
:type PathPrefix: String
|
|
445
|
+
:param ImagePermission: 镜像权限
|
|
446
|
+
:type PathPrefix: String
|
|
447
|
+
"""
|
|
448
|
+
self.ImageName = None
|
|
449
|
+
self.Description = None
|
|
450
|
+
self.ImageType = None
|
|
451
|
+
self.Namespace = None
|
|
452
|
+
self.NamespacePermission = None
|
|
453
|
+
self.ImageRepo = None
|
|
454
|
+
self.ImageVersion = None
|
|
455
|
+
self.OfficialInstance = None
|
|
456
|
+
self.UserName = None
|
|
457
|
+
self.Password = None
|
|
458
|
+
self.ImagePermission = None
|
|
459
|
+
|
|
460
|
+
def _deserialize(self, params):
|
|
461
|
+
if params.get("ImageName"):
|
|
462
|
+
self.ImageName = params.get("ImageName")
|
|
463
|
+
if params.get("Description"):
|
|
464
|
+
self.Description = params.get("Description")
|
|
465
|
+
if params.get("ImageType"):
|
|
466
|
+
self.ImageType = params.get("ImageType")
|
|
467
|
+
if params.get("Namespace"):
|
|
468
|
+
self.Namespace = params.get("Namespace")
|
|
469
|
+
if params.get("NamespacePermission"):
|
|
470
|
+
self.NamespacePermission = params.get("NamespacePermission")
|
|
471
|
+
if params.get("ImageRepo"):
|
|
472
|
+
self.ImageRepo = params.get("ImageRepo")
|
|
473
|
+
if params.get("ImageVersion"):
|
|
474
|
+
self.ImageVersion = params.get("ImageVersion")
|
|
475
|
+
if params.get("OfficialInstance"):
|
|
476
|
+
self.OfficialInstance = params.get("OfficialInstance")
|
|
477
|
+
if params.get("UserName"):
|
|
478
|
+
self.UserName = params.get("UserName")
|
|
479
|
+
if params.get("Password"):
|
|
480
|
+
self.Password = params.get("Password")
|
|
481
|
+
if params.get("ImagePermission"):
|
|
482
|
+
self.ImagePermission = params.get("ImagePermission")
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
class DeleteImageRequest(AbstractModel):
|
|
486
|
+
"""DeleteImage请求参数结构体
|
|
487
|
+
"""
|
|
488
|
+
|
|
489
|
+
def __init__(self):
|
|
490
|
+
r"""删除自定义镜像
|
|
491
|
+
:param ImageId: 自定义镜像ID
|
|
492
|
+
:type PathPrefix: String
|
|
493
|
+
"""
|
|
494
|
+
self.ImageId = None
|
|
495
|
+
|
|
496
|
+
def _deserialize(self, params):
|
|
497
|
+
if params.get("ImageId"):
|
|
498
|
+
self.ImageId = params.get("ImageId")
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
class ModifyImageRequest(AbstractModel):
|
|
502
|
+
"""ModifyImage请求参数结构体
|
|
503
|
+
"""
|
|
504
|
+
|
|
505
|
+
def __init__(self):
|
|
506
|
+
r"""修改自定义镜像
|
|
507
|
+
:param ImageId: 自定义镜像ID
|
|
508
|
+
:type PathPrefix: String
|
|
509
|
+
:param ImageName: 镜像名称
|
|
510
|
+
:type PathPrefix: String
|
|
511
|
+
:param ImagePermission: 镜像权限
|
|
512
|
+
:type PathPrefix: String
|
|
513
|
+
"""
|
|
514
|
+
self.ImageId = None
|
|
515
|
+
self.ImageName = None
|
|
516
|
+
self.ImagePermission = None
|
|
517
|
+
|
|
518
|
+
def _deserialize(self, params):
|
|
519
|
+
if params.get("ImageId"):
|
|
520
|
+
self.ImageId = params.get("ImageId")
|
|
521
|
+
if params.get("ImageName"):
|
|
522
|
+
self.ImageName = params.get("ImageName")
|
|
523
|
+
if params.get("ImagePermission"):
|
|
524
|
+
self.ImagePermission = params.get("ImagePermission")
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
class DescribeImagesRequest(AbstractModel):
|
|
528
|
+
"""DescribeImages请求参数结构体
|
|
529
|
+
"""
|
|
530
|
+
|
|
531
|
+
def __init__(self):
|
|
532
|
+
r"""查询镜像列表
|
|
533
|
+
:param Page: 页码
|
|
534
|
+
:type PathPrefix: Int
|
|
535
|
+
:param PageSize: 单次调用可返回的最大条目数量
|
|
536
|
+
:type PathPrefix: Int
|
|
537
|
+
:param ImageSource: 镜像来源
|
|
538
|
+
:type PathPrefix: String
|
|
539
|
+
:param ImageStatus: 镜像状态
|
|
540
|
+
:type PathPrefix: String
|
|
541
|
+
:param ImageType: 镜像类型
|
|
542
|
+
:type PathPrefix: String
|
|
543
|
+
:param ApplicationScenario: 适用场景
|
|
544
|
+
:type PathPrefix: String
|
|
545
|
+
:param ImageId: 镜像ID
|
|
546
|
+
:type PathPrefix: Filter
|
|
547
|
+
:param ImageName: 镜像名称
|
|
548
|
+
:type PathPrefix: String
|
|
549
|
+
:param Filter: 筛选Filter
|
|
550
|
+
:type PathPrefix: Filter
|
|
551
|
+
"""
|
|
552
|
+
self.Page = None
|
|
553
|
+
self.PageSize = None
|
|
554
|
+
self.ImageSource = None
|
|
555
|
+
self.ImageStatus = None
|
|
556
|
+
self.ImageType = None
|
|
557
|
+
self.ApplicationScenario = None
|
|
558
|
+
self.ImageId = None
|
|
559
|
+
self.ImageName = None
|
|
560
|
+
self.Filter = None
|
|
561
|
+
|
|
562
|
+
def _deserialize(self, params):
|
|
563
|
+
if params.get("Page"):
|
|
564
|
+
self.Page = params.get("Page")
|
|
565
|
+
if params.get("PageSize"):
|
|
566
|
+
self.PageSize = params.get("PageSize")
|
|
567
|
+
if params.get("ImageSource"):
|
|
568
|
+
self.ImageSource = params.get("ImageSource")
|
|
569
|
+
if params.get("ImageStatus"):
|
|
570
|
+
self.ImageStatus = params.get("ImageStatus")
|
|
571
|
+
if params.get("ImageType"):
|
|
572
|
+
self.ImageType = params.get("ImageType")
|
|
573
|
+
if params.get("ApplicationScenario"):
|
|
574
|
+
self.ApplicationScenario = params.get("ApplicationScenario")
|
|
575
|
+
if params.get("ImageId"):
|
|
576
|
+
self.ImageId = params.get("ImageId")
|
|
577
|
+
if params.get("ImageName"):
|
|
578
|
+
self.ImageName = params.get("ImageName")
|
|
579
|
+
if params.get("Filter"):
|
|
580
|
+
self.Filter = params.get("Filter")
|
|
581
|
+
|
|
582
|
+
|
|
419
583
|
class StopNotebookRequest(AbstractModel):
|
|
420
584
|
"""StopNotebook请求参数结构体
|
|
421
585
|
"""
|
|
@@ -1776,3 +1940,24 @@ class DisableEndpointRateLimitRequest(AbstractModel):
|
|
|
1776
1940
|
self.EndpointId = params.get("EndpointId")
|
|
1777
1941
|
|
|
1778
1942
|
|
|
1943
|
+
class SetKcrPersonalTokenRequest(AbstractModel):
|
|
1944
|
+
"""SetKcrPersonalToken请求参数结构体
|
|
1945
|
+
"""
|
|
1946
|
+
|
|
1947
|
+
def __init__(self):
|
|
1948
|
+
r"""配置个人版镜像仓库访问凭证
|
|
1949
|
+
:param UserName: 用户名
|
|
1950
|
+
:type PathPrefix: String
|
|
1951
|
+
:param Password: 密码
|
|
1952
|
+
:type PathPrefix: String
|
|
1953
|
+
"""
|
|
1954
|
+
self.UserName = None
|
|
1955
|
+
self.Password = None
|
|
1956
|
+
|
|
1957
|
+
def _deserialize(self, params):
|
|
1958
|
+
if params.get("UserName"):
|
|
1959
|
+
self.UserName = params.get("UserName")
|
|
1960
|
+
if params.get("Password"):
|
|
1961
|
+
self.Password = params.get("Password")
|
|
1962
|
+
|
|
1963
|
+
|
{kingsoftcloud_sdk_python-1.5.8.47.dist-info → kingsoftcloud_sdk_python-1.5.8.48.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|