kingsoftcloud-sdk-python 1.1.1__py2.py3-none-any.whl → 1.5.8.44__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.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.44.dist-info}/METADATA +17 -4
- kingsoftcloud_sdk_python-1.5.8.44.dist-info/RECORD +337 -0
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.44.dist-info}/WHEEL +1 -1
- ksyun/__init__.py +1 -1
- ksyun/client/actiontrail/v20190401/client.py +1 -1
- ksyun/client/aicp/v20240612/client.py +1229 -0
- ksyun/client/aicp/v20240612/models.py +1778 -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 +3 -72
- ksyun/client/bill/v20180601/models.py +29 -41
- ksyun/client/bill/v20220601/__init__.py +0 -0
- ksyun/client/bill/v20220601/client.py +56 -0
- ksyun/client/bill/v20220601/models.py +54 -0
- ksyun/client/bill_union/v20200101/client.py +77 -8
- ksyun/client/bill_union/v20200101/models.py +118 -2
- ksyun/client/bill_union/v20221222/__init__.py +0 -0
- ksyun/client/bill_union/v20221222/client.py +148 -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 +56 -0
- ksyun/client/bill_union/v20250801/models.py +64 -0
- ksyun/client/bws/v20160304/client.py +29 -6
- 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 +79 -0
- ksyun/client/cdn/v20160901/models.py +51 -0
- ksyun/client/cdn/v20200630/__init__.py +0 -0
- ksyun/client/cdn/v20200630/client.py +401 -0
- ksyun/client/cdn/v20200630/models.py +826 -0
- ksyun/client/cdn/v20200901/__init__.py +0 -0
- ksyun/client/cdn/v20200901/client.py +171 -0
- ksyun/client/cdn/v20200901/models.py +224 -0
- ksyun/client/cdn/v20211201/__init__.py +0 -0
- ksyun/client/cdn/v20211201/client.py +33 -0
- ksyun/client/cdn/v20211201/models.py +23 -0
- ksyun/client/cdn/v3/__init__.py +0 -0
- ksyun/client/cdn/v3/client.py +999 -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 +608 -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 +907 -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 +79 -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 +470 -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 +447 -0
- ksyun/client/dts/v20180108/models.py +734 -0
- ksyun/client/ebs/v20160304/client.py +243 -36
- ksyun/client/ebs/v20160304/models.py +320 -66
- ksyun/client/eip/v20160304/client.py +122 -7
- ksyun/client/eip/v20160304/models.py +95 -1
- ksyun/client/epc/v20151101/client.py +1258 -131
- ksyun/client/epc/v20151101/models.py +2605 -134
- ksyun/client/iam/v20151101/client.py +271 -64
- ksyun/client/iam/v20151101/models.py +284 -28
- ksyun/client/iam/v20240513/__init__.py +0 -0
- ksyun/client/iam/v20240513/client.py +33 -0
- ksyun/client/iam/v20240513/models.py +33 -0
- ksyun/client/iam/v20240703/__init__.py +0 -0
- ksyun/client/iam/v20240703/client.py +33 -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 +631 -0
- ksyun/client/influxdb/v20191010/models.py +655 -0
- ksyun/client/kad/v20161122/client.py +52 -6
- 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 +401 -0
- ksyun/client/kce/v20180314/models.py +374 -0
- ksyun/client/kce/v20190806/__init__.py +0 -0
- ksyun/client/kce/v20190806/client.py +792 -0
- ksyun/client/kce/v20190806/models.py +1099 -0
- ksyun/client/kce/v20201231/__init__.py +0 -0
- ksyun/client/{bill_union/v20211209 → kce/v20201231}/client.py +9 -9
- ksyun/client/kce/v20201231/models.py +137 -0
- ksyun/client/kce/v20230101/__init__.py +0 -0
- ksyun/client/kce/v20230101/client.py +217 -0
- ksyun/client/kce/v20230101/models.py +259 -0
- ksyun/client/kce/v20230306/__init__.py +0 -0
- ksyun/client/kce/v20230306/client.py +516 -0
- ksyun/client/kce/v20230306/models.py +655 -0
- ksyun/client/kce/v20231115/__init__.py +0 -0
- ksyun/client/kce/v20231115/client.py +56 -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 +355 -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 +217 -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 +355 -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 +240 -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 +1022 -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 +1528 -0
- ksyun/client/kcs/v20160701/models.py +1917 -0
- ksyun/client/kcs/v20170401/__init__.py +0 -0
- ksyun/client/kcs/v20170401/client.py +33 -0
- ksyun/client/kcs/v20170401/models.py +28 -0
- ksyun/client/kcs/v20240701/__init__.py +0 -0
- ksyun/client/kcs/v20240701/client.py +33 -0
- ksyun/client/kcs/v20240701/models.py +23 -0
- ksyun/client/kead/v20200101/client.py +47 -1
- ksyun/client/kead/v20200101/models.py +52 -42
- ksyun/client/kec/v20160304/client.py +334 -127
- ksyun/client/kec/v20160304/models.py +701 -131
- ksyun/client/ked/__init__.py +0 -0
- ksyun/client/ked/v1/__init__.py +0 -0
- ksyun/client/ked/v1/client.py +1022 -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 +194 -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 +194 -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 +56 -0
- ksyun/client/kfw/v20160304/models.py +35 -0
- ksyun/client/kingpay/__init__.py +0 -0
- ksyun/client/kingpay/v1/__init__.py +0 -0
- ksyun/client/kingpay/v1/client.py +33 -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 +194 -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 +378 -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 +194 -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 +539 -0
- ksyun/client/kmr/v20210902/models.py +536 -0
- ksyun/client/kmr/v20231231/__init__.py +0 -0
- ksyun/client/kmr/v20231231/client.py +171 -0
- ksyun/client/kmr/v20231231/models.py +201 -0
- ksyun/client/kmr/v20240814/__init__.py +0 -0
- ksyun/client/kmr/v20240814/client.py +447 -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 +401 -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 +191 -0
- ksyun/client/krds/__init__.py +0 -0
- ksyun/client/krds/v20160701/__init__.py +0 -0
- ksyun/client/krds/v20160701/client.py +2103 -0
- ksyun/client/krds/v20160701/models.py +2722 -0
- ksyun/client/krds/v20200825/__init__.py +0 -0
- ksyun/client/krds/v20200825/client.py +240 -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 +309 -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 +447 -0
- ksyun/client/milvus/v20231010/models.py +520 -0
- ksyun/client/mongodb/v20170101/client.py +280 -50
- ksyun/client/mongodb/v20170101/models.py +251 -34
- ksyun/client/mongodb/v20250101/__init__.py +0 -0
- ksyun/client/mongodb/v20250101/client.py +33 -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 +56 -0
- ksyun/client/monitor/v20100525/models.py +108 -0
- ksyun/client/monitor/v20181114/__init__.py +0 -0
- ksyun/client/monitor/v20181114/client.py +33 -0
- ksyun/client/monitor/v20181114/models.py +59 -0
- ksyun/client/monitor/v20210101/__init__.py +0 -0
- ksyun/client/monitor/v20210101/client.py +286 -0
- ksyun/client/monitor/v20210101/models.py +330 -0
- ksyun/client/monitor/v20220101/__init__.py +0 -0
- ksyun/client/monitor/v20220101/client.py +56 -0
- ksyun/client/monitor/v20220101/models.py +32 -0
- ksyun/client/monitor/v20250101/__init__.py +0 -0
- ksyun/client/monitor/v20250101/client.py +79 -0
- ksyun/client/monitor/v20250101/models.py +156 -0
- ksyun/client/pdns/__init__.py +0 -0
- ksyun/client/pdns/v20160304/__init__.py +0 -0
- ksyun/client/pdns/v20160304/client.py +815 -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 +1160 -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 +447 -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/{slb/v20171210 → relyt/v20240117}/client.py +9 -9
- ksyun/client/relyt/v20240117/models.py +23 -0
- ksyun/client/resourcemanager/v20210320/client.py +8 -8
- ksyun/client/sks/v20151101/client.py +5 -5
- ksyun/client/sks/v20151101/models.py +7 -0
- ksyun/client/slb/v20160304/client.py +1051 -62
- ksyun/client/slb/v20160304/models.py +1692 -19
- ksyun/client/slb/v20250430/__init__.py +0 -0
- ksyun/client/slb/v20250430/client.py +815 -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 +1068 -0
- ksyun/client/sqlserver/v20190425/models.py +1528 -0
- ksyun/client/sts/v20151101/client.py +24 -1
- ksyun/client/sts/v20151101/models.py +54 -1
- ksyun/client/tagv2/v20200901/client.py +54 -8
- 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 +125 -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 +930 -0
- ksyun/client/tidb/v20210520/models.py +1162 -0
- ksyun/client/trade/v20200114/client.py +1 -1
- ksyun/client/trade/v20200831/client.py +1 -1
- ksyun/client/trade/v20250220/__init__.py +0 -0
- ksyun/client/trade/v20250220/client.py +102 -0
- ksyun/client/trade/v20250220/models.py +91 -0
- ksyun/client/trade/v20250321/__init__.py +0 -0
- ksyun/client/trade/v20250321/client.py +102 -0
- ksyun/client/trade/v20250321/models.py +71 -0
- ksyun/client/trade/v20250828/__init__.py +0 -0
- ksyun/client/trade/v20250828/client.py +33 -0
- ksyun/client/trade/v20250828/models.py +81 -0
- ksyun/client/vpc/v20160304/client.py +1297 -147
- ksyun/client/vpc/v20160304/models.py +1536 -139
- ksyun/client/waf/__init__.py +0 -0
- ksyun/client/waf/v20200707/__init__.py +0 -0
- ksyun/client/waf/v20200707/client.py +470 -0
- ksyun/client/waf/v20200707/models.py +738 -0
- ksyun/common/abstract_client.py +42 -18
- ksyun/common/http/request.py +43 -6
- ksyun/common/profile/http_profile.py +26 -1
- 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.44.dist-info/licenses}/LICENSE +0 -0
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.44.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
|
@@ -15,7 +15,7 @@ class KecClient(AbstractClient):
|
|
|
15
15
|
"""
|
|
16
16
|
try:
|
|
17
17
|
params = request._serialize()
|
|
18
|
-
body = self.
|
|
18
|
+
body = self.call_judge("DescribeInstances", params, "application/x-www-form-urlencoded")
|
|
19
19
|
response = json.loads(body)
|
|
20
20
|
if "Error" not in response:
|
|
21
21
|
return body
|
|
@@ -32,13 +32,13 @@ class KecClient(AbstractClient):
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
def RunInstances(self, request):
|
|
35
|
-
"""
|
|
35
|
+
"""创建实例信息
|
|
36
36
|
:param request: Request instance for RunInstances.
|
|
37
37
|
:type request: :class:`ksyun.client.kec.v20160304.models.RunInstancesRequest`
|
|
38
38
|
"""
|
|
39
39
|
try:
|
|
40
40
|
params = request._serialize()
|
|
41
|
-
body = self.
|
|
41
|
+
body = self.call_judge("RunInstances", params, "application/x-www-form-urlencoded")
|
|
42
42
|
response = json.loads(body)
|
|
43
43
|
if "Error" not in response:
|
|
44
44
|
return body
|
|
@@ -55,13 +55,13 @@ class KecClient(AbstractClient):
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
def StartInstances(self, request):
|
|
58
|
-
"""
|
|
58
|
+
"""启动实例接口
|
|
59
59
|
:param request: Request instance for StartInstances.
|
|
60
60
|
:type request: :class:`ksyun.client.kec.v20160304.models.StartInstancesRequest`
|
|
61
61
|
"""
|
|
62
62
|
try:
|
|
63
63
|
params = request._serialize()
|
|
64
|
-
body = self.
|
|
64
|
+
body = self.call_judge("StartInstances", params, "application/x-www-form-urlencoded")
|
|
65
65
|
response = json.loads(body)
|
|
66
66
|
if "Error" not in response:
|
|
67
67
|
return body
|
|
@@ -78,13 +78,13 @@ class KecClient(AbstractClient):
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
def StopInstances(self, request):
|
|
81
|
-
"""
|
|
81
|
+
"""关闭实例接口
|
|
82
82
|
:param request: Request instance for StopInstances.
|
|
83
83
|
:type request: :class:`ksyun.client.kec.v20160304.models.StopInstancesRequest`
|
|
84
84
|
"""
|
|
85
85
|
try:
|
|
86
86
|
params = request._serialize()
|
|
87
|
-
body = self.
|
|
87
|
+
body = self.call_judge("StopInstances", params, "application/x-www-form-urlencoded")
|
|
88
88
|
response = json.loads(body)
|
|
89
89
|
if "Error" not in response:
|
|
90
90
|
return body
|
|
@@ -101,13 +101,13 @@ class KecClient(AbstractClient):
|
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
def RebootInstances(self, request):
|
|
104
|
-
"""
|
|
104
|
+
"""重启实例接口
|
|
105
105
|
:param request: Request instance for RebootInstances.
|
|
106
106
|
:type request: :class:`ksyun.client.kec.v20160304.models.RebootInstancesRequest`
|
|
107
107
|
"""
|
|
108
108
|
try:
|
|
109
109
|
params = request._serialize()
|
|
110
|
-
body = self.
|
|
110
|
+
body = self.call_judge("RebootInstances", params, "application/x-www-form-urlencoded")
|
|
111
111
|
response = json.loads(body)
|
|
112
112
|
if "Error" not in response:
|
|
113
113
|
return body
|
|
@@ -130,7 +130,7 @@ class KecClient(AbstractClient):
|
|
|
130
130
|
"""
|
|
131
131
|
try:
|
|
132
132
|
params = request._serialize()
|
|
133
|
-
body = self.
|
|
133
|
+
body = self.call_judge("ModifyInstanceAttribute", params, "application/x-www-form-urlencoded")
|
|
134
134
|
response = json.loads(body)
|
|
135
135
|
if "Error" not in response:
|
|
136
136
|
return body
|
|
@@ -153,7 +153,7 @@ class KecClient(AbstractClient):
|
|
|
153
153
|
"""
|
|
154
154
|
try:
|
|
155
155
|
params = request._serialize()
|
|
156
|
-
body = self.
|
|
156
|
+
body = self.call_judge("ModifyInstanceType", params, "application/x-www-form-urlencoded")
|
|
157
157
|
response = json.loads(body)
|
|
158
158
|
if "Error" not in response:
|
|
159
159
|
return body
|
|
@@ -170,13 +170,13 @@ class KecClient(AbstractClient):
|
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
def TerminateInstances(self, request):
|
|
173
|
-
"""
|
|
173
|
+
"""销毁实例接口
|
|
174
174
|
:param request: Request instance for TerminateInstances.
|
|
175
175
|
:type request: :class:`ksyun.client.kec.v20160304.models.TerminateInstancesRequest`
|
|
176
176
|
"""
|
|
177
177
|
try:
|
|
178
178
|
params = request._serialize()
|
|
179
|
-
body = self.
|
|
179
|
+
body = self.call_judge("TerminateInstances", params, "application/x-www-form-urlencoded")
|
|
180
180
|
response = json.loads(body)
|
|
181
181
|
if "Error" not in response:
|
|
182
182
|
return body
|
|
@@ -199,7 +199,7 @@ class KecClient(AbstractClient):
|
|
|
199
199
|
"""
|
|
200
200
|
try:
|
|
201
201
|
params = request._serialize()
|
|
202
|
-
body = self.
|
|
202
|
+
body = self.call_judge("DescribeImages", params, "application/x-www-form-urlencoded")
|
|
203
203
|
response = json.loads(body)
|
|
204
204
|
if "Error" not in response:
|
|
205
205
|
return body
|
|
@@ -222,7 +222,7 @@ class KecClient(AbstractClient):
|
|
|
222
222
|
"""
|
|
223
223
|
try:
|
|
224
224
|
params = request._serialize()
|
|
225
|
-
body = self.
|
|
225
|
+
body = self.call_judge("ModifyImageAttribute", params, "application/x-www-form-urlencoded")
|
|
226
226
|
response = json.loads(body)
|
|
227
227
|
if "Error" not in response:
|
|
228
228
|
return body
|
|
@@ -245,7 +245,7 @@ class KecClient(AbstractClient):
|
|
|
245
245
|
"""
|
|
246
246
|
try:
|
|
247
247
|
params = request._serialize()
|
|
248
|
-
body = self.
|
|
248
|
+
body = self.call_judge("ModifyInstanceImage", params, "application/x-www-form-urlencoded")
|
|
249
249
|
response = json.loads(body)
|
|
250
250
|
if "Error" not in response:
|
|
251
251
|
return body
|
|
@@ -262,13 +262,13 @@ class KecClient(AbstractClient):
|
|
|
262
262
|
|
|
263
263
|
|
|
264
264
|
def CreateImage(self, request):
|
|
265
|
-
"""
|
|
265
|
+
"""创建镜像接口
|
|
266
266
|
:param request: Request instance for CreateImage.
|
|
267
267
|
:type request: :class:`ksyun.client.kec.v20160304.models.CreateImageRequest`
|
|
268
268
|
"""
|
|
269
269
|
try:
|
|
270
270
|
params = request._serialize()
|
|
271
|
-
body = self.
|
|
271
|
+
body = self.call_judge("CreateImage", params, "application/x-www-form-urlencoded")
|
|
272
272
|
response = json.loads(body)
|
|
273
273
|
if "Error" not in response:
|
|
274
274
|
return body
|
|
@@ -291,7 +291,7 @@ class KecClient(AbstractClient):
|
|
|
291
291
|
"""
|
|
292
292
|
try:
|
|
293
293
|
params = request._serialize()
|
|
294
|
-
body = self.
|
|
294
|
+
body = self.call_judge("RemoveImages", params, "application/x-www-form-urlencoded")
|
|
295
295
|
response = json.loads(body)
|
|
296
296
|
if "Error" not in response:
|
|
297
297
|
return body
|
|
@@ -314,7 +314,7 @@ class KecClient(AbstractClient):
|
|
|
314
314
|
"""
|
|
315
315
|
try:
|
|
316
316
|
params = request._serialize()
|
|
317
|
-
body = self.
|
|
317
|
+
body = self.call_judge("ModifyNetworkInterfaceAttribute", params, "application/x-www-form-urlencoded")
|
|
318
318
|
response = json.loads(body)
|
|
319
319
|
if "Error" not in response:
|
|
320
320
|
return body
|
|
@@ -337,7 +337,7 @@ class KecClient(AbstractClient):
|
|
|
337
337
|
"""
|
|
338
338
|
try:
|
|
339
339
|
params = request._serialize()
|
|
340
|
-
body = self.
|
|
340
|
+
body = self.call_judge("AttachNetworkInterface", params, "application/x-www-form-urlencoded")
|
|
341
341
|
response = json.loads(body)
|
|
342
342
|
if "Error" not in response:
|
|
343
343
|
return body
|
|
@@ -360,7 +360,7 @@ class KecClient(AbstractClient):
|
|
|
360
360
|
"""
|
|
361
361
|
try:
|
|
362
362
|
params = request._serialize()
|
|
363
|
-
body = self.
|
|
363
|
+
body = self.call_judge("DetachNetworkInterface", params, "application/x-www-form-urlencoded")
|
|
364
364
|
response = json.loads(body)
|
|
365
365
|
if "Error" not in response:
|
|
366
366
|
return body
|
|
@@ -383,7 +383,7 @@ class KecClient(AbstractClient):
|
|
|
383
383
|
"""
|
|
384
384
|
try:
|
|
385
385
|
params = request._serialize()
|
|
386
|
-
body = self.
|
|
386
|
+
body = self.call_judge("DescribeLocalVolumes", params, "application/x-www-form-urlencoded")
|
|
387
387
|
response = json.loads(body)
|
|
388
388
|
if "Error" not in response:
|
|
389
389
|
return body
|
|
@@ -406,7 +406,7 @@ class KecClient(AbstractClient):
|
|
|
406
406
|
"""
|
|
407
407
|
try:
|
|
408
408
|
params = request._serialize()
|
|
409
|
-
body = self.
|
|
409
|
+
body = self.call_judge("CreateLocalVolumeSnapshot", params, "application/x-www-form-urlencoded")
|
|
410
410
|
response = json.loads(body)
|
|
411
411
|
if "Error" not in response:
|
|
412
412
|
return body
|
|
@@ -429,7 +429,7 @@ class KecClient(AbstractClient):
|
|
|
429
429
|
"""
|
|
430
430
|
try:
|
|
431
431
|
params = request._serialize()
|
|
432
|
-
body = self.
|
|
432
|
+
body = self.call_judge("DescribeLocalVolumeSnapshots", params, "application/x-www-form-urlencoded")
|
|
433
433
|
response = json.loads(body)
|
|
434
434
|
if "Error" not in response:
|
|
435
435
|
return body
|
|
@@ -452,7 +452,7 @@ class KecClient(AbstractClient):
|
|
|
452
452
|
"""
|
|
453
453
|
try:
|
|
454
454
|
params = request._serialize()
|
|
455
|
-
body = self.
|
|
455
|
+
body = self.call_judge("RollbackLocalVolume", params, "application/x-www-form-urlencoded")
|
|
456
456
|
response = json.loads(body)
|
|
457
457
|
if "Error" not in response:
|
|
458
458
|
return body
|
|
@@ -475,7 +475,7 @@ class KecClient(AbstractClient):
|
|
|
475
475
|
"""
|
|
476
476
|
try:
|
|
477
477
|
params = request._serialize()
|
|
478
|
-
body = self.
|
|
478
|
+
body = self.call_judge("DeleteLocalVolumeSnapshot", params, "application/x-www-form-urlencoded")
|
|
479
479
|
response = json.loads(body)
|
|
480
480
|
if "Error" not in response:
|
|
481
481
|
return body
|
|
@@ -498,7 +498,7 @@ class KecClient(AbstractClient):
|
|
|
498
498
|
"""
|
|
499
499
|
try:
|
|
500
500
|
params = request._serialize()
|
|
501
|
-
body = self.
|
|
501
|
+
body = self.call_judge("ModifyDataGuardGroups", params, "application/x-www-form-urlencoded")
|
|
502
502
|
response = json.loads(body)
|
|
503
503
|
if "Error" not in response:
|
|
504
504
|
return body
|
|
@@ -521,7 +521,7 @@ class KecClient(AbstractClient):
|
|
|
521
521
|
"""
|
|
522
522
|
try:
|
|
523
523
|
params = request._serialize()
|
|
524
|
-
body = self.
|
|
524
|
+
body = self.call_judge("DescribeDataGuardCapacity", params, "application/x-www-form-urlencoded")
|
|
525
525
|
response = json.loads(body)
|
|
526
526
|
if "Error" not in response:
|
|
527
527
|
return body
|
|
@@ -544,7 +544,7 @@ class KecClient(AbstractClient):
|
|
|
544
544
|
"""
|
|
545
545
|
try:
|
|
546
546
|
params = request._serialize()
|
|
547
|
-
body = self.
|
|
547
|
+
body = self.call_judge("CreateDataGuardGroup", params, "application/x-www-form-urlencoded")
|
|
548
548
|
response = json.loads(body)
|
|
549
549
|
if "Error" not in response:
|
|
550
550
|
return body
|
|
@@ -567,7 +567,7 @@ class KecClient(AbstractClient):
|
|
|
567
567
|
"""
|
|
568
568
|
try:
|
|
569
569
|
params = request._serialize()
|
|
570
|
-
body = self.
|
|
570
|
+
body = self.call_judge("DeleteDataGuardGroups", params, "application/x-www-form-urlencoded")
|
|
571
571
|
response = json.loads(body)
|
|
572
572
|
if "Error" not in response:
|
|
573
573
|
return body
|
|
@@ -590,7 +590,7 @@ class KecClient(AbstractClient):
|
|
|
590
590
|
"""
|
|
591
591
|
try:
|
|
592
592
|
params = request._serialize()
|
|
593
|
-
body = self.
|
|
593
|
+
body = self.call_judge("DescribeDataGuardGroup", params, "application/x-www-form-urlencoded")
|
|
594
594
|
response = json.loads(body)
|
|
595
595
|
if "Error" not in response:
|
|
596
596
|
return body
|
|
@@ -613,7 +613,7 @@ class KecClient(AbstractClient):
|
|
|
613
613
|
"""
|
|
614
614
|
try:
|
|
615
615
|
params = request._serialize()
|
|
616
|
-
body = self.
|
|
616
|
+
body = self.call_judge("RemoveVmFromDataGuard", params, "application/x-www-form-urlencoded")
|
|
617
617
|
response = json.loads(body)
|
|
618
618
|
if "Error" not in response:
|
|
619
619
|
return body
|
|
@@ -636,7 +636,7 @@ class KecClient(AbstractClient):
|
|
|
636
636
|
"""
|
|
637
637
|
try:
|
|
638
638
|
params = request._serialize()
|
|
639
|
-
body = self.
|
|
639
|
+
body = self.call_judge("CreateDedicatedHosts", params, "application/x-www-form-urlencoded")
|
|
640
640
|
response = json.loads(body)
|
|
641
641
|
if "Error" not in response:
|
|
642
642
|
return body
|
|
@@ -652,14 +652,14 @@ class KecClient(AbstractClient):
|
|
|
652
652
|
raise KsyunSDKException(e.message, e.message)
|
|
653
653
|
|
|
654
654
|
|
|
655
|
-
def
|
|
656
|
-
"""
|
|
657
|
-
:param request: Request instance for
|
|
658
|
-
:type request: :class:`ksyun.client.kec.v20160304.models.
|
|
655
|
+
def DeleteDedicatedHost(self, request):
|
|
656
|
+
"""删除专属宿主机
|
|
657
|
+
:param request: Request instance for DeleteDedicatedHost.
|
|
658
|
+
:type request: :class:`ksyun.client.kec.v20160304.models.DeleteDedicatedHostRequest`
|
|
659
659
|
"""
|
|
660
660
|
try:
|
|
661
661
|
params = request._serialize()
|
|
662
|
-
body = self.
|
|
662
|
+
body = self.call_judge("DeleteDedicatedHost", params, "application/x-www-form-urlencoded")
|
|
663
663
|
response = json.loads(body)
|
|
664
664
|
if "Error" not in response:
|
|
665
665
|
return body
|
|
@@ -682,7 +682,145 @@ class KecClient(AbstractClient):
|
|
|
682
682
|
"""
|
|
683
683
|
try:
|
|
684
684
|
params = request._serialize()
|
|
685
|
-
body = self.
|
|
685
|
+
body = self.call_judge("DescribeDedicatedHosts", params, "application/x-www-form-urlencoded")
|
|
686
|
+
response = json.loads(body)
|
|
687
|
+
if "Error" not in response:
|
|
688
|
+
return body
|
|
689
|
+
else:
|
|
690
|
+
code = response["Error"]["Code"]
|
|
691
|
+
message = response["Error"]["Message"]
|
|
692
|
+
req_id = response["RequestId"]
|
|
693
|
+
raise KsyunSDKException(code, message, req_id)
|
|
694
|
+
except Exception as e:
|
|
695
|
+
if isinstance(e, KsyunSDKException):
|
|
696
|
+
raise
|
|
697
|
+
else:
|
|
698
|
+
raise KsyunSDKException(e.message, e.message)
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
def CreateAutoSnapshotPolicy(self, request):
|
|
702
|
+
"""创建自动快照策略
|
|
703
|
+
:param request: Request instance for CreateAutoSnapshotPolicy.
|
|
704
|
+
:type request: :class:`ksyun.client.kec.v20160304.models.CreateAutoSnapshotPolicyRequest`
|
|
705
|
+
"""
|
|
706
|
+
try:
|
|
707
|
+
params = request._serialize()
|
|
708
|
+
body = self.call_judge("CreateAutoSnapshotPolicy", params, "application/x-www-form-urlencoded")
|
|
709
|
+
response = json.loads(body)
|
|
710
|
+
if "Error" not in response:
|
|
711
|
+
return body
|
|
712
|
+
else:
|
|
713
|
+
code = response["Error"]["Code"]
|
|
714
|
+
message = response["Error"]["Message"]
|
|
715
|
+
req_id = response["RequestId"]
|
|
716
|
+
raise KsyunSDKException(code, message, req_id)
|
|
717
|
+
except Exception as e:
|
|
718
|
+
if isinstance(e, KsyunSDKException):
|
|
719
|
+
raise
|
|
720
|
+
else:
|
|
721
|
+
raise KsyunSDKException(e.message, e.message)
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
def DeleteAutoSnapshotPolicy(self, request):
|
|
725
|
+
"""删除自动快照策略
|
|
726
|
+
:param request: Request instance for DeleteAutoSnapshotPolicy.
|
|
727
|
+
:type request: :class:`ksyun.client.kec.v20160304.models.DeleteAutoSnapshotPolicyRequest`
|
|
728
|
+
"""
|
|
729
|
+
try:
|
|
730
|
+
params = request._serialize()
|
|
731
|
+
body = self.call_judge("DeleteAutoSnapshotPolicy", params, "application/x-www-form-urlencoded")
|
|
732
|
+
response = json.loads(body)
|
|
733
|
+
if "Error" not in response:
|
|
734
|
+
return body
|
|
735
|
+
else:
|
|
736
|
+
code = response["Error"]["Code"]
|
|
737
|
+
message = response["Error"]["Message"]
|
|
738
|
+
req_id = response["RequestId"]
|
|
739
|
+
raise KsyunSDKException(code, message, req_id)
|
|
740
|
+
except Exception as e:
|
|
741
|
+
if isinstance(e, KsyunSDKException):
|
|
742
|
+
raise
|
|
743
|
+
else:
|
|
744
|
+
raise KsyunSDKException(e.message, e.message)
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
def ModifyAutoSnapshotPolicy(self, request):
|
|
748
|
+
"""修改自动快照策略
|
|
749
|
+
:param request: Request instance for ModifyAutoSnapshotPolicy.
|
|
750
|
+
:type request: :class:`ksyun.client.kec.v20160304.models.ModifyAutoSnapshotPolicyRequest`
|
|
751
|
+
"""
|
|
752
|
+
try:
|
|
753
|
+
params = request._serialize()
|
|
754
|
+
body = self.call_judge("ModifyAutoSnapshotPolicy", params, "application/x-www-form-urlencoded")
|
|
755
|
+
response = json.loads(body)
|
|
756
|
+
if "Error" not in response:
|
|
757
|
+
return body
|
|
758
|
+
else:
|
|
759
|
+
code = response["Error"]["Code"]
|
|
760
|
+
message = response["Error"]["Message"]
|
|
761
|
+
req_id = response["RequestId"]
|
|
762
|
+
raise KsyunSDKException(code, message, req_id)
|
|
763
|
+
except Exception as e:
|
|
764
|
+
if isinstance(e, KsyunSDKException):
|
|
765
|
+
raise
|
|
766
|
+
else:
|
|
767
|
+
raise KsyunSDKException(e.message, e.message)
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
def DescribeAutoSnapshotPolicy(self, request):
|
|
771
|
+
"""查询自动快照策略
|
|
772
|
+
:param request: Request instance for DescribeAutoSnapshotPolicy.
|
|
773
|
+
:type request: :class:`ksyun.client.kec.v20160304.models.DescribeAutoSnapshotPolicyRequest`
|
|
774
|
+
"""
|
|
775
|
+
try:
|
|
776
|
+
params = request._serialize()
|
|
777
|
+
body = self.call_judge("DescribeAutoSnapshotPolicy", params, "application/x-www-form-urlencoded")
|
|
778
|
+
response = json.loads(body)
|
|
779
|
+
if "Error" not in response:
|
|
780
|
+
return body
|
|
781
|
+
else:
|
|
782
|
+
code = response["Error"]["Code"]
|
|
783
|
+
message = response["Error"]["Message"]
|
|
784
|
+
req_id = response["RequestId"]
|
|
785
|
+
raise KsyunSDKException(code, message, req_id)
|
|
786
|
+
except Exception as e:
|
|
787
|
+
if isinstance(e, KsyunSDKException):
|
|
788
|
+
raise
|
|
789
|
+
else:
|
|
790
|
+
raise KsyunSDKException(e.message, e.message)
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
def ApplyAutoSnapshotPolicy(self, request):
|
|
794
|
+
"""执行自动快照策略
|
|
795
|
+
:param request: Request instance for ApplyAutoSnapshotPolicy.
|
|
796
|
+
:type request: :class:`ksyun.client.kec.v20160304.models.ApplyAutoSnapshotPolicyRequest`
|
|
797
|
+
"""
|
|
798
|
+
try:
|
|
799
|
+
params = request._serialize()
|
|
800
|
+
body = self.call_judge("ApplyAutoSnapshotPolicy", params, "application/x-www-form-urlencoded")
|
|
801
|
+
response = json.loads(body)
|
|
802
|
+
if "Error" not in response:
|
|
803
|
+
return body
|
|
804
|
+
else:
|
|
805
|
+
code = response["Error"]["Code"]
|
|
806
|
+
message = response["Error"]["Message"]
|
|
807
|
+
req_id = response["RequestId"]
|
|
808
|
+
raise KsyunSDKException(code, message, req_id)
|
|
809
|
+
except Exception as e:
|
|
810
|
+
if isinstance(e, KsyunSDKException):
|
|
811
|
+
raise
|
|
812
|
+
else:
|
|
813
|
+
raise KsyunSDKException(e.message, e.message)
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
def CancelAutoSnapshotPolicy(self, request):
|
|
817
|
+
"""消执行自动快照策略
|
|
818
|
+
:param request: Request instance for CancelAutoSnapshotPolicy.
|
|
819
|
+
:type request: :class:`ksyun.client.kec.v20160304.models.CancelAutoSnapshotPolicyRequest`
|
|
820
|
+
"""
|
|
821
|
+
try:
|
|
822
|
+
params = request._serialize()
|
|
823
|
+
body = self.call_judge("CancelAutoSnapshotPolicy", params, "application/x-www-form-urlencoded")
|
|
686
824
|
response = json.loads(body)
|
|
687
825
|
if "Error" not in response:
|
|
688
826
|
return body
|
|
@@ -705,7 +843,7 @@ class KecClient(AbstractClient):
|
|
|
705
843
|
"""
|
|
706
844
|
try:
|
|
707
845
|
params = request._serialize()
|
|
708
|
-
body = self.
|
|
846
|
+
body = self.call_judge("DescribeScalingConfiguration", params, "application/x-www-form-urlencoded")
|
|
709
847
|
response = json.loads(body)
|
|
710
848
|
if "Error" not in response:
|
|
711
849
|
return body
|
|
@@ -728,7 +866,7 @@ class KecClient(AbstractClient):
|
|
|
728
866
|
"""
|
|
729
867
|
try:
|
|
730
868
|
params = request._serialize()
|
|
731
|
-
body = self.
|
|
869
|
+
body = self.call_judge("CreateScalingConfiguration", params, "application/x-www-form-urlencoded")
|
|
732
870
|
response = json.loads(body)
|
|
733
871
|
if "Error" not in response:
|
|
734
872
|
return body
|
|
@@ -751,7 +889,7 @@ class KecClient(AbstractClient):
|
|
|
751
889
|
"""
|
|
752
890
|
try:
|
|
753
891
|
params = request._serialize()
|
|
754
|
-
body = self.
|
|
892
|
+
body = self.call_judge("DeleteScalingConfiguration", params, "application/x-www-form-urlencoded")
|
|
755
893
|
response = json.loads(body)
|
|
756
894
|
if "Error" not in response:
|
|
757
895
|
return body
|
|
@@ -774,7 +912,7 @@ class KecClient(AbstractClient):
|
|
|
774
912
|
"""
|
|
775
913
|
try:
|
|
776
914
|
params = request._serialize()
|
|
777
|
-
body = self.
|
|
915
|
+
body = self.call_judge("CreateScalingGroup", params, "application/x-www-form-urlencoded")
|
|
778
916
|
response = json.loads(body)
|
|
779
917
|
if "Error" not in response:
|
|
780
918
|
return body
|
|
@@ -797,7 +935,7 @@ class KecClient(AbstractClient):
|
|
|
797
935
|
"""
|
|
798
936
|
try:
|
|
799
937
|
params = request._serialize()
|
|
800
|
-
body = self.
|
|
938
|
+
body = self.call_judge("DescribeScalingGroup", params, "application/x-www-form-urlencoded")
|
|
801
939
|
response = json.loads(body)
|
|
802
940
|
if "Error" not in response:
|
|
803
941
|
return body
|
|
@@ -820,7 +958,7 @@ class KecClient(AbstractClient):
|
|
|
820
958
|
"""
|
|
821
959
|
try:
|
|
822
960
|
params = request._serialize()
|
|
823
|
-
body = self.
|
|
961
|
+
body = self.call_judge("ModifyScalingGroup", params, "application/x-www-form-urlencoded")
|
|
824
962
|
response = json.loads(body)
|
|
825
963
|
if "Error" not in response:
|
|
826
964
|
return body
|
|
@@ -843,7 +981,7 @@ class KecClient(AbstractClient):
|
|
|
843
981
|
"""
|
|
844
982
|
try:
|
|
845
983
|
params = request._serialize()
|
|
846
|
-
body = self.
|
|
984
|
+
body = self.call_judge("SetKvmProtectedDetach", params, "application/x-www-form-urlencoded")
|
|
847
985
|
response = json.loads(body)
|
|
848
986
|
if "Error" not in response:
|
|
849
987
|
return body
|
|
@@ -866,7 +1004,7 @@ class KecClient(AbstractClient):
|
|
|
866
1004
|
"""
|
|
867
1005
|
try:
|
|
868
1006
|
params = request._serialize()
|
|
869
|
-
body = self.
|
|
1007
|
+
body = self.call_judge("DescribeScalingInstance", params, "application/x-www-form-urlencoded")
|
|
870
1008
|
response = json.loads(body)
|
|
871
1009
|
if "Error" not in response:
|
|
872
1010
|
return body
|
|
@@ -889,7 +1027,7 @@ class KecClient(AbstractClient):
|
|
|
889
1027
|
"""
|
|
890
1028
|
try:
|
|
891
1029
|
params = request._serialize()
|
|
892
|
-
body = self.
|
|
1030
|
+
body = self.call_judge("AttachInstance", params, "application/x-www-form-urlencoded")
|
|
893
1031
|
response = json.loads(body)
|
|
894
1032
|
if "Error" not in response:
|
|
895
1033
|
return body
|
|
@@ -912,7 +1050,7 @@ class KecClient(AbstractClient):
|
|
|
912
1050
|
"""
|
|
913
1051
|
try:
|
|
914
1052
|
params = request._serialize()
|
|
915
|
-
body = self.
|
|
1053
|
+
body = self.call_judge("DetachInstance", params, "application/x-www-form-urlencoded")
|
|
916
1054
|
response = json.loads(body)
|
|
917
1055
|
if "Error" not in response:
|
|
918
1056
|
return body
|
|
@@ -935,7 +1073,7 @@ class KecClient(AbstractClient):
|
|
|
935
1073
|
"""
|
|
936
1074
|
try:
|
|
937
1075
|
params = request._serialize()
|
|
938
|
-
body = self.
|
|
1076
|
+
body = self.call_judge("DescribeScalingActivity", params, "application/x-www-form-urlencoded")
|
|
939
1077
|
response = json.loads(body)
|
|
940
1078
|
if "Error" not in response:
|
|
941
1079
|
return body
|
|
@@ -958,7 +1096,7 @@ class KecClient(AbstractClient):
|
|
|
958
1096
|
"""
|
|
959
1097
|
try:
|
|
960
1098
|
params = request._serialize()
|
|
961
|
-
body = self.
|
|
1099
|
+
body = self.call_judge("DeleteScalingGroup", params, "application/x-www-form-urlencoded")
|
|
962
1100
|
response = json.loads(body)
|
|
963
1101
|
if "Error" not in response:
|
|
964
1102
|
return body
|
|
@@ -981,7 +1119,7 @@ class KecClient(AbstractClient):
|
|
|
981
1119
|
"""
|
|
982
1120
|
try:
|
|
983
1121
|
params = request._serialize()
|
|
984
|
-
body = self.
|
|
1122
|
+
body = self.call_judge("DisableScalingGroup", params, "application/x-www-form-urlencoded")
|
|
985
1123
|
response = json.loads(body)
|
|
986
1124
|
if "Error" not in response:
|
|
987
1125
|
return body
|
|
@@ -1004,7 +1142,7 @@ class KecClient(AbstractClient):
|
|
|
1004
1142
|
"""
|
|
1005
1143
|
try:
|
|
1006
1144
|
params = request._serialize()
|
|
1007
|
-
body = self.
|
|
1145
|
+
body = self.call_judge("EnableScalingGroup", params, "application/x-www-form-urlencoded")
|
|
1008
1146
|
response = json.loads(body)
|
|
1009
1147
|
if "Error" not in response:
|
|
1010
1148
|
return body
|
|
@@ -1027,7 +1165,7 @@ class KecClient(AbstractClient):
|
|
|
1027
1165
|
"""
|
|
1028
1166
|
try:
|
|
1029
1167
|
params = request._serialize()
|
|
1030
|
-
body = self.
|
|
1168
|
+
body = self.call_judge("DescribeScalingNotification", params, "application/x-www-form-urlencoded")
|
|
1031
1169
|
response = json.loads(body)
|
|
1032
1170
|
if "Error" not in response:
|
|
1033
1171
|
return body
|
|
@@ -1050,7 +1188,7 @@ class KecClient(AbstractClient):
|
|
|
1050
1188
|
"""
|
|
1051
1189
|
try:
|
|
1052
1190
|
params = request._serialize()
|
|
1053
|
-
body = self.
|
|
1191
|
+
body = self.call_judge("CreateScalingNotification", params, "application/x-www-form-urlencoded")
|
|
1054
1192
|
response = json.loads(body)
|
|
1055
1193
|
if "Error" not in response:
|
|
1056
1194
|
return body
|
|
@@ -1073,7 +1211,7 @@ class KecClient(AbstractClient):
|
|
|
1073
1211
|
"""
|
|
1074
1212
|
try:
|
|
1075
1213
|
params = request._serialize()
|
|
1076
|
-
body = self.
|
|
1214
|
+
body = self.call_judge("ModifyScalingNotification", params, "application/x-www-form-urlencoded")
|
|
1077
1215
|
response = json.loads(body)
|
|
1078
1216
|
if "Error" not in response:
|
|
1079
1217
|
return body
|
|
@@ -1096,7 +1234,7 @@ class KecClient(AbstractClient):
|
|
|
1096
1234
|
"""
|
|
1097
1235
|
try:
|
|
1098
1236
|
params = request._serialize()
|
|
1099
|
-
body = self.
|
|
1237
|
+
body = self.call_judge("CreateScheduledTask", params, "application/x-www-form-urlencoded")
|
|
1100
1238
|
response = json.loads(body)
|
|
1101
1239
|
if "Error" not in response:
|
|
1102
1240
|
return body
|
|
@@ -1119,7 +1257,7 @@ class KecClient(AbstractClient):
|
|
|
1119
1257
|
"""
|
|
1120
1258
|
try:
|
|
1121
1259
|
params = request._serialize()
|
|
1122
|
-
body = self.
|
|
1260
|
+
body = self.call_judge("DescribeScheduledTask", params, "application/x-www-form-urlencoded")
|
|
1123
1261
|
response = json.loads(body)
|
|
1124
1262
|
if "Error" not in response:
|
|
1125
1263
|
return body
|
|
@@ -1142,7 +1280,7 @@ class KecClient(AbstractClient):
|
|
|
1142
1280
|
"""
|
|
1143
1281
|
try:
|
|
1144
1282
|
params = request._serialize()
|
|
1145
|
-
body = self.
|
|
1283
|
+
body = self.call_judge("ModifyScheduledTask", params, "application/x-www-form-urlencoded")
|
|
1146
1284
|
response = json.loads(body)
|
|
1147
1285
|
if "Error" not in response:
|
|
1148
1286
|
return body
|
|
@@ -1165,7 +1303,7 @@ class KecClient(AbstractClient):
|
|
|
1165
1303
|
"""
|
|
1166
1304
|
try:
|
|
1167
1305
|
params = request._serialize()
|
|
1168
|
-
body = self.
|
|
1306
|
+
body = self.call_judge("DeleteScheduledTask", params, "application/x-www-form-urlencoded")
|
|
1169
1307
|
response = json.loads(body)
|
|
1170
1308
|
if "Error" not in response:
|
|
1171
1309
|
return body
|
|
@@ -1182,13 +1320,13 @@ class KecClient(AbstractClient):
|
|
|
1182
1320
|
|
|
1183
1321
|
|
|
1184
1322
|
def CreateScalingPolicy(self, request):
|
|
1185
|
-
"""
|
|
1323
|
+
"""创建自定义策略
|
|
1186
1324
|
:param request: Request instance for CreateScalingPolicy.
|
|
1187
1325
|
:type request: :class:`ksyun.client.kec.v20160304.models.CreateScalingPolicyRequest`
|
|
1188
1326
|
"""
|
|
1189
1327
|
try:
|
|
1190
1328
|
params = request._serialize()
|
|
1191
|
-
body = self.
|
|
1329
|
+
body = self.call_judge("CreateScalingPolicy", params, "application/x-www-form-urlencoded")
|
|
1192
1330
|
response = json.loads(body)
|
|
1193
1331
|
if "Error" not in response:
|
|
1194
1332
|
return body
|
|
@@ -1205,13 +1343,13 @@ class KecClient(AbstractClient):
|
|
|
1205
1343
|
|
|
1206
1344
|
|
|
1207
1345
|
def DescribeScalingPolicy(self, request):
|
|
1208
|
-
"""
|
|
1346
|
+
"""查询自定义策略
|
|
1209
1347
|
:param request: Request instance for DescribeScalingPolicy.
|
|
1210
1348
|
:type request: :class:`ksyun.client.kec.v20160304.models.DescribeScalingPolicyRequest`
|
|
1211
1349
|
"""
|
|
1212
1350
|
try:
|
|
1213
1351
|
params = request._serialize()
|
|
1214
|
-
body = self.
|
|
1352
|
+
body = self.call_judge("DescribeScalingPolicy", params, "application/x-www-form-urlencoded")
|
|
1215
1353
|
response = json.loads(body)
|
|
1216
1354
|
if "Error" not in response:
|
|
1217
1355
|
return body
|
|
@@ -1228,13 +1366,13 @@ class KecClient(AbstractClient):
|
|
|
1228
1366
|
|
|
1229
1367
|
|
|
1230
1368
|
def ModifyScalingPolicy(self, request):
|
|
1231
|
-
"""
|
|
1369
|
+
"""修改自定义策略
|
|
1232
1370
|
:param request: Request instance for ModifyScalingPolicy.
|
|
1233
1371
|
:type request: :class:`ksyun.client.kec.v20160304.models.ModifyScalingPolicyRequest`
|
|
1234
1372
|
"""
|
|
1235
1373
|
try:
|
|
1236
1374
|
params = request._serialize()
|
|
1237
|
-
body = self.
|
|
1375
|
+
body = self.call_judge("ModifyScalingPolicy", params, "application/x-www-form-urlencoded")
|
|
1238
1376
|
response = json.loads(body)
|
|
1239
1377
|
if "Error" not in response:
|
|
1240
1378
|
return body
|
|
@@ -1251,13 +1389,13 @@ class KecClient(AbstractClient):
|
|
|
1251
1389
|
|
|
1252
1390
|
|
|
1253
1391
|
def DeleteScalingPolicy(self, request):
|
|
1254
|
-
"""
|
|
1392
|
+
"""删除自定义策略
|
|
1255
1393
|
:param request: Request instance for DeleteScalingPolicy.
|
|
1256
1394
|
:type request: :class:`ksyun.client.kec.v20160304.models.DeleteScalingPolicyRequest`
|
|
1257
1395
|
"""
|
|
1258
1396
|
try:
|
|
1259
1397
|
params = request._serialize()
|
|
1260
|
-
body = self.
|
|
1398
|
+
body = self.call_judge("DeleteScalingPolicy", params, "application/x-www-form-urlencoded")
|
|
1261
1399
|
response = json.loads(body)
|
|
1262
1400
|
if "Error" not in response:
|
|
1263
1401
|
return body
|
|
@@ -1274,13 +1412,13 @@ class KecClient(AbstractClient):
|
|
|
1274
1412
|
|
|
1275
1413
|
|
|
1276
1414
|
def ImportImage(self, request):
|
|
1277
|
-
"""
|
|
1415
|
+
"""镜像导入接口
|
|
1278
1416
|
:param request: Request instance for ImportImage.
|
|
1279
1417
|
:type request: :class:`ksyun.client.kec.v20160304.models.ImportImageRequest`
|
|
1280
1418
|
"""
|
|
1281
1419
|
try:
|
|
1282
1420
|
params = request._serialize()
|
|
1283
|
-
body = self.
|
|
1421
|
+
body = self.call_judge("ImportImage", params, "application/x-www-form-urlencoded")
|
|
1284
1422
|
response = json.loads(body)
|
|
1285
1423
|
if "Error" not in response:
|
|
1286
1424
|
return body
|
|
@@ -1297,13 +1435,13 @@ class KecClient(AbstractClient):
|
|
|
1297
1435
|
|
|
1298
1436
|
|
|
1299
1437
|
def CopyImage(self, request):
|
|
1300
|
-
"""
|
|
1438
|
+
"""镜像复制接口
|
|
1301
1439
|
:param request: Request instance for CopyImage.
|
|
1302
1440
|
:type request: :class:`ksyun.client.kec.v20160304.models.CopyImageRequest`
|
|
1303
1441
|
"""
|
|
1304
1442
|
try:
|
|
1305
1443
|
params = request._serialize()
|
|
1306
|
-
body = self.
|
|
1444
|
+
body = self.call_judge("CopyImage", params, "application/x-www-form-urlencoded")
|
|
1307
1445
|
response = json.loads(body)
|
|
1308
1446
|
if "Error" not in response:
|
|
1309
1447
|
return body
|
|
@@ -1326,7 +1464,7 @@ class KecClient(AbstractClient):
|
|
|
1326
1464
|
"""
|
|
1327
1465
|
try:
|
|
1328
1466
|
params = request._serialize()
|
|
1329
|
-
body = self.
|
|
1467
|
+
body = self.call_judge("ModifyImageSharePermission", params, "application/x-www-form-urlencoded")
|
|
1330
1468
|
response = json.loads(body)
|
|
1331
1469
|
if "Error" not in response:
|
|
1332
1470
|
return body
|
|
@@ -1349,7 +1487,7 @@ class KecClient(AbstractClient):
|
|
|
1349
1487
|
"""
|
|
1350
1488
|
try:
|
|
1351
1489
|
params = request._serialize()
|
|
1352
|
-
body = self.
|
|
1490
|
+
body = self.call_judge("DescribeImageSharePermission", params, "application/x-www-form-urlencoded")
|
|
1353
1491
|
response = json.loads(body)
|
|
1354
1492
|
if "Error" not in response:
|
|
1355
1493
|
return body
|
|
@@ -1372,7 +1510,7 @@ class KecClient(AbstractClient):
|
|
|
1372
1510
|
"""
|
|
1373
1511
|
try:
|
|
1374
1512
|
params = request._serialize()
|
|
1375
|
-
body = self.
|
|
1513
|
+
body = self.call_judge("DescribeRegions", params, "application/x-www-form-urlencoded")
|
|
1376
1514
|
response = json.loads(body)
|
|
1377
1515
|
if "Error" not in response:
|
|
1378
1516
|
return body
|
|
@@ -1395,7 +1533,7 @@ class KecClient(AbstractClient):
|
|
|
1395
1533
|
"""
|
|
1396
1534
|
try:
|
|
1397
1535
|
params = request._serialize()
|
|
1398
|
-
body = self.
|
|
1536
|
+
body = self.call_judge("AttachKey", params, "application/x-www-form-urlencoded")
|
|
1399
1537
|
response = json.loads(body)
|
|
1400
1538
|
if "Error" not in response:
|
|
1401
1539
|
return body
|
|
@@ -1418,7 +1556,7 @@ class KecClient(AbstractClient):
|
|
|
1418
1556
|
"""
|
|
1419
1557
|
try:
|
|
1420
1558
|
params = request._serialize()
|
|
1421
|
-
body = self.
|
|
1559
|
+
body = self.call_judge("DetachKey", params, "application/x-www-form-urlencoded")
|
|
1422
1560
|
response = json.loads(body)
|
|
1423
1561
|
if "Error" not in response:
|
|
1424
1562
|
return body
|
|
@@ -1441,7 +1579,7 @@ class KecClient(AbstractClient):
|
|
|
1441
1579
|
"""
|
|
1442
1580
|
try:
|
|
1443
1581
|
params = request._serialize()
|
|
1444
|
-
body = self.
|
|
1582
|
+
body = self.call_judge("DescribeAvailabilityZones", params, "application/x-www-form-urlencoded")
|
|
1445
1583
|
response = json.loads(body)
|
|
1446
1584
|
if "Error" not in response:
|
|
1447
1585
|
return body
|
|
@@ -1464,7 +1602,7 @@ class KecClient(AbstractClient):
|
|
|
1464
1602
|
"""
|
|
1465
1603
|
try:
|
|
1466
1604
|
params = request._serialize()
|
|
1467
|
-
body = self.
|
|
1605
|
+
body = self.call_judge("DescribeInstanceTypeConfigs", params, "application/x-www-form-urlencoded")
|
|
1468
1606
|
response = json.loads(body)
|
|
1469
1607
|
if "Error" not in response:
|
|
1470
1608
|
return body
|
|
@@ -1487,7 +1625,7 @@ class KecClient(AbstractClient):
|
|
|
1487
1625
|
"""
|
|
1488
1626
|
try:
|
|
1489
1627
|
params = request._serialize()
|
|
1490
|
-
body = self.
|
|
1628
|
+
body = self.call_judge("DescribeInstanceFamilys", params, "application/x-www-form-urlencoded")
|
|
1491
1629
|
response = json.loads(body)
|
|
1492
1630
|
if "Error" not in response:
|
|
1493
1631
|
return body
|
|
@@ -1510,7 +1648,7 @@ class KecClient(AbstractClient):
|
|
|
1510
1648
|
"""
|
|
1511
1649
|
try:
|
|
1512
1650
|
params = request._serialize()
|
|
1513
|
-
body = self.
|
|
1651
|
+
body = self.call_judge("AddVmIntoDataGuard", params, "application/x-www-form-urlencoded")
|
|
1514
1652
|
response = json.loads(body)
|
|
1515
1653
|
if "Error" not in response:
|
|
1516
1654
|
return body
|
|
@@ -1533,7 +1671,7 @@ class KecClient(AbstractClient):
|
|
|
1533
1671
|
"""
|
|
1534
1672
|
try:
|
|
1535
1673
|
params = request._serialize()
|
|
1536
|
-
body = self.
|
|
1674
|
+
body = self.call_judge("CreateFileSystem", params, "application/x-www-form-urlencoded")
|
|
1537
1675
|
response = json.loads(body)
|
|
1538
1676
|
if "Error" not in response:
|
|
1539
1677
|
return body
|
|
@@ -1556,7 +1694,7 @@ class KecClient(AbstractClient):
|
|
|
1556
1694
|
"""
|
|
1557
1695
|
try:
|
|
1558
1696
|
params = request._serialize()
|
|
1559
|
-
body = self.
|
|
1697
|
+
body = self.call_judge("DeleteFileSystem", params, "application/x-www-form-urlencoded")
|
|
1560
1698
|
response = json.loads(body)
|
|
1561
1699
|
if "Error" not in response:
|
|
1562
1700
|
return body
|
|
@@ -1579,7 +1717,7 @@ class KecClient(AbstractClient):
|
|
|
1579
1717
|
"""
|
|
1580
1718
|
try:
|
|
1581
1719
|
params = request._serialize()
|
|
1582
|
-
body = self.
|
|
1720
|
+
body = self.call_judge("DescribeFileSystems", params, "application/x-www-form-urlencoded")
|
|
1583
1721
|
response = json.loads(body)
|
|
1584
1722
|
if "Error" not in response:
|
|
1585
1723
|
return body
|
|
@@ -1602,7 +1740,7 @@ class KecClient(AbstractClient):
|
|
|
1602
1740
|
"""
|
|
1603
1741
|
try:
|
|
1604
1742
|
params = request._serialize()
|
|
1605
|
-
body = self.
|
|
1743
|
+
body = self.call_judge("ModifyFileSystem", params, "application/x-www-form-urlencoded")
|
|
1606
1744
|
response = json.loads(body)
|
|
1607
1745
|
if "Error" not in response:
|
|
1608
1746
|
return body
|
|
@@ -1625,7 +1763,7 @@ class KecClient(AbstractClient):
|
|
|
1625
1763
|
"""
|
|
1626
1764
|
try:
|
|
1627
1765
|
params = request._serialize()
|
|
1628
|
-
body = self.
|
|
1766
|
+
body = self.call_judge("CreateMountTarget", params, "application/x-www-form-urlencoded")
|
|
1629
1767
|
response = json.loads(body)
|
|
1630
1768
|
if "Error" not in response:
|
|
1631
1769
|
return body
|
|
@@ -1648,7 +1786,7 @@ class KecClient(AbstractClient):
|
|
|
1648
1786
|
"""
|
|
1649
1787
|
try:
|
|
1650
1788
|
params = request._serialize()
|
|
1651
|
-
body = self.
|
|
1789
|
+
body = self.call_judge("DeleteMountTarget", params, "application/x-www-form-urlencoded")
|
|
1652
1790
|
response = json.loads(body)
|
|
1653
1791
|
if "Error" not in response:
|
|
1654
1792
|
return body
|
|
@@ -1671,7 +1809,7 @@ class KecClient(AbstractClient):
|
|
|
1671
1809
|
"""
|
|
1672
1810
|
try:
|
|
1673
1811
|
params = request._serialize()
|
|
1674
|
-
body = self.
|
|
1812
|
+
body = self.call_judge("DescribeMountTargets", params, "application/x-www-form-urlencoded")
|
|
1675
1813
|
response = json.loads(body)
|
|
1676
1814
|
if "Error" not in response:
|
|
1677
1815
|
return body
|
|
@@ -1694,7 +1832,7 @@ class KecClient(AbstractClient):
|
|
|
1694
1832
|
"""
|
|
1695
1833
|
try:
|
|
1696
1834
|
params = request._serialize()
|
|
1697
|
-
body = self.
|
|
1835
|
+
body = self.call_judge("CreateModel", params, "application/x-www-form-urlencoded")
|
|
1698
1836
|
response = json.loads(body)
|
|
1699
1837
|
if "Error" not in response:
|
|
1700
1838
|
return body
|
|
@@ -1717,7 +1855,7 @@ class KecClient(AbstractClient):
|
|
|
1717
1855
|
"""
|
|
1718
1856
|
try:
|
|
1719
1857
|
params = request._serialize()
|
|
1720
|
-
body = self.
|
|
1858
|
+
body = self.call_judge("TerminateModels", params, "application/x-www-form-urlencoded")
|
|
1721
1859
|
response = json.loads(body)
|
|
1722
1860
|
if "Error" not in response:
|
|
1723
1861
|
return body
|
|
@@ -1740,7 +1878,7 @@ class KecClient(AbstractClient):
|
|
|
1740
1878
|
"""
|
|
1741
1879
|
try:
|
|
1742
1880
|
params = request._serialize()
|
|
1743
|
-
body = self.
|
|
1881
|
+
body = self.call_judge("DescribeModels", params, "application/x-www-form-urlencoded")
|
|
1744
1882
|
response = json.loads(body)
|
|
1745
1883
|
if "Error" not in response:
|
|
1746
1884
|
return body
|
|
@@ -1763,7 +1901,7 @@ class KecClient(AbstractClient):
|
|
|
1763
1901
|
"""
|
|
1764
1902
|
try:
|
|
1765
1903
|
params = request._serialize()
|
|
1766
|
-
body = self.
|
|
1904
|
+
body = self.call_judge("DescribeDedicatedCluster", params, "application/x-www-form-urlencoded")
|
|
1767
1905
|
response = json.loads(body)
|
|
1768
1906
|
if "Error" not in response:
|
|
1769
1907
|
return body
|
|
@@ -1780,13 +1918,13 @@ class KecClient(AbstractClient):
|
|
|
1780
1918
|
|
|
1781
1919
|
|
|
1782
1920
|
def CreateDedicatedCluster(self, request):
|
|
1783
|
-
"""
|
|
1921
|
+
"""创建集群接口
|
|
1784
1922
|
:param request: Request instance for CreateDedicatedCluster.
|
|
1785
1923
|
:type request: :class:`ksyun.client.kec.v20160304.models.CreateDedicatedClusterRequest`
|
|
1786
1924
|
"""
|
|
1787
1925
|
try:
|
|
1788
1926
|
params = request._serialize()
|
|
1789
|
-
body = self.
|
|
1927
|
+
body = self.call_judge("CreateDedicatedCluster", params, "application/x-www-form-urlencoded")
|
|
1790
1928
|
response = json.loads(body)
|
|
1791
1929
|
if "Error" not in response:
|
|
1792
1930
|
return body
|
|
@@ -1803,13 +1941,13 @@ class KecClient(AbstractClient):
|
|
|
1803
1941
|
|
|
1804
1942
|
|
|
1805
1943
|
def DeleteDedicatedCluster(self, request):
|
|
1806
|
-
"""
|
|
1944
|
+
"""删除集群接口
|
|
1807
1945
|
:param request: Request instance for DeleteDedicatedCluster.
|
|
1808
1946
|
:type request: :class:`ksyun.client.kec.v20160304.models.DeleteDedicatedClusterRequest`
|
|
1809
1947
|
"""
|
|
1810
1948
|
try:
|
|
1811
1949
|
params = request._serialize()
|
|
1812
|
-
body = self.
|
|
1950
|
+
body = self.call_judge("DeleteDedicatedCluster", params, "application/x-www-form-urlencoded")
|
|
1813
1951
|
response = json.loads(body)
|
|
1814
1952
|
if "Error" not in response:
|
|
1815
1953
|
return body
|
|
@@ -1832,7 +1970,7 @@ class KecClient(AbstractClient):
|
|
|
1832
1970
|
"""
|
|
1833
1971
|
try:
|
|
1834
1972
|
params = request._serialize()
|
|
1835
|
-
body = self.
|
|
1973
|
+
body = self.call_judge("SetvCPU", params, "application/x-www-form-urlencoded")
|
|
1836
1974
|
response = json.loads(body)
|
|
1837
1975
|
if "Error" not in response:
|
|
1838
1976
|
return body
|
|
@@ -1855,7 +1993,7 @@ class KecClient(AbstractClient):
|
|
|
1855
1993
|
"""
|
|
1856
1994
|
try:
|
|
1857
1995
|
params = request._serialize()
|
|
1858
|
-
body = self.
|
|
1996
|
+
body = self.call_judge("DedicatedHostMigrate", params, "application/x-www-form-urlencoded")
|
|
1859
1997
|
response = json.loads(body)
|
|
1860
1998
|
if "Error" not in response:
|
|
1861
1999
|
return body
|
|
@@ -1878,7 +2016,30 @@ class KecClient(AbstractClient):
|
|
|
1878
2016
|
"""
|
|
1879
2017
|
try:
|
|
1880
2018
|
params = request._serialize()
|
|
1881
|
-
body = self.
|
|
2019
|
+
body = self.call_judge("ModifyDedicatedClusterName", params, "application/x-www-form-urlencoded")
|
|
2020
|
+
response = json.loads(body)
|
|
2021
|
+
if "Error" not in response:
|
|
2022
|
+
return body
|
|
2023
|
+
else:
|
|
2024
|
+
code = response["Error"]["Code"]
|
|
2025
|
+
message = response["Error"]["Message"]
|
|
2026
|
+
req_id = response["RequestId"]
|
|
2027
|
+
raise KsyunSDKException(code, message, req_id)
|
|
2028
|
+
except Exception as e:
|
|
2029
|
+
if isinstance(e, KsyunSDKException):
|
|
2030
|
+
raise
|
|
2031
|
+
else:
|
|
2032
|
+
raise KsyunSDKException(e.message, e.message)
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
def InstanceMigrate(self, request):
|
|
2036
|
+
"""专属虚机迁移
|
|
2037
|
+
:param request: Request instance for InstanceMigrate.
|
|
2038
|
+
:type request: :class:`ksyun.client.kec.v20160304.models.InstanceMigrateRequest`
|
|
2039
|
+
"""
|
|
2040
|
+
try:
|
|
2041
|
+
params = request._serialize()
|
|
2042
|
+
body = self.call_judge("InstanceMigrate", params, "application/x-www-form-urlencoded")
|
|
1882
2043
|
response = json.loads(body)
|
|
1883
2044
|
if "Error" not in response:
|
|
1884
2045
|
return body
|
|
@@ -1901,7 +2062,30 @@ class KecClient(AbstractClient):
|
|
|
1901
2062
|
"""
|
|
1902
2063
|
try:
|
|
1903
2064
|
params = request._serialize()
|
|
1904
|
-
body = self.
|
|
2065
|
+
body = self.call_judge("ModifyInstanceAutoDeleteTime", params, "application/x-www-form-urlencoded")
|
|
2066
|
+
response = json.loads(body)
|
|
2067
|
+
if "Error" not in response:
|
|
2068
|
+
return body
|
|
2069
|
+
else:
|
|
2070
|
+
code = response["Error"]["Code"]
|
|
2071
|
+
message = response["Error"]["Message"]
|
|
2072
|
+
req_id = response["RequestId"]
|
|
2073
|
+
raise KsyunSDKException(code, message, req_id)
|
|
2074
|
+
except Exception as e:
|
|
2075
|
+
if isinstance(e, KsyunSDKException):
|
|
2076
|
+
raise
|
|
2077
|
+
else:
|
|
2078
|
+
raise KsyunSDKException(e.message, e.message)
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
def DescribeKecInventory(self, request):
|
|
2082
|
+
"""查询云主机库存
|
|
2083
|
+
:param request: Request instance for DescribeKecInventory.
|
|
2084
|
+
:type request: :class:`ksyun.client.kec.v20160304.models.DescribeKecInventoryRequest`
|
|
2085
|
+
"""
|
|
2086
|
+
try:
|
|
2087
|
+
params = request._serialize()
|
|
2088
|
+
body = self.call_judge("DescribeKecInventory", params, "application/x-www-form-urlencoded")
|
|
1905
2089
|
response = json.loads(body)
|
|
1906
2090
|
if "Error" not in response:
|
|
1907
2091
|
return body
|
|
@@ -1924,7 +2108,7 @@ class KecClient(AbstractClient):
|
|
|
1924
2108
|
"""
|
|
1925
2109
|
try:
|
|
1926
2110
|
params = request._serialize()
|
|
1927
|
-
body = self.
|
|
2111
|
+
body = self.call_judge("ModifyScalingConfiguration", params, "application/x-www-form-urlencoded")
|
|
1928
2112
|
response = json.loads(body)
|
|
1929
2113
|
if "Error" not in response:
|
|
1930
2114
|
return body
|
|
@@ -1947,7 +2131,7 @@ class KecClient(AbstractClient):
|
|
|
1947
2131
|
"""
|
|
1948
2132
|
try:
|
|
1949
2133
|
params = request._serialize()
|
|
1950
|
-
body = self.
|
|
2134
|
+
body = self.call_judge("DescribeSpotPriceHistory", params, "application/x-www-form-urlencoded")
|
|
1951
2135
|
response = json.loads(body)
|
|
1952
2136
|
if "Error" not in response:
|
|
1953
2137
|
return body
|
|
@@ -1964,13 +2148,13 @@ class KecClient(AbstractClient):
|
|
|
1964
2148
|
|
|
1965
2149
|
|
|
1966
2150
|
def DescribePrice(self, request):
|
|
1967
|
-
"""
|
|
2151
|
+
"""查询实例价格
|
|
1968
2152
|
:param request: Request instance for DescribePrice.
|
|
1969
2153
|
:type request: :class:`ksyun.client.kec.v20160304.models.DescribePriceRequest`
|
|
1970
2154
|
"""
|
|
1971
2155
|
try:
|
|
1972
2156
|
params = request._serialize()
|
|
1973
|
-
body = self.
|
|
2157
|
+
body = self.call_judge("DescribePrice", params, "application/x-www-form-urlencoded")
|
|
1974
2158
|
response = json.loads(body)
|
|
1975
2159
|
if "Error" not in response:
|
|
1976
2160
|
return body
|
|
@@ -1993,7 +2177,7 @@ class KecClient(AbstractClient):
|
|
|
1993
2177
|
"""
|
|
1994
2178
|
try:
|
|
1995
2179
|
params = request._serialize()
|
|
1996
|
-
body = self.
|
|
2180
|
+
body = self.call_judge("EnableImageCaching", params, "application/x-www-form-urlencoded")
|
|
1997
2181
|
response = json.loads(body)
|
|
1998
2182
|
if "Error" not in response:
|
|
1999
2183
|
return body
|
|
@@ -2016,7 +2200,7 @@ class KecClient(AbstractClient):
|
|
|
2016
2200
|
"""
|
|
2017
2201
|
try:
|
|
2018
2202
|
params = request._serialize()
|
|
2019
|
-
body = self.
|
|
2203
|
+
body = self.call_judge("DisableImageCaching", params, "application/x-www-form-urlencoded")
|
|
2020
2204
|
response = json.loads(body)
|
|
2021
2205
|
if "Error" not in response:
|
|
2022
2206
|
return body
|
|
@@ -2039,7 +2223,7 @@ class KecClient(AbstractClient):
|
|
|
2039
2223
|
"""
|
|
2040
2224
|
try:
|
|
2041
2225
|
params = request._serialize()
|
|
2042
|
-
body = self.
|
|
2226
|
+
body = self.call_judge("ModifyLoadBalancers", params, "application/x-www-form-urlencoded")
|
|
2043
2227
|
response = json.loads(body)
|
|
2044
2228
|
if "Error" not in response:
|
|
2045
2229
|
return body
|
|
@@ -2062,7 +2246,7 @@ class KecClient(AbstractClient):
|
|
|
2062
2246
|
"""
|
|
2063
2247
|
try:
|
|
2064
2248
|
params = request._serialize()
|
|
2065
|
-
body = self.
|
|
2249
|
+
body = self.call_judge("AttachInstancesIamRole", params, "application/x-www-form-urlencoded")
|
|
2066
2250
|
response = json.loads(body)
|
|
2067
2251
|
if "Error" not in response:
|
|
2068
2252
|
return body
|
|
@@ -2085,7 +2269,30 @@ class KecClient(AbstractClient):
|
|
|
2085
2269
|
"""
|
|
2086
2270
|
try:
|
|
2087
2271
|
params = request._serialize()
|
|
2088
|
-
body = self.
|
|
2272
|
+
body = self.call_judge("DetachInstancesIamRole", params, "application/x-www-form-urlencoded")
|
|
2273
|
+
response = json.loads(body)
|
|
2274
|
+
if "Error" not in response:
|
|
2275
|
+
return body
|
|
2276
|
+
else:
|
|
2277
|
+
code = response["Error"]["Code"]
|
|
2278
|
+
message = response["Error"]["Message"]
|
|
2279
|
+
req_id = response["RequestId"]
|
|
2280
|
+
raise KsyunSDKException(code, message, req_id)
|
|
2281
|
+
except Exception as e:
|
|
2282
|
+
if isinstance(e, KsyunSDKException):
|
|
2283
|
+
raise
|
|
2284
|
+
else:
|
|
2285
|
+
raise KsyunSDKException(e.message, e.message)
|
|
2286
|
+
|
|
2287
|
+
|
|
2288
|
+
def CopySnapshot(self, request):
|
|
2289
|
+
"""本地盘快照跨region复制
|
|
2290
|
+
:param request: Request instance for CopySnapshot.
|
|
2291
|
+
:type request: :class:`ksyun.client.kec.v20160304.models.CopySnapshotRequest`
|
|
2292
|
+
"""
|
|
2293
|
+
try:
|
|
2294
|
+
params = request._serialize()
|
|
2295
|
+
body = self.call_judge("CopySnapshot", params, "application/x-www-form-urlencoded")
|
|
2089
2296
|
response = json.loads(body)
|
|
2090
2297
|
if "Error" not in response:
|
|
2091
2298
|
return body
|
|
@@ -2108,7 +2315,7 @@ class KecClient(AbstractClient):
|
|
|
2108
2315
|
"""
|
|
2109
2316
|
try:
|
|
2110
2317
|
params = request._serialize()
|
|
2111
|
-
body = self.
|
|
2318
|
+
body = self.call_judge("PreMigrateInstance", params, "application/x-www-form-urlencoded")
|
|
2112
2319
|
response = json.loads(body)
|
|
2113
2320
|
if "Error" not in response:
|
|
2114
2321
|
return body
|
|
@@ -2131,7 +2338,7 @@ class KecClient(AbstractClient):
|
|
|
2131
2338
|
"""
|
|
2132
2339
|
try:
|
|
2133
2340
|
params = request._serialize()
|
|
2134
|
-
body = self.
|
|
2341
|
+
body = self.call_judge("CancelPreMigrateInstance", params, "application/x-www-form-urlencoded")
|
|
2135
2342
|
response = json.loads(body)
|
|
2136
2343
|
if "Error" not in response:
|
|
2137
2344
|
return body
|
|
@@ -2147,14 +2354,14 @@ class KecClient(AbstractClient):
|
|
|
2147
2354
|
raise KsyunSDKException(e.message, e.message)
|
|
2148
2355
|
|
|
2149
2356
|
|
|
2150
|
-
def
|
|
2151
|
-
"""
|
|
2152
|
-
:param request: Request instance for
|
|
2153
|
-
:type request: :class:`ksyun.client.kec.v20160304.models.
|
|
2357
|
+
def SwitchImageType(self, request):
|
|
2358
|
+
"""镜像类型转换
|
|
2359
|
+
:param request: Request instance for SwitchImageType.
|
|
2360
|
+
:type request: :class:`ksyun.client.kec.v20160304.models.SwitchImageTypeRequest`
|
|
2154
2361
|
"""
|
|
2155
2362
|
try:
|
|
2156
2363
|
params = request._serialize()
|
|
2157
|
-
body = self.
|
|
2364
|
+
body = self.call_judge("SwitchImageType", params, "application/x-www-form-urlencoded")
|
|
2158
2365
|
response = json.loads(body)
|
|
2159
2366
|
if "Error" not in response:
|
|
2160
2367
|
return body
|
|
@@ -2170,14 +2377,14 @@ class KecClient(AbstractClient):
|
|
|
2170
2377
|
raise KsyunSDKException(e.message, e.message)
|
|
2171
2378
|
|
|
2172
2379
|
|
|
2173
|
-
def
|
|
2174
|
-
"""
|
|
2175
|
-
:param request: Request instance for
|
|
2176
|
-
:type request: :class:`ksyun.client.kec.v20160304.models.
|
|
2380
|
+
def SetInstanceResourceProtect(self, request):
|
|
2381
|
+
"""设置实例的资源保护状态
|
|
2382
|
+
:param request: Request instance for SetInstanceResourceProtect.
|
|
2383
|
+
:type request: :class:`ksyun.client.kec.v20160304.models.SetInstanceResourceProtectRequest`
|
|
2177
2384
|
"""
|
|
2178
2385
|
try:
|
|
2179
2386
|
params = request._serialize()
|
|
2180
|
-
body = self.
|
|
2387
|
+
body = self.call_judge("SetInstanceResourceProtect", params, "application/x-www-form-urlencoded")
|
|
2181
2388
|
response = json.loads(body)
|
|
2182
2389
|
if "Error" not in response:
|
|
2183
2390
|
return body
|
|
@@ -2193,14 +2400,14 @@ class KecClient(AbstractClient):
|
|
|
2193
2400
|
raise KsyunSDKException(e.message, e.message)
|
|
2194
2401
|
|
|
2195
2402
|
|
|
2196
|
-
def
|
|
2197
|
-
"""
|
|
2198
|
-
:param request: Request instance for
|
|
2199
|
-
:type request: :class:`ksyun.client.kec.v20160304.models.
|
|
2403
|
+
def DescribeInstanceVncUrl(self, request):
|
|
2404
|
+
"""查询VNC管理终端地址
|
|
2405
|
+
:param request: Request instance for DescribeInstanceVncUrl.
|
|
2406
|
+
:type request: :class:`ksyun.client.kec.v20160304.models.DescribeInstanceVncUrlRequest`
|
|
2200
2407
|
"""
|
|
2201
2408
|
try:
|
|
2202
2409
|
params = request._serialize()
|
|
2203
|
-
body = self.
|
|
2410
|
+
body = self.call_judge("DescribeInstanceVncUrl", params, "application/x-www-form-urlencoded")
|
|
2204
2411
|
response = json.loads(body)
|
|
2205
2412
|
if "Error" not in response:
|
|
2206
2413
|
return body
|