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
|
File without changes
|
|
@@ -4,18 +4,18 @@ from ksyun.common.exception.ksyun_sdk_exception import KsyunSDKException
|
|
|
4
4
|
from ksyun.common.abstract_client import AbstractClient
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
class
|
|
8
|
-
_apiVersion = '
|
|
9
|
-
_endpoint = '
|
|
10
|
-
_service = '
|
|
11
|
-
def
|
|
12
|
-
"""
|
|
13
|
-
:param request: Request instance for
|
|
14
|
-
:type request: :class:`ksyun.client.
|
|
7
|
+
class KceClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2020-12-31'
|
|
9
|
+
_endpoint = 'kce.api.ksyun.com'
|
|
10
|
+
_service = 'kce'
|
|
11
|
+
def CreateCluster(self, request):
|
|
12
|
+
"""创建集群(新)
|
|
13
|
+
:param request: Request instance for CreateCluster.
|
|
14
|
+
:type request: :class:`ksyun.client.kce.v20201231.models.CreateClusterRequest`
|
|
15
15
|
"""
|
|
16
16
|
try:
|
|
17
17
|
params = request._serialize()
|
|
18
|
-
body = self.
|
|
18
|
+
body = self.call_judge("CreateCluster", params, "application/x-www-form-urlencoded")
|
|
19
19
|
response = json.loads(body)
|
|
20
20
|
if "Error" not in response:
|
|
21
21
|
return body
|
|
@@ -28,6 +28,4 @@ class SlbClient(AbstractClient):
|
|
|
28
28
|
if isinstance(e, KsyunSDKException):
|
|
29
29
|
raise
|
|
30
30
|
else:
|
|
31
|
-
raise KsyunSDKException(
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class CreateClusterRequest(AbstractModel):
|
|
4
|
+
"""CreateCluster请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""创建集群(新)
|
|
9
|
+
:param ClusterName: 集群名称<br>有效值:2-64个字符,支持中文,英文,数字,以及特殊字符-,.!$^*()%#&+/:;<=>[]_`{}~
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
:param ClusterType: 集群类型,默认值 VirtualMachine,该字段已无实际意义,可忽略
|
|
12
|
+
|
|
13
|
+
- VirtualMachine 云服务器
|
|
14
|
+
- BareMetal 裸金属
|
|
15
|
+
|
|
16
|
+
:type PathPrefix: String
|
|
17
|
+
:param ClusterManageMode: 集群管理模式,默认DedicatedCluster
|
|
18
|
+
|
|
19
|
+
- DedicatedCluster 独立部署集群
|
|
20
|
+
- ManagedCluster 托管集群
|
|
21
|
+
- ServerlessCluster serverless集群
|
|
22
|
+
:type PathPrefix: String
|
|
23
|
+
:param ClusterDesc: 集群描述
|
|
24
|
+
:type PathPrefix: String
|
|
25
|
+
:param VpcId: 集群所在的vpcid
|
|
26
|
+
:type PathPrefix: String
|
|
27
|
+
:param PodCidr: 集群pod的网段,如:10.0.0.0/16
|
|
28
|
+
|
|
29
|
+
- 不能与Service网段冲突
|
|
30
|
+
- 不能与VPC网段冲突
|
|
31
|
+
- 托管集群不支持33网段
|
|
32
|
+
:type PathPrefix: String
|
|
33
|
+
:param ServiceCidr: 集群Service的网段,如10.254.0.0/16
|
|
34
|
+
|
|
35
|
+
- 不能与Pod网段冲突
|
|
36
|
+
- 不能与Vpc网段冲突
|
|
37
|
+
:type PathPrefix: String
|
|
38
|
+
:param NetworkType: 集群的网络模型
|
|
39
|
+
|
|
40
|
+
- Flannel
|
|
41
|
+
- Canal
|
|
42
|
+
- Calico
|
|
43
|
+
:type PathPrefix: String
|
|
44
|
+
:param K8sVersion: 容器服务支持的k8s的集群版本号<br>示例:v1.27.7
|
|
45
|
+
有效值以控制台页面为准
|
|
46
|
+
:type PathPrefix: String
|
|
47
|
+
:param ReserveSubnetId: 集群所在vpc终端子网id
|
|
48
|
+
:type PathPrefix: String
|
|
49
|
+
:param PublicApiServer: 是否将apiserver暴露到公网,仅针对独立部署集群生效。若不需要暴露,则不填写此选项;若选择暴露,则会创建公网SLB和EIP用于开启集群的Api Server公网访问。需要用户传递弹性EIP创建透传参数,json化字符串格,详见[创建弹性IP](https://docs.ksyun.com/documents/687)。
|
|
50
|
+
:type PathPrefix: String
|
|
51
|
+
:param ExposePublicApiServer: 托管集群或者Serverless集群是否将apiserver暴露到公网
|
|
52
|
+
:type PathPrefix: Boolean
|
|
53
|
+
:param MaxPodPerNode: 每个节点上运行的pod数量上限<br> 默认值:128 <br> 可选值:16,32,64,128,256
|
|
54
|
+
:type PathPrefix: String
|
|
55
|
+
:param MasterEtcdSeparate: 该字段仅针对于独立部署集群生效,托管集群不生效。集群Master和Etcd组件部署方式,有效值:
|
|
56
|
+
True:Master和Etcd组件独享节点部署
|
|
57
|
+
False:Master和Etcd组件共享节点部署
|
|
58
|
+
默认值:False
|
|
59
|
+
:type PathPrefix: Boolean
|
|
60
|
+
:param ManagedClusterMultiMaster: 当集群类型为托管集群时生效,为托管集群控制面进行子网和安全组配置,支持配置多个
|
|
61
|
+
:type PathPrefix: Filter
|
|
62
|
+
:param InstanceForNode: 新建节点创建集群,定义节点角色和配置,支持云服务器机和专属云服务器。
|
|
63
|
+
:type PathPrefix: Filter
|
|
64
|
+
:param ExistedInstanceForEpc: 使用已有的云物理机创建集群,定义节点角色和配置
|
|
65
|
+
:type PathPrefix: Filter
|
|
66
|
+
:param Component: 不推荐使用接口进行安装,集群会安装默认的组件,如需安装其它增强组件,请在集群创建完成后,在控制台选择安装。
|
|
67
|
+
:type PathPrefix: Filter
|
|
68
|
+
:param ControlPlaneLog: 控制面日志采集,当用户选择的是独立部署集群时,此选项填写无效;当选择是托管时,可选
|
|
69
|
+
:type PathPrefix: Object
|
|
70
|
+
:param EnableDelProtection: 开启删除保护
|
|
71
|
+
默认值:True
|
|
72
|
+
:type PathPrefix: Boolean
|
|
73
|
+
"""
|
|
74
|
+
self.ClusterName = None
|
|
75
|
+
self.ClusterType = None
|
|
76
|
+
self.ClusterManageMode = None
|
|
77
|
+
self.ClusterDesc = None
|
|
78
|
+
self.VpcId = None
|
|
79
|
+
self.PodCidr = None
|
|
80
|
+
self.ServiceCidr = None
|
|
81
|
+
self.NetworkType = None
|
|
82
|
+
self.K8sVersion = None
|
|
83
|
+
self.ReserveSubnetId = None
|
|
84
|
+
self.PublicApiServer = None
|
|
85
|
+
self.ExposePublicApiServer = None
|
|
86
|
+
self.MaxPodPerNode = None
|
|
87
|
+
self.MasterEtcdSeparate = None
|
|
88
|
+
self.ManagedClusterMultiMaster = None
|
|
89
|
+
self.InstanceForNode = None
|
|
90
|
+
self.ExistedInstanceForEpc = None
|
|
91
|
+
self.Component = None
|
|
92
|
+
self.ControlPlaneLog = None
|
|
93
|
+
self.EnableDelProtection = None
|
|
94
|
+
|
|
95
|
+
def _deserialize(self, params):
|
|
96
|
+
if params.get("ClusterName"):
|
|
97
|
+
self.ClusterName = params.get("ClusterName")
|
|
98
|
+
if params.get("ClusterType"):
|
|
99
|
+
self.ClusterType = params.get("ClusterType")
|
|
100
|
+
if params.get("ClusterManageMode"):
|
|
101
|
+
self.ClusterManageMode = params.get("ClusterManageMode")
|
|
102
|
+
if params.get("ClusterDesc"):
|
|
103
|
+
self.ClusterDesc = params.get("ClusterDesc")
|
|
104
|
+
if params.get("VpcId"):
|
|
105
|
+
self.VpcId = params.get("VpcId")
|
|
106
|
+
if params.get("PodCidr"):
|
|
107
|
+
self.PodCidr = params.get("PodCidr")
|
|
108
|
+
if params.get("ServiceCidr"):
|
|
109
|
+
self.ServiceCidr = params.get("ServiceCidr")
|
|
110
|
+
if params.get("NetworkType"):
|
|
111
|
+
self.NetworkType = params.get("NetworkType")
|
|
112
|
+
if params.get("K8sVersion"):
|
|
113
|
+
self.K8sVersion = params.get("K8sVersion")
|
|
114
|
+
if params.get("ReserveSubnetId"):
|
|
115
|
+
self.ReserveSubnetId = params.get("ReserveSubnetId")
|
|
116
|
+
if params.get("PublicApiServer"):
|
|
117
|
+
self.PublicApiServer = params.get("PublicApiServer")
|
|
118
|
+
if params.get("ExposePublicApiServer"):
|
|
119
|
+
self.ExposePublicApiServer = params.get("ExposePublicApiServer")
|
|
120
|
+
if params.get("MaxPodPerNode"):
|
|
121
|
+
self.MaxPodPerNode = params.get("MaxPodPerNode")
|
|
122
|
+
if params.get("MasterEtcdSeparate"):
|
|
123
|
+
self.MasterEtcdSeparate = params.get("MasterEtcdSeparate")
|
|
124
|
+
if params.get("ManagedClusterMultiMaster"):
|
|
125
|
+
self.ManagedClusterMultiMaster = params.get("ManagedClusterMultiMaster")
|
|
126
|
+
if params.get("InstanceForNode"):
|
|
127
|
+
self.InstanceForNode = params.get("InstanceForNode")
|
|
128
|
+
if params.get("ExistedInstanceForEpc"):
|
|
129
|
+
self.ExistedInstanceForEpc = params.get("ExistedInstanceForEpc")
|
|
130
|
+
if params.get("Component"):
|
|
131
|
+
self.Component = params.get("Component")
|
|
132
|
+
if params.get("ControlPlaneLog"):
|
|
133
|
+
self.ControlPlaneLog = params.get("ControlPlaneLog")
|
|
134
|
+
if params.get("EnableDelProtection"):
|
|
135
|
+
self.EnableDelProtection = params.get("EnableDelProtection")
|
|
136
|
+
|
|
137
|
+
|
|
File without changes
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
3
|
+
from ksyun.common.exception.ksyun_sdk_exception import KsyunSDKException
|
|
4
|
+
from ksyun.common.abstract_client import AbstractClient
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class KceClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2023-01-01'
|
|
9
|
+
_endpoint = 'kce.api.ksyun.com'
|
|
10
|
+
_service = 'kce'
|
|
11
|
+
def DescribeEventLogs(self, request):
|
|
12
|
+
"""查询集群事件日志
|
|
13
|
+
:param request: Request instance for DescribeEventLogs.
|
|
14
|
+
:type request: :class:`ksyun.client.kce.v20230101.models.DescribeEventLogsRequest`
|
|
15
|
+
"""
|
|
16
|
+
try:
|
|
17
|
+
params = request._serialize()
|
|
18
|
+
body = self.call_judge("DescribeEventLogs", params, "application/x-www-form-urlencoded")
|
|
19
|
+
response = json.loads(body)
|
|
20
|
+
if "Error" not in response:
|
|
21
|
+
return body
|
|
22
|
+
else:
|
|
23
|
+
code = response["Error"]["Code"]
|
|
24
|
+
message = response["Error"]["Message"]
|
|
25
|
+
req_id = response["RequestId"]
|
|
26
|
+
raise KsyunSDKException(code, message, req_id)
|
|
27
|
+
except Exception as e:
|
|
28
|
+
if isinstance(e, KsyunSDKException):
|
|
29
|
+
raise
|
|
30
|
+
else:
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def CreateAddonInstance(self, request):
|
|
35
|
+
"""创建插件实例
|
|
36
|
+
:param request: Request instance for CreateAddonInstance.
|
|
37
|
+
:type request: :class:`ksyun.client.kce.v20230101.models.CreateAddonInstanceRequest`
|
|
38
|
+
"""
|
|
39
|
+
try:
|
|
40
|
+
params = request._serialize()
|
|
41
|
+
body = self.call_judge("CreateAddonInstance", params, "application/x-www-form-urlencoded")
|
|
42
|
+
response = json.loads(body)
|
|
43
|
+
if "Error" not in response:
|
|
44
|
+
return body
|
|
45
|
+
else:
|
|
46
|
+
code = response["Error"]["Code"]
|
|
47
|
+
message = response["Error"]["Message"]
|
|
48
|
+
req_id = response["RequestId"]
|
|
49
|
+
raise KsyunSDKException(code, message, req_id)
|
|
50
|
+
except Exception as e:
|
|
51
|
+
if isinstance(e, KsyunSDKException):
|
|
52
|
+
raise
|
|
53
|
+
else:
|
|
54
|
+
raise KsyunSDKException(message=str(e))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def DeleteAddonInstance(self, request):
|
|
58
|
+
"""删除插件实例
|
|
59
|
+
:param request: Request instance for DeleteAddonInstance.
|
|
60
|
+
:type request: :class:`ksyun.client.kce.v20230101.models.DeleteAddonInstanceRequest`
|
|
61
|
+
"""
|
|
62
|
+
try:
|
|
63
|
+
params = request._serialize()
|
|
64
|
+
body = self.call_judge("DeleteAddonInstance", params, "application/x-www-form-urlencoded")
|
|
65
|
+
response = json.loads(body)
|
|
66
|
+
if "Error" not in response:
|
|
67
|
+
return body
|
|
68
|
+
else:
|
|
69
|
+
code = response["Error"]["Code"]
|
|
70
|
+
message = response["Error"]["Message"]
|
|
71
|
+
req_id = response["RequestId"]
|
|
72
|
+
raise KsyunSDKException(code, message, req_id)
|
|
73
|
+
except Exception as e:
|
|
74
|
+
if isinstance(e, KsyunSDKException):
|
|
75
|
+
raise
|
|
76
|
+
else:
|
|
77
|
+
raise KsyunSDKException(message=str(e))
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def DescribeAddonInstances(self, request):
|
|
81
|
+
"""查询插件实例
|
|
82
|
+
:param request: Request instance for DescribeAddonInstances.
|
|
83
|
+
:type request: :class:`ksyun.client.kce.v20230101.models.DescribeAddonInstancesRequest`
|
|
84
|
+
"""
|
|
85
|
+
try:
|
|
86
|
+
params = request._serialize()
|
|
87
|
+
body = self.call_judge("DescribeAddonInstances", params, "application/x-www-form-urlencoded")
|
|
88
|
+
response = json.loads(body)
|
|
89
|
+
if "Error" not in response:
|
|
90
|
+
return body
|
|
91
|
+
else:
|
|
92
|
+
code = response["Error"]["Code"]
|
|
93
|
+
message = response["Error"]["Message"]
|
|
94
|
+
req_id = response["RequestId"]
|
|
95
|
+
raise KsyunSDKException(code, message, req_id)
|
|
96
|
+
except Exception as e:
|
|
97
|
+
if isinstance(e, KsyunSDKException):
|
|
98
|
+
raise
|
|
99
|
+
else:
|
|
100
|
+
raise KsyunSDKException(message=str(e))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def DescribeAddonList(self, request):
|
|
104
|
+
"""查询插件列表
|
|
105
|
+
:param request: Request instance for DescribeAddonList.
|
|
106
|
+
:type request: :class:`ksyun.client.kce.v20230101.models.DescribeAddonListRequest`
|
|
107
|
+
"""
|
|
108
|
+
try:
|
|
109
|
+
params = request._serialize()
|
|
110
|
+
body = self.call_judge("DescribeAddonList", params, "application/x-www-form-urlencoded")
|
|
111
|
+
response = json.loads(body)
|
|
112
|
+
if "Error" not in response:
|
|
113
|
+
return body
|
|
114
|
+
else:
|
|
115
|
+
code = response["Error"]["Code"]
|
|
116
|
+
message = response["Error"]["Message"]
|
|
117
|
+
req_id = response["RequestId"]
|
|
118
|
+
raise KsyunSDKException(code, message, req_id)
|
|
119
|
+
except Exception as e:
|
|
120
|
+
if isinstance(e, KsyunSDKException):
|
|
121
|
+
raise
|
|
122
|
+
else:
|
|
123
|
+
raise KsyunSDKException(message=str(e))
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def DescribeComponentParams(self, request):
|
|
127
|
+
"""查询组件参数版本
|
|
128
|
+
:param request: Request instance for DescribeComponentParams.
|
|
129
|
+
:type request: :class:`ksyun.client.kce.v20230101.models.DescribeComponentParamsRequest`
|
|
130
|
+
"""
|
|
131
|
+
try:
|
|
132
|
+
params = request._serialize()
|
|
133
|
+
body = self.call_judge("DescribeComponentParams", params, "application/x-www-form-urlencoded")
|
|
134
|
+
response = json.loads(body)
|
|
135
|
+
if "Error" not in response:
|
|
136
|
+
return body
|
|
137
|
+
else:
|
|
138
|
+
code = response["Error"]["Code"]
|
|
139
|
+
message = response["Error"]["Message"]
|
|
140
|
+
req_id = response["RequestId"]
|
|
141
|
+
raise KsyunSDKException(code, message, req_id)
|
|
142
|
+
except Exception as e:
|
|
143
|
+
if isinstance(e, KsyunSDKException):
|
|
144
|
+
raise
|
|
145
|
+
else:
|
|
146
|
+
raise KsyunSDKException(message=str(e))
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def DescribeNetwork(self, request):
|
|
150
|
+
"""查询集群网络
|
|
151
|
+
:param request: Request instance for DescribeNetwork.
|
|
152
|
+
:type request: :class:`ksyun.client.kce.v20230101.models.DescribeNetworkRequest`
|
|
153
|
+
"""
|
|
154
|
+
try:
|
|
155
|
+
params = request._serialize()
|
|
156
|
+
body = self.call_judge("DescribeNetwork", params, "application/x-www-form-urlencoded")
|
|
157
|
+
response = json.loads(body)
|
|
158
|
+
if "Error" not in response:
|
|
159
|
+
return body
|
|
160
|
+
else:
|
|
161
|
+
code = response["Error"]["Code"]
|
|
162
|
+
message = response["Error"]["Message"]
|
|
163
|
+
req_id = response["RequestId"]
|
|
164
|
+
raise KsyunSDKException(code, message, req_id)
|
|
165
|
+
except Exception as e:
|
|
166
|
+
if isinstance(e, KsyunSDKException):
|
|
167
|
+
raise
|
|
168
|
+
else:
|
|
169
|
+
raise KsyunSDKException(message=str(e))
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def DescribeNodeComponents(self, request):
|
|
173
|
+
"""查询节点组件列表
|
|
174
|
+
:param request: Request instance for DescribeNodeComponents.
|
|
175
|
+
:type request: :class:`ksyun.client.kce.v20230101.models.DescribeNodeComponentsRequest`
|
|
176
|
+
"""
|
|
177
|
+
try:
|
|
178
|
+
params = request._serialize()
|
|
179
|
+
body = self.call_judge("DescribeNodeComponents", params, "application/x-www-form-urlencoded")
|
|
180
|
+
response = json.loads(body)
|
|
181
|
+
if "Error" not in response:
|
|
182
|
+
return body
|
|
183
|
+
else:
|
|
184
|
+
code = response["Error"]["Code"]
|
|
185
|
+
message = response["Error"]["Message"]
|
|
186
|
+
req_id = response["RequestId"]
|
|
187
|
+
raise KsyunSDKException(code, message, req_id)
|
|
188
|
+
except Exception as e:
|
|
189
|
+
if isinstance(e, KsyunSDKException):
|
|
190
|
+
raise
|
|
191
|
+
else:
|
|
192
|
+
raise KsyunSDKException(message=str(e))
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def DescribeComponentList(self, request):
|
|
196
|
+
"""查询可安装的组件列表
|
|
197
|
+
:param request: Request instance for DescribeComponentList.
|
|
198
|
+
:type request: :class:`ksyun.client.kce.v20230101.models.DescribeComponentListRequest`
|
|
199
|
+
"""
|
|
200
|
+
try:
|
|
201
|
+
params = request._serialize()
|
|
202
|
+
body = self.call_judge("DescribeComponentList", params, "application/x-www-form-urlencoded")
|
|
203
|
+
response = json.loads(body)
|
|
204
|
+
if "Error" not in response:
|
|
205
|
+
return body
|
|
206
|
+
else:
|
|
207
|
+
code = response["Error"]["Code"]
|
|
208
|
+
message = response["Error"]["Message"]
|
|
209
|
+
req_id = response["RequestId"]
|
|
210
|
+
raise KsyunSDKException(code, message, req_id)
|
|
211
|
+
except Exception as e:
|
|
212
|
+
if isinstance(e, KsyunSDKException):
|
|
213
|
+
raise
|
|
214
|
+
else:
|
|
215
|
+
raise KsyunSDKException(message=str(e))
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class DescribeEventLogsRequest(AbstractModel):
|
|
4
|
+
"""DescribeEventLogs请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""查询集群事件日志
|
|
9
|
+
:param ClusterId: 集群ID
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
:param ClusterName: 集群名称
|
|
12
|
+
:type PathPrefix: String
|
|
13
|
+
:param NodeId: 节点ID
|
|
14
|
+
:type PathPrefix: String
|
|
15
|
+
:param NodeName: 节点名称
|
|
16
|
+
:type PathPrefix: String
|
|
17
|
+
:param Inner: 是否查询内部事件
|
|
18
|
+
:type PathPrefix: Boolean
|
|
19
|
+
:param Marker: 分页参数 游标起始位置,
|
|
20
|
+
每次查询返回
|
|
21
|
+
:type PathPrefix: Int
|
|
22
|
+
:param MaxResults: 分页参数,每页最大数
|
|
23
|
+
|
|
24
|
+
:type PathPrefix: Int
|
|
25
|
+
"""
|
|
26
|
+
self.ClusterId = None
|
|
27
|
+
self.ClusterName = None
|
|
28
|
+
self.NodeId = None
|
|
29
|
+
self.NodeName = None
|
|
30
|
+
self.Inner = None
|
|
31
|
+
self.Marker = None
|
|
32
|
+
self.MaxResults = None
|
|
33
|
+
|
|
34
|
+
def _deserialize(self, params):
|
|
35
|
+
if params.get("ClusterId"):
|
|
36
|
+
self.ClusterId = params.get("ClusterId")
|
|
37
|
+
if params.get("ClusterName"):
|
|
38
|
+
self.ClusterName = params.get("ClusterName")
|
|
39
|
+
if params.get("NodeId"):
|
|
40
|
+
self.NodeId = params.get("NodeId")
|
|
41
|
+
if params.get("NodeName"):
|
|
42
|
+
self.NodeName = params.get("NodeName")
|
|
43
|
+
if params.get("Inner"):
|
|
44
|
+
self.Inner = params.get("Inner")
|
|
45
|
+
if params.get("Marker"):
|
|
46
|
+
self.Marker = params.get("Marker")
|
|
47
|
+
if params.get("MaxResults"):
|
|
48
|
+
self.MaxResults = params.get("MaxResults")
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class CreateAddonInstanceRequest(AbstractModel):
|
|
52
|
+
"""CreateAddonInstance请求参数结构体
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
def __init__(self):
|
|
56
|
+
r"""创建插件实例
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
def _deserialize(self, params):
|
|
60
|
+
return
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class DeleteAddonInstanceRequest(AbstractModel):
|
|
64
|
+
"""DeleteAddonInstance请求参数结构体
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
def __init__(self):
|
|
68
|
+
r"""删除插件实例
|
|
69
|
+
:param ClusterName: 集群名称
|
|
70
|
+
:type PathPrefix: String
|
|
71
|
+
:param ClusterId: 集群ID
|
|
72
|
+
:type PathPrefix: String
|
|
73
|
+
:param AddonId: 插件ID
|
|
74
|
+
:type PathPrefix: String
|
|
75
|
+
:param InstanceId: 插件实例ID
|
|
76
|
+
:type PathPrefix: String
|
|
77
|
+
"""
|
|
78
|
+
self.ClusterName = None
|
|
79
|
+
self.ClusterId = None
|
|
80
|
+
self.AddonId = None
|
|
81
|
+
self.InstanceId = None
|
|
82
|
+
|
|
83
|
+
def _deserialize(self, params):
|
|
84
|
+
if params.get("ClusterName"):
|
|
85
|
+
self.ClusterName = params.get("ClusterName")
|
|
86
|
+
if params.get("ClusterId"):
|
|
87
|
+
self.ClusterId = params.get("ClusterId")
|
|
88
|
+
if params.get("AddonId"):
|
|
89
|
+
self.AddonId = params.get("AddonId")
|
|
90
|
+
if params.get("InstanceId"):
|
|
91
|
+
self.InstanceId = params.get("InstanceId")
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
class DescribeAddonInstancesRequest(AbstractModel):
|
|
95
|
+
"""DescribeAddonInstances请求参数结构体
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
def __init__(self):
|
|
99
|
+
r"""查询插件实例
|
|
100
|
+
:param CulsterId: 集群ID
|
|
101
|
+
:type PathPrefix: String
|
|
102
|
+
:param ClusterName: 集群名称
|
|
103
|
+
:type PathPrefix: String
|
|
104
|
+
:param Name: 插件名称
|
|
105
|
+
:type PathPrefix: String
|
|
106
|
+
:param AddonIds: 插件ID
|
|
107
|
+
:type PathPrefix: Array
|
|
108
|
+
"""
|
|
109
|
+
self.CulsterId = None
|
|
110
|
+
self.ClusterName = None
|
|
111
|
+
self.Name = None
|
|
112
|
+
self.AddonIds = None
|
|
113
|
+
|
|
114
|
+
def _deserialize(self, params):
|
|
115
|
+
if params.get("CulsterId"):
|
|
116
|
+
self.CulsterId = params.get("CulsterId")
|
|
117
|
+
if params.get("ClusterName"):
|
|
118
|
+
self.ClusterName = params.get("ClusterName")
|
|
119
|
+
if params.get("Name"):
|
|
120
|
+
self.Name = params.get("Name")
|
|
121
|
+
if params.get("AddonIds"):
|
|
122
|
+
self.AddonIds = params.get("AddonIds")
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
class DescribeAddonListRequest(AbstractModel):
|
|
126
|
+
"""DescribeAddonList请求参数结构体
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
def __init__(self):
|
|
130
|
+
r"""查询插件列表
|
|
131
|
+
:param Name: 插件名称
|
|
132
|
+
:type PathPrefix: String
|
|
133
|
+
:param MaxResults: 分页参数,每页最大数
|
|
134
|
+
:type PathPrefix: Int
|
|
135
|
+
:param Marker: 游标起始位置
|
|
136
|
+
:type PathPrefix: Int
|
|
137
|
+
"""
|
|
138
|
+
self.Name = None
|
|
139
|
+
self.MaxResults = None
|
|
140
|
+
self.Marker = None
|
|
141
|
+
|
|
142
|
+
def _deserialize(self, params):
|
|
143
|
+
if params.get("Name"):
|
|
144
|
+
self.Name = params.get("Name")
|
|
145
|
+
if params.get("MaxResults"):
|
|
146
|
+
self.MaxResults = params.get("MaxResults")
|
|
147
|
+
if params.get("Marker"):
|
|
148
|
+
self.Marker = params.get("Marker")
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
class DescribeComponentParamsRequest(AbstractModel):
|
|
152
|
+
"""DescribeComponentParams请求参数结构体
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
def __init__(self):
|
|
156
|
+
r"""查询组件参数版本
|
|
157
|
+
:param ClusterId: 集群ID
|
|
158
|
+
:type PathPrefix: String
|
|
159
|
+
:param Components: 组件查询条件
|
|
160
|
+
:type PathPrefix: Array
|
|
161
|
+
:param Marker: 游标起始位置
|
|
162
|
+
:type PathPrefix: Int
|
|
163
|
+
:param MaxResults: 分页参数,每页最大数
|
|
164
|
+
:type PathPrefix: Int
|
|
165
|
+
"""
|
|
166
|
+
self.ClusterId = None
|
|
167
|
+
self.Components = None
|
|
168
|
+
self.Marker = None
|
|
169
|
+
self.MaxResults = None
|
|
170
|
+
|
|
171
|
+
def _deserialize(self, params):
|
|
172
|
+
if params.get("ClusterId"):
|
|
173
|
+
self.ClusterId = params.get("ClusterId")
|
|
174
|
+
if params.get("Components"):
|
|
175
|
+
self.Components = params.get("Components")
|
|
176
|
+
if params.get("Marker"):
|
|
177
|
+
self.Marker = params.get("Marker")
|
|
178
|
+
if params.get("MaxResults"):
|
|
179
|
+
self.MaxResults = params.get("MaxResults")
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
class DescribeNetworkRequest(AbstractModel):
|
|
183
|
+
"""DescribeNetwork请求参数结构体
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
def __init__(self):
|
|
187
|
+
r"""查询集群网络
|
|
188
|
+
:param ClusterId: 集群ID
|
|
189
|
+
:type PathPrefix: String
|
|
190
|
+
:param ClusterName: 集群名称
|
|
191
|
+
:type PathPrefix: String
|
|
192
|
+
"""
|
|
193
|
+
self.ClusterId = None
|
|
194
|
+
self.ClusterName = None
|
|
195
|
+
|
|
196
|
+
def _deserialize(self, params):
|
|
197
|
+
if params.get("ClusterId"):
|
|
198
|
+
self.ClusterId = params.get("ClusterId")
|
|
199
|
+
if params.get("ClusterName"):
|
|
200
|
+
self.ClusterName = params.get("ClusterName")
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
class DescribeNodeComponentsRequest(AbstractModel):
|
|
204
|
+
"""DescribeNodeComponents请求参数结构体
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
def __init__(self):
|
|
208
|
+
r"""查询节点组件列表
|
|
209
|
+
:param ClusterId: 集群ID
|
|
210
|
+
:type PathPrefix: String
|
|
211
|
+
:param ClusterName: 集群名称
|
|
212
|
+
:type PathPrefix: String
|
|
213
|
+
:param NodeNames: 节点名称
|
|
214
|
+
:type PathPrefix: Array
|
|
215
|
+
:param NodeIds: 节点ID
|
|
216
|
+
:type PathPrefix: String
|
|
217
|
+
:param Marker: 游标起始位置
|
|
218
|
+
:type PathPrefix: Int
|
|
219
|
+
:param MaxResults: 分页参数,每页最大数
|
|
220
|
+
:type PathPrefix: Int
|
|
221
|
+
"""
|
|
222
|
+
self.ClusterId = None
|
|
223
|
+
self.ClusterName = None
|
|
224
|
+
self.NodeNames = None
|
|
225
|
+
self.NodeIds = None
|
|
226
|
+
self.Marker = None
|
|
227
|
+
self.MaxResults = None
|
|
228
|
+
|
|
229
|
+
def _deserialize(self, params):
|
|
230
|
+
if params.get("ClusterId"):
|
|
231
|
+
self.ClusterId = params.get("ClusterId")
|
|
232
|
+
if params.get("ClusterName"):
|
|
233
|
+
self.ClusterName = params.get("ClusterName")
|
|
234
|
+
if params.get("NodeNames"):
|
|
235
|
+
self.NodeNames = params.get("NodeNames")
|
|
236
|
+
if params.get("NodeIds"):
|
|
237
|
+
self.NodeIds = params.get("NodeIds")
|
|
238
|
+
if params.get("Marker"):
|
|
239
|
+
self.Marker = params.get("Marker")
|
|
240
|
+
if params.get("MaxResults"):
|
|
241
|
+
self.MaxResults = params.get("MaxResults")
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
class DescribeComponentListRequest(AbstractModel):
|
|
245
|
+
"""DescribeComponentList请求参数结构体
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
def __init__(self):
|
|
249
|
+
r"""查询可安装的组件列表
|
|
250
|
+
:param K8sVersion: K8S 版本
|
|
251
|
+
:type PathPrefix: String
|
|
252
|
+
"""
|
|
253
|
+
self.K8sVersion = None
|
|
254
|
+
|
|
255
|
+
def _deserialize(self, params):
|
|
256
|
+
if params.get("K8sVersion"):
|
|
257
|
+
self.K8sVersion = params.get("K8sVersion")
|
|
258
|
+
|
|
259
|
+
|
|
File without changes
|