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
|
@@ -9,13 +9,13 @@ class EbsClient(AbstractClient):
|
|
|
9
9
|
_endpoint = 'ebs.api.ksyun.com'
|
|
10
10
|
_service = 'ebs'
|
|
11
11
|
def CreateVolume(self, request):
|
|
12
|
-
"""
|
|
12
|
+
"""创建硬盘资源
|
|
13
13
|
:param request: Request instance for CreateVolume.
|
|
14
14
|
:type request: :class:`ksyun.client.ebs.v20160304.models.CreateVolumeRequest`
|
|
15
15
|
"""
|
|
16
16
|
try:
|
|
17
17
|
params = request._serialize()
|
|
18
|
-
body = self.
|
|
18
|
+
body = self.call_judge("CreateVolume", params, "application/x-www-form-urlencoded")
|
|
19
19
|
response = json.loads(body)
|
|
20
20
|
if "Error" not in response:
|
|
21
21
|
return body
|
|
@@ -28,17 +28,17 @@ class EbsClient(AbstractClient):
|
|
|
28
28
|
if isinstance(e, KsyunSDKException):
|
|
29
29
|
raise
|
|
30
30
|
else:
|
|
31
|
-
raise KsyunSDKException(
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
def AttachVolume(self, request):
|
|
35
|
-
"""
|
|
35
|
+
"""挂载云硬盘
|
|
36
36
|
:param request: Request instance for AttachVolume.
|
|
37
37
|
:type request: :class:`ksyun.client.ebs.v20160304.models.AttachVolumeRequest`
|
|
38
38
|
"""
|
|
39
39
|
try:
|
|
40
40
|
params = request._serialize()
|
|
41
|
-
body = self.
|
|
41
|
+
body = self.call_judge("AttachVolume", params, "application/x-www-form-urlencoded")
|
|
42
42
|
response = json.loads(body)
|
|
43
43
|
if "Error" not in response:
|
|
44
44
|
return body
|
|
@@ -51,17 +51,17 @@ class EbsClient(AbstractClient):
|
|
|
51
51
|
if isinstance(e, KsyunSDKException):
|
|
52
52
|
raise
|
|
53
53
|
else:
|
|
54
|
-
raise KsyunSDKException(
|
|
54
|
+
raise KsyunSDKException(message=str(e))
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
def DetachVolume(self, request):
|
|
58
|
-
"""
|
|
58
|
+
"""卸载云硬盘
|
|
59
59
|
:param request: Request instance for DetachVolume.
|
|
60
60
|
:type request: :class:`ksyun.client.ebs.v20160304.models.DetachVolumeRequest`
|
|
61
61
|
"""
|
|
62
62
|
try:
|
|
63
63
|
params = request._serialize()
|
|
64
|
-
body = self.
|
|
64
|
+
body = self.call_judge("DetachVolume", params, "application/x-www-form-urlencoded")
|
|
65
65
|
response = json.loads(body)
|
|
66
66
|
if "Error" not in response:
|
|
67
67
|
return body
|
|
@@ -74,17 +74,17 @@ class EbsClient(AbstractClient):
|
|
|
74
74
|
if isinstance(e, KsyunSDKException):
|
|
75
75
|
raise
|
|
76
76
|
else:
|
|
77
|
-
raise KsyunSDKException(
|
|
77
|
+
raise KsyunSDKException(message=str(e))
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
def DeleteVolume(self, request):
|
|
81
|
-
"""
|
|
81
|
+
"""删除云硬盘
|
|
82
82
|
:param request: Request instance for DeleteVolume.
|
|
83
83
|
:type request: :class:`ksyun.client.ebs.v20160304.models.DeleteVolumeRequest`
|
|
84
84
|
"""
|
|
85
85
|
try:
|
|
86
86
|
params = request._serialize()
|
|
87
|
-
body = self.
|
|
87
|
+
body = self.call_judge("DeleteVolume", params, "application/x-www-form-urlencoded")
|
|
88
88
|
response = json.loads(body)
|
|
89
89
|
if "Error" not in response:
|
|
90
90
|
return body
|
|
@@ -97,17 +97,17 @@ class EbsClient(AbstractClient):
|
|
|
97
97
|
if isinstance(e, KsyunSDKException):
|
|
98
98
|
raise
|
|
99
99
|
else:
|
|
100
|
-
raise KsyunSDKException(
|
|
100
|
+
raise KsyunSDKException(message=str(e))
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
def ResizeVolume(self, request):
|
|
104
|
-
"""
|
|
104
|
+
"""云盘扩容大小
|
|
105
105
|
:param request: Request instance for ResizeVolume.
|
|
106
106
|
:type request: :class:`ksyun.client.ebs.v20160304.models.ResizeVolumeRequest`
|
|
107
107
|
"""
|
|
108
108
|
try:
|
|
109
109
|
params = request._serialize()
|
|
110
|
-
body = self.
|
|
110
|
+
body = self.call_judge("ResizeVolume", params, "application/x-www-form-urlencoded")
|
|
111
111
|
response = json.loads(body)
|
|
112
112
|
if "Error" not in response:
|
|
113
113
|
return body
|
|
@@ -120,17 +120,17 @@ class EbsClient(AbstractClient):
|
|
|
120
120
|
if isinstance(e, KsyunSDKException):
|
|
121
121
|
raise
|
|
122
122
|
else:
|
|
123
|
-
raise KsyunSDKException(
|
|
123
|
+
raise KsyunSDKException(message=str(e))
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
def DescribeVolumes(self, request):
|
|
127
|
-
"""DescribeVolumes
|
|
127
|
+
"""DescribeVolumes查询硬盘列表
|
|
128
128
|
:param request: Request instance for DescribeVolumes.
|
|
129
129
|
:type request: :class:`ksyun.client.ebs.v20160304.models.DescribeVolumesRequest`
|
|
130
130
|
"""
|
|
131
131
|
try:
|
|
132
132
|
params = request._serialize()
|
|
133
|
-
body = self.
|
|
133
|
+
body = self.call_judge("DescribeVolumes", params, "application/x-www-form-urlencoded")
|
|
134
134
|
response = json.loads(body)
|
|
135
135
|
if "Error" not in response:
|
|
136
136
|
return body
|
|
@@ -143,17 +143,17 @@ class EbsClient(AbstractClient):
|
|
|
143
143
|
if isinstance(e, KsyunSDKException):
|
|
144
144
|
raise
|
|
145
145
|
else:
|
|
146
|
-
raise KsyunSDKException(
|
|
146
|
+
raise KsyunSDKException(message=str(e))
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
def ModifyVolume(self, request):
|
|
150
|
-
"""
|
|
150
|
+
"""更新云硬盘属性
|
|
151
151
|
:param request: Request instance for ModifyVolume.
|
|
152
152
|
:type request: :class:`ksyun.client.ebs.v20160304.models.ModifyVolumeRequest`
|
|
153
153
|
"""
|
|
154
154
|
try:
|
|
155
155
|
params = request._serialize()
|
|
156
|
-
body = self.
|
|
156
|
+
body = self.call_judge("ModifyVolume", params, "application/x-www-form-urlencoded")
|
|
157
157
|
response = json.loads(body)
|
|
158
158
|
if "Error" not in response:
|
|
159
159
|
return body
|
|
@@ -166,17 +166,17 @@ class EbsClient(AbstractClient):
|
|
|
166
166
|
if isinstance(e, KsyunSDKException):
|
|
167
167
|
raise
|
|
168
168
|
else:
|
|
169
|
-
raise KsyunSDKException(
|
|
169
|
+
raise KsyunSDKException(message=str(e))
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
def DescribeEbsInstances(self, request):
|
|
173
|
-
"""
|
|
173
|
+
"""查询可挂载云主机
|
|
174
174
|
:param request: Request instance for DescribeEbsInstances.
|
|
175
175
|
:type request: :class:`ksyun.client.ebs.v20160304.models.DescribeEbsInstancesRequest`
|
|
176
176
|
"""
|
|
177
177
|
try:
|
|
178
178
|
params = request._serialize()
|
|
179
|
-
body = self.
|
|
179
|
+
body = self.call_judge("DescribeEbsInstances", params, "application/x-www-form-urlencoded")
|
|
180
180
|
response = json.loads(body)
|
|
181
181
|
if "Error" not in response:
|
|
182
182
|
return body
|
|
@@ -189,17 +189,17 @@ class EbsClient(AbstractClient):
|
|
|
189
189
|
if isinstance(e, KsyunSDKException):
|
|
190
190
|
raise
|
|
191
191
|
else:
|
|
192
|
-
raise KsyunSDKException(
|
|
192
|
+
raise KsyunSDKException(message=str(e))
|
|
193
193
|
|
|
194
194
|
|
|
195
195
|
def DescribeInstanceVolumes(self, request):
|
|
196
|
-
"""
|
|
196
|
+
"""查询云主机所挂载云硬盘
|
|
197
197
|
:param request: Request instance for DescribeInstanceVolumes.
|
|
198
198
|
:type request: :class:`ksyun.client.ebs.v20160304.models.DescribeInstanceVolumesRequest`
|
|
199
199
|
"""
|
|
200
200
|
try:
|
|
201
201
|
params = request._serialize()
|
|
202
|
-
body = self.
|
|
202
|
+
body = self.call_judge("DescribeInstanceVolumes", params, "application/x-www-form-urlencoded")
|
|
203
203
|
response = json.loads(body)
|
|
204
204
|
if "Error" not in response:
|
|
205
205
|
return body
|
|
@@ -212,17 +212,17 @@ class EbsClient(AbstractClient):
|
|
|
212
212
|
if isinstance(e, KsyunSDKException):
|
|
213
213
|
raise
|
|
214
214
|
else:
|
|
215
|
-
raise KsyunSDKException(
|
|
215
|
+
raise KsyunSDKException(message=str(e))
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
def RenewVolume(self, request):
|
|
219
|
-
"""
|
|
219
|
+
"""续费云硬盘
|
|
220
220
|
:param request: Request instance for RenewVolume.
|
|
221
221
|
:type request: :class:`ksyun.client.ebs.v20160304.models.RenewVolumeRequest`
|
|
222
222
|
"""
|
|
223
223
|
try:
|
|
224
224
|
params = request._serialize()
|
|
225
|
-
body = self.
|
|
225
|
+
body = self.call_judge("RenewVolume", params, "application/x-www-form-urlencoded")
|
|
226
226
|
response = json.loads(body)
|
|
227
227
|
if "Error" not in response:
|
|
228
228
|
return body
|
|
@@ -235,17 +235,17 @@ class EbsClient(AbstractClient):
|
|
|
235
235
|
if isinstance(e, KsyunSDKException):
|
|
236
236
|
raise
|
|
237
237
|
else:
|
|
238
|
-
raise KsyunSDKException(
|
|
238
|
+
raise KsyunSDKException(message=str(e))
|
|
239
239
|
|
|
240
240
|
|
|
241
241
|
def UpdateVolumeProject(self, request):
|
|
242
|
-
"""
|
|
242
|
+
"""更新云硬盘项目组
|
|
243
243
|
:param request: Request instance for UpdateVolumeProject.
|
|
244
244
|
:type request: :class:`ksyun.client.ebs.v20160304.models.UpdateVolumeProjectRequest`
|
|
245
245
|
"""
|
|
246
246
|
try:
|
|
247
247
|
params = request._serialize()
|
|
248
|
-
body = self.
|
|
248
|
+
body = self.call_judge("UpdateVolumeProject", params, "application/x-www-form-urlencoded")
|
|
249
249
|
response = json.loads(body)
|
|
250
250
|
if "Error" not in response:
|
|
251
251
|
return body
|
|
@@ -258,17 +258,17 @@ class EbsClient(AbstractClient):
|
|
|
258
258
|
if isinstance(e, KsyunSDKException):
|
|
259
259
|
raise
|
|
260
260
|
else:
|
|
261
|
-
raise KsyunSDKException(
|
|
261
|
+
raise KsyunSDKException(message=str(e))
|
|
262
262
|
|
|
263
263
|
|
|
264
264
|
def DescribeSnapshots(self, request):
|
|
265
|
-
"""
|
|
265
|
+
"""查询快照信息
|
|
266
266
|
:param request: Request instance for DescribeSnapshots.
|
|
267
267
|
:type request: :class:`ksyun.client.ebs.v20160304.models.DescribeSnapshotsRequest`
|
|
268
268
|
"""
|
|
269
269
|
try:
|
|
270
270
|
params = request._serialize()
|
|
271
|
-
body = self.
|
|
271
|
+
body = self.call_judge("DescribeSnapshots", params, "application/x-www-form-urlencoded")
|
|
272
272
|
response = json.loads(body)
|
|
273
273
|
if "Error" not in response:
|
|
274
274
|
return body
|
|
@@ -281,17 +281,17 @@ class EbsClient(AbstractClient):
|
|
|
281
281
|
if isinstance(e, KsyunSDKException):
|
|
282
282
|
raise
|
|
283
283
|
else:
|
|
284
|
-
raise KsyunSDKException(
|
|
284
|
+
raise KsyunSDKException(message=str(e))
|
|
285
285
|
|
|
286
286
|
|
|
287
287
|
def CreateSnapshot(self, request):
|
|
288
|
-
"""
|
|
288
|
+
"""基于云盘创建快照
|
|
289
289
|
:param request: Request instance for CreateSnapshot.
|
|
290
290
|
:type request: :class:`ksyun.client.ebs.v20160304.models.CreateSnapshotRequest`
|
|
291
291
|
"""
|
|
292
292
|
try:
|
|
293
293
|
params = request._serialize()
|
|
294
|
-
body = self.
|
|
294
|
+
body = self.call_judge("CreateSnapshot", params, "application/x-www-form-urlencoded")
|
|
295
295
|
response = json.loads(body)
|
|
296
296
|
if "Error" not in response:
|
|
297
297
|
return body
|
|
@@ -304,17 +304,17 @@ class EbsClient(AbstractClient):
|
|
|
304
304
|
if isinstance(e, KsyunSDKException):
|
|
305
305
|
raise
|
|
306
306
|
else:
|
|
307
|
-
raise KsyunSDKException(
|
|
307
|
+
raise KsyunSDKException(message=str(e))
|
|
308
308
|
|
|
309
309
|
|
|
310
310
|
def DeleteSnapshot(self, request):
|
|
311
|
-
"""
|
|
311
|
+
"""删除快照数据
|
|
312
312
|
:param request: Request instance for DeleteSnapshot.
|
|
313
313
|
:type request: :class:`ksyun.client.ebs.v20160304.models.DeleteSnapshotRequest`
|
|
314
314
|
"""
|
|
315
315
|
try:
|
|
316
316
|
params = request._serialize()
|
|
317
|
-
body = self.
|
|
317
|
+
body = self.call_judge("DeleteSnapshot", params, "application/x-www-form-urlencoded")
|
|
318
318
|
response = json.loads(body)
|
|
319
319
|
if "Error" not in response:
|
|
320
320
|
return body
|
|
@@ -327,7 +327,7 @@ class EbsClient(AbstractClient):
|
|
|
327
327
|
if isinstance(e, KsyunSDKException):
|
|
328
328
|
raise
|
|
329
329
|
else:
|
|
330
|
-
raise KsyunSDKException(
|
|
330
|
+
raise KsyunSDKException(message=str(e))
|
|
331
331
|
|
|
332
332
|
|
|
333
333
|
def RollbackSnapshot(self, request):
|
|
@@ -337,7 +337,7 @@ class EbsClient(AbstractClient):
|
|
|
337
337
|
"""
|
|
338
338
|
try:
|
|
339
339
|
params = request._serialize()
|
|
340
|
-
body = self.
|
|
340
|
+
body = self.call_judge("RollbackSnapshot", params, "application/x-www-form-urlencoded")
|
|
341
341
|
response = json.loads(body)
|
|
342
342
|
if "Error" not in response:
|
|
343
343
|
return body
|
|
@@ -350,17 +350,17 @@ class EbsClient(AbstractClient):
|
|
|
350
350
|
if isinstance(e, KsyunSDKException):
|
|
351
351
|
raise
|
|
352
352
|
else:
|
|
353
|
-
raise KsyunSDKException(
|
|
353
|
+
raise KsyunSDKException(message=str(e))
|
|
354
354
|
|
|
355
355
|
|
|
356
356
|
def ModifySnapshot(self, request):
|
|
357
|
-
"""
|
|
357
|
+
"""修改快照名称描述
|
|
358
358
|
:param request: Request instance for ModifySnapshot.
|
|
359
359
|
:type request: :class:`ksyun.client.ebs.v20160304.models.ModifySnapshotRequest`
|
|
360
360
|
"""
|
|
361
361
|
try:
|
|
362
362
|
params = request._serialize()
|
|
363
|
-
body = self.
|
|
363
|
+
body = self.call_judge("ModifySnapshot", params, "application/x-www-form-urlencoded")
|
|
364
364
|
response = json.loads(body)
|
|
365
365
|
if "Error" not in response:
|
|
366
366
|
return body
|
|
@@ -373,17 +373,17 @@ class EbsClient(AbstractClient):
|
|
|
373
373
|
if isinstance(e, KsyunSDKException):
|
|
374
374
|
raise
|
|
375
375
|
else:
|
|
376
|
-
raise KsyunSDKException(
|
|
376
|
+
raise KsyunSDKException(message=str(e))
|
|
377
377
|
|
|
378
378
|
|
|
379
379
|
def RecoveryVolume(self, request):
|
|
380
|
-
"""
|
|
380
|
+
"""恢复云硬盘
|
|
381
381
|
:param request: Request instance for RecoveryVolume.
|
|
382
382
|
:type request: :class:`ksyun.client.ebs.v20160304.models.RecoveryVolumeRequest`
|
|
383
383
|
"""
|
|
384
384
|
try:
|
|
385
385
|
params = request._serialize()
|
|
386
|
-
body = self.
|
|
386
|
+
body = self.call_judge("RecoveryVolume", params, "application/x-www-form-urlencoded")
|
|
387
387
|
response = json.loads(body)
|
|
388
388
|
if "Error" not in response:
|
|
389
389
|
return body
|
|
@@ -396,17 +396,17 @@ class EbsClient(AbstractClient):
|
|
|
396
396
|
if isinstance(e, KsyunSDKException):
|
|
397
397
|
raise
|
|
398
398
|
else:
|
|
399
|
-
raise KsyunSDKException(
|
|
399
|
+
raise KsyunSDKException(message=str(e))
|
|
400
400
|
|
|
401
401
|
|
|
402
402
|
def ValidateAttachInstance(self, request):
|
|
403
|
-
"""
|
|
403
|
+
"""校验挂载云主机可用性
|
|
404
404
|
:param request: Request instance for ValidateAttachInstance.
|
|
405
405
|
:type request: :class:`ksyun.client.ebs.v20160304.models.ValidateAttachInstanceRequest`
|
|
406
406
|
"""
|
|
407
407
|
try:
|
|
408
408
|
params = request._serialize()
|
|
409
|
-
body = self.
|
|
409
|
+
body = self.call_judge("ValidateAttachInstance", params, "application/x-www-form-urlencoded")
|
|
410
410
|
response = json.loads(body)
|
|
411
411
|
if "Error" not in response:
|
|
412
412
|
return body
|
|
@@ -419,7 +419,30 @@ class EbsClient(AbstractClient):
|
|
|
419
419
|
if isinstance(e, KsyunSDKException):
|
|
420
420
|
raise
|
|
421
421
|
else:
|
|
422
|
-
raise KsyunSDKException(
|
|
422
|
+
raise KsyunSDKException(message=str(e))
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
def DescribeAvailabilityZones(self, request):
|
|
426
|
+
"""查询云硬盘可用区
|
|
427
|
+
:param request: Request instance for DescribeAvailabilityZones.
|
|
428
|
+
:type request: :class:`ksyun.client.ebs.v20160304.models.DescribeAvailabilityZonesRequest`
|
|
429
|
+
"""
|
|
430
|
+
try:
|
|
431
|
+
params = request._serialize()
|
|
432
|
+
body = self.call_judge("DescribeAvailabilityZones", params, "application/x-www-form-urlencoded")
|
|
433
|
+
response = json.loads(body)
|
|
434
|
+
if "Error" not in response:
|
|
435
|
+
return body
|
|
436
|
+
else:
|
|
437
|
+
code = response["Error"]["Code"]
|
|
438
|
+
message = response["Error"]["Message"]
|
|
439
|
+
req_id = response["RequestId"]
|
|
440
|
+
raise KsyunSDKException(code, message, req_id)
|
|
441
|
+
except Exception as e:
|
|
442
|
+
if isinstance(e, KsyunSDKException):
|
|
443
|
+
raise
|
|
444
|
+
else:
|
|
445
|
+
raise KsyunSDKException(message=str(e))
|
|
423
446
|
|
|
424
447
|
|
|
425
448
|
def DescribeCreateVolumePrice(self, request):
|
|
@@ -429,7 +452,76 @@ class EbsClient(AbstractClient):
|
|
|
429
452
|
"""
|
|
430
453
|
try:
|
|
431
454
|
params = request._serialize()
|
|
432
|
-
body = self.
|
|
455
|
+
body = self.call_judge("DescribeCreateVolumePrice", params, "application/x-www-form-urlencoded")
|
|
456
|
+
response = json.loads(body)
|
|
457
|
+
if "Error" not in response:
|
|
458
|
+
return body
|
|
459
|
+
else:
|
|
460
|
+
code = response["Error"]["Code"]
|
|
461
|
+
message = response["Error"]["Message"]
|
|
462
|
+
req_id = response["RequestId"]
|
|
463
|
+
raise KsyunSDKException(code, message, req_id)
|
|
464
|
+
except Exception as e:
|
|
465
|
+
if isinstance(e, KsyunSDKException):
|
|
466
|
+
raise
|
|
467
|
+
else:
|
|
468
|
+
raise KsyunSDKException(message=str(e))
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
def ModifySnapshotType(self, request):
|
|
472
|
+
"""3.0快照类型转化成4.0快照
|
|
473
|
+
:param request: Request instance for ModifySnapshotType.
|
|
474
|
+
:type request: :class:`ksyun.client.ebs.v20160304.models.ModifySnapshotTypeRequest`
|
|
475
|
+
"""
|
|
476
|
+
try:
|
|
477
|
+
params = request._serialize()
|
|
478
|
+
body = self.call_judge("ModifySnapshotType", params, "application/x-www-form-urlencoded")
|
|
479
|
+
response = json.loads(body)
|
|
480
|
+
if "Error" not in response:
|
|
481
|
+
return body
|
|
482
|
+
else:
|
|
483
|
+
code = response["Error"]["Code"]
|
|
484
|
+
message = response["Error"]["Message"]
|
|
485
|
+
req_id = response["RequestId"]
|
|
486
|
+
raise KsyunSDKException(code, message, req_id)
|
|
487
|
+
except Exception as e:
|
|
488
|
+
if isinstance(e, KsyunSDKException):
|
|
489
|
+
raise
|
|
490
|
+
else:
|
|
491
|
+
raise KsyunSDKException(message=str(e))
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
def ModifyVolumeType(self, request):
|
|
495
|
+
"""SSD3.0/EHDD云盘变配ESSD云盘
|
|
496
|
+
:param request: Request instance for ModifyVolumeType.
|
|
497
|
+
:type request: :class:`ksyun.client.ebs.v20160304.models.ModifyVolumeTypeRequest`
|
|
498
|
+
"""
|
|
499
|
+
try:
|
|
500
|
+
params = request._serialize()
|
|
501
|
+
body = self.call_judge("ModifyVolumeType", params, "application/x-www-form-urlencoded")
|
|
502
|
+
response = json.loads(body)
|
|
503
|
+
if "Error" not in response:
|
|
504
|
+
return body
|
|
505
|
+
else:
|
|
506
|
+
code = response["Error"]["Code"]
|
|
507
|
+
message = response["Error"]["Message"]
|
|
508
|
+
req_id = response["RequestId"]
|
|
509
|
+
raise KsyunSDKException(code, message, req_id)
|
|
510
|
+
except Exception as e:
|
|
511
|
+
if isinstance(e, KsyunSDKException):
|
|
512
|
+
raise
|
|
513
|
+
else:
|
|
514
|
+
raise KsyunSDKException(message=str(e))
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
def ModifyDedicatedBlockStorageClusterAttribute(self, request):
|
|
518
|
+
"""修改专属块存储集群属性
|
|
519
|
+
:param request: Request instance for ModifyDedicatedBlockStorageClusterAttribute.
|
|
520
|
+
:type request: :class:`ksyun.client.ebs.v20160304.models.ModifyDedicatedBlockStorageClusterAttributeRequest`
|
|
521
|
+
"""
|
|
522
|
+
try:
|
|
523
|
+
params = request._serialize()
|
|
524
|
+
body = self.call_judge("ModifyDedicatedBlockStorageClusterAttribute", params, "application/x-www-form-urlencoded")
|
|
433
525
|
response = json.loads(body)
|
|
434
526
|
if "Error" not in response:
|
|
435
527
|
return body
|
|
@@ -442,6 +534,119 @@ class EbsClient(AbstractClient):
|
|
|
442
534
|
if isinstance(e, KsyunSDKException):
|
|
443
535
|
raise
|
|
444
536
|
else:
|
|
445
|
-
raise KsyunSDKException(
|
|
537
|
+
raise KsyunSDKException(message=str(e))
|
|
446
538
|
|
|
447
539
|
|
|
540
|
+
def ResizeDedicatedBlockStorageClusters(self, request):
|
|
541
|
+
"""专属集群扩容
|
|
542
|
+
:param request: Request instance for ResizeDedicatedBlockStorageClusters.
|
|
543
|
+
:type request: :class:`ksyun.client.ebs.v20160304.models.ResizeDedicatedBlockStorageClustersRequest`
|
|
544
|
+
"""
|
|
545
|
+
try:
|
|
546
|
+
params = request._serialize()
|
|
547
|
+
body = self.call_judge("ResizeDedicatedBlockStorageClusters", params, "application/x-www-form-urlencoded")
|
|
548
|
+
response = json.loads(body)
|
|
549
|
+
if "Error" not in response:
|
|
550
|
+
return body
|
|
551
|
+
else:
|
|
552
|
+
code = response["Error"]["Code"]
|
|
553
|
+
message = response["Error"]["Message"]
|
|
554
|
+
req_id = response["RequestId"]
|
|
555
|
+
raise KsyunSDKException(code, message, req_id)
|
|
556
|
+
except Exception as e:
|
|
557
|
+
if isinstance(e, KsyunSDKException):
|
|
558
|
+
raise
|
|
559
|
+
else:
|
|
560
|
+
raise KsyunSDKException(message=str(e))
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
def DescribeDedicatedBlockStorageClusters(self, request):
|
|
564
|
+
"""查询专属集群列表
|
|
565
|
+
:param request: Request instance for DescribeDedicatedBlockStorageClusters.
|
|
566
|
+
:type request: :class:`ksyun.client.ebs.v20160304.models.DescribeDedicatedBlockStorageClustersRequest`
|
|
567
|
+
"""
|
|
568
|
+
try:
|
|
569
|
+
params = request._serialize()
|
|
570
|
+
body = self.call_judge("DescribeDedicatedBlockStorageClusters", params, "application/x-www-form-urlencoded")
|
|
571
|
+
response = json.loads(body)
|
|
572
|
+
if "Error" not in response:
|
|
573
|
+
return body
|
|
574
|
+
else:
|
|
575
|
+
code = response["Error"]["Code"]
|
|
576
|
+
message = response["Error"]["Message"]
|
|
577
|
+
req_id = response["RequestId"]
|
|
578
|
+
raise KsyunSDKException(code, message, req_id)
|
|
579
|
+
except Exception as e:
|
|
580
|
+
if isinstance(e, KsyunSDKException):
|
|
581
|
+
raise
|
|
582
|
+
else:
|
|
583
|
+
raise KsyunSDKException(message=str(e))
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
def CreateDedicatedBlockStorageCluster(self, request):
|
|
587
|
+
"""创建专属块存储集群
|
|
588
|
+
:param request: Request instance for CreateDedicatedBlockStorageCluster.
|
|
589
|
+
:type request: :class:`ksyun.client.ebs.v20160304.models.CreateDedicatedBlockStorageClusterRequest`
|
|
590
|
+
"""
|
|
591
|
+
try:
|
|
592
|
+
params = request._serialize()
|
|
593
|
+
body = self.call_judge("CreateDedicatedBlockStorageCluster", params, "application/x-www-form-urlencoded")
|
|
594
|
+
response = json.loads(body)
|
|
595
|
+
if "Error" not in response:
|
|
596
|
+
return body
|
|
597
|
+
else:
|
|
598
|
+
code = response["Error"]["Code"]
|
|
599
|
+
message = response["Error"]["Message"]
|
|
600
|
+
req_id = response["RequestId"]
|
|
601
|
+
raise KsyunSDKException(code, message, req_id)
|
|
602
|
+
except Exception as e:
|
|
603
|
+
if isinstance(e, KsyunSDKException):
|
|
604
|
+
raise
|
|
605
|
+
else:
|
|
606
|
+
raise KsyunSDKException(message=str(e))
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
def ModifyVolumePreset(self, request):
|
|
610
|
+
"""修改云盘预配置
|
|
611
|
+
:param request: Request instance for ModifyVolumePreset.
|
|
612
|
+
:type request: :class:`ksyun.client.ebs.v20160304.models.ModifyVolumePresetRequest`
|
|
613
|
+
"""
|
|
614
|
+
try:
|
|
615
|
+
params = request._serialize()
|
|
616
|
+
body = self.call_judge("ModifyVolumePreset", params, "application/x-www-form-urlencoded")
|
|
617
|
+
response = json.loads(body)
|
|
618
|
+
if "Error" not in response:
|
|
619
|
+
return body
|
|
620
|
+
else:
|
|
621
|
+
code = response["Error"]["Code"]
|
|
622
|
+
message = response["Error"]["Message"]
|
|
623
|
+
req_id = response["RequestId"]
|
|
624
|
+
raise KsyunSDKException(code, message, req_id)
|
|
625
|
+
except Exception as e:
|
|
626
|
+
if isinstance(e, KsyunSDKException):
|
|
627
|
+
raise
|
|
628
|
+
else:
|
|
629
|
+
raise KsyunSDKException(message=str(e))
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
def GetUpgradeVolumeTypeProcessInfo(self, request):
|
|
633
|
+
"""获取云盘转化进度
|
|
634
|
+
:param request: Request instance for GetUpgradeVolumeTypeProcessInfo.
|
|
635
|
+
:type request: :class:`ksyun.client.ebs.v20160304.models.GetUpgradeVolumeTypeProcessInfoRequest`
|
|
636
|
+
"""
|
|
637
|
+
try:
|
|
638
|
+
params = request._serialize()
|
|
639
|
+
body = self.call_judge("GetUpgradeVolumeTypeProcessInfo", params, "application/x-www-form-urlencoded")
|
|
640
|
+
response = json.loads(body)
|
|
641
|
+
if "Error" not in response:
|
|
642
|
+
return body
|
|
643
|
+
else:
|
|
644
|
+
code = response["Error"]["Code"]
|
|
645
|
+
message = response["Error"]["Message"]
|
|
646
|
+
req_id = response["RequestId"]
|
|
647
|
+
raise KsyunSDKException(code, message, req_id)
|
|
648
|
+
except Exception as e:
|
|
649
|
+
if isinstance(e, KsyunSDKException):
|
|
650
|
+
raise
|
|
651
|
+
else:
|
|
652
|
+
raise KsyunSDKException(message=str(e))
|