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,1099 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class DescribeClusterInstanceRequest(AbstractModel):
|
|
4
|
+
"""DescribeClusterInstance请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""查询集群节点列表
|
|
9
|
+
:param ClusterId: 集群id
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
:param MaxResults: 单次调用所返回的最大实例数目,默认10,最大50。
|
|
12
|
+
:type PathPrefix: Int
|
|
13
|
+
:param Marker: 分页标识,单次调用未返回全部实例时,标记下次调用的返回值的起点,默认值是0。
|
|
14
|
+
:type PathPrefix: Int
|
|
15
|
+
:param Filter:
|
|
16
|
+
:type PathPrefix: Filter
|
|
17
|
+
:param Search: 模糊匹配,可以匹配如下字段:<br>主网卡私有IP(PrivateIpAddress)。
|
|
18
|
+
:type PathPrefix: String
|
|
19
|
+
"""
|
|
20
|
+
self.ClusterId = None
|
|
21
|
+
self.MaxResults = None
|
|
22
|
+
self.Marker = None
|
|
23
|
+
self.Filter = None
|
|
24
|
+
self.Search = None
|
|
25
|
+
|
|
26
|
+
def _deserialize(self, params):
|
|
27
|
+
if params.get("ClusterId"):
|
|
28
|
+
self.ClusterId = params.get("ClusterId")
|
|
29
|
+
if params.get("MaxResults"):
|
|
30
|
+
self.MaxResults = params.get("MaxResults")
|
|
31
|
+
if params.get("Marker"):
|
|
32
|
+
self.Marker = params.get("Marker")
|
|
33
|
+
if params.get("Filter"):
|
|
34
|
+
self.Filter = params.get("Filter")
|
|
35
|
+
if params.get("Search"):
|
|
36
|
+
self.Search = params.get("Search")
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class DeleteClusterRequest(AbstractModel):
|
|
40
|
+
"""DeleteCluster请求参数结构体
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
def __init__(self):
|
|
44
|
+
r"""删除集群
|
|
45
|
+
:param ClusterId: 集群id
|
|
46
|
+
:type PathPrefix: String
|
|
47
|
+
:param InstanceDeleteMode: 节点的删除模式,有效值:
|
|
48
|
+
|
|
49
|
+
- Terminate(默认值)销毁实例(仅针对于按量付费的云服务器,对于包年包月的云服务器和裸金属服务器不生效)
|
|
50
|
+
- Remove 仅把节点移除集群,实例本身不销毁
|
|
51
|
+
:type PathPrefix: String
|
|
52
|
+
"""
|
|
53
|
+
self.ClusterId = None
|
|
54
|
+
self.InstanceDeleteMode = None
|
|
55
|
+
|
|
56
|
+
def _deserialize(self, params):
|
|
57
|
+
if params.get("ClusterId"):
|
|
58
|
+
self.ClusterId = params.get("ClusterId")
|
|
59
|
+
if params.get("InstanceDeleteMode"):
|
|
60
|
+
self.InstanceDeleteMode = params.get("InstanceDeleteMode")
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class DownloadClusterConfigRequest(AbstractModel):
|
|
64
|
+
"""DownloadClusterConfig请求参数结构体
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
def __init__(self):
|
|
68
|
+
r"""下载集群配置文件
|
|
69
|
+
:param ClusterId: 集群id
|
|
70
|
+
:type PathPrefix: String
|
|
71
|
+
:param IsPublic: 获取的config类型<br>true:公网访问config文件<br>false:VPC内网config文件<br>默认值:true
|
|
72
|
+
:type PathPrefix: Boolean
|
|
73
|
+
"""
|
|
74
|
+
self.ClusterId = None
|
|
75
|
+
self.IsPublic = None
|
|
76
|
+
|
|
77
|
+
def _deserialize(self, params):
|
|
78
|
+
if params.get("ClusterId"):
|
|
79
|
+
self.ClusterId = params.get("ClusterId")
|
|
80
|
+
if params.get("IsPublic"):
|
|
81
|
+
self.IsPublic = params.get("IsPublic")
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
class ModifyClusterInfoRequest(AbstractModel):
|
|
85
|
+
"""ModifyClusterInfo请求参数结构体
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
def __init__(self):
|
|
89
|
+
r"""修改集群基本信息
|
|
90
|
+
:param ClusterId: 集群id
|
|
91
|
+
:type PathPrefix: String
|
|
92
|
+
:param ClusterName: 集群名称
|
|
93
|
+
:type PathPrefix: String
|
|
94
|
+
:param ClusterDesc: 集群描述信息
|
|
95
|
+
:type PathPrefix: String
|
|
96
|
+
:param EnableKMSE: 是否支持微服务
|
|
97
|
+
|
|
98
|
+
true:支持
|
|
99
|
+
|
|
100
|
+
false:不支持
|
|
101
|
+
:type PathPrefix: Boolean
|
|
102
|
+
:param ControlPlaneLog: 支持对托管集群控制面日志采集配置进行全量更新
|
|
103
|
+
:type PathPrefix: Object
|
|
104
|
+
"""
|
|
105
|
+
self.ClusterId = None
|
|
106
|
+
self.ClusterName = None
|
|
107
|
+
self.ClusterDesc = None
|
|
108
|
+
self.EnableKMSE = None
|
|
109
|
+
self.ControlPlaneLog = None
|
|
110
|
+
|
|
111
|
+
def _deserialize(self, params):
|
|
112
|
+
if params.get("ClusterId"):
|
|
113
|
+
self.ClusterId = params.get("ClusterId")
|
|
114
|
+
if params.get("ClusterName"):
|
|
115
|
+
self.ClusterName = params.get("ClusterName")
|
|
116
|
+
if params.get("ClusterDesc"):
|
|
117
|
+
self.ClusterDesc = params.get("ClusterDesc")
|
|
118
|
+
if params.get("EnableKMSE"):
|
|
119
|
+
self.EnableKMSE = params.get("EnableKMSE")
|
|
120
|
+
if params.get("ControlPlaneLog"):
|
|
121
|
+
self.ControlPlaneLog = params.get("ControlPlaneLog")
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
class DescribeInstanceImageRequest(AbstractModel):
|
|
125
|
+
"""DescribeInstanceImage请求参数结构体
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
def __init__(self):
|
|
129
|
+
r"""获取容器服务支持的节点操作系统
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
def _deserialize(self, params):
|
|
133
|
+
return
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
class AddClusterInstancesRequest(AbstractModel):
|
|
137
|
+
"""AddClusterInstances请求参数结构体
|
|
138
|
+
"""
|
|
139
|
+
|
|
140
|
+
def __init__(self):
|
|
141
|
+
r"""新增节点
|
|
142
|
+
:param ClusterId: 集群id
|
|
143
|
+
:type PathPrefix: String
|
|
144
|
+
:param InstanceSet: 建议仅填写一条InstanceSet数据,不要填写多条。
|
|
145
|
+
:type PathPrefix: Filter
|
|
146
|
+
"""
|
|
147
|
+
self.ClusterId = None
|
|
148
|
+
self.InstanceSet = None
|
|
149
|
+
|
|
150
|
+
def _deserialize(self, params):
|
|
151
|
+
if params.get("ClusterId"):
|
|
152
|
+
self.ClusterId = params.get("ClusterId")
|
|
153
|
+
if params.get("InstanceSet"):
|
|
154
|
+
self.InstanceSet = params.get("InstanceSet")
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
class DeleteClusterInstancesRequest(AbstractModel):
|
|
158
|
+
"""DeleteClusterInstances请求参数结构体
|
|
159
|
+
"""
|
|
160
|
+
|
|
161
|
+
def __init__(self):
|
|
162
|
+
r"""移除集群中的节点
|
|
163
|
+
:param ClusterId: 集群id
|
|
164
|
+
:type PathPrefix: String
|
|
165
|
+
:param InstanceId: 需要移除的节点id列表,只允许移除Worker节点(N的范围为1-50)。
|
|
166
|
+
:type PathPrefix: Filter
|
|
167
|
+
:param InstanceDeleteMode: 节点的删除模式,有效值:
|
|
168
|
+
- **Terminate**(默认值)销毁实例(仅针对于按量付费的云服务器,对于包年包月的云服务器和裸金属服务器不生效)
|
|
169
|
+
- **Remove** 仅把节点移除集群,实例本身不销毁。
|
|
170
|
+
:type PathPrefix: String
|
|
171
|
+
"""
|
|
172
|
+
self.ClusterId = None
|
|
173
|
+
self.InstanceId = None
|
|
174
|
+
self.InstanceDeleteMode = None
|
|
175
|
+
|
|
176
|
+
def _deserialize(self, params):
|
|
177
|
+
if params.get("ClusterId"):
|
|
178
|
+
self.ClusterId = params.get("ClusterId")
|
|
179
|
+
if params.get("InstanceId"):
|
|
180
|
+
self.InstanceId = params.get("InstanceId")
|
|
181
|
+
if params.get("InstanceDeleteMode"):
|
|
182
|
+
self.InstanceDeleteMode = params.get("InstanceDeleteMode")
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
class DescribeEpcForClusterRequest(AbstractModel):
|
|
186
|
+
"""DescribeEpcForCluster请求参数结构体
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
def __init__(self):
|
|
190
|
+
r"""获取支持移入集群的裸金属服务器列表
|
|
191
|
+
:param ClusterId: 集群id
|
|
192
|
+
:type PathPrefix: String
|
|
193
|
+
:param InstanceId: 裸金属服务器实例id
|
|
194
|
+
:type PathPrefix: Filter
|
|
195
|
+
:param Filter:
|
|
196
|
+
:type PathPrefix: Filter
|
|
197
|
+
:param Marker: 分页标识,单次调用未返回全部实例时,标记下次调用的返回值的起点,默认值是0。
|
|
198
|
+
:type PathPrefix: Int
|
|
199
|
+
:param MaxResults: 单次调用所返回的最大实例数目,默认20, 范围(1-50]。
|
|
200
|
+
:type PathPrefix: Int
|
|
201
|
+
:param OperatorType: 操作类型,可取值:AddNode,传递该值后,返回的数据则自动增加状态过滤,只返回Running、HotStandby状态的EPC实例
|
|
202
|
+
:type PathPrefix: String
|
|
203
|
+
"""
|
|
204
|
+
self.ClusterId = None
|
|
205
|
+
self.InstanceId = None
|
|
206
|
+
self.Filter = None
|
|
207
|
+
self.Marker = None
|
|
208
|
+
self.MaxResults = None
|
|
209
|
+
self.OperatorType = None
|
|
210
|
+
|
|
211
|
+
def _deserialize(self, params):
|
|
212
|
+
if params.get("ClusterId"):
|
|
213
|
+
self.ClusterId = params.get("ClusterId")
|
|
214
|
+
if params.get("InstanceId"):
|
|
215
|
+
self.InstanceId = params.get("InstanceId")
|
|
216
|
+
if params.get("Filter"):
|
|
217
|
+
self.Filter = params.get("Filter")
|
|
218
|
+
if params.get("Marker"):
|
|
219
|
+
self.Marker = params.get("Marker")
|
|
220
|
+
if params.get("MaxResults"):
|
|
221
|
+
self.MaxResults = params.get("MaxResults")
|
|
222
|
+
if params.get("OperatorType"):
|
|
223
|
+
self.OperatorType = params.get("OperatorType")
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
class AddClusterEpcInstancesRequest(AbstractModel):
|
|
227
|
+
"""AddClusterEpcInstances请求参数结构体
|
|
228
|
+
"""
|
|
229
|
+
|
|
230
|
+
def __init__(self):
|
|
231
|
+
r"""移入裸金属服务器到集群
|
|
232
|
+
:param ClusterId: 集群id
|
|
233
|
+
:type PathPrefix: String
|
|
234
|
+
:param InstanceId: 移入集群的裸金属服务器实例id,即HostId
|
|
235
|
+
|
|
236
|
+
注:参数InstanceId.N和EpcPara.N必须填写一个,不能同时填写,也不能同时为空
|
|
237
|
+
:type PathPrefix: Filter
|
|
238
|
+
:param EpcPara: 裸金属服务器产品重新安装操作系统的透传参数,json化字符串格式,详见[重装租赁裸金属服务器](https://apiexplorer.ksyun.com/#/api/44/ReinstallEpc/2015-11-01/1003)。
|
|
239
|
+
:type PathPrefix: Filter
|
|
240
|
+
:param AdvancedSetting: 节点高级设置
|
|
241
|
+
:type PathPrefix: Object
|
|
242
|
+
"""
|
|
243
|
+
self.ClusterId = None
|
|
244
|
+
self.InstanceId = None
|
|
245
|
+
self.EpcPara = None
|
|
246
|
+
self.AdvancedSetting = None
|
|
247
|
+
|
|
248
|
+
def _deserialize(self, params):
|
|
249
|
+
if params.get("ClusterId"):
|
|
250
|
+
self.ClusterId = params.get("ClusterId")
|
|
251
|
+
if params.get("InstanceId"):
|
|
252
|
+
self.InstanceId = params.get("InstanceId")
|
|
253
|
+
if params.get("EpcPara"):
|
|
254
|
+
self.EpcPara = params.get("EpcPara")
|
|
255
|
+
if params.get("AdvancedSetting"):
|
|
256
|
+
self.AdvancedSetting = params.get("AdvancedSetting")
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
class DescribeExistedInstancesRequest(AbstractModel):
|
|
260
|
+
"""DescribeExistedInstances请求参数结构体
|
|
261
|
+
"""
|
|
262
|
+
|
|
263
|
+
def __init__(self):
|
|
264
|
+
r"""查询已经存在的云服务器
|
|
265
|
+
:param ClusterId: 集群id
|
|
266
|
+
:type PathPrefix: String
|
|
267
|
+
:param InstanceId: 云服务器id
|
|
268
|
+
:type PathPrefix: Filter
|
|
269
|
+
:param Marker: 分页标识,单次调用未返回全部实例时,标记下次调用的返回值的起点,默认值是0。
|
|
270
|
+
:type PathPrefix: Int
|
|
271
|
+
:param MaxResults: 单次调用所返回的最大实例数目,默认10, 范围(0-50]。
|
|
272
|
+
:type PathPrefix: String
|
|
273
|
+
:param Filter:
|
|
274
|
+
:type PathPrefix: Filter
|
|
275
|
+
:param Search: 模糊匹配,可匹配如下字段:<br>服务器名称(InstanceName)、主网卡私有IP(PrivateIpAddress)。
|
|
276
|
+
:type PathPrefix: String
|
|
277
|
+
"""
|
|
278
|
+
self.ClusterId = None
|
|
279
|
+
self.InstanceId = None
|
|
280
|
+
self.Marker = None
|
|
281
|
+
self.MaxResults = None
|
|
282
|
+
self.Filter = None
|
|
283
|
+
self.Search = None
|
|
284
|
+
|
|
285
|
+
def _deserialize(self, params):
|
|
286
|
+
if params.get("ClusterId"):
|
|
287
|
+
self.ClusterId = params.get("ClusterId")
|
|
288
|
+
if params.get("InstanceId"):
|
|
289
|
+
self.InstanceId = params.get("InstanceId")
|
|
290
|
+
if params.get("Marker"):
|
|
291
|
+
self.Marker = params.get("Marker")
|
|
292
|
+
if params.get("MaxResults"):
|
|
293
|
+
self.MaxResults = params.get("MaxResults")
|
|
294
|
+
if params.get("Filter"):
|
|
295
|
+
self.Filter = params.get("Filter")
|
|
296
|
+
if params.get("Search"):
|
|
297
|
+
self.Search = params.get("Search")
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
class AddExistedInstancesRequest(AbstractModel):
|
|
301
|
+
"""AddExistedInstances请求参数结构体
|
|
302
|
+
"""
|
|
303
|
+
|
|
304
|
+
def __init__(self):
|
|
305
|
+
r"""添加已有的服务器
|
|
306
|
+
:param ClusterId: 集群id
|
|
307
|
+
:type PathPrefix: String
|
|
308
|
+
:param ExistedInstanceKecSet: 选择已有的虚拟机(包含专属云主机)作为集群的Worker节点,其中NodeRole只能是Worker。<br>N:1-99
|
|
309
|
+
:type PathPrefix: Filter
|
|
310
|
+
"""
|
|
311
|
+
self.ClusterId = None
|
|
312
|
+
self.ExistedInstanceKecSet = None
|
|
313
|
+
|
|
314
|
+
def _deserialize(self, params):
|
|
315
|
+
if params.get("ClusterId"):
|
|
316
|
+
self.ClusterId = params.get("ClusterId")
|
|
317
|
+
if params.get("ExistedInstanceKecSet"):
|
|
318
|
+
self.ExistedInstanceKecSet = params.get("ExistedInstanceKecSet")
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
class CreateNodePoolRequest(AbstractModel):
|
|
322
|
+
"""CreateNodePool请求参数结构体
|
|
323
|
+
"""
|
|
324
|
+
|
|
325
|
+
def __init__(self):
|
|
326
|
+
r"""创建节点池
|
|
327
|
+
:param NodePoolName: 节点池名称<br>校验规则:2-64个字符,支持中文,英文,数字,以及特殊字符-,.!$^*()%#&+/:;<=>[]_`{
|
|
328
|
+
:type PathPrefix: String
|
|
329
|
+
:param ClusterId: 集群id
|
|
330
|
+
:type PathPrefix: String
|
|
331
|
+
:param EnableAutoScale: 是否开启弹性伸缩,有效值:<br>True:开启弹性伸缩<br>False:关闭弹性伸缩<br>默认值:False<br>注:默认未开启自动缩容,若您想开启弹性缩容,后续可在参数ScaleDownEnabled中进行配置开启
|
|
332
|
+
:type PathPrefix: Boolean
|
|
333
|
+
:param NodeTemplate: 节点模板信息
|
|
334
|
+
:type PathPrefix: Object
|
|
335
|
+
:param Label: 节点标签
|
|
336
|
+
:type PathPrefix: Filter
|
|
337
|
+
:param Taint: 节点污点
|
|
338
|
+
:type PathPrefix: Filter
|
|
339
|
+
:param MinSize: 最小节点数量,即为最小能缩容的实例数量,范围[0-50],不大于maxSize
|
|
340
|
+
:type PathPrefix: Int
|
|
341
|
+
:param MaxSize: 最大节点数量,即为最大能扩容的实例数量,范围[0-50],不小于minSize
|
|
342
|
+
:type PathPrefix: Int
|
|
343
|
+
:param DesiredCapacity: 期望节点数量,即节点池刚创建时的实例数量,必须在最小节点数量与最大节点数量之间
|
|
344
|
+
:type PathPrefix: Int
|
|
345
|
+
:param EnableDelProtection: 开启删除保护
|
|
346
|
+
默认值:True
|
|
347
|
+
:type PathPrefix: Boolean
|
|
348
|
+
:param FailureAutoDelete: 开启自动删除实例
|
|
349
|
+
默认值:false
|
|
350
|
+
:type PathPrefix: Boolean
|
|
351
|
+
"""
|
|
352
|
+
self.NodePoolName = None
|
|
353
|
+
self.ClusterId = None
|
|
354
|
+
self.EnableAutoScale = None
|
|
355
|
+
self.NodeTemplate = None
|
|
356
|
+
self.Label = None
|
|
357
|
+
self.Taint = None
|
|
358
|
+
self.MinSize = None
|
|
359
|
+
self.MaxSize = None
|
|
360
|
+
self.DesiredCapacity = None
|
|
361
|
+
self.EnableDelProtection = None
|
|
362
|
+
self.FailureAutoDelete = None
|
|
363
|
+
|
|
364
|
+
def _deserialize(self, params):
|
|
365
|
+
if params.get("NodePoolName"):
|
|
366
|
+
self.NodePoolName = params.get("NodePoolName")
|
|
367
|
+
if params.get("ClusterId"):
|
|
368
|
+
self.ClusterId = params.get("ClusterId")
|
|
369
|
+
if params.get("EnableAutoScale"):
|
|
370
|
+
self.EnableAutoScale = params.get("EnableAutoScale")
|
|
371
|
+
if params.get("NodeTemplate"):
|
|
372
|
+
self.NodeTemplate = params.get("NodeTemplate")
|
|
373
|
+
if params.get("Label"):
|
|
374
|
+
self.Label = params.get("Label")
|
|
375
|
+
if params.get("Taint"):
|
|
376
|
+
self.Taint = params.get("Taint")
|
|
377
|
+
if params.get("MinSize"):
|
|
378
|
+
self.MinSize = params.get("MinSize")
|
|
379
|
+
if params.get("MaxSize"):
|
|
380
|
+
self.MaxSize = params.get("MaxSize")
|
|
381
|
+
if params.get("DesiredCapacity"):
|
|
382
|
+
self.DesiredCapacity = params.get("DesiredCapacity")
|
|
383
|
+
if params.get("EnableDelProtection"):
|
|
384
|
+
self.EnableDelProtection = params.get("EnableDelProtection")
|
|
385
|
+
if params.get("FailureAutoDelete"):
|
|
386
|
+
self.FailureAutoDelete = params.get("FailureAutoDelete")
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
class DescribeNodePoolRequest(AbstractModel):
|
|
390
|
+
"""DescribeNodePool请求参数结构体
|
|
391
|
+
"""
|
|
392
|
+
|
|
393
|
+
def __init__(self):
|
|
394
|
+
r"""查询节点池详细信息
|
|
395
|
+
:param ClusterId: 集群id
|
|
396
|
+
:type PathPrefix: String
|
|
397
|
+
:param NodePoolId: 节点池id
|
|
398
|
+
:type PathPrefix: Filter
|
|
399
|
+
:param Marker: 分页标识,单次调用未返回全部实例时,标记下次调用的返回值的起点,默认值是0
|
|
400
|
+
:type PathPrefix: Int
|
|
401
|
+
:param MaxResults: 单次调用所返回的最大实例数目,默认10, 范围(0-50]
|
|
402
|
+
:type PathPrefix: Int
|
|
403
|
+
:param NodePoolName: 节点池名称
|
|
404
|
+
:type PathPrefix: String
|
|
405
|
+
"""
|
|
406
|
+
self.ClusterId = None
|
|
407
|
+
self.NodePoolId = None
|
|
408
|
+
self.Marker = None
|
|
409
|
+
self.MaxResults = None
|
|
410
|
+
self.NodePoolName = None
|
|
411
|
+
|
|
412
|
+
def _deserialize(self, params):
|
|
413
|
+
if params.get("ClusterId"):
|
|
414
|
+
self.ClusterId = params.get("ClusterId")
|
|
415
|
+
if params.get("NodePoolId"):
|
|
416
|
+
self.NodePoolId = params.get("NodePoolId")
|
|
417
|
+
if params.get("Marker"):
|
|
418
|
+
self.Marker = params.get("Marker")
|
|
419
|
+
if params.get("MaxResults"):
|
|
420
|
+
self.MaxResults = params.get("MaxResults")
|
|
421
|
+
if params.get("NodePoolName"):
|
|
422
|
+
self.NodePoolName = params.get("NodePoolName")
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
class DeleteNodePoolRequest(AbstractModel):
|
|
426
|
+
"""DeleteNodePool请求参数结构体
|
|
427
|
+
"""
|
|
428
|
+
|
|
429
|
+
def __init__(self):
|
|
430
|
+
r"""删除节点池
|
|
431
|
+
:param ClusterId: 集群id
|
|
432
|
+
:type PathPrefix: String
|
|
433
|
+
:param NodePoolId: 节点池id
|
|
434
|
+
:type PathPrefix: Filter
|
|
435
|
+
:param InstanceDeleteMode: 节点的删除模式,有效值:<br>- **Terminate**:销毁实例<br>- **Remove**:仅把节点移出集群,实例本身不销毁<br>默认值:Terminate
|
|
436
|
+
:type PathPrefix: String
|
|
437
|
+
"""
|
|
438
|
+
self.ClusterId = None
|
|
439
|
+
self.NodePoolId = None
|
|
440
|
+
self.InstanceDeleteMode = None
|
|
441
|
+
|
|
442
|
+
def _deserialize(self, params):
|
|
443
|
+
if params.get("ClusterId"):
|
|
444
|
+
self.ClusterId = params.get("ClusterId")
|
|
445
|
+
if params.get("NodePoolId"):
|
|
446
|
+
self.NodePoolId = params.get("NodePoolId")
|
|
447
|
+
if params.get("InstanceDeleteMode"):
|
|
448
|
+
self.InstanceDeleteMode = params.get("InstanceDeleteMode")
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
class ModifyNodePoolRequest(AbstractModel):
|
|
452
|
+
"""ModifyNodePool请求参数结构体
|
|
453
|
+
"""
|
|
454
|
+
|
|
455
|
+
def __init__(self):
|
|
456
|
+
r"""修改节点池
|
|
457
|
+
:param ClusterId: 集群id
|
|
458
|
+
:type PathPrefix: String
|
|
459
|
+
:param NodePoolId: 节点池id
|
|
460
|
+
:type PathPrefix: String
|
|
461
|
+
:param NodePoolName: 节点池名称
|
|
462
|
+
:type PathPrefix: String
|
|
463
|
+
:param EnableAutoScale: 是否开启弹性伸缩,有效值:<br>- **False**:关闭弹性伸缩
|
|
464
|
+
:type PathPrefix: Boolean
|
|
465
|
+
:param MinSize: 最小节点数量,即为最小能缩容的实例数量,范围[0-50],不大于maxSize
|
|
466
|
+
:type PathPrefix: Int
|
|
467
|
+
:param MaxSize: 最大节点数量,即为最大能扩容的实例数量,范围[0-50],不小于minSize
|
|
468
|
+
:type PathPrefix: Int
|
|
469
|
+
:param DesiredCapacity: 期望节点数量,必须在最小节点数量与最大节点数量之间<br>注:若EnableAutoScale参数为True,不可修改该参数
|
|
470
|
+
:type PathPrefix: Int
|
|
471
|
+
:param Label: 节点标签
|
|
472
|
+
:type PathPrefix: Filter
|
|
473
|
+
:param Taint: 节点污点
|
|
474
|
+
:type PathPrefix: Filter
|
|
475
|
+
:param UpdateExistingNodes: Label、Taints更新是否对节点池内所有已有节点生效,有效值:<br>- **True**:对节点池内已有节点以及扩容出来的节点生效<br>- **False**:只对扩容出来的节点生效<br>默认值:False
|
|
476
|
+
:type PathPrefix: Boolean
|
|
477
|
+
"""
|
|
478
|
+
self.ClusterId = None
|
|
479
|
+
self.NodePoolId = None
|
|
480
|
+
self.NodePoolName = None
|
|
481
|
+
self.EnableAutoScale = None
|
|
482
|
+
self.MinSize = None
|
|
483
|
+
self.MaxSize = None
|
|
484
|
+
self.DesiredCapacity = None
|
|
485
|
+
self.Label = None
|
|
486
|
+
self.Taint = None
|
|
487
|
+
self.UpdateExistingNodes = None
|
|
488
|
+
|
|
489
|
+
def _deserialize(self, params):
|
|
490
|
+
if params.get("ClusterId"):
|
|
491
|
+
self.ClusterId = params.get("ClusterId")
|
|
492
|
+
if params.get("NodePoolId"):
|
|
493
|
+
self.NodePoolId = params.get("NodePoolId")
|
|
494
|
+
if params.get("NodePoolName"):
|
|
495
|
+
self.NodePoolName = params.get("NodePoolName")
|
|
496
|
+
if params.get("EnableAutoScale"):
|
|
497
|
+
self.EnableAutoScale = params.get("EnableAutoScale")
|
|
498
|
+
if params.get("MinSize"):
|
|
499
|
+
self.MinSize = params.get("MinSize")
|
|
500
|
+
if params.get("MaxSize"):
|
|
501
|
+
self.MaxSize = params.get("MaxSize")
|
|
502
|
+
if params.get("DesiredCapacity"):
|
|
503
|
+
self.DesiredCapacity = params.get("DesiredCapacity")
|
|
504
|
+
if params.get("Label"):
|
|
505
|
+
self.Label = params.get("Label")
|
|
506
|
+
if params.get("Taint"):
|
|
507
|
+
self.Taint = params.get("Taint")
|
|
508
|
+
if params.get("UpdateExistingNodes"):
|
|
509
|
+
self.UpdateExistingNodes = params.get("UpdateExistingNodes")
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
class ModifyNodeTemplateRequest(AbstractModel):
|
|
513
|
+
"""ModifyNodeTemplate请求参数结构体
|
|
514
|
+
"""
|
|
515
|
+
|
|
516
|
+
def __init__(self):
|
|
517
|
+
r"""修改节点池模板
|
|
518
|
+
:param ClusterId: 集群id
|
|
519
|
+
:type PathPrefix: String
|
|
520
|
+
:param NodePoolId: 节点池id
|
|
521
|
+
:type PathPrefix: String
|
|
522
|
+
:param NodeTemplate: 节点模板信息<br>注:不可修改计费方式、节点池所在vpc
|
|
523
|
+
:type PathPrefix: Object
|
|
524
|
+
"""
|
|
525
|
+
self.ClusterId = None
|
|
526
|
+
self.NodePoolId = None
|
|
527
|
+
self.NodeTemplate = None
|
|
528
|
+
|
|
529
|
+
def _deserialize(self, params):
|
|
530
|
+
if params.get("ClusterId"):
|
|
531
|
+
self.ClusterId = params.get("ClusterId")
|
|
532
|
+
if params.get("NodePoolId"):
|
|
533
|
+
self.NodePoolId = params.get("NodePoolId")
|
|
534
|
+
if params.get("NodeTemplate"):
|
|
535
|
+
self.NodeTemplate = params.get("NodeTemplate")
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
class ModifyNodePoolScaleUpPolicyRequest(AbstractModel):
|
|
539
|
+
"""ModifyNodePoolScaleUpPolicy请求参数结构体
|
|
540
|
+
"""
|
|
541
|
+
|
|
542
|
+
def __init__(self):
|
|
543
|
+
r"""修改节点池扩容策略
|
|
544
|
+
:param ClusterId: 集群id
|
|
545
|
+
:type PathPrefix: String
|
|
546
|
+
:param ScaleUpPolicy: 扩容算法,有效值:<br>- **random**<br>- **most-pods**<br>- **least-waste**<br>注:仅对开启弹性伸缩的节点池生效
|
|
547
|
+
:type PathPrefix: String
|
|
548
|
+
"""
|
|
549
|
+
self.ClusterId = None
|
|
550
|
+
self.ScaleUpPolicy = None
|
|
551
|
+
|
|
552
|
+
def _deserialize(self, params):
|
|
553
|
+
if params.get("ClusterId"):
|
|
554
|
+
self.ClusterId = params.get("ClusterId")
|
|
555
|
+
if params.get("ScaleUpPolicy"):
|
|
556
|
+
self.ScaleUpPolicy = params.get("ScaleUpPolicy")
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
class ModifyNodePoolScaleDownPolicyRequest(AbstractModel):
|
|
560
|
+
"""ModifyNodePoolScaleDownPolicy请求参数结构体
|
|
561
|
+
"""
|
|
562
|
+
|
|
563
|
+
def __init__(self):
|
|
564
|
+
r"""修改节点池缩容策略
|
|
565
|
+
:param ClusterId: 集群id
|
|
566
|
+
:type PathPrefix: String
|
|
567
|
+
:param MaxEmptyBulkDelete: 缩容最大并发数,默认值10
|
|
568
|
+
:type PathPrefix: Int
|
|
569
|
+
:param ScaleDownDelayAfterAdd: 集群扩容后多少分钟开始考虑缩容条件,默认值10
|
|
570
|
+
:type PathPrefix: Int
|
|
571
|
+
:param ScaleDownEnabled: 是否启用自动缩容,有效值:<br>- **True**:开启自动缩容<br>- **False**:关闭自动缩容
|
|
572
|
+
:type PathPrefix: Boolean
|
|
573
|
+
:param ScaleDownUnneededTime: 节点满足缩容条件多少分钟后开始启动缩容,默认值10
|
|
574
|
+
:type PathPrefix: Int
|
|
575
|
+
:param ScaleDownUtilizationThreshold: 缩容阈值百分比。Node已分配资源/node可分配资源小于多少(百分比)时,开始判断缩容条件,默认值50
|
|
576
|
+
:type PathPrefix: Int
|
|
577
|
+
"""
|
|
578
|
+
self.ClusterId = None
|
|
579
|
+
self.MaxEmptyBulkDelete = None
|
|
580
|
+
self.ScaleDownDelayAfterAdd = None
|
|
581
|
+
self.ScaleDownEnabled = None
|
|
582
|
+
self.ScaleDownUnneededTime = None
|
|
583
|
+
self.ScaleDownUtilizationThreshold = None
|
|
584
|
+
|
|
585
|
+
def _deserialize(self, params):
|
|
586
|
+
if params.get("ClusterId"):
|
|
587
|
+
self.ClusterId = params.get("ClusterId")
|
|
588
|
+
if params.get("MaxEmptyBulkDelete"):
|
|
589
|
+
self.MaxEmptyBulkDelete = params.get("MaxEmptyBulkDelete")
|
|
590
|
+
if params.get("ScaleDownDelayAfterAdd"):
|
|
591
|
+
self.ScaleDownDelayAfterAdd = params.get("ScaleDownDelayAfterAdd")
|
|
592
|
+
if params.get("ScaleDownEnabled"):
|
|
593
|
+
self.ScaleDownEnabled = params.get("ScaleDownEnabled")
|
|
594
|
+
if params.get("ScaleDownUnneededTime"):
|
|
595
|
+
self.ScaleDownUnneededTime = params.get("ScaleDownUnneededTime")
|
|
596
|
+
if params.get("ScaleDownUtilizationThreshold"):
|
|
597
|
+
self.ScaleDownUtilizationThreshold = params.get("ScaleDownUtilizationThreshold")
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
class AddClusterInstanceToNodePoolRequest(AbstractModel):
|
|
601
|
+
"""AddClusterInstanceToNodePool请求参数结构体
|
|
602
|
+
"""
|
|
603
|
+
|
|
604
|
+
def __init__(self):
|
|
605
|
+
r"""将集群内节点移入节点池
|
|
606
|
+
:param ClusterId: 集群id
|
|
607
|
+
:type PathPrefix: String
|
|
608
|
+
:param NodePoolId: 节点池id
|
|
609
|
+
:type PathPrefix: String
|
|
610
|
+
:param InstanceIds: 节点id
|
|
611
|
+
:type PathPrefix: Filter
|
|
612
|
+
"""
|
|
613
|
+
self.ClusterId = None
|
|
614
|
+
self.NodePoolId = None
|
|
615
|
+
self.InstanceIds = None
|
|
616
|
+
|
|
617
|
+
def _deserialize(self, params):
|
|
618
|
+
if params.get("ClusterId"):
|
|
619
|
+
self.ClusterId = params.get("ClusterId")
|
|
620
|
+
if params.get("NodePoolId"):
|
|
621
|
+
self.NodePoolId = params.get("NodePoolId")
|
|
622
|
+
if params.get("InstanceIds"):
|
|
623
|
+
self.InstanceIds = params.get("InstanceIds")
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
class ProtectedFromScaleDownRequest(AbstractModel):
|
|
627
|
+
"""ProtectedFromScaleDown请求参数结构体
|
|
628
|
+
"""
|
|
629
|
+
|
|
630
|
+
def __init__(self):
|
|
631
|
+
r"""节点池节点设置缩容保护
|
|
632
|
+
:param ClusterId: 集群id
|
|
633
|
+
:type PathPrefix: String
|
|
634
|
+
:param NodePoolId: 节点池id
|
|
635
|
+
:type PathPrefix: String
|
|
636
|
+
:param InstanceIds: 节点id
|
|
637
|
+
:type PathPrefix: Filter
|
|
638
|
+
:param ProtectedFromScaleDown: 节点是否开启缩容保护,有效值:<br>- **True**:开启缩容保护<br>- **False**:关闭缩容保护<br>
|
|
639
|
+
:type PathPrefix: Boolean
|
|
640
|
+
"""
|
|
641
|
+
self.ClusterId = None
|
|
642
|
+
self.NodePoolId = None
|
|
643
|
+
self.InstanceIds = None
|
|
644
|
+
self.ProtectedFromScaleDown = None
|
|
645
|
+
|
|
646
|
+
def _deserialize(self, params):
|
|
647
|
+
if params.get("ClusterId"):
|
|
648
|
+
self.ClusterId = params.get("ClusterId")
|
|
649
|
+
if params.get("NodePoolId"):
|
|
650
|
+
self.NodePoolId = params.get("NodePoolId")
|
|
651
|
+
if params.get("InstanceIds"):
|
|
652
|
+
self.InstanceIds = params.get("InstanceIds")
|
|
653
|
+
if params.get("ProtectedFromScaleDown"):
|
|
654
|
+
self.ProtectedFromScaleDown = params.get("ProtectedFromScaleDown")
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
class DeleteClusterInstancesFromNodePoolRequest(AbstractModel):
|
|
658
|
+
"""DeleteClusterInstancesFromNodePool请求参数结构体
|
|
659
|
+
"""
|
|
660
|
+
|
|
661
|
+
def __init__(self):
|
|
662
|
+
r"""移出节点池节点
|
|
663
|
+
:param ClusterId: 集群id
|
|
664
|
+
:type PathPrefix: String
|
|
665
|
+
:param NodePoolId: 节点池id
|
|
666
|
+
:type PathPrefix: String
|
|
667
|
+
:param InstanceIds: 节点id
|
|
668
|
+
:type PathPrefix: Filter
|
|
669
|
+
:param InstanceDeleteMode: 节点的删除模式,有效值:<br>- **Terminate**:销毁实例<br>- **Remove**:仅把节点移出集群,实例本身不销毁<br>默认值:Terminate
|
|
670
|
+
:type PathPrefix: Boolean
|
|
671
|
+
"""
|
|
672
|
+
self.ClusterId = None
|
|
673
|
+
self.NodePoolId = None
|
|
674
|
+
self.InstanceIds = None
|
|
675
|
+
self.InstanceDeleteMode = None
|
|
676
|
+
|
|
677
|
+
def _deserialize(self, params):
|
|
678
|
+
if params.get("ClusterId"):
|
|
679
|
+
self.ClusterId = params.get("ClusterId")
|
|
680
|
+
if params.get("NodePoolId"):
|
|
681
|
+
self.NodePoolId = params.get("NodePoolId")
|
|
682
|
+
if params.get("InstanceIds"):
|
|
683
|
+
self.InstanceIds = params.get("InstanceIds")
|
|
684
|
+
if params.get("InstanceDeleteMode"):
|
|
685
|
+
self.InstanceDeleteMode = params.get("InstanceDeleteMode")
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
class DescribeEpcImageRequest(AbstractModel):
|
|
689
|
+
"""DescribeEpcImage请求参数结构体
|
|
690
|
+
"""
|
|
691
|
+
|
|
692
|
+
def __init__(self):
|
|
693
|
+
r"""获取裸金属服务器支持的系统镜像
|
|
694
|
+
:param ImageId: 镜像id
|
|
695
|
+
:type PathPrefix: Filter
|
|
696
|
+
"""
|
|
697
|
+
self.ImageId = None
|
|
698
|
+
|
|
699
|
+
def _deserialize(self, params):
|
|
700
|
+
if params.get("ImageId"):
|
|
701
|
+
self.ImageId = params.get("ImageId")
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
class EditEventCollectingRequest(AbstractModel):
|
|
705
|
+
"""EditEventCollecting请求参数结构体
|
|
706
|
+
"""
|
|
707
|
+
|
|
708
|
+
def __init__(self):
|
|
709
|
+
r"""开启事件推送
|
|
710
|
+
:param ClusterId:
|
|
711
|
+
:type PathPrefix: String
|
|
712
|
+
:param EnableEventCollecting: 是否开启推送
|
|
713
|
+
|
|
714
|
+
- true 开启
|
|
715
|
+
- false 关闭
|
|
716
|
+
:type PathPrefix: Boolean
|
|
717
|
+
"""
|
|
718
|
+
self.ClusterId = None
|
|
719
|
+
self.EnableEventCollecting = None
|
|
720
|
+
|
|
721
|
+
def _deserialize(self, params):
|
|
722
|
+
if params.get("ClusterId"):
|
|
723
|
+
self.ClusterId = params.get("ClusterId")
|
|
724
|
+
if params.get("EnableEventCollecting"):
|
|
725
|
+
self.EnableEventCollecting = params.get("EnableEventCollecting")
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
class DescribeNodePoolSummaryRequest(AbstractModel):
|
|
729
|
+
"""DescribeNodePoolSummary请求参数结构体
|
|
730
|
+
"""
|
|
731
|
+
|
|
732
|
+
def __init__(self):
|
|
733
|
+
r"""查询集群全量节点池的轻量级API
|
|
734
|
+
:param ClusterId: 集群ID
|
|
735
|
+
:type PathPrefix: String
|
|
736
|
+
"""
|
|
737
|
+
self.ClusterId = None
|
|
738
|
+
|
|
739
|
+
def _deserialize(self, params):
|
|
740
|
+
if params.get("ClusterId"):
|
|
741
|
+
self.ClusterId = params.get("ClusterId")
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
class CreateLogRuleRequest(AbstractModel):
|
|
745
|
+
"""CreateLogRule请求参数结构体
|
|
746
|
+
"""
|
|
747
|
+
|
|
748
|
+
def __init__(self):
|
|
749
|
+
r"""CreateLogRule
|
|
750
|
+
:param ClusterId: 集群Id
|
|
751
|
+
:type PathPrefix: String
|
|
752
|
+
:param RuleName: 日志规则名称
|
|
753
|
+
- 不超过40个字符,只能包含小写字母、数字及分隔符("-"、"_"、"."),且必须以小写字母、数字开头和结尾
|
|
754
|
+
:type PathPrefix: String
|
|
755
|
+
:param InputConfig: 日志源
|
|
756
|
+
:type PathPrefix: Object
|
|
757
|
+
:param OutputConfig: 消费端
|
|
758
|
+
:type PathPrefix: Object
|
|
759
|
+
"""
|
|
760
|
+
self.ClusterId = None
|
|
761
|
+
self.RuleName = None
|
|
762
|
+
self.InputConfig = None
|
|
763
|
+
self.OutputConfig = None
|
|
764
|
+
|
|
765
|
+
def _deserialize(self, params):
|
|
766
|
+
if params.get("ClusterId"):
|
|
767
|
+
self.ClusterId = params.get("ClusterId")
|
|
768
|
+
if params.get("RuleName"):
|
|
769
|
+
self.RuleName = params.get("RuleName")
|
|
770
|
+
if params.get("InputConfig"):
|
|
771
|
+
self.InputConfig = params.get("InputConfig")
|
|
772
|
+
if params.get("OutputConfig"):
|
|
773
|
+
self.OutputConfig = params.get("OutputConfig")
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
class DescribeClusterSummaryRequest(AbstractModel):
|
|
777
|
+
"""DescribeClusterSummary请求参数结构体
|
|
778
|
+
"""
|
|
779
|
+
|
|
780
|
+
def __init__(self):
|
|
781
|
+
r"""查询用户指定机房下的全量集群基础信息
|
|
782
|
+
"""
|
|
783
|
+
|
|
784
|
+
def _deserialize(self, params):
|
|
785
|
+
return
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
class UpdateNodePoolDelProtectionRequest(AbstractModel):
|
|
789
|
+
"""UpdateNodePoolDelProtection请求参数结构体
|
|
790
|
+
"""
|
|
791
|
+
|
|
792
|
+
def __init__(self):
|
|
793
|
+
r"""UpdateNodePoolDelProtection
|
|
794
|
+
:param NodePoolId: 节点池Id
|
|
795
|
+
:type PathPrefix: String
|
|
796
|
+
:param EnableDelProtection: 是否开启删除保护
|
|
797
|
+
:type PathPrefix: Boolean
|
|
798
|
+
"""
|
|
799
|
+
self.NodePoolId = None
|
|
800
|
+
self.EnableDelProtection = None
|
|
801
|
+
|
|
802
|
+
def _deserialize(self, params):
|
|
803
|
+
if params.get("NodePoolId"):
|
|
804
|
+
self.NodePoolId = params.get("NodePoolId")
|
|
805
|
+
if params.get("EnableDelProtection"):
|
|
806
|
+
self.EnableDelProtection = params.get("EnableDelProtection")
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
class DescribeReleaseRequest(AbstractModel):
|
|
810
|
+
"""DescribeRelease请求参数结构体
|
|
811
|
+
"""
|
|
812
|
+
|
|
813
|
+
def __init__(self):
|
|
814
|
+
r"""查询Helm3应用
|
|
815
|
+
:param ClusterId: 集群 Id
|
|
816
|
+
:type PathPrefix: String
|
|
817
|
+
:param Filter: helm应用筛选条件
|
|
818
|
+
:type PathPrefix: String
|
|
819
|
+
"""
|
|
820
|
+
self.ClusterId = None
|
|
821
|
+
self.Filter = None
|
|
822
|
+
|
|
823
|
+
def _deserialize(self, params):
|
|
824
|
+
if params.get("ClusterId"):
|
|
825
|
+
self.ClusterId = params.get("ClusterId")
|
|
826
|
+
if params.get("Filter"):
|
|
827
|
+
self.Filter = params.get("Filter")
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
class DescribeReleaseHistoryRequest(AbstractModel):
|
|
831
|
+
"""DescribeReleaseHistory请求参数结构体
|
|
832
|
+
"""
|
|
833
|
+
|
|
834
|
+
def __init__(self):
|
|
835
|
+
r"""查询Helm3应用历史版本
|
|
836
|
+
:param ClusterId: 集群 Id
|
|
837
|
+
:type PathPrefix: String
|
|
838
|
+
:param ReleaseName: Helm应用名称
|
|
839
|
+
:type PathPrefix: String
|
|
840
|
+
:param Namespace: 命名空间
|
|
841
|
+
:type PathPrefix: String
|
|
842
|
+
"""
|
|
843
|
+
self.ClusterId = None
|
|
844
|
+
self.ReleaseName = None
|
|
845
|
+
self.Namespace = None
|
|
846
|
+
|
|
847
|
+
def _deserialize(self, params):
|
|
848
|
+
if params.get("ClusterId"):
|
|
849
|
+
self.ClusterId = params.get("ClusterId")
|
|
850
|
+
if params.get("ReleaseName"):
|
|
851
|
+
self.ReleaseName = params.get("ReleaseName")
|
|
852
|
+
if params.get("Namespace"):
|
|
853
|
+
self.Namespace = params.get("Namespace")
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
class DescribeReleaseDetailRequest(AbstractModel):
|
|
857
|
+
"""DescribeReleaseDetail请求参数结构体
|
|
858
|
+
"""
|
|
859
|
+
|
|
860
|
+
def __init__(self):
|
|
861
|
+
r"""查询Helm3应用详情
|
|
862
|
+
:param ClusterId: 集群Id
|
|
863
|
+
:type PathPrefix: String
|
|
864
|
+
:param ReleaseName: helm应用名称
|
|
865
|
+
:type PathPrefix: String
|
|
866
|
+
:param Namespace: 命名空间
|
|
867
|
+
:type PathPrefix: String
|
|
868
|
+
"""
|
|
869
|
+
self.ClusterId = None
|
|
870
|
+
self.ReleaseName = None
|
|
871
|
+
self.Namespace = None
|
|
872
|
+
|
|
873
|
+
def _deserialize(self, params):
|
|
874
|
+
if params.get("ClusterId"):
|
|
875
|
+
self.ClusterId = params.get("ClusterId")
|
|
876
|
+
if params.get("ReleaseName"):
|
|
877
|
+
self.ReleaseName = params.get("ReleaseName")
|
|
878
|
+
if params.get("Namespace"):
|
|
879
|
+
self.Namespace = params.get("Namespace")
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
class DeleteReleaseRequest(AbstractModel):
|
|
883
|
+
"""DeleteRelease请求参数结构体
|
|
884
|
+
"""
|
|
885
|
+
|
|
886
|
+
def __init__(self):
|
|
887
|
+
r"""删除Helm3应用
|
|
888
|
+
:param ClusterId: 集群 Id
|
|
889
|
+
:type PathPrefix: String
|
|
890
|
+
:param ReleaseName: 应用名称
|
|
891
|
+
:type PathPrefix: String
|
|
892
|
+
:param Namespace: 命名空间
|
|
893
|
+
:type PathPrefix: String
|
|
894
|
+
"""
|
|
895
|
+
self.ClusterId = None
|
|
896
|
+
self.ReleaseName = None
|
|
897
|
+
self.Namespace = None
|
|
898
|
+
|
|
899
|
+
def _deserialize(self, params):
|
|
900
|
+
if params.get("ClusterId"):
|
|
901
|
+
self.ClusterId = params.get("ClusterId")
|
|
902
|
+
if params.get("ReleaseName"):
|
|
903
|
+
self.ReleaseName = params.get("ReleaseName")
|
|
904
|
+
if params.get("Namespace"):
|
|
905
|
+
self.Namespace = params.get("Namespace")
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
class RollbackReleaseRequest(AbstractModel):
|
|
909
|
+
"""RollbackRelease请求参数结构体
|
|
910
|
+
"""
|
|
911
|
+
|
|
912
|
+
def __init__(self):
|
|
913
|
+
r"""回滚Helm3应用
|
|
914
|
+
:param ClusterId: 集群 Id
|
|
915
|
+
:type PathPrefix: String
|
|
916
|
+
:param ReleaseName: 应用名称
|
|
917
|
+
:type PathPrefix: String
|
|
918
|
+
:param Namespace: 命名空间
|
|
919
|
+
:type PathPrefix: String
|
|
920
|
+
:param ReleaseVersion: 版本号
|
|
921
|
+
:type PathPrefix: Int
|
|
922
|
+
"""
|
|
923
|
+
self.ClusterId = None
|
|
924
|
+
self.ReleaseName = None
|
|
925
|
+
self.Namespace = None
|
|
926
|
+
self.ReleaseVersion = None
|
|
927
|
+
|
|
928
|
+
def _deserialize(self, params):
|
|
929
|
+
if params.get("ClusterId"):
|
|
930
|
+
self.ClusterId = params.get("ClusterId")
|
|
931
|
+
if params.get("ReleaseName"):
|
|
932
|
+
self.ReleaseName = params.get("ReleaseName")
|
|
933
|
+
if params.get("Namespace"):
|
|
934
|
+
self.Namespace = params.get("Namespace")
|
|
935
|
+
if params.get("ReleaseVersion"):
|
|
936
|
+
self.ReleaseVersion = params.get("ReleaseVersion")
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
class InstallReleaseRequest(AbstractModel):
|
|
940
|
+
"""InstallRelease请求参数结构体
|
|
941
|
+
"""
|
|
942
|
+
|
|
943
|
+
def __init__(self):
|
|
944
|
+
r"""安装Helm3应用
|
|
945
|
+
:param ClusterId: 集群 Id
|
|
946
|
+
:type PathPrefix: String
|
|
947
|
+
:param Namespace: 命名空间
|
|
948
|
+
:type PathPrefix: String
|
|
949
|
+
:param ReleaseName: 应用名称
|
|
950
|
+
:type PathPrefix: String
|
|
951
|
+
:param ChartSource: Chart 来源
|
|
952
|
+
:type PathPrefix: String
|
|
953
|
+
:param ChartNamespace: Chart命名空间,ChartSource为KSYUN 时,必填
|
|
954
|
+
:type PathPrefix: String
|
|
955
|
+
:param ChartName: Chart 名称,ChartSource为KSYUN 时,必填
|
|
956
|
+
:type PathPrefix: String
|
|
957
|
+
:param ChartVersion: Chart版本,ChartSource为 KSYUN时,必填
|
|
958
|
+
:type PathPrefix: String
|
|
959
|
+
:param ChartUrl: Chart 仓库地址,ChartSource 为THIRD时,必填
|
|
960
|
+
:type PathPrefix: String
|
|
961
|
+
:param ChartRepoType: 仓库类型
|
|
962
|
+
:type PathPrefix: String
|
|
963
|
+
:param ChartRepoUsername: 仓库的用户名
|
|
964
|
+
ChartRepoType 为PRIVATE时,必填
|
|
965
|
+
:type PathPrefix: String
|
|
966
|
+
:param ChartRepoPassword: 仓库的密码
|
|
967
|
+
ChartRepoType为PRIVATE时,必填
|
|
968
|
+
:type PathPrefix: String
|
|
969
|
+
:param Values: Values.yaml文件内容
|
|
970
|
+
:type PathPrefix: String
|
|
971
|
+
"""
|
|
972
|
+
self.ClusterId = None
|
|
973
|
+
self.Namespace = None
|
|
974
|
+
self.ReleaseName = None
|
|
975
|
+
self.ChartSource = None
|
|
976
|
+
self.ChartNamespace = None
|
|
977
|
+
self.ChartName = None
|
|
978
|
+
self.ChartVersion = None
|
|
979
|
+
self.ChartUrl = None
|
|
980
|
+
self.ChartRepoType = None
|
|
981
|
+
self.ChartRepoUsername = None
|
|
982
|
+
self.ChartRepoPassword = None
|
|
983
|
+
self.Values = None
|
|
984
|
+
|
|
985
|
+
def _deserialize(self, params):
|
|
986
|
+
if params.get("ClusterId"):
|
|
987
|
+
self.ClusterId = params.get("ClusterId")
|
|
988
|
+
if params.get("Namespace"):
|
|
989
|
+
self.Namespace = params.get("Namespace")
|
|
990
|
+
if params.get("ReleaseName"):
|
|
991
|
+
self.ReleaseName = params.get("ReleaseName")
|
|
992
|
+
if params.get("ChartSource"):
|
|
993
|
+
self.ChartSource = params.get("ChartSource")
|
|
994
|
+
if params.get("ChartNamespace"):
|
|
995
|
+
self.ChartNamespace = params.get("ChartNamespace")
|
|
996
|
+
if params.get("ChartName"):
|
|
997
|
+
self.ChartName = params.get("ChartName")
|
|
998
|
+
if params.get("ChartVersion"):
|
|
999
|
+
self.ChartVersion = params.get("ChartVersion")
|
|
1000
|
+
if params.get("ChartUrl"):
|
|
1001
|
+
self.ChartUrl = params.get("ChartUrl")
|
|
1002
|
+
if params.get("ChartRepoType"):
|
|
1003
|
+
self.ChartRepoType = params.get("ChartRepoType")
|
|
1004
|
+
if params.get("ChartRepoUsername"):
|
|
1005
|
+
self.ChartRepoUsername = params.get("ChartRepoUsername")
|
|
1006
|
+
if params.get("ChartRepoPassword"):
|
|
1007
|
+
self.ChartRepoPassword = params.get("ChartRepoPassword")
|
|
1008
|
+
if params.get("Values"):
|
|
1009
|
+
self.Values = params.get("Values")
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
class UpgradeReleaseRequest(AbstractModel):
|
|
1013
|
+
"""UpgradeRelease请求参数结构体
|
|
1014
|
+
"""
|
|
1015
|
+
|
|
1016
|
+
def __init__(self):
|
|
1017
|
+
r"""安装Helm3应用
|
|
1018
|
+
:param ClusterId: 集群 Id
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
:type PathPrefix: String
|
|
1022
|
+
:param Namespace: 命名空间
|
|
1023
|
+
|
|
1024
|
+
:type PathPrefix: String
|
|
1025
|
+
:param ReleaseName: 应用名称
|
|
1026
|
+
:type PathPrefix: String
|
|
1027
|
+
:param ChartSource: Chart来源
|
|
1028
|
+
:type PathPrefix: String
|
|
1029
|
+
:param ChartNamespace: Chart命名空间,ChartSource为KSYUN 时,必填
|
|
1030
|
+
|
|
1031
|
+
:type PathPrefix: String
|
|
1032
|
+
:param ChartName: Chart 名称,ChartSource为KSYUN 时,必填
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
:type PathPrefix: String
|
|
1036
|
+
:param ChartVersion: Chart版本,ChartSource为 KSYUN时,必填
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
:type PathPrefix: String
|
|
1040
|
+
:param ChartUrl: Chart 仓库地址,ChartSource 为THIRD时,必填
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
:type PathPrefix: String
|
|
1044
|
+
:param ChartRepoType: 仓库类型
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
:type PathPrefix: String
|
|
1048
|
+
:param ChartRepoUsername: 仓库的用户名
|
|
1049
|
+
ChartRepoType 为PRIVATE时,必填
|
|
1050
|
+
:type PathPrefix: String
|
|
1051
|
+
:param ChartRepoPassword:
|
|
1052
|
+
仓库的密码
|
|
1053
|
+
ChartRepoType为PRIVATE时,必填
|
|
1054
|
+
:type PathPrefix: String
|
|
1055
|
+
:param Values: Values.yaml文件内容
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
:type PathPrefix: String
|
|
1059
|
+
"""
|
|
1060
|
+
self.ClusterId = None
|
|
1061
|
+
self.Namespace = None
|
|
1062
|
+
self.ReleaseName = None
|
|
1063
|
+
self.ChartSource = None
|
|
1064
|
+
self.ChartNamespace = None
|
|
1065
|
+
self.ChartName = None
|
|
1066
|
+
self.ChartVersion = None
|
|
1067
|
+
self.ChartUrl = None
|
|
1068
|
+
self.ChartRepoType = None
|
|
1069
|
+
self.ChartRepoUsername = None
|
|
1070
|
+
self.ChartRepoPassword = None
|
|
1071
|
+
self.Values = None
|
|
1072
|
+
|
|
1073
|
+
def _deserialize(self, params):
|
|
1074
|
+
if params.get("ClusterId"):
|
|
1075
|
+
self.ClusterId = params.get("ClusterId")
|
|
1076
|
+
if params.get("Namespace"):
|
|
1077
|
+
self.Namespace = params.get("Namespace")
|
|
1078
|
+
if params.get("ReleaseName"):
|
|
1079
|
+
self.ReleaseName = params.get("ReleaseName")
|
|
1080
|
+
if params.get("ChartSource"):
|
|
1081
|
+
self.ChartSource = params.get("ChartSource")
|
|
1082
|
+
if params.get("ChartNamespace"):
|
|
1083
|
+
self.ChartNamespace = params.get("ChartNamespace")
|
|
1084
|
+
if params.get("ChartName"):
|
|
1085
|
+
self.ChartName = params.get("ChartName")
|
|
1086
|
+
if params.get("ChartVersion"):
|
|
1087
|
+
self.ChartVersion = params.get("ChartVersion")
|
|
1088
|
+
if params.get("ChartUrl"):
|
|
1089
|
+
self.ChartUrl = params.get("ChartUrl")
|
|
1090
|
+
if params.get("ChartRepoType"):
|
|
1091
|
+
self.ChartRepoType = params.get("ChartRepoType")
|
|
1092
|
+
if params.get("ChartRepoUsername"):
|
|
1093
|
+
self.ChartRepoUsername = params.get("ChartRepoUsername")
|
|
1094
|
+
if params.get("ChartRepoPassword"):
|
|
1095
|
+
self.ChartRepoPassword = params.get("ChartRepoPassword")
|
|
1096
|
+
if params.get("Values"):
|
|
1097
|
+
self.Values = params.get("Values")
|
|
1098
|
+
|
|
1099
|
+
|