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
|
@@ -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
|
|
@@ -32,13 +32,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -55,13 +55,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -78,13 +78,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -101,13 +101,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -124,13 +124,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -147,13 +147,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -170,13 +170,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -193,13 +193,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -216,13 +216,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -239,13 +239,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -262,13 +262,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -285,13 +285,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -308,13 +308,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -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
|
|
@@ -354,13 +354,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -377,13 +377,13 @@ class EbsClient(AbstractClient):
|
|
|
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
|
|
@@ -400,13 +400,36 @@ class EbsClient(AbstractClient):
|
|
|
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
|
+
response = json.loads(body)
|
|
411
|
+
if "Error" not in response:
|
|
412
|
+
return body
|
|
413
|
+
else:
|
|
414
|
+
code = response["Error"]["Code"]
|
|
415
|
+
message = response["Error"]["Message"]
|
|
416
|
+
req_id = response["RequestId"]
|
|
417
|
+
raise KsyunSDKException(code, message, req_id)
|
|
418
|
+
except Exception as e:
|
|
419
|
+
if isinstance(e, KsyunSDKException):
|
|
420
|
+
raise
|
|
421
|
+
else:
|
|
422
|
+
raise KsyunSDKException(e.message, e.message)
|
|
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")
|
|
410
433
|
response = json.loads(body)
|
|
411
434
|
if "Error" not in response:
|
|
412
435
|
return body
|
|
@@ -429,7 +452,191 @@ 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(e.message, e.message)
|
|
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(e.message, e.message)
|
|
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(e.message, e.message)
|
|
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")
|
|
525
|
+
response = json.loads(body)
|
|
526
|
+
if "Error" not in response:
|
|
527
|
+
return body
|
|
528
|
+
else:
|
|
529
|
+
code = response["Error"]["Code"]
|
|
530
|
+
message = response["Error"]["Message"]
|
|
531
|
+
req_id = response["RequestId"]
|
|
532
|
+
raise KsyunSDKException(code, message, req_id)
|
|
533
|
+
except Exception as e:
|
|
534
|
+
if isinstance(e, KsyunSDKException):
|
|
535
|
+
raise
|
|
536
|
+
else:
|
|
537
|
+
raise KsyunSDKException(e.message, e.message)
|
|
538
|
+
|
|
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(e.message, e.message)
|
|
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(e.message, e.message)
|
|
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(e.message, e.message)
|
|
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(e.message, e.message)
|
|
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")
|
|
433
640
|
response = json.loads(body)
|
|
434
641
|
if "Error" not in response:
|
|
435
642
|
return body
|