kingsoftcloud-sdk-python 1.1.1__py2.py3-none-any.whl → 1.5.8.49__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kingsoftcloud_sdk_python-1.5.8.49.dist-info/METADATA +71 -0
- kingsoftcloud_sdk_python-1.5.8.49.dist-info/RECORD +337 -0
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/WHEEL +1 -1
- ksyun/__init__.py +1 -1
- ksyun/client/actiontrail/v20190401/client.py +2 -4
- ksyun/client/aicp/v20240612/client.py +1344 -0
- ksyun/client/aicp/v20240612/models.py +1963 -0
- ksyun/client/aicp/v20251212/__init__.py +0 -0
- ksyun/client/aicp/v20251212/client.py +56 -0
- ksyun/client/aicp/v20251212/models.py +114 -0
- ksyun/client/bill/v20180601/client.py +6 -77
- ksyun/client/bill/v20180601/models.py +29 -41
- ksyun/client/bill/v20220601/__init__.py +0 -0
- ksyun/client/bill/v20220601/client.py +54 -0
- ksyun/client/bill/v20220601/models.py +54 -0
- ksyun/client/bill_union/v20200101/client.py +81 -14
- ksyun/client/bill_union/v20200101/models.py +119 -3
- ksyun/client/bill_union/v20221222/__init__.py +0 -0
- ksyun/client/bill_union/v20221222/client.py +146 -0
- ksyun/client/bill_union/v20221222/models.py +193 -0
- ksyun/client/bill_union/v20250801/__init__.py +0 -0
- ksyun/client/bill_union/v20250801/client.py +54 -0
- ksyun/client/bill_union/v20250801/models.py +64 -0
- ksyun/client/bws/v20160304/client.py +33 -12
- ksyun/client/bws/v20160304/models.py +51 -0
- ksyun/client/cdn/__init__.py +0 -0
- ksyun/client/cdn/v20160901/__init__.py +0 -0
- ksyun/client/cdn/v20160901/client.py +77 -0
- ksyun/client/cdn/v20160901/models.py +51 -0
- ksyun/client/cdn/v20200630/__init__.py +0 -0
- ksyun/client/cdn/v20200630/client.py +399 -0
- ksyun/client/cdn/v20200630/models.py +826 -0
- ksyun/client/cdn/v20200901/__init__.py +0 -0
- ksyun/client/cdn/v20200901/client.py +169 -0
- ksyun/client/cdn/v20200901/models.py +224 -0
- ksyun/client/cdn/v20211201/__init__.py +0 -0
- ksyun/client/cdn/v20211201/client.py +31 -0
- ksyun/client/cdn/v20211201/models.py +23 -0
- ksyun/client/cdn/v3/__init__.py +0 -0
- ksyun/client/cdn/v3/client.py +997 -0
- ksyun/client/cdn/v3/models.py +1323 -0
- ksyun/client/cen/__init__.py +0 -0
- ksyun/client/cen/v20160304/__init__.py +0 -0
- ksyun/client/cen/v20160304/client.py +606 -0
- ksyun/client/cen/v20160304/models.py +718 -0
- ksyun/client/clickhouse/__init__.py +0 -0
- ksyun/client/clickhouse/v20210101/__init__.py +0 -0
- ksyun/client/clickhouse/v20210101/client.py +905 -0
- ksyun/client/clickhouse/v20210101/models.py +1127 -0
- ksyun/client/cloud_advisor/__init__.py +0 -0
- ksyun/client/cloud_advisor/v20250610/__init__.py +0 -0
- ksyun/client/cloud_advisor/v20250610/client.py +77 -0
- ksyun/client/cloud_advisor/v20250610/models.py +80 -0
- ksyun/client/dmp/__init__.py +0 -0
- ksyun/client/dmp/v20240101/__init__.py +0 -0
- ksyun/client/dmp/v20240101/client.py +468 -0
- ksyun/client/dmp/v20240101/models.py +423 -0
- ksyun/client/dts/__init__.py +0 -0
- ksyun/client/dts/v20180108/__init__.py +0 -0
- ksyun/client/dts/v20180108/client.py +445 -0
- ksyun/client/dts/v20180108/models.py +734 -0
- ksyun/client/ebs/v20160304/client.py +260 -55
- ksyun/client/ebs/v20160304/models.py +320 -66
- ksyun/client/eip/v20160304/client.py +127 -14
- ksyun/client/eip/v20160304/models.py +95 -1
- ksyun/client/epc/v20151101/client.py +1309 -184
- ksyun/client/epc/v20151101/models.py +2623 -137
- ksyun/client/iam/v20151101/client.py +325 -120
- ksyun/client/iam/v20151101/models.py +284 -28
- ksyun/client/iam/v20240513/__init__.py +0 -0
- ksyun/client/iam/v20240513/client.py +31 -0
- ksyun/client/iam/v20240513/models.py +33 -0
- ksyun/client/iam/v20240703/__init__.py +0 -0
- ksyun/client/iam/v20240703/client.py +31 -0
- ksyun/client/iam/v20240703/models.py +18 -0
- ksyun/client/influxdb/__init__.py +0 -0
- ksyun/client/influxdb/v20191010/__init__.py +0 -0
- ksyun/client/influxdb/v20191010/client.py +629 -0
- ksyun/client/influxdb/v20191010/models.py +655 -0
- ksyun/client/kad/v20161122/client.py +56 -12
- ksyun/client/kad/v20161122/models.py +38 -0
- ksyun/client/kce/__init__.py +0 -0
- ksyun/client/kce/v20180314/__init__.py +0 -0
- ksyun/client/kce/v20180314/client.py +399 -0
- ksyun/client/kce/v20180314/models.py +374 -0
- ksyun/client/kce/v20190806/__init__.py +0 -0
- ksyun/client/kce/v20190806/client.py +790 -0
- ksyun/client/kce/v20190806/models.py +1099 -0
- ksyun/client/kce/v20201231/__init__.py +0 -0
- ksyun/client/{slb/v20171210 → kce/v20201231}/client.py +10 -12
- ksyun/client/kce/v20201231/models.py +137 -0
- ksyun/client/kce/v20230101/__init__.py +0 -0
- ksyun/client/kce/v20230101/client.py +215 -0
- ksyun/client/kce/v20230101/models.py +259 -0
- ksyun/client/kce/v20230306/__init__.py +0 -0
- ksyun/client/kce/v20230306/client.py +514 -0
- ksyun/client/kce/v20230306/models.py +655 -0
- ksyun/client/kce/v20231115/__init__.py +0 -0
- ksyun/client/kce/v20231115/client.py +54 -0
- ksyun/client/kce/v20231115/models.py +59 -0
- ksyun/client/kce2/__init__.py +0 -0
- ksyun/client/kce2/v20230101/__init__.py +0 -0
- ksyun/client/kce2/v20230101/client.py +353 -0
- ksyun/client/kce2/v20230101/models.py +483 -0
- ksyun/client/kcf/__init__.py +0 -0
- ksyun/client/kcf/v20211215/__init__.py +0 -0
- ksyun/client/kcf/v20211215/client.py +215 -0
- ksyun/client/kcf/v20211215/models.py +313 -0
- ksyun/client/kci/__init__.py +0 -0
- ksyun/client/kci/v20200702/__init__.py +0 -0
- ksyun/client/kci/v20200702/client.py +353 -0
- ksyun/client/kci/v20200702/models.py +614 -0
- ksyun/client/kcm/__init__.py +0 -0
- ksyun/client/kcm/v20160304/__init__.py +0 -0
- ksyun/client/kcm/v20160304/client.py +238 -0
- ksyun/client/kcm/v20160304/models.py +394 -0
- ksyun/client/kcrs/__init__.py +0 -0
- ksyun/client/kcrs/v20211109/__init__.py +0 -0
- ksyun/client/kcrs/v20211109/client.py +1020 -0
- ksyun/client/kcrs/v20211109/models.py +1282 -0
- ksyun/client/kcs/__init__.py +0 -0
- ksyun/client/kcs/v20160701/__init__.py +0 -0
- ksyun/client/kcs/v20160701/client.py +1526 -0
- ksyun/client/kcs/v20160701/models.py +1917 -0
- ksyun/client/kcs/v20170401/__init__.py +0 -0
- ksyun/client/kcs/v20170401/client.py +31 -0
- ksyun/client/kcs/v20170401/models.py +28 -0
- ksyun/client/kcs/v20240701/__init__.py +0 -0
- ksyun/client/kcs/v20240701/client.py +31 -0
- ksyun/client/kcs/v20240701/models.py +23 -0
- ksyun/client/kead/v20200101/client.py +48 -4
- ksyun/client/kead/v20200101/models.py +52 -42
- ksyun/client/kec/v20160304/client.py +890 -223
- ksyun/client/kec/v20160304/models.py +1377 -140
- ksyun/client/ked/__init__.py +0 -0
- ksyun/client/ked/v1/__init__.py +0 -0
- ksyun/client/ked/v1/client.py +1020 -0
- ksyun/client/ked/v1/models.py +1132 -0
- ksyun/client/kes/__init__.py +0 -0
- ksyun/client/kes/v20201215/__init__.py +0 -0
- ksyun/client/kes/v20201215/client.py +192 -0
- ksyun/client/kes/v20201215/models.py +252 -0
- ksyun/client/ket/__init__.py +0 -0
- ksyun/client/ket/v20170101/__init__.py +0 -0
- ksyun/client/ket/v20170101/client.py +192 -0
- ksyun/client/ket/v20170101/models.py +265 -0
- ksyun/client/kfw/__init__.py +0 -0
- ksyun/client/kfw/v20160304/__init__.py +0 -0
- ksyun/client/kfw/v20160304/client.py +692 -0
- ksyun/client/kfw/v20160304/models.py +1029 -0
- ksyun/client/kingpay/__init__.py +0 -0
- ksyun/client/kingpay/v1/__init__.py +0 -0
- ksyun/client/kingpay/v1/client.py +31 -0
- ksyun/client/kingpay/v1/models.py +18 -0
- ksyun/client/kkms/__init__.py +0 -0
- ksyun/client/kkms/v20160304/__init__.py +0 -0
- ksyun/client/kkms/v20160304/client.py +192 -0
- ksyun/client/kkms/v20160304/models.py +185 -0
- ksyun/client/klog/__init__.py +0 -0
- ksyun/client/klog/v20200731/__init__.py +0 -0
- ksyun/client/klog/v20200731/client.py +376 -0
- ksyun/client/klog/v20200731/models.py +508 -0
- ksyun/client/kls/__init__.py +0 -0
- ksyun/client/kls/v20170101/__init__.py +0 -0
- ksyun/client/kls/v20170101/client.py +192 -0
- ksyun/client/kls/v20170101/models.py +320 -0
- ksyun/client/kmr/__init__.py +0 -0
- ksyun/client/kmr/v20210902/__init__.py +0 -0
- ksyun/client/kmr/v20210902/client.py +537 -0
- ksyun/client/kmr/v20210902/models.py +536 -0
- ksyun/client/kmr/v20231231/__init__.py +0 -0
- ksyun/client/kmr/v20231231/client.py +169 -0
- ksyun/client/kmr/v20231231/models.py +201 -0
- ksyun/client/kmr/v20240814/__init__.py +0 -0
- ksyun/client/kmr/v20240814/client.py +445 -0
- ksyun/client/kmr/v20240814/models.py +523 -0
- ksyun/client/knad/__init__.py +0 -0
- ksyun/client/knad/v20230323/__init__.py +0 -0
- ksyun/client/knad/v20230323/client.py +399 -0
- ksyun/client/knad/v20230323/models.py +470 -0
- ksyun/client/kpfs/__init__.py +0 -0
- ksyun/client/kpfs/v20240930/__init__.py +0 -0
- ksyun/client/kpfs/v20240930/client.py +217 -0
- ksyun/client/kpfs/v20240930/models.py +396 -0
- ksyun/client/krds/__init__.py +0 -0
- ksyun/client/krds/v20160701/__init__.py +0 -0
- ksyun/client/krds/v20160701/client.py +2101 -0
- ksyun/client/krds/v20160701/models.py +2722 -0
- ksyun/client/krds/v20200825/__init__.py +0 -0
- ksyun/client/krds/v20200825/client.py +238 -0
- ksyun/client/krds/v20200825/models.py +336 -0
- ksyun/client/memcached/__init__.py +0 -0
- ksyun/client/memcached/v20180627/__init__.py +0 -0
- ksyun/client/memcached/v20180627/client.py +307 -0
- ksyun/client/memcached/v20180627/models.py +317 -0
- ksyun/client/milvus/__init__.py +0 -0
- ksyun/client/milvus/v20231010/__init__.py +0 -0
- ksyun/client/milvus/v20231010/client.py +445 -0
- ksyun/client/milvus/v20231010/models.py +520 -0
- ksyun/client/mongodb/v20170101/client.py +312 -84
- ksyun/client/mongodb/v20170101/models.py +251 -34
- ksyun/client/mongodb/v20250101/__init__.py +0 -0
- ksyun/client/mongodb/v20250101/client.py +31 -0
- ksyun/client/mongodb/v20250101/models.py +18 -0
- ksyun/client/monitor/__init__.py +0 -0
- ksyun/client/monitor/v20100525/__init__.py +0 -0
- ksyun/client/monitor/v20100525/client.py +54 -0
- ksyun/client/monitor/v20100525/models.py +108 -0
- ksyun/client/monitor/v20181114/__init__.py +0 -0
- ksyun/client/monitor/v20181114/client.py +31 -0
- ksyun/client/monitor/v20181114/models.py +59 -0
- ksyun/client/monitor/v20210101/__init__.py +0 -0
- ksyun/client/monitor/v20210101/client.py +284 -0
- ksyun/client/monitor/v20210101/models.py +330 -0
- ksyun/client/monitor/v20220101/__init__.py +0 -0
- ksyun/client/monitor/v20220101/client.py +54 -0
- ksyun/client/monitor/v20220101/models.py +32 -0
- ksyun/client/monitor/v20250101/__init__.py +0 -0
- ksyun/client/monitor/v20250101/client.py +121 -0
- ksyun/client/monitor/v20250101/models.py +188 -0
- ksyun/client/pdns/__init__.py +0 -0
- ksyun/client/pdns/v20160304/__init__.py +0 -0
- ksyun/client/pdns/v20160304/client.py +813 -0
- ksyun/client/pdns/v20160304/models.py +805 -0
- ksyun/client/postgresql/__init__.py +0 -0
- ksyun/client/postgresql/v20181225/__init__.py +0 -0
- ksyun/client/postgresql/v20181225/client.py +1158 -0
- ksyun/client/postgresql/v20181225/models.py +1629 -0
- ksyun/client/rabbitmq/__init__.py +0 -0
- ksyun/client/rabbitmq/v20191017/__init__.py +0 -0
- ksyun/client/rabbitmq/v20191017/client.py +445 -0
- ksyun/client/rabbitmq/v20191017/models.py +413 -0
- ksyun/client/relyt/__init__.py +0 -0
- ksyun/client/relyt/v20240117/__init__.py +0 -0
- ksyun/client/{bill_union/v20211209 → relyt/v20240117}/client.py +10 -12
- ksyun/client/relyt/v20240117/models.py +23 -0
- ksyun/client/resourcemanager/v20210320/client.py +16 -18
- ksyun/client/sks/v20151101/client.py +11 -13
- ksyun/client/sks/v20151101/models.py +28 -2
- ksyun/client/slb/v20160304/client.py +1099 -112
- ksyun/client/slb/v20160304/models.py +1697 -24
- ksyun/client/slb/v20250430/__init__.py +0 -0
- ksyun/client/slb/v20250430/client.py +813 -0
- ksyun/client/slb/v20250430/models.py +1372 -0
- ksyun/client/sqlserver/__init__.py +0 -0
- ksyun/client/sqlserver/v20190425/__init__.py +0 -0
- ksyun/client/sqlserver/v20190425/client.py +1066 -0
- ksyun/client/sqlserver/v20190425/models.py +1528 -0
- ksyun/client/sts/v20151101/client.py +23 -2
- ksyun/client/sts/v20151101/models.py +54 -1
- ksyun/client/tagv2/v20200901/client.py +60 -16
- ksyun/client/tagv2/v20200901/models.py +56 -4
- ksyun/client/ter/__init__.py +0 -0
- ksyun/client/ter/v20240415/__init__.py +0 -0
- ksyun/client/ter/v20240415/client.py +123 -0
- ksyun/client/ter/v20240415/models.py +115 -0
- ksyun/client/tidb/__init__.py +0 -0
- ksyun/client/tidb/v20210520/__init__.py +0 -0
- ksyun/client/tidb/v20210520/client.py +928 -0
- ksyun/client/tidb/v20210520/models.py +1162 -0
- ksyun/client/trade/v20200114/client.py +2 -4
- ksyun/client/trade/v20200831/client.py +2 -4
- ksyun/client/trade/v20250220/__init__.py +0 -0
- ksyun/client/trade/v20250220/client.py +100 -0
- ksyun/client/trade/v20250220/models.py +91 -0
- ksyun/client/trade/v20250321/__init__.py +0 -0
- ksyun/client/trade/v20250321/client.py +100 -0
- ksyun/client/trade/v20250321/models.py +71 -0
- ksyun/client/trade/v20250828/__init__.py +0 -0
- ksyun/client/trade/v20250828/client.py +31 -0
- ksyun/client/trade/v20250828/models.py +81 -0
- ksyun/client/vpc/v20160304/client.py +1377 -229
- ksyun/client/vpc/v20160304/models.py +1540 -138
- ksyun/client/waf/__init__.py +0 -0
- ksyun/client/waf/v20200707/__init__.py +0 -0
- ksyun/client/waf/v20200707/client.py +468 -0
- ksyun/client/waf/v20200707/models.py +738 -0
- ksyun/common/abstract_client.py +57 -21
- ksyun/common/abstract_model.py +3 -3
- ksyun/common/common_client.py +2 -0
- ksyun/common/credential.py +2 -0
- ksyun/common/exception/ksyun_sdk_exception.py +11 -7
- ksyun/common/http/request.py +45 -6
- ksyun/common/profile/client_profile.py +3 -0
- ksyun/common/profile/http_profile.py +28 -1
- kingsoftcloud_sdk_python-1.1.1.dist-info/METADATA +0 -47
- kingsoftcloud_sdk_python-1.1.1.dist-info/RECORD +0 -105
- ksyun/client/bill_union/v20211209/models.py +0 -38
- ksyun/client/slb/v20171210/models.py +0 -33
- ksyun/common/sign.py +0 -33
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info/licenses}/LICENSE +0 -0
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/top_level.txt +0 -0
- /ksyun/client/{bill_union/v20211209 → aicp}/__init__.py +0 -0
- /ksyun/client/{slb/v20171210 → aicp/v20240612}/__init__.py +0 -0
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class CreateInstanceRequest(AbstractModel):
|
|
4
|
+
"""CreateInstance请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""创建实例。
|
|
9
|
+
:param ProjectId: 所属项目Id。
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
:param InstanceName: RabbitMQ实例名称,
|
|
12
|
+
校验规则:6-64个中文或者英文字符,包括汉字,大小写字母,数字,下划线及中划线
|
|
13
|
+
:type PathPrefix: String
|
|
14
|
+
:param InstancePassword: 实例密码。
|
|
15
|
+
:type PathPrefix: String
|
|
16
|
+
:param VpcId: VPC网络ID。
|
|
17
|
+
:type PathPrefix: String
|
|
18
|
+
:param SubnetId: 终端子网ID。
|
|
19
|
+
:type PathPrefix: String
|
|
20
|
+
:param EngineVersion: 实例版本。
|
|
21
|
+
:type PathPrefix: String
|
|
22
|
+
:param BillType: 计费类型
|
|
23
|
+
:type PathPrefix: Int
|
|
24
|
+
:param Duration: 计费区间(供包年包月计费方式使用)
|
|
25
|
+
:type PathPrefix: Int
|
|
26
|
+
:param Mode: 实例模式。
|
|
27
|
+
:type PathPrefix: String
|
|
28
|
+
:param InstanceType: 实例套餐。
|
|
29
|
+
:type PathPrefix: String
|
|
30
|
+
:param SsdDisk: 实例硬盘。
|
|
31
|
+
:type PathPrefix: Int
|
|
32
|
+
:param NodeNum: 实例节点数量。默认为3。
|
|
33
|
+
:type PathPrefix: Int
|
|
34
|
+
"""
|
|
35
|
+
self.ProjectId = None
|
|
36
|
+
self.InstanceName = None
|
|
37
|
+
self.InstancePassword = None
|
|
38
|
+
self.VpcId = None
|
|
39
|
+
self.SubnetId = None
|
|
40
|
+
self.EngineVersion = None
|
|
41
|
+
self.BillType = None
|
|
42
|
+
self.Duration = None
|
|
43
|
+
self.Mode = None
|
|
44
|
+
self.InstanceType = None
|
|
45
|
+
self.SsdDisk = None
|
|
46
|
+
self.NodeNum = None
|
|
47
|
+
|
|
48
|
+
def _deserialize(self, params):
|
|
49
|
+
if params.get("ProjectId"):
|
|
50
|
+
self.ProjectId = params.get("ProjectId")
|
|
51
|
+
if params.get("InstanceName"):
|
|
52
|
+
self.InstanceName = params.get("InstanceName")
|
|
53
|
+
if params.get("InstancePassword"):
|
|
54
|
+
self.InstancePassword = params.get("InstancePassword")
|
|
55
|
+
if params.get("VpcId"):
|
|
56
|
+
self.VpcId = params.get("VpcId")
|
|
57
|
+
if params.get("SubnetId"):
|
|
58
|
+
self.SubnetId = params.get("SubnetId")
|
|
59
|
+
if params.get("EngineVersion"):
|
|
60
|
+
self.EngineVersion = params.get("EngineVersion")
|
|
61
|
+
if params.get("BillType"):
|
|
62
|
+
self.BillType = params.get("BillType")
|
|
63
|
+
if params.get("Duration"):
|
|
64
|
+
self.Duration = params.get("Duration")
|
|
65
|
+
if params.get("Mode"):
|
|
66
|
+
self.Mode = params.get("Mode")
|
|
67
|
+
if params.get("InstanceType"):
|
|
68
|
+
self.InstanceType = params.get("InstanceType")
|
|
69
|
+
if params.get("SsdDisk"):
|
|
70
|
+
self.SsdDisk = params.get("SsdDisk")
|
|
71
|
+
if params.get("NodeNum"):
|
|
72
|
+
self.NodeNum = params.get("NodeNum")
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class DeleteInstanceRequest(AbstractModel):
|
|
76
|
+
"""DeleteInstance请求参数结构体
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
def __init__(self):
|
|
80
|
+
r"""删除实例。
|
|
81
|
+
:param InstanceId: 实例Id。
|
|
82
|
+
:type PathPrefix: String
|
|
83
|
+
"""
|
|
84
|
+
self.InstanceId = None
|
|
85
|
+
|
|
86
|
+
def _deserialize(self, params):
|
|
87
|
+
if params.get("InstanceId"):
|
|
88
|
+
self.InstanceId = params.get("InstanceId")
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
class DescribeInstancesRequest(AbstractModel):
|
|
92
|
+
"""DescribeInstances请求参数结构体
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
def __init__(self):
|
|
96
|
+
r"""查询实例列表
|
|
97
|
+
:param InstanceId: 实例Id。
|
|
98
|
+
:type PathPrefix: String
|
|
99
|
+
:param InstanceName: 实例名称。
|
|
100
|
+
:type PathPrefix: String
|
|
101
|
+
:param VpcId: VPC网络ID。
|
|
102
|
+
:type PathPrefix: String
|
|
103
|
+
:param SubnetId: 终端子网ID。
|
|
104
|
+
:type PathPrefix: String
|
|
105
|
+
:param Offset: 位移量(查询数据的开始位置,默认为0)
|
|
106
|
+
:type PathPrefix: Int
|
|
107
|
+
:param Limit: 每页记录大小, 最小值是1, 最大值100, 默认值是10
|
|
108
|
+
:type PathPrefix: Int
|
|
109
|
+
:param OrderBy: 排序字段:InstanceId,InstanceName,VpcId,SubnetId,CreateDate
|
|
110
|
+
|
|
111
|
+
默认为依照实例新建时间由新到旧依次排列,即按创建时间倒序。
|
|
112
|
+
OrderBy只为排序字段时,默认按升序排列
|
|
113
|
+
可按“实例名称“进行升降排序
|
|
114
|
+
传值为如下:
|
|
115
|
+
instanceName,asc
|
|
116
|
+
instanceName,desc
|
|
117
|
+
可按“创建时间”进行升降排序
|
|
118
|
+
传值如下:
|
|
119
|
+
createTime,asc
|
|
120
|
+
createTime,desc
|
|
121
|
+
:type PathPrefix: String
|
|
122
|
+
:param ProjectId: 项目Id,多项目id使用‘,’ 分隔。
|
|
123
|
+
:type PathPrefix: String
|
|
124
|
+
"""
|
|
125
|
+
self.InstanceId = None
|
|
126
|
+
self.InstanceName = None
|
|
127
|
+
self.VpcId = None
|
|
128
|
+
self.SubnetId = None
|
|
129
|
+
self.Offset = None
|
|
130
|
+
self.Limit = None
|
|
131
|
+
self.OrderBy = None
|
|
132
|
+
self.ProjectId = None
|
|
133
|
+
|
|
134
|
+
def _deserialize(self, params):
|
|
135
|
+
if params.get("InstanceId"):
|
|
136
|
+
self.InstanceId = params.get("InstanceId")
|
|
137
|
+
if params.get("InstanceName"):
|
|
138
|
+
self.InstanceName = params.get("InstanceName")
|
|
139
|
+
if params.get("VpcId"):
|
|
140
|
+
self.VpcId = params.get("VpcId")
|
|
141
|
+
if params.get("SubnetId"):
|
|
142
|
+
self.SubnetId = params.get("SubnetId")
|
|
143
|
+
if params.get("Offset"):
|
|
144
|
+
self.Offset = params.get("Offset")
|
|
145
|
+
if params.get("Limit"):
|
|
146
|
+
self.Limit = params.get("Limit")
|
|
147
|
+
if params.get("OrderBy"):
|
|
148
|
+
self.OrderBy = params.get("OrderBy")
|
|
149
|
+
if params.get("ProjectId"):
|
|
150
|
+
self.ProjectId = params.get("ProjectId")
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
class DescribeInstanceRequest(AbstractModel):
|
|
154
|
+
"""DescribeInstance请求参数结构体
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
def __init__(self):
|
|
158
|
+
r"""查询实例详情
|
|
159
|
+
:param InstanceId: 实例Id。
|
|
160
|
+
:type PathPrefix: String
|
|
161
|
+
"""
|
|
162
|
+
self.InstanceId = None
|
|
163
|
+
|
|
164
|
+
def _deserialize(self, params):
|
|
165
|
+
if params.get("InstanceId"):
|
|
166
|
+
self.InstanceId = params.get("InstanceId")
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
class DescribeInstanceNodesRequest(AbstractModel):
|
|
170
|
+
"""DescribeInstanceNodes请求参数结构体
|
|
171
|
+
"""
|
|
172
|
+
|
|
173
|
+
def __init__(self):
|
|
174
|
+
r"""查询实例节点列表
|
|
175
|
+
:param InstanceId: 实例Id。
|
|
176
|
+
:type PathPrefix: String
|
|
177
|
+
"""
|
|
178
|
+
self.InstanceId = None
|
|
179
|
+
|
|
180
|
+
def _deserialize(self, params):
|
|
181
|
+
if params.get("InstanceId"):
|
|
182
|
+
self.InstanceId = params.get("InstanceId")
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
class DescribeValidRegionRequest(AbstractModel):
|
|
186
|
+
"""DescribeValidRegion请求参数结构体
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
def __init__(self):
|
|
190
|
+
r"""查询地域列表
|
|
191
|
+
"""
|
|
192
|
+
|
|
193
|
+
def _deserialize(self, params):
|
|
194
|
+
return
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
class DescribeRegionsRequest(AbstractModel):
|
|
198
|
+
"""DescribeRegions请求参数结构体
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
def __init__(self):
|
|
202
|
+
r"""查询可用区列表
|
|
203
|
+
"""
|
|
204
|
+
|
|
205
|
+
def _deserialize(self, params):
|
|
206
|
+
return
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
class DescribeSecurityGroupRulesRequest(AbstractModel):
|
|
210
|
+
"""DescribeSecurityGroupRules请求参数结构体
|
|
211
|
+
"""
|
|
212
|
+
|
|
213
|
+
def __init__(self):
|
|
214
|
+
r"""查询安全组列表
|
|
215
|
+
:param InstanceId: 实例Id。
|
|
216
|
+
:type PathPrefix: String
|
|
217
|
+
"""
|
|
218
|
+
self.InstanceId = None
|
|
219
|
+
|
|
220
|
+
def _deserialize(self, params):
|
|
221
|
+
if params.get("InstanceId"):
|
|
222
|
+
self.InstanceId = params.get("InstanceId")
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
class AddSecurityGroupRuleRequest(AbstractModel):
|
|
226
|
+
"""AddSecurityGroupRule请求参数结构体
|
|
227
|
+
"""
|
|
228
|
+
|
|
229
|
+
def __init__(self):
|
|
230
|
+
r"""添加安全组规则
|
|
231
|
+
:param InstanceId: 实例Id。
|
|
232
|
+
:type PathPrefix: String
|
|
233
|
+
:param Cidrs: IP地址段。如:0.0.0.0/16,0.0.0.0/24。多个","分隔
|
|
234
|
+
:type PathPrefix: String
|
|
235
|
+
"""
|
|
236
|
+
self.InstanceId = None
|
|
237
|
+
self.Cidrs = None
|
|
238
|
+
|
|
239
|
+
def _deserialize(self, params):
|
|
240
|
+
if params.get("InstanceId"):
|
|
241
|
+
self.InstanceId = params.get("InstanceId")
|
|
242
|
+
if params.get("Cidrs"):
|
|
243
|
+
self.Cidrs = params.get("Cidrs")
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
class DeleteSecurityGroupRulesRequest(AbstractModel):
|
|
247
|
+
"""DeleteSecurityGroupRules请求参数结构体
|
|
248
|
+
"""
|
|
249
|
+
|
|
250
|
+
def __init__(self):
|
|
251
|
+
r"""删除安全组规则
|
|
252
|
+
:param InstanceId: 实例Id。
|
|
253
|
+
:type PathPrefix: String
|
|
254
|
+
:param Cidrs: Ip地址段,如:0.0.0.0/16,0.0.0.0/24。多个以","分隔
|
|
255
|
+
:type PathPrefix: String
|
|
256
|
+
"""
|
|
257
|
+
self.InstanceId = None
|
|
258
|
+
self.Cidrs = None
|
|
259
|
+
|
|
260
|
+
def _deserialize(self, params):
|
|
261
|
+
if params.get("InstanceId"):
|
|
262
|
+
self.InstanceId = params.get("InstanceId")
|
|
263
|
+
if params.get("Cidrs"):
|
|
264
|
+
self.Cidrs = params.get("Cidrs")
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
class ResetPasswordRequest(AbstractModel):
|
|
268
|
+
"""ResetPassword请求参数结构体
|
|
269
|
+
"""
|
|
270
|
+
|
|
271
|
+
def __init__(self):
|
|
272
|
+
r"""实例重置密码
|
|
273
|
+
:param InstanceId: 实例Id。
|
|
274
|
+
:type PathPrefix: String
|
|
275
|
+
:param InstancePassword: 实例新密码。
|
|
276
|
+
:type PathPrefix: String
|
|
277
|
+
"""
|
|
278
|
+
self.InstanceId = None
|
|
279
|
+
self.InstancePassword = None
|
|
280
|
+
|
|
281
|
+
def _deserialize(self, params):
|
|
282
|
+
if params.get("InstanceId"):
|
|
283
|
+
self.InstanceId = params.get("InstanceId")
|
|
284
|
+
if params.get("InstancePassword"):
|
|
285
|
+
self.InstancePassword = params.get("InstancePassword")
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
class RenameRequest(AbstractModel):
|
|
289
|
+
"""Rename请求参数结构体
|
|
290
|
+
"""
|
|
291
|
+
|
|
292
|
+
def __init__(self):
|
|
293
|
+
r"""实例修改名称
|
|
294
|
+
:param InstanceId: 实例Id。
|
|
295
|
+
:type PathPrefix: String
|
|
296
|
+
:param InstanceName: 实例新名称。
|
|
297
|
+
:type PathPrefix: String
|
|
298
|
+
"""
|
|
299
|
+
self.InstanceId = None
|
|
300
|
+
self.InstanceName = None
|
|
301
|
+
|
|
302
|
+
def _deserialize(self, params):
|
|
303
|
+
if params.get("InstanceId"):
|
|
304
|
+
self.InstanceId = params.get("InstanceId")
|
|
305
|
+
if params.get("InstanceName"):
|
|
306
|
+
self.InstanceName = params.get("InstanceName")
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
class AllocateEipRequest(AbstractModel):
|
|
310
|
+
"""AllocateEip请求参数结构体
|
|
311
|
+
"""
|
|
312
|
+
|
|
313
|
+
def __init__(self):
|
|
314
|
+
r"""申请外网EIP
|
|
315
|
+
:param InstanceId: 实例Id。
|
|
316
|
+
:type PathPrefix: String
|
|
317
|
+
"""
|
|
318
|
+
self.InstanceId = None
|
|
319
|
+
|
|
320
|
+
def _deserialize(self, params):
|
|
321
|
+
if params.get("InstanceId"):
|
|
322
|
+
self.InstanceId = params.get("InstanceId")
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
class DeallocateEipRequest(AbstractModel):
|
|
326
|
+
"""DeallocateEip请求参数结构体
|
|
327
|
+
"""
|
|
328
|
+
|
|
329
|
+
def __init__(self):
|
|
330
|
+
r"""释放外网eip
|
|
331
|
+
:param InstanceId: 实例Id。
|
|
332
|
+
:type PathPrefix: String
|
|
333
|
+
"""
|
|
334
|
+
self.InstanceId = None
|
|
335
|
+
|
|
336
|
+
def _deserialize(self, params):
|
|
337
|
+
if params.get("InstanceId"):
|
|
338
|
+
self.InstanceId = params.get("InstanceId")
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
class SupportPluginsRequest(AbstractModel):
|
|
342
|
+
"""SupportPlugins请求参数结构体
|
|
343
|
+
"""
|
|
344
|
+
|
|
345
|
+
def __init__(self):
|
|
346
|
+
r"""查询实例支持的插件列表
|
|
347
|
+
"""
|
|
348
|
+
|
|
349
|
+
def _deserialize(self, params):
|
|
350
|
+
return
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
class RestartInstanceRequest(AbstractModel):
|
|
354
|
+
"""RestartInstance请求参数结构体
|
|
355
|
+
"""
|
|
356
|
+
|
|
357
|
+
def __init__(self):
|
|
358
|
+
r"""重启实例。
|
|
359
|
+
"""
|
|
360
|
+
|
|
361
|
+
def _deserialize(self, params):
|
|
362
|
+
return
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
class ListInstancePluginsRequest(AbstractModel):
|
|
366
|
+
"""ListInstancePlugins请求参数结构体
|
|
367
|
+
"""
|
|
368
|
+
|
|
369
|
+
def __init__(self):
|
|
370
|
+
r"""查询实例插件列表
|
|
371
|
+
"""
|
|
372
|
+
|
|
373
|
+
def _deserialize(self, params):
|
|
374
|
+
return
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
class EnableInstancePluginsRequest(AbstractModel):
|
|
378
|
+
"""EnableInstancePlugins请求参数结构体
|
|
379
|
+
"""
|
|
380
|
+
|
|
381
|
+
def __init__(self):
|
|
382
|
+
r"""实例启用插件
|
|
383
|
+
"""
|
|
384
|
+
|
|
385
|
+
def _deserialize(self, params):
|
|
386
|
+
return
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
class DisableInstancePluginsRequest(AbstractModel):
|
|
390
|
+
"""DisableInstancePlugins请求参数结构体
|
|
391
|
+
"""
|
|
392
|
+
|
|
393
|
+
def __init__(self):
|
|
394
|
+
r"""实例插件列表
|
|
395
|
+
:param InstanceId: 实例Id。
|
|
396
|
+
:type PathPrefix: String
|
|
397
|
+
:param DisablePlugins: 禁用插件列表,格式如下:
|
|
398
|
+
[
|
|
399
|
+
"rabbitmq_amqp1_0",
|
|
400
|
+
"rabbitmq_delayed_message_exchange"
|
|
401
|
+
]
|
|
402
|
+
:type PathPrefix: Array
|
|
403
|
+
"""
|
|
404
|
+
self.InstanceId = None
|
|
405
|
+
self.DisablePlugins = None
|
|
406
|
+
|
|
407
|
+
def _deserialize(self, params):
|
|
408
|
+
if params.get("InstanceId"):
|
|
409
|
+
self.InstanceId = params.get("InstanceId")
|
|
410
|
+
if params.get("DisablePlugins"):
|
|
411
|
+
self.DisablePlugins = params.get("DisablePlugins")
|
|
412
|
+
|
|
413
|
+
|
|
File without changes
|
|
File without changes
|
|
@@ -4,18 +4,18 @@ from ksyun.common.exception.ksyun_sdk_exception import KsyunSDKException
|
|
|
4
4
|
from ksyun.common.abstract_client import AbstractClient
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
class
|
|
8
|
-
_apiVersion = '
|
|
9
|
-
_endpoint = '
|
|
10
|
-
_service = '
|
|
11
|
-
def
|
|
12
|
-
"""
|
|
13
|
-
:param request: Request instance for
|
|
14
|
-
:type request: :class:`ksyun.client.
|
|
7
|
+
class RelytClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2024-01-17'
|
|
9
|
+
_endpoint = 'relyt.api.ksyun.com'
|
|
10
|
+
_service = 'relyt'
|
|
11
|
+
def GetDwsuMetric(self, request):
|
|
12
|
+
"""获取实例监控数据
|
|
13
|
+
:param request: Request instance for GetDwsuMetric.
|
|
14
|
+
:type request: :class:`ksyun.client.relyt.v20240117.models.GetDwsuMetricRequest`
|
|
15
15
|
"""
|
|
16
16
|
try:
|
|
17
17
|
params = request._serialize()
|
|
18
|
-
body = self.
|
|
18
|
+
body = self.call_judge("GetDwsuMetric", params, "application/json")
|
|
19
19
|
response = json.loads(body)
|
|
20
20
|
if "Error" not in response:
|
|
21
21
|
return body
|
|
@@ -28,6 +28,4 @@ class Bill_unionClient(AbstractClient):
|
|
|
28
28
|
if isinstance(e, KsyunSDKException):
|
|
29
29
|
raise
|
|
30
30
|
else:
|
|
31
|
-
raise KsyunSDKException(
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class GetDwsuMetricRequest(AbstractModel):
|
|
4
|
+
"""GetDwsuMetric请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""获取实例监控数据
|
|
9
|
+
:param DwsuId: Dwsu ID,即实例ID
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
:param Timestamp: 秒级 Unix 时间戳,如果不提供则默认表示当时间
|
|
12
|
+
:type PathPrefix: Int
|
|
13
|
+
"""
|
|
14
|
+
self.DwsuId = None
|
|
15
|
+
self.Timestamp = None
|
|
16
|
+
|
|
17
|
+
def _deserialize(self, params):
|
|
18
|
+
if params.get("DwsuId"):
|
|
19
|
+
self.DwsuId = params.get("DwsuId")
|
|
20
|
+
if params.get("Timestamp"):
|
|
21
|
+
self.Timestamp = params.get("Timestamp")
|
|
22
|
+
|
|
23
|
+
|
|
@@ -15,7 +15,7 @@ class ResourcemanagerClient(AbstractClient):
|
|
|
15
15
|
"""
|
|
16
16
|
try:
|
|
17
17
|
params = request._serialize()
|
|
18
|
-
body = self.
|
|
18
|
+
body = self.call_judge("CreateFolder", params, "application/x-www-form-urlencoded")
|
|
19
19
|
response = json.loads(body)
|
|
20
20
|
if "Error" not in response:
|
|
21
21
|
return body
|
|
@@ -28,7 +28,7 @@ class ResourcemanagerClient(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 DeleteFolder(self, request):
|
|
@@ -38,7 +38,7 @@ class ResourcemanagerClient(AbstractClient):
|
|
|
38
38
|
"""
|
|
39
39
|
try:
|
|
40
40
|
params = request._serialize()
|
|
41
|
-
body = self.
|
|
41
|
+
body = self.call_judge("DeleteFolder", params, "application/x-www-form-urlencoded")
|
|
42
42
|
response = json.loads(body)
|
|
43
43
|
if "Error" not in response:
|
|
44
44
|
return body
|
|
@@ -51,7 +51,7 @@ class ResourcemanagerClient(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 UpdateFolder(self, request):
|
|
@@ -61,7 +61,7 @@ class ResourcemanagerClient(AbstractClient):
|
|
|
61
61
|
"""
|
|
62
62
|
try:
|
|
63
63
|
params = request._serialize()
|
|
64
|
-
body = self.
|
|
64
|
+
body = self.call_judge("UpdateFolder", params, "application/x-www-form-urlencoded")
|
|
65
65
|
response = json.loads(body)
|
|
66
66
|
if "Error" not in response:
|
|
67
67
|
return body
|
|
@@ -74,7 +74,7 @@ class ResourcemanagerClient(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 ListAccountsForParent(self, request):
|
|
@@ -84,7 +84,7 @@ class ResourcemanagerClient(AbstractClient):
|
|
|
84
84
|
"""
|
|
85
85
|
try:
|
|
86
86
|
params = request._serialize()
|
|
87
|
-
body = self.
|
|
87
|
+
body = self.call_judge("ListAccountsForParent", params, "application/x-www-form-urlencoded")
|
|
88
88
|
response = json.loads(body)
|
|
89
89
|
if "Error" not in response:
|
|
90
90
|
return body
|
|
@@ -97,7 +97,7 @@ class ResourcemanagerClient(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 MoveAccount(self, request):
|
|
@@ -107,7 +107,7 @@ class ResourcemanagerClient(AbstractClient):
|
|
|
107
107
|
"""
|
|
108
108
|
try:
|
|
109
109
|
params = request._serialize()
|
|
110
|
-
body = self.
|
|
110
|
+
body = self.call_judge("MoveAccount", params, "application/x-www-form-urlencoded")
|
|
111
111
|
response = json.loads(body)
|
|
112
112
|
if "Error" not in response:
|
|
113
113
|
return body
|
|
@@ -120,7 +120,7 @@ class ResourcemanagerClient(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 UpdateAccount(self, request):
|
|
@@ -130,7 +130,7 @@ class ResourcemanagerClient(AbstractClient):
|
|
|
130
130
|
"""
|
|
131
131
|
try:
|
|
132
132
|
params = request._serialize()
|
|
133
|
-
body = self.
|
|
133
|
+
body = self.call_judge("UpdateAccount", params, "application/x-www-form-urlencoded")
|
|
134
134
|
response = json.loads(body)
|
|
135
135
|
if "Error" not in response:
|
|
136
136
|
return body
|
|
@@ -143,7 +143,7 @@ class ResourcemanagerClient(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 ListAccounts(self, request):
|
|
@@ -153,7 +153,7 @@ class ResourcemanagerClient(AbstractClient):
|
|
|
153
153
|
"""
|
|
154
154
|
try:
|
|
155
155
|
params = request._serialize()
|
|
156
|
-
body = self.
|
|
156
|
+
body = self.call_judge("ListAccounts", params, "application/x-www-form-urlencoded")
|
|
157
157
|
response = json.loads(body)
|
|
158
158
|
if "Error" not in response:
|
|
159
159
|
return body
|
|
@@ -166,7 +166,7 @@ class ResourcemanagerClient(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 ListFolders(self, request):
|
|
@@ -176,7 +176,7 @@ class ResourcemanagerClient(AbstractClient):
|
|
|
176
176
|
"""
|
|
177
177
|
try:
|
|
178
178
|
params = request._serialize()
|
|
179
|
-
body = self.
|
|
179
|
+
body = self.call_judge("ListFolders", params, "application/x-www-form-urlencoded")
|
|
180
180
|
response = json.loads(body)
|
|
181
181
|
if "Error" not in response:
|
|
182
182
|
return body
|
|
@@ -189,6 +189,4 @@ class ResourcemanagerClient(AbstractClient):
|
|
|
189
189
|
if isinstance(e, KsyunSDKException):
|
|
190
190
|
raise
|
|
191
191
|
else:
|
|
192
|
-
raise KsyunSDKException(
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
raise KsyunSDKException(message=str(e))
|