kingsoftcloud-sdk-python 1.1.1__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.49.dist-info/METADATA +71 -0
- kingsoftcloud_sdk_python-1.5.8.49.dist-info/RECORD +337 -0
- {kingsoftcloud_sdk_python-1.1.1.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 +2 -4
- ksyun/client/aicp/v20240612/client.py +1344 -0
- ksyun/client/aicp/v20240612/models.py +1963 -0
- ksyun/client/aicp/v20251212/__init__.py +0 -0
- ksyun/client/aicp/v20251212/client.py +56 -0
- ksyun/client/aicp/v20251212/models.py +114 -0
- ksyun/client/bill/v20180601/client.py +6 -77
- ksyun/client/bill/v20180601/models.py +29 -41
- ksyun/client/bill/v20220601/__init__.py +0 -0
- ksyun/client/bill/v20220601/client.py +54 -0
- ksyun/client/bill/v20220601/models.py +54 -0
- ksyun/client/bill_union/v20200101/client.py +81 -14
- ksyun/client/bill_union/v20200101/models.py +119 -3
- ksyun/client/bill_union/v20221222/__init__.py +0 -0
- ksyun/client/bill_union/v20221222/client.py +146 -0
- ksyun/client/bill_union/v20221222/models.py +193 -0
- ksyun/client/bill_union/v20250801/__init__.py +0 -0
- ksyun/client/bill_union/v20250801/client.py +54 -0
- ksyun/client/bill_union/v20250801/models.py +64 -0
- ksyun/client/bws/v20160304/client.py +33 -12
- ksyun/client/bws/v20160304/models.py +51 -0
- ksyun/client/cdn/__init__.py +0 -0
- ksyun/client/cdn/v20160901/__init__.py +0 -0
- ksyun/client/cdn/v20160901/client.py +77 -0
- ksyun/client/cdn/v20160901/models.py +51 -0
- ksyun/client/cdn/v20200630/__init__.py +0 -0
- ksyun/client/cdn/v20200630/client.py +399 -0
- ksyun/client/cdn/v20200630/models.py +826 -0
- ksyun/client/cdn/v20200901/__init__.py +0 -0
- ksyun/client/cdn/v20200901/client.py +169 -0
- ksyun/client/cdn/v20200901/models.py +224 -0
- ksyun/client/cdn/v20211201/__init__.py +0 -0
- ksyun/client/cdn/v20211201/client.py +31 -0
- ksyun/client/cdn/v20211201/models.py +23 -0
- ksyun/client/cdn/v3/__init__.py +0 -0
- ksyun/client/cdn/v3/client.py +997 -0
- ksyun/client/cdn/v3/models.py +1323 -0
- ksyun/client/cen/__init__.py +0 -0
- ksyun/client/cen/v20160304/__init__.py +0 -0
- ksyun/client/cen/v20160304/client.py +606 -0
- ksyun/client/cen/v20160304/models.py +718 -0
- ksyun/client/clickhouse/__init__.py +0 -0
- ksyun/client/clickhouse/v20210101/__init__.py +0 -0
- ksyun/client/clickhouse/v20210101/client.py +905 -0
- ksyun/client/clickhouse/v20210101/models.py +1127 -0
- ksyun/client/cloud_advisor/__init__.py +0 -0
- ksyun/client/cloud_advisor/v20250610/__init__.py +0 -0
- ksyun/client/cloud_advisor/v20250610/client.py +77 -0
- ksyun/client/cloud_advisor/v20250610/models.py +80 -0
- ksyun/client/dmp/__init__.py +0 -0
- ksyun/client/dmp/v20240101/__init__.py +0 -0
- ksyun/client/dmp/v20240101/client.py +468 -0
- ksyun/client/dmp/v20240101/models.py +423 -0
- ksyun/client/dts/__init__.py +0 -0
- ksyun/client/dts/v20180108/__init__.py +0 -0
- ksyun/client/dts/v20180108/client.py +445 -0
- ksyun/client/dts/v20180108/models.py +734 -0
- ksyun/client/ebs/v20160304/client.py +260 -55
- ksyun/client/ebs/v20160304/models.py +320 -66
- ksyun/client/eip/v20160304/client.py +127 -14
- ksyun/client/eip/v20160304/models.py +95 -1
- ksyun/client/epc/v20151101/client.py +1309 -184
- ksyun/client/epc/v20151101/models.py +2623 -137
- ksyun/client/iam/v20151101/client.py +325 -120
- ksyun/client/iam/v20151101/models.py +284 -28
- ksyun/client/iam/v20240513/__init__.py +0 -0
- ksyun/client/iam/v20240513/client.py +31 -0
- ksyun/client/iam/v20240513/models.py +33 -0
- ksyun/client/iam/v20240703/__init__.py +0 -0
- ksyun/client/iam/v20240703/client.py +31 -0
- ksyun/client/iam/v20240703/models.py +18 -0
- ksyun/client/influxdb/__init__.py +0 -0
- ksyun/client/influxdb/v20191010/__init__.py +0 -0
- ksyun/client/influxdb/v20191010/client.py +629 -0
- ksyun/client/influxdb/v20191010/models.py +655 -0
- ksyun/client/kad/v20161122/client.py +56 -12
- ksyun/client/kad/v20161122/models.py +38 -0
- ksyun/client/kce/__init__.py +0 -0
- ksyun/client/kce/v20180314/__init__.py +0 -0
- ksyun/client/kce/v20180314/client.py +399 -0
- ksyun/client/kce/v20180314/models.py +374 -0
- ksyun/client/kce/v20190806/__init__.py +0 -0
- ksyun/client/kce/v20190806/client.py +790 -0
- ksyun/client/kce/v20190806/models.py +1099 -0
- ksyun/client/kce/v20201231/__init__.py +0 -0
- ksyun/client/{slb/v20171210 → kce/v20201231}/client.py +10 -12
- ksyun/client/kce/v20201231/models.py +137 -0
- ksyun/client/kce/v20230101/__init__.py +0 -0
- ksyun/client/kce/v20230101/client.py +215 -0
- ksyun/client/kce/v20230101/models.py +259 -0
- ksyun/client/kce/v20230306/__init__.py +0 -0
- ksyun/client/kce/v20230306/client.py +514 -0
- ksyun/client/kce/v20230306/models.py +655 -0
- ksyun/client/kce/v20231115/__init__.py +0 -0
- ksyun/client/kce/v20231115/client.py +54 -0
- ksyun/client/kce/v20231115/models.py +59 -0
- ksyun/client/kce2/__init__.py +0 -0
- ksyun/client/kce2/v20230101/__init__.py +0 -0
- ksyun/client/kce2/v20230101/client.py +353 -0
- ksyun/client/kce2/v20230101/models.py +483 -0
- ksyun/client/kcf/__init__.py +0 -0
- ksyun/client/kcf/v20211215/__init__.py +0 -0
- ksyun/client/kcf/v20211215/client.py +215 -0
- ksyun/client/kcf/v20211215/models.py +313 -0
- ksyun/client/kci/__init__.py +0 -0
- ksyun/client/kci/v20200702/__init__.py +0 -0
- ksyun/client/kci/v20200702/client.py +353 -0
- ksyun/client/kci/v20200702/models.py +614 -0
- ksyun/client/kcm/__init__.py +0 -0
- ksyun/client/kcm/v20160304/__init__.py +0 -0
- ksyun/client/kcm/v20160304/client.py +238 -0
- ksyun/client/kcm/v20160304/models.py +394 -0
- ksyun/client/kcrs/__init__.py +0 -0
- ksyun/client/kcrs/v20211109/__init__.py +0 -0
- ksyun/client/kcrs/v20211109/client.py +1020 -0
- ksyun/client/kcrs/v20211109/models.py +1282 -0
- ksyun/client/kcs/__init__.py +0 -0
- ksyun/client/kcs/v20160701/__init__.py +0 -0
- ksyun/client/kcs/v20160701/client.py +1526 -0
- ksyun/client/kcs/v20160701/models.py +1917 -0
- ksyun/client/kcs/v20170401/__init__.py +0 -0
- ksyun/client/kcs/v20170401/client.py +31 -0
- ksyun/client/kcs/v20170401/models.py +28 -0
- ksyun/client/kcs/v20240701/__init__.py +0 -0
- ksyun/client/kcs/v20240701/client.py +31 -0
- ksyun/client/kcs/v20240701/models.py +23 -0
- ksyun/client/kead/v20200101/client.py +48 -4
- ksyun/client/kead/v20200101/models.py +52 -42
- ksyun/client/kec/v20160304/client.py +890 -223
- ksyun/client/kec/v20160304/models.py +1377 -140
- ksyun/client/ked/__init__.py +0 -0
- ksyun/client/ked/v1/__init__.py +0 -0
- ksyun/client/ked/v1/client.py +1020 -0
- ksyun/client/ked/v1/models.py +1132 -0
- ksyun/client/kes/__init__.py +0 -0
- ksyun/client/kes/v20201215/__init__.py +0 -0
- ksyun/client/kes/v20201215/client.py +192 -0
- ksyun/client/kes/v20201215/models.py +252 -0
- ksyun/client/ket/__init__.py +0 -0
- ksyun/client/ket/v20170101/__init__.py +0 -0
- ksyun/client/ket/v20170101/client.py +192 -0
- ksyun/client/ket/v20170101/models.py +265 -0
- ksyun/client/kfw/__init__.py +0 -0
- ksyun/client/kfw/v20160304/__init__.py +0 -0
- ksyun/client/kfw/v20160304/client.py +692 -0
- ksyun/client/kfw/v20160304/models.py +1029 -0
- ksyun/client/kingpay/__init__.py +0 -0
- ksyun/client/kingpay/v1/__init__.py +0 -0
- ksyun/client/kingpay/v1/client.py +31 -0
- ksyun/client/kingpay/v1/models.py +18 -0
- ksyun/client/kkms/__init__.py +0 -0
- ksyun/client/kkms/v20160304/__init__.py +0 -0
- ksyun/client/kkms/v20160304/client.py +192 -0
- ksyun/client/kkms/v20160304/models.py +185 -0
- ksyun/client/klog/__init__.py +0 -0
- ksyun/client/klog/v20200731/__init__.py +0 -0
- ksyun/client/klog/v20200731/client.py +376 -0
- ksyun/client/klog/v20200731/models.py +508 -0
- ksyun/client/kls/__init__.py +0 -0
- ksyun/client/kls/v20170101/__init__.py +0 -0
- ksyun/client/kls/v20170101/client.py +192 -0
- ksyun/client/kls/v20170101/models.py +320 -0
- ksyun/client/kmr/__init__.py +0 -0
- ksyun/client/kmr/v20210902/__init__.py +0 -0
- ksyun/client/kmr/v20210902/client.py +537 -0
- ksyun/client/kmr/v20210902/models.py +536 -0
- ksyun/client/kmr/v20231231/__init__.py +0 -0
- ksyun/client/kmr/v20231231/client.py +169 -0
- ksyun/client/kmr/v20231231/models.py +201 -0
- ksyun/client/kmr/v20240814/__init__.py +0 -0
- ksyun/client/kmr/v20240814/client.py +445 -0
- ksyun/client/kmr/v20240814/models.py +523 -0
- ksyun/client/knad/__init__.py +0 -0
- ksyun/client/knad/v20230323/__init__.py +0 -0
- ksyun/client/knad/v20230323/client.py +399 -0
- ksyun/client/knad/v20230323/models.py +470 -0
- ksyun/client/kpfs/__init__.py +0 -0
- ksyun/client/kpfs/v20240930/__init__.py +0 -0
- ksyun/client/kpfs/v20240930/client.py +217 -0
- ksyun/client/kpfs/v20240930/models.py +396 -0
- ksyun/client/krds/__init__.py +0 -0
- ksyun/client/krds/v20160701/__init__.py +0 -0
- ksyun/client/krds/v20160701/client.py +2101 -0
- ksyun/client/krds/v20160701/models.py +2722 -0
- ksyun/client/krds/v20200825/__init__.py +0 -0
- ksyun/client/krds/v20200825/client.py +238 -0
- ksyun/client/krds/v20200825/models.py +336 -0
- ksyun/client/memcached/__init__.py +0 -0
- ksyun/client/memcached/v20180627/__init__.py +0 -0
- ksyun/client/memcached/v20180627/client.py +307 -0
- ksyun/client/memcached/v20180627/models.py +317 -0
- ksyun/client/milvus/__init__.py +0 -0
- ksyun/client/milvus/v20231010/__init__.py +0 -0
- ksyun/client/milvus/v20231010/client.py +445 -0
- ksyun/client/milvus/v20231010/models.py +520 -0
- ksyun/client/mongodb/v20170101/client.py +312 -84
- ksyun/client/mongodb/v20170101/models.py +251 -34
- ksyun/client/mongodb/v20250101/__init__.py +0 -0
- ksyun/client/mongodb/v20250101/client.py +31 -0
- ksyun/client/mongodb/v20250101/models.py +18 -0
- ksyun/client/monitor/__init__.py +0 -0
- ksyun/client/monitor/v20100525/__init__.py +0 -0
- ksyun/client/monitor/v20100525/client.py +54 -0
- ksyun/client/monitor/v20100525/models.py +108 -0
- ksyun/client/monitor/v20181114/__init__.py +0 -0
- ksyun/client/monitor/v20181114/client.py +31 -0
- ksyun/client/monitor/v20181114/models.py +59 -0
- ksyun/client/monitor/v20210101/__init__.py +0 -0
- ksyun/client/monitor/v20210101/client.py +284 -0
- ksyun/client/monitor/v20210101/models.py +330 -0
- ksyun/client/monitor/v20220101/__init__.py +0 -0
- ksyun/client/monitor/v20220101/client.py +54 -0
- ksyun/client/monitor/v20220101/models.py +32 -0
- ksyun/client/monitor/v20250101/__init__.py +0 -0
- ksyun/client/monitor/v20250101/client.py +121 -0
- ksyun/client/monitor/v20250101/models.py +188 -0
- ksyun/client/pdns/__init__.py +0 -0
- ksyun/client/pdns/v20160304/__init__.py +0 -0
- ksyun/client/pdns/v20160304/client.py +813 -0
- ksyun/client/pdns/v20160304/models.py +805 -0
- ksyun/client/postgresql/__init__.py +0 -0
- ksyun/client/postgresql/v20181225/__init__.py +0 -0
- ksyun/client/postgresql/v20181225/client.py +1158 -0
- ksyun/client/postgresql/v20181225/models.py +1629 -0
- ksyun/client/rabbitmq/__init__.py +0 -0
- ksyun/client/rabbitmq/v20191017/__init__.py +0 -0
- ksyun/client/rabbitmq/v20191017/client.py +445 -0
- ksyun/client/rabbitmq/v20191017/models.py +413 -0
- ksyun/client/relyt/__init__.py +0 -0
- ksyun/client/relyt/v20240117/__init__.py +0 -0
- ksyun/client/{bill_union/v20211209 → relyt/v20240117}/client.py +10 -12
- ksyun/client/relyt/v20240117/models.py +23 -0
- ksyun/client/resourcemanager/v20210320/client.py +16 -18
- ksyun/client/sks/v20151101/client.py +11 -13
- ksyun/client/sks/v20151101/models.py +28 -2
- ksyun/client/slb/v20160304/client.py +1099 -112
- ksyun/client/slb/v20160304/models.py +1697 -24
- ksyun/client/slb/v20250430/__init__.py +0 -0
- ksyun/client/slb/v20250430/client.py +813 -0
- ksyun/client/slb/v20250430/models.py +1372 -0
- ksyun/client/sqlserver/__init__.py +0 -0
- ksyun/client/sqlserver/v20190425/__init__.py +0 -0
- ksyun/client/sqlserver/v20190425/client.py +1066 -0
- ksyun/client/sqlserver/v20190425/models.py +1528 -0
- ksyun/client/sts/v20151101/client.py +23 -2
- ksyun/client/sts/v20151101/models.py +54 -1
- ksyun/client/tagv2/v20200901/client.py +60 -16
- ksyun/client/tagv2/v20200901/models.py +56 -4
- ksyun/client/ter/__init__.py +0 -0
- ksyun/client/ter/v20240415/__init__.py +0 -0
- ksyun/client/ter/v20240415/client.py +123 -0
- ksyun/client/ter/v20240415/models.py +115 -0
- ksyun/client/tidb/__init__.py +0 -0
- ksyun/client/tidb/v20210520/__init__.py +0 -0
- ksyun/client/tidb/v20210520/client.py +928 -0
- ksyun/client/tidb/v20210520/models.py +1162 -0
- ksyun/client/trade/v20200114/client.py +2 -4
- ksyun/client/trade/v20200831/client.py +2 -4
- ksyun/client/trade/v20250220/__init__.py +0 -0
- ksyun/client/trade/v20250220/client.py +100 -0
- ksyun/client/trade/v20250220/models.py +91 -0
- ksyun/client/trade/v20250321/__init__.py +0 -0
- ksyun/client/trade/v20250321/client.py +100 -0
- ksyun/client/trade/v20250321/models.py +71 -0
- ksyun/client/trade/v20250828/__init__.py +0 -0
- ksyun/client/trade/v20250828/client.py +31 -0
- ksyun/client/trade/v20250828/models.py +81 -0
- ksyun/client/vpc/v20160304/client.py +1377 -229
- ksyun/client/vpc/v20160304/models.py +1540 -138
- ksyun/client/waf/__init__.py +0 -0
- ksyun/client/waf/v20200707/__init__.py +0 -0
- ksyun/client/waf/v20200707/client.py +468 -0
- ksyun/client/waf/v20200707/models.py +738 -0
- ksyun/common/abstract_client.py +57 -21
- 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 +45 -6
- ksyun/common/profile/client_profile.py +3 -0
- ksyun/common/profile/http_profile.py +28 -1
- kingsoftcloud_sdk_python-1.1.1.dist-info/METADATA +0 -47
- kingsoftcloud_sdk_python-1.1.1.dist-info/RECORD +0 -105
- ksyun/client/bill_union/v20211209/models.py +0 -38
- ksyun/client/slb/v20171210/models.py +0 -33
- ksyun/common/sign.py +0 -33
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info/licenses}/LICENSE +0 -0
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/top_level.txt +0 -0
- /ksyun/client/{bill_union/v20211209 → aicp}/__init__.py +0 -0
- /ksyun/client/{slb/v20171210 → aicp/v20240612}/__init__.py +0 -0
|
@@ -0,0 +1,1963 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class SaveNotebookImageRequest(AbstractModel):
|
|
4
|
+
"""SaveNotebookImage请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""保存开发任务镜像
|
|
9
|
+
:param ImageName: 镜像名称
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
:param Description: 描述
|
|
12
|
+
:type PathPrefix: String
|
|
13
|
+
:param ImageType: 镜像类型 Personal-个人版实例,Official-企业版实例
|
|
14
|
+
:type PathPrefix: String
|
|
15
|
+
:param Namespace: 命名空间
|
|
16
|
+
:type PathPrefix: String
|
|
17
|
+
:param NamespacePermission: 命名空间权限,Public-公有 / Private-私有
|
|
18
|
+
:type PathPrefix: String
|
|
19
|
+
:param ImageRepo: 镜像仓库
|
|
20
|
+
:type PathPrefix: String
|
|
21
|
+
:param ImageVersion: 版本号
|
|
22
|
+
:type PathPrefix: String
|
|
23
|
+
:param OfficialInstance: 企业版实例ID,当ImageType=Official 必填
|
|
24
|
+
:type PathPrefix: String
|
|
25
|
+
:param UserName: 用户名
|
|
26
|
+
:type PathPrefix: String
|
|
27
|
+
:param Password: 密码
|
|
28
|
+
:type PathPrefix: String
|
|
29
|
+
:param ImagePermission: 可见性 Public- 公开可见 / Private-仅自己可见
|
|
30
|
+
:type PathPrefix: String
|
|
31
|
+
:param NotebookId: 开发任务ID
|
|
32
|
+
:type PathPrefix: String
|
|
33
|
+
:param ImageDomain: 镜像仓库域名(参数已废弃)
|
|
34
|
+
:type PathPrefix: String
|
|
35
|
+
"""
|
|
36
|
+
self.ImageName = None
|
|
37
|
+
self.Description = None
|
|
38
|
+
self.ImageType = None
|
|
39
|
+
self.Namespace = None
|
|
40
|
+
self.NamespacePermission = None
|
|
41
|
+
self.ImageRepo = None
|
|
42
|
+
self.ImageVersion = None
|
|
43
|
+
self.OfficialInstance = None
|
|
44
|
+
self.UserName = None
|
|
45
|
+
self.Password = None
|
|
46
|
+
self.ImagePermission = None
|
|
47
|
+
self.NotebookId = None
|
|
48
|
+
self.ImageDomain = None
|
|
49
|
+
|
|
50
|
+
def _deserialize(self, params):
|
|
51
|
+
if params.get("ImageName"):
|
|
52
|
+
self.ImageName = params.get("ImageName")
|
|
53
|
+
if params.get("Description"):
|
|
54
|
+
self.Description = params.get("Description")
|
|
55
|
+
if params.get("ImageType"):
|
|
56
|
+
self.ImageType = params.get("ImageType")
|
|
57
|
+
if params.get("Namespace"):
|
|
58
|
+
self.Namespace = params.get("Namespace")
|
|
59
|
+
if params.get("NamespacePermission"):
|
|
60
|
+
self.NamespacePermission = params.get("NamespacePermission")
|
|
61
|
+
if params.get("ImageRepo"):
|
|
62
|
+
self.ImageRepo = params.get("ImageRepo")
|
|
63
|
+
if params.get("ImageVersion"):
|
|
64
|
+
self.ImageVersion = params.get("ImageVersion")
|
|
65
|
+
if params.get("OfficialInstance"):
|
|
66
|
+
self.OfficialInstance = params.get("OfficialInstance")
|
|
67
|
+
if params.get("UserName"):
|
|
68
|
+
self.UserName = params.get("UserName")
|
|
69
|
+
if params.get("Password"):
|
|
70
|
+
self.Password = params.get("Password")
|
|
71
|
+
if params.get("ImagePermission"):
|
|
72
|
+
self.ImagePermission = params.get("ImagePermission")
|
|
73
|
+
if params.get("NotebookId"):
|
|
74
|
+
self.NotebookId = params.get("NotebookId")
|
|
75
|
+
if params.get("ImageDomain"):
|
|
76
|
+
self.ImageDomain = params.get("ImageDomain")
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class ModifyNotebookRequest(AbstractModel):
|
|
80
|
+
"""ModifyNotebook请求参数结构体
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
def __init__(self):
|
|
84
|
+
r"""修改开发任务
|
|
85
|
+
:param NotebookId: 开发任务ID
|
|
86
|
+
:type PathPrefix: String
|
|
87
|
+
:param NotebookName: 名称
|
|
88
|
+
:type PathPrefix: String
|
|
89
|
+
:param Description: 描述
|
|
90
|
+
:type PathPrefix: String
|
|
91
|
+
:param ImageId: 镜像ID
|
|
92
|
+
:type PathPrefix: String
|
|
93
|
+
:param QueueName: 队列名称
|
|
94
|
+
:type PathPrefix: String
|
|
95
|
+
:param GPUType: GPU类型
|
|
96
|
+
:type PathPrefix: String
|
|
97
|
+
:param GPUNumber: GPU核数,允许范围为0~10000
|
|
98
|
+
:type PathPrefix: String
|
|
99
|
+
:param CPUNum: Cpu数量,允许范围为0~10000
|
|
100
|
+
:type PathPrefix: Int
|
|
101
|
+
:param Memory: 内存G,允许范围为0~10000
|
|
102
|
+
:type PathPrefix: Int
|
|
103
|
+
:param AccessType: 可见范围:
|
|
104
|
+
• Creator :仅实例创建者可见
|
|
105
|
+
• QueueMember :队列内成员可见
|
|
106
|
+
|
|
107
|
+
:type PathPrefix: String
|
|
108
|
+
:param EnablePublicNetworkSsh: 是否开启公网SSH访问模式,当EnableSsh=true时可设置该参数
|
|
109
|
+
:type PathPrefix: Boolean
|
|
110
|
+
:param SshAuthorizedKeys: SSH公钥,当EnableSsh=true时必传该参数
|
|
111
|
+
:type PathPrefix: String
|
|
112
|
+
:param StorageConfigs: 存储配置列表
|
|
113
|
+
(覆盖修改,需要传入全量的配置列表)
|
|
114
|
+
:type PathPrefix: Array
|
|
115
|
+
:param ServiceConfigs: 服务开放端口列表
|
|
116
|
+
:type PathPrefix: Array
|
|
117
|
+
:param AutoSave:
|
|
118
|
+
:type PathPrefix: Boolean
|
|
119
|
+
:param RunOnCPU: 仅调度CPU
|
|
120
|
+
:type PathPrefix: String
|
|
121
|
+
:param EnableSSH: 是否开启SSH访问
|
|
122
|
+
:type PathPrefix: String
|
|
123
|
+
:param SSHPort: SSH端口,范围为1~65535
|
|
124
|
+
:type PathPrefix: Int
|
|
125
|
+
:param SSHAuthorizedKeys: SSH公钥,当EnableSsh=true时必传该参数
|
|
126
|
+
:type PathPrefix: String
|
|
127
|
+
:param EnablePublicNetworkSSH: 是否开启公网SSH访问模式,当EnableSsh=true时可设置该参数
|
|
128
|
+
:type PathPrefix: Boolean
|
|
129
|
+
:param AllocationId: 弹性IP ID,当EnablePublicNetworkSsh=true时,此参数必传
|
|
130
|
+
:type PathPrefix: String
|
|
131
|
+
:param ImageTagId: 第三方镜像tagId
|
|
132
|
+
:type PathPrefix: String
|
|
133
|
+
:param ImageSource: 镜像来源,当改变镜像来源时,需传入该值。
|
|
134
|
+
- Official 官方镜像
|
|
135
|
+
- Personal 个人镜像
|
|
136
|
+
- ThirdParty 第三方镜像
|
|
137
|
+
|
|
138
|
+
当修改镜像类型为第三方镜像时,需同时传入"ImageRegistryId", "ImageRepoId", "ImageTagId"三个入参
|
|
139
|
+
|
|
140
|
+
:type PathPrefix: String
|
|
141
|
+
:param ImageRepoId: 第三方镜像仓库ID
|
|
142
|
+
:type PathPrefix: String
|
|
143
|
+
:param ImageRegistryId: 第三方镜像ID
|
|
144
|
+
:type PathPrefix: String
|
|
145
|
+
"""
|
|
146
|
+
self.NotebookId = None
|
|
147
|
+
self.NotebookName = None
|
|
148
|
+
self.Description = None
|
|
149
|
+
self.ImageId = None
|
|
150
|
+
self.QueueName = None
|
|
151
|
+
self.GPUType = None
|
|
152
|
+
self.GPUNumber = None
|
|
153
|
+
self.CPUNum = None
|
|
154
|
+
self.Memory = None
|
|
155
|
+
self.AccessType = None
|
|
156
|
+
self.EnablePublicNetworkSsh = None
|
|
157
|
+
self.SshAuthorizedKeys = None
|
|
158
|
+
self.StorageConfigs = None
|
|
159
|
+
self.ServiceConfigs = None
|
|
160
|
+
self.AutoSave = None
|
|
161
|
+
self.RunOnCPU = None
|
|
162
|
+
self.EnableSSH = None
|
|
163
|
+
self.SSHPort = None
|
|
164
|
+
self.SSHAuthorizedKeys = None
|
|
165
|
+
self.EnablePublicNetworkSSH = None
|
|
166
|
+
self.AllocationId = None
|
|
167
|
+
self.ImageTagId = None
|
|
168
|
+
self.ImageSource = None
|
|
169
|
+
self.ImageRepoId = None
|
|
170
|
+
self.ImageRegistryId = None
|
|
171
|
+
|
|
172
|
+
def _deserialize(self, params):
|
|
173
|
+
if params.get("NotebookId"):
|
|
174
|
+
self.NotebookId = params.get("NotebookId")
|
|
175
|
+
if params.get("NotebookName"):
|
|
176
|
+
self.NotebookName = params.get("NotebookName")
|
|
177
|
+
if params.get("Description"):
|
|
178
|
+
self.Description = params.get("Description")
|
|
179
|
+
if params.get("ImageId"):
|
|
180
|
+
self.ImageId = params.get("ImageId")
|
|
181
|
+
if params.get("QueueName"):
|
|
182
|
+
self.QueueName = params.get("QueueName")
|
|
183
|
+
if params.get("GPUType"):
|
|
184
|
+
self.GPUType = params.get("GPUType")
|
|
185
|
+
if params.get("GPUNumber"):
|
|
186
|
+
self.GPUNumber = params.get("GPUNumber")
|
|
187
|
+
if params.get("CPUNum"):
|
|
188
|
+
self.CPUNum = params.get("CPUNum")
|
|
189
|
+
if params.get("Memory"):
|
|
190
|
+
self.Memory = params.get("Memory")
|
|
191
|
+
if params.get("AccessType"):
|
|
192
|
+
self.AccessType = params.get("AccessType")
|
|
193
|
+
if params.get("EnablePublicNetworkSsh"):
|
|
194
|
+
self.EnablePublicNetworkSsh = params.get("EnablePublicNetworkSsh")
|
|
195
|
+
if params.get("SshAuthorizedKeys"):
|
|
196
|
+
self.SshAuthorizedKeys = params.get("SshAuthorizedKeys")
|
|
197
|
+
if params.get("StorageConfigs"):
|
|
198
|
+
self.StorageConfigs = params.get("StorageConfigs")
|
|
199
|
+
if params.get("ServiceConfigs"):
|
|
200
|
+
self.ServiceConfigs = params.get("ServiceConfigs")
|
|
201
|
+
if params.get("AutoSave"):
|
|
202
|
+
self.AutoSave = params.get("AutoSave")
|
|
203
|
+
if params.get("RunOnCPU"):
|
|
204
|
+
self.RunOnCPU = params.get("RunOnCPU")
|
|
205
|
+
if params.get("EnableSSH"):
|
|
206
|
+
self.EnableSSH = params.get("EnableSSH")
|
|
207
|
+
if params.get("SSHPort"):
|
|
208
|
+
self.SSHPort = params.get("SSHPort")
|
|
209
|
+
if params.get("SSHAuthorizedKeys"):
|
|
210
|
+
self.SSHAuthorizedKeys = params.get("SSHAuthorizedKeys")
|
|
211
|
+
if params.get("EnablePublicNetworkSSH"):
|
|
212
|
+
self.EnablePublicNetworkSSH = params.get("EnablePublicNetworkSSH")
|
|
213
|
+
if params.get("AllocationId"):
|
|
214
|
+
self.AllocationId = params.get("AllocationId")
|
|
215
|
+
if params.get("ImageTagId"):
|
|
216
|
+
self.ImageTagId = params.get("ImageTagId")
|
|
217
|
+
if params.get("ImageSource"):
|
|
218
|
+
self.ImageSource = params.get("ImageSource")
|
|
219
|
+
if params.get("ImageRepoId"):
|
|
220
|
+
self.ImageRepoId = params.get("ImageRepoId")
|
|
221
|
+
if params.get("ImageRegistryId"):
|
|
222
|
+
self.ImageRegistryId = params.get("ImageRegistryId")
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
class DeleteNotebookRequest(AbstractModel):
|
|
226
|
+
"""DeleteNotebook请求参数结构体
|
|
227
|
+
"""
|
|
228
|
+
|
|
229
|
+
def __init__(self):
|
|
230
|
+
r"""删除开发任务
|
|
231
|
+
:param NotebookId: 开发任务ID
|
|
232
|
+
:type PathPrefix: String
|
|
233
|
+
"""
|
|
234
|
+
self.NotebookId = None
|
|
235
|
+
|
|
236
|
+
def _deserialize(self, params):
|
|
237
|
+
if params.get("NotebookId"):
|
|
238
|
+
self.NotebookId = params.get("NotebookId")
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
class DescribeNotebooksRequest(AbstractModel):
|
|
242
|
+
"""DescribeNotebooks请求参数结构体
|
|
243
|
+
"""
|
|
244
|
+
|
|
245
|
+
def __init__(self):
|
|
246
|
+
r"""查询开发任务
|
|
247
|
+
:param NotebookId: 开发任务ID
|
|
248
|
+
:type PathPrefix: Filter
|
|
249
|
+
:param Name: 开发任务名称
|
|
250
|
+
:type PathPrefix: String
|
|
251
|
+
:param Marker: 页数
|
|
252
|
+
:type PathPrefix: Int
|
|
253
|
+
:param MaxResults: 每页查询数目
|
|
254
|
+
:type PathPrefix: Int
|
|
255
|
+
:param State: 开发任务状态
|
|
256
|
+
:type PathPrefix: String
|
|
257
|
+
:param Filter: 条件过滤
|
|
258
|
+
:type PathPrefix: Filter
|
|
259
|
+
:param QueueId: 队列ID
|
|
260
|
+
:type PathPrefix: String
|
|
261
|
+
"""
|
|
262
|
+
self.NotebookId = None
|
|
263
|
+
self.Name = None
|
|
264
|
+
self.Marker = None
|
|
265
|
+
self.MaxResults = None
|
|
266
|
+
self.State = None
|
|
267
|
+
self.Filter = None
|
|
268
|
+
self.QueueId = None
|
|
269
|
+
|
|
270
|
+
def _deserialize(self, params):
|
|
271
|
+
if params.get("NotebookId"):
|
|
272
|
+
self.NotebookId = params.get("NotebookId")
|
|
273
|
+
if params.get("Name"):
|
|
274
|
+
self.Name = params.get("Name")
|
|
275
|
+
if params.get("Marker"):
|
|
276
|
+
self.Marker = params.get("Marker")
|
|
277
|
+
if params.get("MaxResults"):
|
|
278
|
+
self.MaxResults = params.get("MaxResults")
|
|
279
|
+
if params.get("State"):
|
|
280
|
+
self.State = params.get("State")
|
|
281
|
+
if params.get("Filter"):
|
|
282
|
+
self.Filter = params.get("Filter")
|
|
283
|
+
if params.get("QueueId"):
|
|
284
|
+
self.QueueId = params.get("QueueId")
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
class CreateNotebookRequest(AbstractModel):
|
|
288
|
+
"""CreateNotebook请求参数结构体
|
|
289
|
+
"""
|
|
290
|
+
|
|
291
|
+
def __init__(self):
|
|
292
|
+
r"""创建开发任务
|
|
293
|
+
:param NotebookName: 任务名称
|
|
294
|
+
:type PathPrefix: String
|
|
295
|
+
:param Description: 描述信息
|
|
296
|
+
:type PathPrefix: String
|
|
297
|
+
:param ResourcePoolId: 资源池ID
|
|
298
|
+
:type PathPrefix: String
|
|
299
|
+
:param QueueName: 队列名称
|
|
300
|
+
:type PathPrefix: String
|
|
301
|
+
:param GPUType: GPU类型
|
|
302
|
+
:type PathPrefix: String
|
|
303
|
+
:param GPUNumber: GPU核数,允许范围为0~10000, 如果可虚拟化,支持[0.1,0.9]
|
|
304
|
+
:type PathPrefix: String
|
|
305
|
+
:param CPUNum: Cpu数量,允许范围为0~10000
|
|
306
|
+
:type PathPrefix: Int
|
|
307
|
+
:param Memory: 内存G,允许范围为0~10000
|
|
308
|
+
:type PathPrefix: Int
|
|
309
|
+
:param AccessType: 可见范围,Creator(创建者可见),QueueMember(队列成员可见)
|
|
310
|
+
:type PathPrefix: String
|
|
311
|
+
:param StorageConfigs: 存储配置列表
|
|
312
|
+
:type PathPrefix: Array
|
|
313
|
+
:param AutoSave: 是否自动保存镜像
|
|
314
|
+
:type PathPrefix: Boolean
|
|
315
|
+
:param ServiceConfigs: 开放服务端口列表
|
|
316
|
+
:type PathPrefix: Array
|
|
317
|
+
:param ImageSource: 镜像来源
|
|
318
|
+
- 官方镜像 Official
|
|
319
|
+
- 个人镜像 Personal
|
|
320
|
+
- 第三方镜 ThirdParty
|
|
321
|
+
|
|
322
|
+
当传入值为ThirdParty时,"ImageRegistryId", "ImageRepoId", "ImageTagId"必须传入
|
|
323
|
+
:type PathPrefix: String
|
|
324
|
+
:param ImageId: 镜像ID
|
|
325
|
+
当镜像来源为第三方来源时,此参数不传递,其他镜像来源,此参数为必填项
|
|
326
|
+
:type PathPrefix: String
|
|
327
|
+
:param ImageRegistryId: 仓库连接 Id
|
|
328
|
+
:type PathPrefix: String
|
|
329
|
+
:param ImageRepoId: 仓库 Id
|
|
330
|
+
:type PathPrefix: String
|
|
331
|
+
:param ImageTagId: tagId
|
|
332
|
+
:type PathPrefix: String
|
|
333
|
+
:param EnableSSH: 是否开启SSH
|
|
334
|
+
:type PathPrefix: Boolean
|
|
335
|
+
:param SSHAuthorizedKeys: SSH公钥,当EnableSsh=true时必传该参数
|
|
336
|
+
:type PathPrefix: String
|
|
337
|
+
:param SSHPort: SSH端口,默认为22,范围为1~65535
|
|
338
|
+
:type PathPrefix: Int
|
|
339
|
+
:param EnablePublicNetworkSSH: 是否开启公网SSH访问模式,当EnableSsh=true时可设置该参数
|
|
340
|
+
:type PathPrefix: Boolean
|
|
341
|
+
:param AllocationId: 弹性IP ID,当EnablePublicNetworkSsh=true时,此参数必传
|
|
342
|
+
:type PathPrefix: String
|
|
343
|
+
:param RunOnCPU: 开启后,仅调度CPU
|
|
344
|
+
:type PathPrefix: String
|
|
345
|
+
"""
|
|
346
|
+
self.NotebookName = None
|
|
347
|
+
self.Description = None
|
|
348
|
+
self.ResourcePoolId = None
|
|
349
|
+
self.QueueName = None
|
|
350
|
+
self.GPUType = None
|
|
351
|
+
self.GPUNumber = None
|
|
352
|
+
self.CPUNum = None
|
|
353
|
+
self.Memory = None
|
|
354
|
+
self.AccessType = None
|
|
355
|
+
self.StorageConfigs = None
|
|
356
|
+
self.AutoSave = None
|
|
357
|
+
self.ServiceConfigs = None
|
|
358
|
+
self.ImageSource = None
|
|
359
|
+
self.ImageId = None
|
|
360
|
+
self.ImageRegistryId = None
|
|
361
|
+
self.ImageRepoId = None
|
|
362
|
+
self.ImageTagId = None
|
|
363
|
+
self.EnableSSH = None
|
|
364
|
+
self.SSHAuthorizedKeys = None
|
|
365
|
+
self.SSHPort = None
|
|
366
|
+
self.EnablePublicNetworkSSH = None
|
|
367
|
+
self.AllocationId = None
|
|
368
|
+
self.RunOnCPU = None
|
|
369
|
+
|
|
370
|
+
def _deserialize(self, params):
|
|
371
|
+
if params.get("NotebookName"):
|
|
372
|
+
self.NotebookName = params.get("NotebookName")
|
|
373
|
+
if params.get("Description"):
|
|
374
|
+
self.Description = params.get("Description")
|
|
375
|
+
if params.get("ResourcePoolId"):
|
|
376
|
+
self.ResourcePoolId = params.get("ResourcePoolId")
|
|
377
|
+
if params.get("QueueName"):
|
|
378
|
+
self.QueueName = params.get("QueueName")
|
|
379
|
+
if params.get("GPUType"):
|
|
380
|
+
self.GPUType = params.get("GPUType")
|
|
381
|
+
if params.get("GPUNumber"):
|
|
382
|
+
self.GPUNumber = params.get("GPUNumber")
|
|
383
|
+
if params.get("CPUNum"):
|
|
384
|
+
self.CPUNum = params.get("CPUNum")
|
|
385
|
+
if params.get("Memory"):
|
|
386
|
+
self.Memory = params.get("Memory")
|
|
387
|
+
if params.get("AccessType"):
|
|
388
|
+
self.AccessType = params.get("AccessType")
|
|
389
|
+
if params.get("StorageConfigs"):
|
|
390
|
+
self.StorageConfigs = params.get("StorageConfigs")
|
|
391
|
+
if params.get("AutoSave"):
|
|
392
|
+
self.AutoSave = params.get("AutoSave")
|
|
393
|
+
if params.get("ServiceConfigs"):
|
|
394
|
+
self.ServiceConfigs = params.get("ServiceConfigs")
|
|
395
|
+
if params.get("ImageSource"):
|
|
396
|
+
self.ImageSource = params.get("ImageSource")
|
|
397
|
+
if params.get("ImageId"):
|
|
398
|
+
self.ImageId = params.get("ImageId")
|
|
399
|
+
if params.get("ImageRegistryId"):
|
|
400
|
+
self.ImageRegistryId = params.get("ImageRegistryId")
|
|
401
|
+
if params.get("ImageRepoId"):
|
|
402
|
+
self.ImageRepoId = params.get("ImageRepoId")
|
|
403
|
+
if params.get("ImageTagId"):
|
|
404
|
+
self.ImageTagId = params.get("ImageTagId")
|
|
405
|
+
if params.get("EnableSSH"):
|
|
406
|
+
self.EnableSSH = params.get("EnableSSH")
|
|
407
|
+
if params.get("SSHAuthorizedKeys"):
|
|
408
|
+
self.SSHAuthorizedKeys = params.get("SSHAuthorizedKeys")
|
|
409
|
+
if params.get("SSHPort"):
|
|
410
|
+
self.SSHPort = params.get("SSHPort")
|
|
411
|
+
if params.get("EnablePublicNetworkSSH"):
|
|
412
|
+
self.EnablePublicNetworkSSH = params.get("EnablePublicNetworkSSH")
|
|
413
|
+
if params.get("AllocationId"):
|
|
414
|
+
self.AllocationId = params.get("AllocationId")
|
|
415
|
+
if params.get("RunOnCPU"):
|
|
416
|
+
self.RunOnCPU = params.get("RunOnCPU")
|
|
417
|
+
|
|
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
|
+
|
|
583
|
+
class StopNotebookRequest(AbstractModel):
|
|
584
|
+
"""StopNotebook请求参数结构体
|
|
585
|
+
"""
|
|
586
|
+
|
|
587
|
+
def __init__(self):
|
|
588
|
+
r"""停止开发任务
|
|
589
|
+
:param NotebookId: 开发任务ID
|
|
590
|
+
:type PathPrefix: String
|
|
591
|
+
"""
|
|
592
|
+
self.NotebookId = None
|
|
593
|
+
|
|
594
|
+
def _deserialize(self, params):
|
|
595
|
+
if params.get("NotebookId"):
|
|
596
|
+
self.NotebookId = params.get("NotebookId")
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
class StartNotebookRequest(AbstractModel):
|
|
600
|
+
"""StartNotebook请求参数结构体
|
|
601
|
+
"""
|
|
602
|
+
|
|
603
|
+
def __init__(self):
|
|
604
|
+
r"""启动开发任务
|
|
605
|
+
:param NotebookId: 开发任务ID
|
|
606
|
+
:type PathPrefix: String
|
|
607
|
+
"""
|
|
608
|
+
self.NotebookId = None
|
|
609
|
+
|
|
610
|
+
def _deserialize(self, params):
|
|
611
|
+
if params.get("NotebookId"):
|
|
612
|
+
self.NotebookId = params.get("NotebookId")
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
class GetWebIdeUrlRequest(AbstractModel):
|
|
616
|
+
"""GetWebIdeUrl请求参数结构体
|
|
617
|
+
"""
|
|
618
|
+
|
|
619
|
+
def __init__(self):
|
|
620
|
+
r"""获取开发任务连接地址
|
|
621
|
+
:param NotebookId: 开发任务ID
|
|
622
|
+
:type PathPrefix: String
|
|
623
|
+
:param ExpirationMinute: 过期时间(分钟),默认时间是720分钟
|
|
624
|
+
:type PathPrefix: String
|
|
625
|
+
"""
|
|
626
|
+
self.NotebookId = None
|
|
627
|
+
self.ExpirationMinute = None
|
|
628
|
+
|
|
629
|
+
def _deserialize(self, params):
|
|
630
|
+
if params.get("NotebookId"):
|
|
631
|
+
self.NotebookId = params.get("NotebookId")
|
|
632
|
+
if params.get("ExpirationMinute"):
|
|
633
|
+
self.ExpirationMinute = params.get("ExpirationMinute")
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
class DescribeNotebookEventsRequest(AbstractModel):
|
|
637
|
+
"""DescribeNotebookEvents请求参数结构体
|
|
638
|
+
"""
|
|
639
|
+
|
|
640
|
+
def __init__(self):
|
|
641
|
+
r"""查询开发任务事件列表
|
|
642
|
+
:param NotebookId: 开发任务ID
|
|
643
|
+
:type PathPrefix: String
|
|
644
|
+
"""
|
|
645
|
+
self.NotebookId = None
|
|
646
|
+
|
|
647
|
+
def _deserialize(self, params):
|
|
648
|
+
if params.get("NotebookId"):
|
|
649
|
+
self.NotebookId = params.get("NotebookId")
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
class DescribeNotebookLogRequest(AbstractModel):
|
|
653
|
+
"""DescribeNotebookLog请求参数结构体
|
|
654
|
+
"""
|
|
655
|
+
|
|
656
|
+
def __init__(self):
|
|
657
|
+
r"""查看开发机日志
|
|
658
|
+
"""
|
|
659
|
+
|
|
660
|
+
def _deserialize(self, params):
|
|
661
|
+
return
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
class StopNotebookSavingImageRequest(AbstractModel):
|
|
665
|
+
"""StopNotebookSavingImage请求参数结构体
|
|
666
|
+
"""
|
|
667
|
+
|
|
668
|
+
def __init__(self):
|
|
669
|
+
r"""终止开发任务镜像保存
|
|
670
|
+
:param NotebookId: 开发任务ID
|
|
671
|
+
:type PathPrefix: String
|
|
672
|
+
"""
|
|
673
|
+
self.NotebookId = None
|
|
674
|
+
|
|
675
|
+
def _deserialize(self, params):
|
|
676
|
+
if params.get("NotebookId"):
|
|
677
|
+
self.NotebookId = params.get("NotebookId")
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
class EnableApikeyStatusRequest(AbstractModel):
|
|
681
|
+
"""EnableApikeyStatus请求参数结构体
|
|
682
|
+
"""
|
|
683
|
+
|
|
684
|
+
def __init__(self):
|
|
685
|
+
r"""启用API Key
|
|
686
|
+
:param KeyId: API Key的ID
|
|
687
|
+
:type PathPrefix: String
|
|
688
|
+
:param Status: 启禁用状态:1启用,2禁用
|
|
689
|
+
:type PathPrefix: String
|
|
690
|
+
"""
|
|
691
|
+
self.KeyId = None
|
|
692
|
+
self.Status = None
|
|
693
|
+
|
|
694
|
+
def _deserialize(self, params):
|
|
695
|
+
if params.get("KeyId"):
|
|
696
|
+
self.KeyId = params.get("KeyId")
|
|
697
|
+
if params.get("Status"):
|
|
698
|
+
self.Status = params.get("Status")
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
class ModifyApikeyRequest(AbstractModel):
|
|
702
|
+
"""ModifyApikey请求参数结构体
|
|
703
|
+
"""
|
|
704
|
+
|
|
705
|
+
def __init__(self):
|
|
706
|
+
r"""编辑API Key
|
|
707
|
+
:param KeyId:
|
|
708
|
+
:type PathPrefix: String
|
|
709
|
+
:param Name: API Key 名称
|
|
710
|
+
:type PathPrefix: String
|
|
711
|
+
:param Description: API Key 描述
|
|
712
|
+
:type PathPrefix: String
|
|
713
|
+
:param AssociatedModelIds: API Key 关联的模型列表
|
|
714
|
+
:type PathPrefix: Array
|
|
715
|
+
:param AllAssociatedModel: 是否全选
|
|
716
|
+
:type PathPrefix: Boolean
|
|
717
|
+
"""
|
|
718
|
+
self.KeyId = None
|
|
719
|
+
self.Name = None
|
|
720
|
+
self.Description = None
|
|
721
|
+
self.AssociatedModelIds = None
|
|
722
|
+
self.AllAssociatedModel = None
|
|
723
|
+
|
|
724
|
+
def _deserialize(self, params):
|
|
725
|
+
if params.get("KeyId"):
|
|
726
|
+
self.KeyId = params.get("KeyId")
|
|
727
|
+
if params.get("Name"):
|
|
728
|
+
self.Name = params.get("Name")
|
|
729
|
+
if params.get("Description"):
|
|
730
|
+
self.Description = params.get("Description")
|
|
731
|
+
if params.get("AssociatedModelIds"):
|
|
732
|
+
self.AssociatedModelIds = params.get("AssociatedModelIds")
|
|
733
|
+
if params.get("AllAssociatedModel"):
|
|
734
|
+
self.AllAssociatedModel = params.get("AllAssociatedModel")
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
class ActivateApiServiceRequest(AbstractModel):
|
|
738
|
+
"""ActivateApiService请求参数结构体
|
|
739
|
+
"""
|
|
740
|
+
|
|
741
|
+
def __init__(self):
|
|
742
|
+
r"""开通模型API服务
|
|
743
|
+
:param Status: 状态:1 表示开通服务
|
|
744
|
+
:type PathPrefix: String
|
|
745
|
+
"""
|
|
746
|
+
self.Status = None
|
|
747
|
+
|
|
748
|
+
def _deserialize(self, params):
|
|
749
|
+
if params.get("Status"):
|
|
750
|
+
self.Status = params.get("Status")
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
class DeleteApikeyRequest(AbstractModel):
|
|
754
|
+
"""DeleteApikey请求参数结构体
|
|
755
|
+
"""
|
|
756
|
+
|
|
757
|
+
def __init__(self):
|
|
758
|
+
r"""删除API Key
|
|
759
|
+
:param KeyId: KeyId,例如:API-KEY-1158133806039134208
|
|
760
|
+
:type PathPrefix: String
|
|
761
|
+
"""
|
|
762
|
+
self.KeyId = None
|
|
763
|
+
|
|
764
|
+
def _deserialize(self, params):
|
|
765
|
+
if params.get("KeyId"):
|
|
766
|
+
self.KeyId = params.get("KeyId")
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
class DescribeModelsRequest(AbstractModel):
|
|
770
|
+
"""DescribeModels请求参数结构体
|
|
771
|
+
"""
|
|
772
|
+
|
|
773
|
+
def __init__(self):
|
|
774
|
+
r"""查询模型列表(支持分页)
|
|
775
|
+
:param Marker: 分页页码,从1开始
|
|
776
|
+
:type PathPrefix: Int
|
|
777
|
+
:param MaxResults: 分页页长,最大100
|
|
778
|
+
:type PathPrefix: Int
|
|
779
|
+
:param ModelCategory: 模型类别筛选项
|
|
780
|
+
:type PathPrefix: Filter
|
|
781
|
+
:param Provider: 模型供应商
|
|
782
|
+
:type PathPrefix: Filter
|
|
783
|
+
:param ContextLength: 模型上下文长度
|
|
784
|
+
1 - 128k及以下
|
|
785
|
+
2 - 128k到256k
|
|
786
|
+
3 - 256k以上
|
|
787
|
+
:type PathPrefix: Filter
|
|
788
|
+
:param ModelName: 模型名称关键词
|
|
789
|
+
:type PathPrefix: String
|
|
790
|
+
"""
|
|
791
|
+
self.Marker = None
|
|
792
|
+
self.MaxResults = None
|
|
793
|
+
self.ModelCategory = None
|
|
794
|
+
self.Provider = None
|
|
795
|
+
self.ContextLength = None
|
|
796
|
+
self.ModelName = None
|
|
797
|
+
|
|
798
|
+
def _deserialize(self, params):
|
|
799
|
+
if params.get("Marker"):
|
|
800
|
+
self.Marker = params.get("Marker")
|
|
801
|
+
if params.get("MaxResults"):
|
|
802
|
+
self.MaxResults = params.get("MaxResults")
|
|
803
|
+
if params.get("ModelCategory"):
|
|
804
|
+
self.ModelCategory = params.get("ModelCategory")
|
|
805
|
+
if params.get("Provider"):
|
|
806
|
+
self.Provider = params.get("Provider")
|
|
807
|
+
if params.get("ContextLength"):
|
|
808
|
+
self.ContextLength = params.get("ContextLength")
|
|
809
|
+
if params.get("ModelName"):
|
|
810
|
+
self.ModelName = params.get("ModelName")
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
class CreateApikeyRequest(AbstractModel):
|
|
814
|
+
"""CreateApikey请求参数结构体
|
|
815
|
+
"""
|
|
816
|
+
|
|
817
|
+
def __init__(self):
|
|
818
|
+
r"""创建API Key
|
|
819
|
+
:param Name: API Key 名称
|
|
820
|
+
:type PathPrefix: String
|
|
821
|
+
:param Description: API Key 描述
|
|
822
|
+
:type PathPrefix: String
|
|
823
|
+
:param ProjectId: 项目ID
|
|
824
|
+
:type PathPrefix: Long
|
|
825
|
+
:param AssociatedModelIds: 关联的模型列表
|
|
826
|
+
:type PathPrefix: Array
|
|
827
|
+
:param AllAssociatedModel: 是否全选
|
|
828
|
+
:type PathPrefix: Boolean
|
|
829
|
+
:param AllowedIps: IP白名单,空数组表示不设置白名单
|
|
830
|
+
:type PathPrefix: Array
|
|
831
|
+
"""
|
|
832
|
+
self.Name = None
|
|
833
|
+
self.Description = None
|
|
834
|
+
self.ProjectId = None
|
|
835
|
+
self.AssociatedModelIds = None
|
|
836
|
+
self.AllAssociatedModel = None
|
|
837
|
+
self.AllowedIps = None
|
|
838
|
+
|
|
839
|
+
def _deserialize(self, params):
|
|
840
|
+
if params.get("Name"):
|
|
841
|
+
self.Name = params.get("Name")
|
|
842
|
+
if params.get("Description"):
|
|
843
|
+
self.Description = params.get("Description")
|
|
844
|
+
if params.get("ProjectId"):
|
|
845
|
+
self.ProjectId = params.get("ProjectId")
|
|
846
|
+
if params.get("AssociatedModelIds"):
|
|
847
|
+
self.AssociatedModelIds = params.get("AssociatedModelIds")
|
|
848
|
+
if params.get("AllAssociatedModel"):
|
|
849
|
+
self.AllAssociatedModel = params.get("AllAssociatedModel")
|
|
850
|
+
if params.get("AllowedIps"):
|
|
851
|
+
self.AllowedIps = params.get("AllowedIps")
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
class GetModelDetailRequest(AbstractModel):
|
|
855
|
+
"""GetModelDetail请求参数结构体
|
|
856
|
+
"""
|
|
857
|
+
|
|
858
|
+
def __init__(self):
|
|
859
|
+
r"""查询模型详情
|
|
860
|
+
:param ModelId:
|
|
861
|
+
:type PathPrefix: String
|
|
862
|
+
"""
|
|
863
|
+
self.ModelId = None
|
|
864
|
+
|
|
865
|
+
def _deserialize(self, params):
|
|
866
|
+
if params.get("ModelId"):
|
|
867
|
+
self.ModelId = params.get("ModelId")
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
class DescribeApikeysRequest(AbstractModel):
|
|
871
|
+
"""DescribeApikeys请求参数结构体
|
|
872
|
+
"""
|
|
873
|
+
|
|
874
|
+
def __init__(self):
|
|
875
|
+
r"""查询API Key列表(分页)
|
|
876
|
+
:param Marker: 分页页码,从1开始
|
|
877
|
+
:type PathPrefix: Int
|
|
878
|
+
:param MaxResults: 每页条数,最多100
|
|
879
|
+
:type PathPrefix: Int
|
|
880
|
+
:param AssociatedModelId: 通过模型查关联的API Key
|
|
881
|
+
:type PathPrefix: Filter
|
|
882
|
+
:param Status: 按状态过滤查询
|
|
883
|
+
:type PathPrefix: Filter
|
|
884
|
+
:param Namekeyword: 名称搜索关键词
|
|
885
|
+
:type PathPrefix: String
|
|
886
|
+
:param DefaultKey: 是否默认只查默认Key
|
|
887
|
+
:type PathPrefix: Boolean
|
|
888
|
+
:param KeyId: 按apiKeyId 查询
|
|
889
|
+
:type PathPrefix: Filter
|
|
890
|
+
"""
|
|
891
|
+
self.Marker = None
|
|
892
|
+
self.MaxResults = None
|
|
893
|
+
self.AssociatedModelId = None
|
|
894
|
+
self.Status = None
|
|
895
|
+
self.Namekeyword = None
|
|
896
|
+
self.DefaultKey = None
|
|
897
|
+
self.KeyId = None
|
|
898
|
+
|
|
899
|
+
def _deserialize(self, params):
|
|
900
|
+
if params.get("Marker"):
|
|
901
|
+
self.Marker = params.get("Marker")
|
|
902
|
+
if params.get("MaxResults"):
|
|
903
|
+
self.MaxResults = params.get("MaxResults")
|
|
904
|
+
if params.get("AssociatedModelId"):
|
|
905
|
+
self.AssociatedModelId = params.get("AssociatedModelId")
|
|
906
|
+
if params.get("Status"):
|
|
907
|
+
self.Status = params.get("Status")
|
|
908
|
+
if params.get("Namekeyword"):
|
|
909
|
+
self.Namekeyword = params.get("Namekeyword")
|
|
910
|
+
if params.get("DefaultKey"):
|
|
911
|
+
self.DefaultKey = params.get("DefaultKey")
|
|
912
|
+
if params.get("KeyId"):
|
|
913
|
+
self.KeyId = params.get("KeyId")
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
class QueryTokenDataRequest(AbstractModel):
|
|
917
|
+
"""QueryTokenData请求参数结构体
|
|
918
|
+
"""
|
|
919
|
+
|
|
920
|
+
def __init__(self):
|
|
921
|
+
r"""查询模型API token用量(限定半年内的)
|
|
922
|
+
:param StartTimestamp: 开始时间,毫秒时间戳,仅支持最近180天内时间。
|
|
923
|
+
:type PathPrefix: Long
|
|
924
|
+
:param EndTimestamp: 截止时间,毫秒时间戳
|
|
925
|
+
:type PathPrefix: Long
|
|
926
|
+
:param MaxResults: 分页页长,最大10000
|
|
927
|
+
:type PathPrefix: Int
|
|
928
|
+
:param Keyword: 搜索关键词
|
|
929
|
+
:type PathPrefix: String
|
|
930
|
+
:param GroupBy: 分组字段:
|
|
931
|
+
model-按模型分组;keyId-按apikey分组。
|
|
932
|
+
:type PathPrefix: String
|
|
933
|
+
:param ReasoningType: 推理类型:normal-在线,batch-批量,web-在线体验,不传为查询全部。
|
|
934
|
+
:type PathPrefix: String
|
|
935
|
+
:param Marker: 页码,从1开始。
|
|
936
|
+
:type PathPrefix: Int
|
|
937
|
+
:param IsGlobalServer: 是否国际版:false-国内版,true-国际版
|
|
938
|
+
:type PathPrefix: Boolean
|
|
939
|
+
:param ModelName:
|
|
940
|
+
:type PathPrefix: String
|
|
941
|
+
"""
|
|
942
|
+
self.StartTimestamp = None
|
|
943
|
+
self.EndTimestamp = None
|
|
944
|
+
self.MaxResults = None
|
|
945
|
+
self.Keyword = None
|
|
946
|
+
self.GroupBy = None
|
|
947
|
+
self.ReasoningType = None
|
|
948
|
+
self.Marker = None
|
|
949
|
+
self.IsGlobalServer = None
|
|
950
|
+
self.ModelName = None
|
|
951
|
+
|
|
952
|
+
def _deserialize(self, params):
|
|
953
|
+
if params.get("StartTimestamp"):
|
|
954
|
+
self.StartTimestamp = params.get("StartTimestamp")
|
|
955
|
+
if params.get("EndTimestamp"):
|
|
956
|
+
self.EndTimestamp = params.get("EndTimestamp")
|
|
957
|
+
if params.get("MaxResults"):
|
|
958
|
+
self.MaxResults = params.get("MaxResults")
|
|
959
|
+
if params.get("Keyword"):
|
|
960
|
+
self.Keyword = params.get("Keyword")
|
|
961
|
+
if params.get("GroupBy"):
|
|
962
|
+
self.GroupBy = params.get("GroupBy")
|
|
963
|
+
if params.get("ReasoningType"):
|
|
964
|
+
self.ReasoningType = params.get("ReasoningType")
|
|
965
|
+
if params.get("Marker"):
|
|
966
|
+
self.Marker = params.get("Marker")
|
|
967
|
+
if params.get("IsGlobalServer"):
|
|
968
|
+
self.IsGlobalServer = params.get("IsGlobalServer")
|
|
969
|
+
if params.get("ModelName"):
|
|
970
|
+
self.ModelName = params.get("ModelName")
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
class DisableApikeyStatusRequest(AbstractModel):
|
|
974
|
+
"""DisableApikeyStatus请求参数结构体
|
|
975
|
+
"""
|
|
976
|
+
|
|
977
|
+
def __init__(self):
|
|
978
|
+
r"""禁用API Key
|
|
979
|
+
:param KeyId: API Key的ID
|
|
980
|
+
:type PathPrefix: String
|
|
981
|
+
:param Status: 启禁用状态:1启用,2禁用
|
|
982
|
+
:type PathPrefix: String
|
|
983
|
+
"""
|
|
984
|
+
self.KeyId = None
|
|
985
|
+
self.Status = None
|
|
986
|
+
|
|
987
|
+
def _deserialize(self, params):
|
|
988
|
+
if params.get("KeyId"):
|
|
989
|
+
self.KeyId = params.get("KeyId")
|
|
990
|
+
if params.get("Status"):
|
|
991
|
+
self.Status = params.get("Status")
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
class GetApiServiceRequest(AbstractModel):
|
|
995
|
+
"""GetApiService请求参数结构体
|
|
996
|
+
"""
|
|
997
|
+
|
|
998
|
+
def __init__(self):
|
|
999
|
+
r"""查询API服务开通状态
|
|
1000
|
+
"""
|
|
1001
|
+
|
|
1002
|
+
def _deserialize(self, params):
|
|
1003
|
+
return
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
class GetBatchInferenceJobsFinalResultDownloadUrlRequest(AbstractModel):
|
|
1007
|
+
"""GetBatchInferenceJobsFinalResultDownloadUrl请求参数结构体
|
|
1008
|
+
"""
|
|
1009
|
+
|
|
1010
|
+
def __init__(self):
|
|
1011
|
+
r"""查询批量推理任务最终结果下载链接
|
|
1012
|
+
:param BatchId:
|
|
1013
|
+
:type PathPrefix: String
|
|
1014
|
+
"""
|
|
1015
|
+
self.BatchId = None
|
|
1016
|
+
|
|
1017
|
+
def _deserialize(self, params):
|
|
1018
|
+
if params.get("BatchId"):
|
|
1019
|
+
self.BatchId = params.get("BatchId")
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
class DescribeInferenceJobsKs3AuthInfoRequest(AbstractModel):
|
|
1023
|
+
"""DescribeInferenceJobsKs3AuthInfo请求参数结构体
|
|
1024
|
+
"""
|
|
1025
|
+
|
|
1026
|
+
def __init__(self):
|
|
1027
|
+
r"""查询批量推理任务Ks3鉴权信息
|
|
1028
|
+
"""
|
|
1029
|
+
|
|
1030
|
+
def _deserialize(self, params):
|
|
1031
|
+
return
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
class StopBatchInferenceJobRequest(AbstractModel):
|
|
1035
|
+
"""StopBatchInferenceJob请求参数结构体
|
|
1036
|
+
"""
|
|
1037
|
+
|
|
1038
|
+
def __init__(self):
|
|
1039
|
+
r"""终止批量推理任务
|
|
1040
|
+
:param BatchId:
|
|
1041
|
+
:type PathPrefix: String
|
|
1042
|
+
"""
|
|
1043
|
+
self.BatchId = None
|
|
1044
|
+
|
|
1045
|
+
def _deserialize(self, params):
|
|
1046
|
+
if params.get("BatchId"):
|
|
1047
|
+
self.BatchId = params.get("BatchId")
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
class CreateBatchInferenceJobRequest(AbstractModel):
|
|
1051
|
+
"""CreateBatchInferenceJob请求参数结构体
|
|
1052
|
+
"""
|
|
1053
|
+
|
|
1054
|
+
def __init__(self):
|
|
1055
|
+
r"""创建批量推理任务
|
|
1056
|
+
:param JobName:
|
|
1057
|
+
:type PathPrefix: String
|
|
1058
|
+
:param JobDesc:
|
|
1059
|
+
:type PathPrefix: String
|
|
1060
|
+
:param ApikeyId:
|
|
1061
|
+
:type PathPrefix: String
|
|
1062
|
+
:param Model: 模型名,如:deepseek-r1-0528
|
|
1063
|
+
:type PathPrefix: String
|
|
1064
|
+
:param ExecuteTimeoutMs:
|
|
1065
|
+
:type PathPrefix: Long
|
|
1066
|
+
:param InputDataType: 文件类型:user_ks3 用户ks3;upload_ks3 上传文件
|
|
1067
|
+
:type PathPrefix: String
|
|
1068
|
+
:param Ks3Region:
|
|
1069
|
+
:type PathPrefix: String
|
|
1070
|
+
:param Ks3Ak:
|
|
1071
|
+
:type PathPrefix: String
|
|
1072
|
+
:param Ks3Sk:
|
|
1073
|
+
:type PathPrefix: String
|
|
1074
|
+
:param InBucket:
|
|
1075
|
+
:type PathPrefix: String
|
|
1076
|
+
:param OutBucket:
|
|
1077
|
+
:type PathPrefix: String
|
|
1078
|
+
:param InObjectName:
|
|
1079
|
+
:type PathPrefix: String
|
|
1080
|
+
:param OutObjectName:
|
|
1081
|
+
:type PathPrefix: String
|
|
1082
|
+
"""
|
|
1083
|
+
self.JobName = None
|
|
1084
|
+
self.JobDesc = None
|
|
1085
|
+
self.ApikeyId = None
|
|
1086
|
+
self.Model = None
|
|
1087
|
+
self.ExecuteTimeoutMs = None
|
|
1088
|
+
self.InputDataType = None
|
|
1089
|
+
self.Ks3Region = None
|
|
1090
|
+
self.Ks3Ak = None
|
|
1091
|
+
self.Ks3Sk = None
|
|
1092
|
+
self.InBucket = None
|
|
1093
|
+
self.OutBucket = None
|
|
1094
|
+
self.InObjectName = None
|
|
1095
|
+
self.OutObjectName = None
|
|
1096
|
+
|
|
1097
|
+
def _deserialize(self, params):
|
|
1098
|
+
if params.get("JobName"):
|
|
1099
|
+
self.JobName = params.get("JobName")
|
|
1100
|
+
if params.get("JobDesc"):
|
|
1101
|
+
self.JobDesc = params.get("JobDesc")
|
|
1102
|
+
if params.get("ApikeyId"):
|
|
1103
|
+
self.ApikeyId = params.get("ApikeyId")
|
|
1104
|
+
if params.get("Model"):
|
|
1105
|
+
self.Model = params.get("Model")
|
|
1106
|
+
if params.get("ExecuteTimeoutMs"):
|
|
1107
|
+
self.ExecuteTimeoutMs = params.get("ExecuteTimeoutMs")
|
|
1108
|
+
if params.get("InputDataType"):
|
|
1109
|
+
self.InputDataType = params.get("InputDataType")
|
|
1110
|
+
if params.get("Ks3Region"):
|
|
1111
|
+
self.Ks3Region = params.get("Ks3Region")
|
|
1112
|
+
if params.get("Ks3Ak"):
|
|
1113
|
+
self.Ks3Ak = params.get("Ks3Ak")
|
|
1114
|
+
if params.get("Ks3Sk"):
|
|
1115
|
+
self.Ks3Sk = params.get("Ks3Sk")
|
|
1116
|
+
if params.get("InBucket"):
|
|
1117
|
+
self.InBucket = params.get("InBucket")
|
|
1118
|
+
if params.get("OutBucket"):
|
|
1119
|
+
self.OutBucket = params.get("OutBucket")
|
|
1120
|
+
if params.get("InObjectName"):
|
|
1121
|
+
self.InObjectName = params.get("InObjectName")
|
|
1122
|
+
if params.get("OutObjectName"):
|
|
1123
|
+
self.OutObjectName = params.get("OutObjectName")
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
class ModifyBatchInferenceJobRequest(AbstractModel):
|
|
1127
|
+
"""ModifyBatchInferenceJob请求参数结构体
|
|
1128
|
+
"""
|
|
1129
|
+
|
|
1130
|
+
def __init__(self):
|
|
1131
|
+
r"""更新批量推理任务(修改jobName和jobDesc)
|
|
1132
|
+
:param BatchId:
|
|
1133
|
+
:type PathPrefix: String
|
|
1134
|
+
:param JobName:
|
|
1135
|
+
:type PathPrefix: String
|
|
1136
|
+
:param JobDesc:
|
|
1137
|
+
:type PathPrefix: String
|
|
1138
|
+
"""
|
|
1139
|
+
self.BatchId = None
|
|
1140
|
+
self.JobName = None
|
|
1141
|
+
self.JobDesc = None
|
|
1142
|
+
|
|
1143
|
+
def _deserialize(self, params):
|
|
1144
|
+
if params.get("BatchId"):
|
|
1145
|
+
self.BatchId = params.get("BatchId")
|
|
1146
|
+
if params.get("JobName"):
|
|
1147
|
+
self.JobName = params.get("JobName")
|
|
1148
|
+
if params.get("JobDesc"):
|
|
1149
|
+
self.JobDesc = params.get("JobDesc")
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
class DescribeBatchInferenceJobsRequest(AbstractModel):
|
|
1153
|
+
"""DescribeBatchInferenceJobs请求参数结构体
|
|
1154
|
+
"""
|
|
1155
|
+
|
|
1156
|
+
def __init__(self):
|
|
1157
|
+
r"""查询批量推理任务(支持分页,按创建用户过滤)
|
|
1158
|
+
:param Marker: 页码,从1开始,默认是1
|
|
1159
|
+
:type PathPrefix: Int
|
|
1160
|
+
:param MaxResults: 页长,默认和最大都是100
|
|
1161
|
+
:type PathPrefix: Int
|
|
1162
|
+
:param JobNameKeyword: 任务名称模糊查询条件
|
|
1163
|
+
:type PathPrefix: String
|
|
1164
|
+
:param Status: 按状态过滤查询
|
|
1165
|
+
init、queuing、running、terminated、completed、failed、timeout
|
|
1166
|
+
:type PathPrefix: Filter
|
|
1167
|
+
:param BatchId:
|
|
1168
|
+
:type PathPrefix: String
|
|
1169
|
+
"""
|
|
1170
|
+
self.Marker = None
|
|
1171
|
+
self.MaxResults = None
|
|
1172
|
+
self.JobNameKeyword = None
|
|
1173
|
+
self.Status = None
|
|
1174
|
+
self.BatchId = None
|
|
1175
|
+
|
|
1176
|
+
def _deserialize(self, params):
|
|
1177
|
+
if params.get("Marker"):
|
|
1178
|
+
self.Marker = params.get("Marker")
|
|
1179
|
+
if params.get("MaxResults"):
|
|
1180
|
+
self.MaxResults = params.get("MaxResults")
|
|
1181
|
+
if params.get("JobNameKeyword"):
|
|
1182
|
+
self.JobNameKeyword = params.get("JobNameKeyword")
|
|
1183
|
+
if params.get("Status"):
|
|
1184
|
+
self.Status = params.get("Status")
|
|
1185
|
+
if params.get("BatchId"):
|
|
1186
|
+
self.BatchId = params.get("BatchId")
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
class DeleteBatchInferenceJobRequest(AbstractModel):
|
|
1190
|
+
"""DeleteBatchInferenceJob请求参数结构体
|
|
1191
|
+
"""
|
|
1192
|
+
|
|
1193
|
+
def __init__(self):
|
|
1194
|
+
r"""删除批量推理任务
|
|
1195
|
+
:param BatchId:
|
|
1196
|
+
:type PathPrefix: String
|
|
1197
|
+
"""
|
|
1198
|
+
self.BatchId = None
|
|
1199
|
+
|
|
1200
|
+
def _deserialize(self, params):
|
|
1201
|
+
if params.get("BatchId"):
|
|
1202
|
+
self.BatchId = params.get("BatchId")
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
class EnableModelsRequest(AbstractModel):
|
|
1206
|
+
"""EnableModels请求参数结构体
|
|
1207
|
+
"""
|
|
1208
|
+
|
|
1209
|
+
def __init__(self):
|
|
1210
|
+
r"""开通模型,支持批量
|
|
1211
|
+
:param ModelIds:
|
|
1212
|
+
:type PathPrefix: Array
|
|
1213
|
+
"""
|
|
1214
|
+
self.ModelIds = None
|
|
1215
|
+
|
|
1216
|
+
def _deserialize(self, params):
|
|
1217
|
+
if params.get("ModelIds"):
|
|
1218
|
+
self.ModelIds = params.get("ModelIds")
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
class DescribeModelQuotasRequest(AbstractModel):
|
|
1222
|
+
"""DescribeModelQuotas请求参数结构体
|
|
1223
|
+
"""
|
|
1224
|
+
|
|
1225
|
+
def __init__(self):
|
|
1226
|
+
r"""查询模型配额列表
|
|
1227
|
+
:param Marker: 分页页码,从1开始
|
|
1228
|
+
:type PathPrefix: Int
|
|
1229
|
+
:param MaxResults: 分页页长,最大100
|
|
1230
|
+
:type PathPrefix: Int
|
|
1231
|
+
:param Keyword: 模型搜索关键词
|
|
1232
|
+
:type PathPrefix: String
|
|
1233
|
+
:param Type: 文本模型/视觉模型
|
|
1234
|
+
:type PathPrefix: String
|
|
1235
|
+
"""
|
|
1236
|
+
self.Marker = None
|
|
1237
|
+
self.MaxResults = None
|
|
1238
|
+
self.Keyword = None
|
|
1239
|
+
self.Type = None
|
|
1240
|
+
|
|
1241
|
+
def _deserialize(self, params):
|
|
1242
|
+
if params.get("Marker"):
|
|
1243
|
+
self.Marker = params.get("Marker")
|
|
1244
|
+
if params.get("MaxResults"):
|
|
1245
|
+
self.MaxResults = params.get("MaxResults")
|
|
1246
|
+
if params.get("Keyword"):
|
|
1247
|
+
self.Keyword = params.get("Keyword")
|
|
1248
|
+
if params.get("Type"):
|
|
1249
|
+
self.Type = params.get("Type")
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
class DisableModelsRequest(AbstractModel):
|
|
1253
|
+
"""DisableModels请求参数结构体
|
|
1254
|
+
"""
|
|
1255
|
+
|
|
1256
|
+
def __init__(self):
|
|
1257
|
+
r"""禁用对应模型
|
|
1258
|
+
:param ModelIds:
|
|
1259
|
+
:type PathPrefix: Array
|
|
1260
|
+
"""
|
|
1261
|
+
self.ModelIds = None
|
|
1262
|
+
|
|
1263
|
+
def _deserialize(self, params):
|
|
1264
|
+
if params.get("ModelIds"):
|
|
1265
|
+
self.ModelIds = params.get("ModelIds")
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
class EnableOverFreeLimitRequest(AbstractModel):
|
|
1269
|
+
"""EnableOverFreeLimit请求参数结构体
|
|
1270
|
+
"""
|
|
1271
|
+
|
|
1272
|
+
def __init__(self):
|
|
1273
|
+
r"""免费配额用完后禁用对应模型
|
|
1274
|
+
:param ModelIds:
|
|
1275
|
+
:type PathPrefix: Array
|
|
1276
|
+
"""
|
|
1277
|
+
self.ModelIds = None
|
|
1278
|
+
|
|
1279
|
+
def _deserialize(self, params):
|
|
1280
|
+
if params.get("ModelIds"):
|
|
1281
|
+
self.ModelIds = params.get("ModelIds")
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
class DisableOverFreeLimitRequest(AbstractModel):
|
|
1285
|
+
"""DisableOverFreeLimit请求参数结构体
|
|
1286
|
+
"""
|
|
1287
|
+
|
|
1288
|
+
def __init__(self):
|
|
1289
|
+
r"""即免费配额用完后继续使用计费配额
|
|
1290
|
+
:param ModelIds:
|
|
1291
|
+
:type PathPrefix: Array
|
|
1292
|
+
"""
|
|
1293
|
+
self.ModelIds = None
|
|
1294
|
+
|
|
1295
|
+
def _deserialize(self, params):
|
|
1296
|
+
if params.get("ModelIds"):
|
|
1297
|
+
self.ModelIds = params.get("ModelIds")
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
class CreateTrainJobRequest(AbstractModel):
|
|
1301
|
+
"""CreateTrainJob请求参数结构体
|
|
1302
|
+
"""
|
|
1303
|
+
|
|
1304
|
+
def __init__(self):
|
|
1305
|
+
r"""创建训练任务
|
|
1306
|
+
:param TrainJobName: 训练任务名称,名称规范:1-64个字符,允许字母 中文 数字 - _ . / ( )
|
|
1307
|
+
:type PathPrefix: String
|
|
1308
|
+
:param Description: 训练任务描述信息 0-200字符
|
|
1309
|
+
:type PathPrefix: String
|
|
1310
|
+
:param ResourcePoolId: 资源池id
|
|
1311
|
+
:type PathPrefix: String
|
|
1312
|
+
:param QueueName: 队列名称
|
|
1313
|
+
:type PathPrefix: String
|
|
1314
|
+
:param Priority: 优先级
|
|
1315
|
+
可选项:
|
|
1316
|
+
• kaic-high 高
|
|
1317
|
+
• kaic-normal 中
|
|
1318
|
+
• kaic-low 低
|
|
1319
|
+
默认kaic-normal
|
|
1320
|
+
:type PathPrefix: String
|
|
1321
|
+
:param Command: 启动命令
|
|
1322
|
+
:type PathPrefix: String
|
|
1323
|
+
:param Framework: 训练框架
|
|
1324
|
+
可选项:
|
|
1325
|
+
• pytorch
|
|
1326
|
+
• tensorflow
|
|
1327
|
+
默认pytorch
|
|
1328
|
+
|
|
1329
|
+
:type PathPrefix: String
|
|
1330
|
+
:param ImageSource: 镜像类型
|
|
1331
|
+
可选项:
|
|
1332
|
+
• Official 官方镜像
|
|
1333
|
+
• Personal 自定义镜像
|
|
1334
|
+
• ThirdParty 第三方镜像
|
|
1335
|
+
:type PathPrefix: String
|
|
1336
|
+
:param FrameworkReplicas: 框架副本配置
|
|
1337
|
+
:type PathPrefix: Object
|
|
1338
|
+
:param RestartPolicy: 重启策略,可选值:
|
|
1339
|
+
· Always
|
|
1340
|
+
· OnFailure
|
|
1341
|
+
· Never
|
|
1342
|
+
:type PathPrefix: String
|
|
1343
|
+
:param Envs: 环境变量
|
|
1344
|
+
:type PathPrefix: Array
|
|
1345
|
+
:param SupportTensorboard: 是否开启Tensorboard,默认不开启
|
|
1346
|
+
:type PathPrefix: Boolean
|
|
1347
|
+
:param ImageId: 镜像ID
|
|
1348
|
+
:type PathPrefix: String
|
|
1349
|
+
:param ImageRegistryId: 镜像仓库id
|
|
1350
|
+
:type PathPrefix: String
|
|
1351
|
+
:param ImageRepoId: 镜像RepoId
|
|
1352
|
+
:type PathPrefix: String
|
|
1353
|
+
:param ImageTagId: 镜像tagId
|
|
1354
|
+
:type PathPrefix: String
|
|
1355
|
+
:param GPUType: GPU卡型
|
|
1356
|
+
:type PathPrefix: String
|
|
1357
|
+
:param GPUNumber: 范围0-10000
|
|
1358
|
+
:type PathPrefix: Int
|
|
1359
|
+
:param CPUNum: 范围0-10000
|
|
1360
|
+
:type PathPrefix: Int
|
|
1361
|
+
:param Memory: 0-10000
|
|
1362
|
+
:type PathPrefix: Int
|
|
1363
|
+
:param StorageConfigs: 存储配置
|
|
1364
|
+
|
|
1365
|
+
:type PathPrefix: Array
|
|
1366
|
+
:param AccessType: 任务可见性,可选:Creator|QueueMember 默认:Creator
|
|
1367
|
+
:type PathPrefix: String
|
|
1368
|
+
:param MaxRuntime: 运行时长0-240000,单位h
|
|
1369
|
+
:type PathPrefix: Int
|
|
1370
|
+
:param SelfHealing: 是否开启自愈,默认true
|
|
1371
|
+
:type PathPrefix: Boolean
|
|
1372
|
+
:param RunOnCPU: 任务是否仅运行在cpu节点上,默认false
|
|
1373
|
+
:type PathPrefix: Boolean
|
|
1374
|
+
"""
|
|
1375
|
+
self.TrainJobName = None
|
|
1376
|
+
self.Description = None
|
|
1377
|
+
self.ResourcePoolId = None
|
|
1378
|
+
self.QueueName = None
|
|
1379
|
+
self.Priority = None
|
|
1380
|
+
self.Command = None
|
|
1381
|
+
self.Framework = None
|
|
1382
|
+
self.ImageSource = None
|
|
1383
|
+
self.FrameworkReplicas = None
|
|
1384
|
+
self.RestartPolicy = None
|
|
1385
|
+
self.Envs = None
|
|
1386
|
+
self.SupportTensorboard = None
|
|
1387
|
+
self.ImageId = None
|
|
1388
|
+
self.ImageRegistryId = None
|
|
1389
|
+
self.ImageRepoId = None
|
|
1390
|
+
self.ImageTagId = None
|
|
1391
|
+
self.GPUType = None
|
|
1392
|
+
self.GPUNumber = None
|
|
1393
|
+
self.CPUNum = None
|
|
1394
|
+
self.Memory = None
|
|
1395
|
+
self.StorageConfigs = None
|
|
1396
|
+
self.AccessType = None
|
|
1397
|
+
self.MaxRuntime = None
|
|
1398
|
+
self.SelfHealing = None
|
|
1399
|
+
self.RunOnCPU = None
|
|
1400
|
+
|
|
1401
|
+
def _deserialize(self, params):
|
|
1402
|
+
if params.get("TrainJobName"):
|
|
1403
|
+
self.TrainJobName = params.get("TrainJobName")
|
|
1404
|
+
if params.get("Description"):
|
|
1405
|
+
self.Description = params.get("Description")
|
|
1406
|
+
if params.get("ResourcePoolId"):
|
|
1407
|
+
self.ResourcePoolId = params.get("ResourcePoolId")
|
|
1408
|
+
if params.get("QueueName"):
|
|
1409
|
+
self.QueueName = params.get("QueueName")
|
|
1410
|
+
if params.get("Priority"):
|
|
1411
|
+
self.Priority = params.get("Priority")
|
|
1412
|
+
if params.get("Command"):
|
|
1413
|
+
self.Command = params.get("Command")
|
|
1414
|
+
if params.get("Framework"):
|
|
1415
|
+
self.Framework = params.get("Framework")
|
|
1416
|
+
if params.get("ImageSource"):
|
|
1417
|
+
self.ImageSource = params.get("ImageSource")
|
|
1418
|
+
if params.get("FrameworkReplicas"):
|
|
1419
|
+
self.FrameworkReplicas = params.get("FrameworkReplicas")
|
|
1420
|
+
if params.get("RestartPolicy"):
|
|
1421
|
+
self.RestartPolicy = params.get("RestartPolicy")
|
|
1422
|
+
if params.get("Envs"):
|
|
1423
|
+
self.Envs = params.get("Envs")
|
|
1424
|
+
if params.get("SupportTensorboard"):
|
|
1425
|
+
self.SupportTensorboard = params.get("SupportTensorboard")
|
|
1426
|
+
if params.get("ImageId"):
|
|
1427
|
+
self.ImageId = params.get("ImageId")
|
|
1428
|
+
if params.get("ImageRegistryId"):
|
|
1429
|
+
self.ImageRegistryId = params.get("ImageRegistryId")
|
|
1430
|
+
if params.get("ImageRepoId"):
|
|
1431
|
+
self.ImageRepoId = params.get("ImageRepoId")
|
|
1432
|
+
if params.get("ImageTagId"):
|
|
1433
|
+
self.ImageTagId = params.get("ImageTagId")
|
|
1434
|
+
if params.get("GPUType"):
|
|
1435
|
+
self.GPUType = params.get("GPUType")
|
|
1436
|
+
if params.get("GPUNumber"):
|
|
1437
|
+
self.GPUNumber = params.get("GPUNumber")
|
|
1438
|
+
if params.get("CPUNum"):
|
|
1439
|
+
self.CPUNum = params.get("CPUNum")
|
|
1440
|
+
if params.get("Memory"):
|
|
1441
|
+
self.Memory = params.get("Memory")
|
|
1442
|
+
if params.get("StorageConfigs"):
|
|
1443
|
+
self.StorageConfigs = params.get("StorageConfigs")
|
|
1444
|
+
if params.get("AccessType"):
|
|
1445
|
+
self.AccessType = params.get("AccessType")
|
|
1446
|
+
if params.get("MaxRuntime"):
|
|
1447
|
+
self.MaxRuntime = params.get("MaxRuntime")
|
|
1448
|
+
if params.get("SelfHealing"):
|
|
1449
|
+
self.SelfHealing = params.get("SelfHealing")
|
|
1450
|
+
if params.get("RunOnCPU"):
|
|
1451
|
+
self.RunOnCPU = params.get("RunOnCPU")
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
class DescribeTrainJobEventsRequest(AbstractModel):
|
|
1455
|
+
"""DescribeTrainJobEvents请求参数结构体
|
|
1456
|
+
"""
|
|
1457
|
+
|
|
1458
|
+
def __init__(self):
|
|
1459
|
+
r"""查询训练任务pod事件
|
|
1460
|
+
:param ResourcePoolId:
|
|
1461
|
+
:type PathPrefix: String
|
|
1462
|
+
:param TrainJobId:
|
|
1463
|
+
:type PathPrefix: String
|
|
1464
|
+
"""
|
|
1465
|
+
self.ResourcePoolId = None
|
|
1466
|
+
self.TrainJobId = None
|
|
1467
|
+
|
|
1468
|
+
def _deserialize(self, params):
|
|
1469
|
+
if params.get("ResourcePoolId"):
|
|
1470
|
+
self.ResourcePoolId = params.get("ResourcePoolId")
|
|
1471
|
+
if params.get("TrainJobId"):
|
|
1472
|
+
self.TrainJobId = params.get("TrainJobId")
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
class StopTrainJobRequest(AbstractModel):
|
|
1476
|
+
"""StopTrainJob请求参数结构体
|
|
1477
|
+
"""
|
|
1478
|
+
|
|
1479
|
+
def __init__(self):
|
|
1480
|
+
r"""关停训练任务
|
|
1481
|
+
:param TrainJobId: 训练任务Id
|
|
1482
|
+
:type PathPrefix: String
|
|
1483
|
+
"""
|
|
1484
|
+
self.TrainJobId = None
|
|
1485
|
+
|
|
1486
|
+
def _deserialize(self, params):
|
|
1487
|
+
if params.get("TrainJobId"):
|
|
1488
|
+
self.TrainJobId = params.get("TrainJobId")
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
class DescribeTrainJobRequest(AbstractModel):
|
|
1492
|
+
"""DescribeTrainJob请求参数结构体
|
|
1493
|
+
"""
|
|
1494
|
+
|
|
1495
|
+
def __init__(self):
|
|
1496
|
+
r"""查询训练任务
|
|
1497
|
+
:param TrainJobId: 训练任务Id,多个TrainJobId.1=xx& TrainJobId.2=xx
|
|
1498
|
+
:type PathPrefix: Filter
|
|
1499
|
+
:param Filter:
|
|
1500
|
+
:type PathPrefix: Filter
|
|
1501
|
+
:param Marker: 分页参数
|
|
1502
|
+
:type PathPrefix: Int
|
|
1503
|
+
:param MaxResults: 返回最大值,默认1000
|
|
1504
|
+
:type PathPrefix: Int
|
|
1505
|
+
"""
|
|
1506
|
+
self.TrainJobId = None
|
|
1507
|
+
self.Filter = None
|
|
1508
|
+
self.Marker = None
|
|
1509
|
+
self.MaxResults = None
|
|
1510
|
+
|
|
1511
|
+
def _deserialize(self, params):
|
|
1512
|
+
if params.get("TrainJobId"):
|
|
1513
|
+
self.TrainJobId = params.get("TrainJobId")
|
|
1514
|
+
if params.get("Filter"):
|
|
1515
|
+
self.Filter = params.get("Filter")
|
|
1516
|
+
if params.get("Marker"):
|
|
1517
|
+
self.Marker = params.get("Marker")
|
|
1518
|
+
if params.get("MaxResults"):
|
|
1519
|
+
self.MaxResults = params.get("MaxResults")
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
class StartTrainJobRequest(AbstractModel):
|
|
1523
|
+
"""StartTrainJob请求参数结构体
|
|
1524
|
+
"""
|
|
1525
|
+
|
|
1526
|
+
def __init__(self):
|
|
1527
|
+
r"""开启训练任务
|
|
1528
|
+
:param TrainJobId:
|
|
1529
|
+
:type PathPrefix: String
|
|
1530
|
+
"""
|
|
1531
|
+
self.TrainJobId = None
|
|
1532
|
+
|
|
1533
|
+
def _deserialize(self, params):
|
|
1534
|
+
if params.get("TrainJobId"):
|
|
1535
|
+
self.TrainJobId = params.get("TrainJobId")
|
|
1536
|
+
|
|
1537
|
+
|
|
1538
|
+
class DeleteTrainJobRequest(AbstractModel):
|
|
1539
|
+
"""DeleteTrainJob请求参数结构体
|
|
1540
|
+
"""
|
|
1541
|
+
|
|
1542
|
+
def __init__(self):
|
|
1543
|
+
r"""删除训练任务
|
|
1544
|
+
:param TrainJobId: 训练任务Id
|
|
1545
|
+
:type PathPrefix: String
|
|
1546
|
+
"""
|
|
1547
|
+
self.TrainJobId = None
|
|
1548
|
+
|
|
1549
|
+
def _deserialize(self, params):
|
|
1550
|
+
if params.get("TrainJobId"):
|
|
1551
|
+
self.TrainJobId = params.get("TrainJobId")
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
class ModifyTrainJobRequest(AbstractModel):
|
|
1555
|
+
"""ModifyTrainJob请求参数结构体
|
|
1556
|
+
"""
|
|
1557
|
+
|
|
1558
|
+
def __init__(self):
|
|
1559
|
+
r"""修改训练任务
|
|
1560
|
+
:param TrainJobId: 训练任务Id
|
|
1561
|
+
:type PathPrefix: String
|
|
1562
|
+
:param Priority: 优先级,可选值:
|
|
1563
|
+
·kaic-high
|
|
1564
|
+
·kaic-normal
|
|
1565
|
+
·kaic-low
|
|
1566
|
+
:type PathPrefix: String
|
|
1567
|
+
"""
|
|
1568
|
+
self.TrainJobId = None
|
|
1569
|
+
self.Priority = None
|
|
1570
|
+
|
|
1571
|
+
def _deserialize(self, params):
|
|
1572
|
+
if params.get("TrainJobId"):
|
|
1573
|
+
self.TrainJobId = params.get("TrainJobId")
|
|
1574
|
+
if params.get("Priority"):
|
|
1575
|
+
self.Priority = params.get("Priority")
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
class DescribeTrainJobPodLogsRequest(AbstractModel):
|
|
1579
|
+
"""DescribeTrainJobPodLogs请求参数结构体
|
|
1580
|
+
"""
|
|
1581
|
+
|
|
1582
|
+
def __init__(self):
|
|
1583
|
+
r"""查询训练任务pod日志
|
|
1584
|
+
:param ResourcePoolId: 资源池Id
|
|
1585
|
+
:type PathPrefix: String
|
|
1586
|
+
:param TrainJobId: 训练任务ID
|
|
1587
|
+
:type PathPrefix: String
|
|
1588
|
+
:param PodName: PodName名称
|
|
1589
|
+
:type PathPrefix: String
|
|
1590
|
+
:param SinceSeconds: 秒,默认86400
|
|
1591
|
+
:type PathPrefix: Int
|
|
1592
|
+
:param TailLines: 行数
|
|
1593
|
+
:type PathPrefix: Int
|
|
1594
|
+
"""
|
|
1595
|
+
self.ResourcePoolId = None
|
|
1596
|
+
self.TrainJobId = None
|
|
1597
|
+
self.PodName = None
|
|
1598
|
+
self.SinceSeconds = None
|
|
1599
|
+
self.TailLines = None
|
|
1600
|
+
|
|
1601
|
+
def _deserialize(self, params):
|
|
1602
|
+
if params.get("ResourcePoolId"):
|
|
1603
|
+
self.ResourcePoolId = params.get("ResourcePoolId")
|
|
1604
|
+
if params.get("TrainJobId"):
|
|
1605
|
+
self.TrainJobId = params.get("TrainJobId")
|
|
1606
|
+
if params.get("PodName"):
|
|
1607
|
+
self.PodName = params.get("PodName")
|
|
1608
|
+
if params.get("SinceSeconds"):
|
|
1609
|
+
self.SinceSeconds = params.get("SinceSeconds")
|
|
1610
|
+
if params.get("TailLines"):
|
|
1611
|
+
self.TailLines = params.get("TailLines")
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
class DescribeTrainJobPodsRequest(AbstractModel):
|
|
1615
|
+
"""DescribeTrainJobPods请求参数结构体
|
|
1616
|
+
"""
|
|
1617
|
+
|
|
1618
|
+
def __init__(self):
|
|
1619
|
+
r"""查询训练任务pod列表
|
|
1620
|
+
:param Marker:
|
|
1621
|
+
:type PathPrefix: String
|
|
1622
|
+
:param MaxResults:
|
|
1623
|
+
:type PathPrefix: String
|
|
1624
|
+
:param TrainJobId:
|
|
1625
|
+
:type PathPrefix: String
|
|
1626
|
+
:param Filter:
|
|
1627
|
+
:type PathPrefix: Filter
|
|
1628
|
+
"""
|
|
1629
|
+
self.Marker = None
|
|
1630
|
+
self.MaxResults = None
|
|
1631
|
+
self.TrainJobId = None
|
|
1632
|
+
self.Filter = None
|
|
1633
|
+
|
|
1634
|
+
def _deserialize(self, params):
|
|
1635
|
+
if params.get("Marker"):
|
|
1636
|
+
self.Marker = params.get("Marker")
|
|
1637
|
+
if params.get("MaxResults"):
|
|
1638
|
+
self.MaxResults = params.get("MaxResults")
|
|
1639
|
+
if params.get("TrainJobId"):
|
|
1640
|
+
self.TrainJobId = params.get("TrainJobId")
|
|
1641
|
+
if params.get("Filter"):
|
|
1642
|
+
self.Filter = params.get("Filter")
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
class DescribeResourcePoolsRequest(AbstractModel):
|
|
1646
|
+
"""DescribeResourcePools请求参数结构体
|
|
1647
|
+
"""
|
|
1648
|
+
|
|
1649
|
+
def __init__(self):
|
|
1650
|
+
r"""查询资源组列表
|
|
1651
|
+
:param Sort: 排序方式:默认倒序
|
|
1652
|
+
- DESC 倒序
|
|
1653
|
+
- ASC 正序
|
|
1654
|
+
:type PathPrefix: String
|
|
1655
|
+
:param Page: 页码
|
|
1656
|
+
:type PathPrefix: Int
|
|
1657
|
+
:param PageSize: 单次调用所返回的最大实例数目,默认1000, 范围[5-1000]。
|
|
1658
|
+
:type PathPrefix: Int
|
|
1659
|
+
:param ResourcePoolName: 资源池名称,可模糊匹配
|
|
1660
|
+
:type PathPrefix: String
|
|
1661
|
+
:param Component: 组件名称:
|
|
1662
|
+
- spark
|
|
1663
|
+
- ray
|
|
1664
|
+
:type PathPrefix: String
|
|
1665
|
+
:param ResourcePoolId: 资源组ID
|
|
1666
|
+
:type PathPrefix: Filter
|
|
1667
|
+
:param Filter: 一个或者多个过滤器
|
|
1668
|
+
:type PathPrefix: Filter
|
|
1669
|
+
"""
|
|
1670
|
+
self.Sort = None
|
|
1671
|
+
self.Page = None
|
|
1672
|
+
self.PageSize = None
|
|
1673
|
+
self.ResourcePoolName = None
|
|
1674
|
+
self.Component = None
|
|
1675
|
+
self.ResourcePoolId = None
|
|
1676
|
+
self.Filter = None
|
|
1677
|
+
|
|
1678
|
+
def _deserialize(self, params):
|
|
1679
|
+
if params.get("Sort"):
|
|
1680
|
+
self.Sort = params.get("Sort")
|
|
1681
|
+
if params.get("Page"):
|
|
1682
|
+
self.Page = params.get("Page")
|
|
1683
|
+
if params.get("PageSize"):
|
|
1684
|
+
self.PageSize = params.get("PageSize")
|
|
1685
|
+
if params.get("ResourcePoolName"):
|
|
1686
|
+
self.ResourcePoolName = params.get("ResourcePoolName")
|
|
1687
|
+
if params.get("Component"):
|
|
1688
|
+
self.Component = params.get("Component")
|
|
1689
|
+
if params.get("ResourcePoolId"):
|
|
1690
|
+
self.ResourcePoolId = params.get("ResourcePoolId")
|
|
1691
|
+
if params.get("Filter"):
|
|
1692
|
+
self.Filter = params.get("Filter")
|
|
1693
|
+
|
|
1694
|
+
|
|
1695
|
+
class DescribeResourcePoolInstancesRequest(AbstractModel):
|
|
1696
|
+
"""DescribeResourcePoolInstances请求参数结构体
|
|
1697
|
+
"""
|
|
1698
|
+
|
|
1699
|
+
def __init__(self):
|
|
1700
|
+
r"""查询资源组节点列表
|
|
1701
|
+
:param ResourcePoolId:
|
|
1702
|
+
资源组d
|
|
1703
|
+
:type PathPrefix: String
|
|
1704
|
+
:param PageSize: 单次调用所返回的最大实例数目,默认1000, 范围值为[5, 1000]
|
|
1705
|
+
:type PathPrefix: Int
|
|
1706
|
+
:param Page: 页码
|
|
1707
|
+
:type PathPrefix: Int
|
|
1708
|
+
:param InstanceName: 实例名称,可模糊匹配
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
:type PathPrefix: String
|
|
1712
|
+
:param InstanceId:
|
|
1713
|
+
实例ID
|
|
1714
|
+
:type PathPrefix: Filter
|
|
1715
|
+
:param ProjectId: 项目制
|
|
1716
|
+
:type PathPrefix: Filter
|
|
1717
|
+
:param Filter: 一个或者多个过滤器
|
|
1718
|
+
:type PathPrefix: Filter
|
|
1719
|
+
"""
|
|
1720
|
+
self.ResourcePoolId = None
|
|
1721
|
+
self.PageSize = None
|
|
1722
|
+
self.Page = None
|
|
1723
|
+
self.InstanceName = None
|
|
1724
|
+
self.InstanceId = None
|
|
1725
|
+
self.ProjectId = None
|
|
1726
|
+
self.Filter = None
|
|
1727
|
+
|
|
1728
|
+
def _deserialize(self, params):
|
|
1729
|
+
if params.get("ResourcePoolId"):
|
|
1730
|
+
self.ResourcePoolId = params.get("ResourcePoolId")
|
|
1731
|
+
if params.get("PageSize"):
|
|
1732
|
+
self.PageSize = params.get("PageSize")
|
|
1733
|
+
if params.get("Page"):
|
|
1734
|
+
self.Page = params.get("Page")
|
|
1735
|
+
if params.get("InstanceName"):
|
|
1736
|
+
self.InstanceName = params.get("InstanceName")
|
|
1737
|
+
if params.get("InstanceId"):
|
|
1738
|
+
self.InstanceId = params.get("InstanceId")
|
|
1739
|
+
if params.get("ProjectId"):
|
|
1740
|
+
self.ProjectId = params.get("ProjectId")
|
|
1741
|
+
if params.get("Filter"):
|
|
1742
|
+
self.Filter = params.get("Filter")
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
class CreateInferenceEndpointRequest(AbstractModel):
|
|
1746
|
+
"""CreateInferenceEndpoint请求参数结构体
|
|
1747
|
+
"""
|
|
1748
|
+
|
|
1749
|
+
def __init__(self):
|
|
1750
|
+
r"""创建接入点
|
|
1751
|
+
:param EndpointName: 推理接入点名称,1-64个字符,允许字母中文,数字,特殊字符-_、()
|
|
1752
|
+
:type PathPrefix: String
|
|
1753
|
+
:param ProjectId: 项目制Id
|
|
1754
|
+
:type PathPrefix: String
|
|
1755
|
+
:param ModelName: 默认绑定的模型名称
|
|
1756
|
+
:type PathPrefix: String
|
|
1757
|
+
:param RateLimit : 接入点限流配置
|
|
1758
|
+
:type PathPrefix: Object
|
|
1759
|
+
:param ModelId: ModelId 模型名称
|
|
1760
|
+
:type PathPrefix: String
|
|
1761
|
+
"""
|
|
1762
|
+
self.EndpointName = None
|
|
1763
|
+
self.ProjectId = None
|
|
1764
|
+
self.ModelName = None
|
|
1765
|
+
self.RateLimit_ = None
|
|
1766
|
+
self.ModelId = None
|
|
1767
|
+
|
|
1768
|
+
def _deserialize(self, params):
|
|
1769
|
+
if params.get("EndpointName"):
|
|
1770
|
+
self.EndpointName = params.get("EndpointName")
|
|
1771
|
+
if params.get("ProjectId"):
|
|
1772
|
+
self.ProjectId = params.get("ProjectId")
|
|
1773
|
+
if params.get("ModelName"):
|
|
1774
|
+
self.ModelName = params.get("ModelName")
|
|
1775
|
+
if params.get("RateLimit "):
|
|
1776
|
+
self.RateLimit_ = params.get("RateLimit ")
|
|
1777
|
+
if params.get("ModelId"):
|
|
1778
|
+
self.ModelId = params.get("ModelId")
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
class DescribeInferenceEndpointsRequest(AbstractModel):
|
|
1782
|
+
"""DescribeInferenceEndpoints请求参数结构体
|
|
1783
|
+
"""
|
|
1784
|
+
|
|
1785
|
+
def __init__(self):
|
|
1786
|
+
r"""查询接入点
|
|
1787
|
+
:param EndpointId: 推理接入点 ID列表,范围为1-100
|
|
1788
|
+
:type PathPrefix: Filter
|
|
1789
|
+
:param EndpointName:
|
|
1790
|
+
:type PathPrefix: String
|
|
1791
|
+
:param Marker:
|
|
1792
|
+
:type PathPrefix: Int
|
|
1793
|
+
:param MaxResults:
|
|
1794
|
+
:type PathPrefix: Int
|
|
1795
|
+
:param ProjectId:
|
|
1796
|
+
:type PathPrefix: Filter
|
|
1797
|
+
:param Filter: 条件过滤,支持按照state状态和project过滤
|
|
1798
|
+
:type PathPrefix: Array
|
|
1799
|
+
"""
|
|
1800
|
+
self.EndpointId = None
|
|
1801
|
+
self.EndpointName = None
|
|
1802
|
+
self.Marker = None
|
|
1803
|
+
self.MaxResults = None
|
|
1804
|
+
self.ProjectId = None
|
|
1805
|
+
self.Filter = None
|
|
1806
|
+
|
|
1807
|
+
def _deserialize(self, params):
|
|
1808
|
+
if params.get("EndpointId"):
|
|
1809
|
+
self.EndpointId = params.get("EndpointId")
|
|
1810
|
+
if params.get("EndpointName"):
|
|
1811
|
+
self.EndpointName = params.get("EndpointName")
|
|
1812
|
+
if params.get("Marker"):
|
|
1813
|
+
self.Marker = params.get("Marker")
|
|
1814
|
+
if params.get("MaxResults"):
|
|
1815
|
+
self.MaxResults = params.get("MaxResults")
|
|
1816
|
+
if params.get("ProjectId"):
|
|
1817
|
+
self.ProjectId = params.get("ProjectId")
|
|
1818
|
+
if params.get("Filter"):
|
|
1819
|
+
self.Filter = params.get("Filter")
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
class EnableEndpointRateLimitRequest(AbstractModel):
|
|
1823
|
+
"""EnableEndpointRateLimit请求参数结构体
|
|
1824
|
+
"""
|
|
1825
|
+
|
|
1826
|
+
def __init__(self):
|
|
1827
|
+
r"""开启接入点限流
|
|
1828
|
+
:param EndpointId: 接入点id
|
|
1829
|
+
:type PathPrefix: String
|
|
1830
|
+
:param RateLimit:
|
|
1831
|
+
:type PathPrefix: Object
|
|
1832
|
+
"""
|
|
1833
|
+
self.EndpointId = None
|
|
1834
|
+
self.RateLimit = None
|
|
1835
|
+
|
|
1836
|
+
def _deserialize(self, params):
|
|
1837
|
+
if params.get("EndpointId"):
|
|
1838
|
+
self.EndpointId = params.get("EndpointId")
|
|
1839
|
+
if params.get("RateLimit"):
|
|
1840
|
+
self.RateLimit = params.get("RateLimit")
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
class UpdateInferenceEndpointRequest(AbstractModel):
|
|
1844
|
+
"""UpdateInferenceEndpoint请求参数结构体
|
|
1845
|
+
"""
|
|
1846
|
+
|
|
1847
|
+
def __init__(self):
|
|
1848
|
+
r"""创建接入点
|
|
1849
|
+
:param EndpointName: 推理接入点名称
|
|
1850
|
+
:type PathPrefix: String
|
|
1851
|
+
:param ProjectId: 项目制Id
|
|
1852
|
+
:type PathPrefix: String
|
|
1853
|
+
:param ModelName: 默认绑定的模型名称
|
|
1854
|
+
:type PathPrefix: String
|
|
1855
|
+
:param RateLimit : 接入点限流配置
|
|
1856
|
+
:type PathPrefix: Object
|
|
1857
|
+
:param EndpointId:
|
|
1858
|
+
:type PathPrefix: String
|
|
1859
|
+
"""
|
|
1860
|
+
self.EndpointName = None
|
|
1861
|
+
self.ProjectId = None
|
|
1862
|
+
self.ModelName = None
|
|
1863
|
+
self.RateLimit_ = None
|
|
1864
|
+
self.EndpointId = None
|
|
1865
|
+
|
|
1866
|
+
def _deserialize(self, params):
|
|
1867
|
+
if params.get("EndpointName"):
|
|
1868
|
+
self.EndpointName = params.get("EndpointName")
|
|
1869
|
+
if params.get("ProjectId"):
|
|
1870
|
+
self.ProjectId = params.get("ProjectId")
|
|
1871
|
+
if params.get("ModelName"):
|
|
1872
|
+
self.ModelName = params.get("ModelName")
|
|
1873
|
+
if params.get("RateLimit "):
|
|
1874
|
+
self.RateLimit_ = params.get("RateLimit ")
|
|
1875
|
+
if params.get("EndpointId"):
|
|
1876
|
+
self.EndpointId = params.get("EndpointId")
|
|
1877
|
+
|
|
1878
|
+
|
|
1879
|
+
class StartInferenceEndpointRequest(AbstractModel):
|
|
1880
|
+
"""StartInferenceEndpoint请求参数结构体
|
|
1881
|
+
"""
|
|
1882
|
+
|
|
1883
|
+
def __init__(self):
|
|
1884
|
+
r"""开启接入点
|
|
1885
|
+
:param EndpointId:
|
|
1886
|
+
:type PathPrefix: String
|
|
1887
|
+
"""
|
|
1888
|
+
self.EndpointId = None
|
|
1889
|
+
|
|
1890
|
+
def _deserialize(self, params):
|
|
1891
|
+
if params.get("EndpointId"):
|
|
1892
|
+
self.EndpointId = params.get("EndpointId")
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
class StopInferenceEndpointRequest(AbstractModel):
|
|
1896
|
+
"""StopInferenceEndpoint请求参数结构体
|
|
1897
|
+
"""
|
|
1898
|
+
|
|
1899
|
+
def __init__(self):
|
|
1900
|
+
r"""关闭接入点
|
|
1901
|
+
:param EndpointId: 推理接入点名称
|
|
1902
|
+
:type PathPrefix: String
|
|
1903
|
+
"""
|
|
1904
|
+
self.EndpointId = None
|
|
1905
|
+
|
|
1906
|
+
def _deserialize(self, params):
|
|
1907
|
+
if params.get("EndpointId"):
|
|
1908
|
+
self.EndpointId = params.get("EndpointId")
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
class DeleteInferenceEndpointRequest(AbstractModel):
|
|
1912
|
+
"""DeleteInferenceEndpoint请求参数结构体
|
|
1913
|
+
"""
|
|
1914
|
+
|
|
1915
|
+
def __init__(self):
|
|
1916
|
+
r"""删除接入点
|
|
1917
|
+
:param EndpointId:
|
|
1918
|
+
:type PathPrefix: String
|
|
1919
|
+
"""
|
|
1920
|
+
self.EndpointId = None
|
|
1921
|
+
|
|
1922
|
+
def _deserialize(self, params):
|
|
1923
|
+
if params.get("EndpointId"):
|
|
1924
|
+
self.EndpointId = params.get("EndpointId")
|
|
1925
|
+
|
|
1926
|
+
|
|
1927
|
+
class DisableEndpointRateLimitRequest(AbstractModel):
|
|
1928
|
+
"""DisableEndpointRateLimit请求参数结构体
|
|
1929
|
+
"""
|
|
1930
|
+
|
|
1931
|
+
def __init__(self):
|
|
1932
|
+
r"""关闭接入点限流
|
|
1933
|
+
:param EndpointId:
|
|
1934
|
+
:type PathPrefix: String
|
|
1935
|
+
"""
|
|
1936
|
+
self.EndpointId = None
|
|
1937
|
+
|
|
1938
|
+
def _deserialize(self, params):
|
|
1939
|
+
if params.get("EndpointId"):
|
|
1940
|
+
self.EndpointId = params.get("EndpointId")
|
|
1941
|
+
|
|
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
|
+
|