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
|
@@ -77,7 +77,7 @@ class DeleteMongoDBInstanceRequest(AbstractModel):
|
|
|
77
77
|
"""
|
|
78
78
|
|
|
79
79
|
def __init__(self):
|
|
80
|
-
r"""
|
|
80
|
+
r"""删除实例。
|
|
81
81
|
:param InstanceId: 实例ID
|
|
82
82
|
:type PathPrefix: String
|
|
83
83
|
"""
|
|
@@ -109,7 +109,7 @@ class DescribeMongoDBInstancesRequest(AbstractModel):
|
|
|
109
109
|
"""
|
|
110
110
|
|
|
111
111
|
def __init__(self):
|
|
112
|
-
r"""
|
|
112
|
+
r"""查询实例列表
|
|
113
113
|
:param Area: 按可用区筛选。
|
|
114
114
|
:type PathPrefix: String
|
|
115
115
|
:param Vip: 实例IP地址。
|
|
@@ -118,8 +118,7 @@ class DescribeMongoDBInstancesRequest(AbstractModel):
|
|
|
118
118
|
:type PathPrefix: String
|
|
119
119
|
:param VnetId: 终端子网ID。
|
|
120
120
|
:type PathPrefix: String
|
|
121
|
-
:param IamProjectId:
|
|
122
|
-
默认是0(默认项目),如果查询全部项目,需要传入所有的项目ID,‘,’隔开。
|
|
121
|
+
:param IamProjectId: 项目制ID。如需指定查询多个项目制下实例,用‘,’隔开。默认查询全部项目制。
|
|
123
122
|
:type PathPrefix: String
|
|
124
123
|
:param InstanceId: 实例Id。
|
|
125
124
|
:type PathPrefix: String
|
|
@@ -206,12 +205,17 @@ class DescribeMongoDBInstanceNodeRequest(AbstractModel):
|
|
|
206
205
|
r"""查询副本集实例节点信息
|
|
207
206
|
:param InstanceId: 实例ID。
|
|
208
207
|
:type PathPrefix: String
|
|
208
|
+
:param NodeId: 分片集群的shard节点的ID。暂不支持批量查询。
|
|
209
|
+
:type PathPrefix: String
|
|
209
210
|
"""
|
|
210
211
|
self.InstanceId = None
|
|
212
|
+
self.NodeId = None
|
|
211
213
|
|
|
212
214
|
def _deserialize(self, params):
|
|
213
215
|
if params.get("InstanceId"):
|
|
214
216
|
self.InstanceId = params.get("InstanceId")
|
|
217
|
+
if params.get("NodeId"):
|
|
218
|
+
self.NodeId = params.get("NodeId")
|
|
215
219
|
|
|
216
220
|
|
|
217
221
|
class RenameMongoDBInstanceRequest(AbstractModel):
|
|
@@ -240,7 +244,7 @@ class ResetPasswordMongoDBInstanceRequest(AbstractModel):
|
|
|
240
244
|
"""
|
|
241
245
|
|
|
242
246
|
def __init__(self):
|
|
243
|
-
r"""
|
|
247
|
+
r"""修改实例密码
|
|
244
248
|
:param InstanceId: 实例id
|
|
245
249
|
:type PathPrefix: String
|
|
246
250
|
:param InstancePassword: 实例修改后的密码。8-30个字符,必须包含大小写字母和数字,支持特殊字符字符为!@#$%^&*()_+=-
|
|
@@ -261,7 +265,7 @@ class RestartMongoDBInstanceRequest(AbstractModel):
|
|
|
261
265
|
"""
|
|
262
266
|
|
|
263
267
|
def __init__(self):
|
|
264
|
-
r"""
|
|
268
|
+
r"""重启实例。
|
|
265
269
|
:param InstanceId: 实例ID
|
|
266
270
|
:type PathPrefix: String
|
|
267
271
|
"""
|
|
@@ -277,7 +281,7 @@ class CreateMongoDBSnapshotRequest(AbstractModel):
|
|
|
277
281
|
"""
|
|
278
282
|
|
|
279
283
|
def __init__(self):
|
|
280
|
-
r"""
|
|
284
|
+
r"""手动创建备份
|
|
281
285
|
:param InstanceId: 实例Id。
|
|
282
286
|
:type PathPrefix: String
|
|
283
287
|
:param Name: 备份名称
|
|
@@ -350,7 +354,7 @@ class DeleteMongoDBSnapshotRequest(AbstractModel):
|
|
|
350
354
|
"""
|
|
351
355
|
|
|
352
356
|
def __init__(self):
|
|
353
|
-
r"""
|
|
357
|
+
r"""删除备份。
|
|
354
358
|
:param InstanceId: 实例Id。
|
|
355
359
|
:type PathPrefix: String
|
|
356
360
|
:param SnapshotId: 备份Id
|
|
@@ -371,7 +375,7 @@ class RenameMongoDBSnapshotRequest(AbstractModel):
|
|
|
371
375
|
"""
|
|
372
376
|
|
|
373
377
|
def __init__(self):
|
|
374
|
-
r"""
|
|
378
|
+
r"""修改备份名称
|
|
375
379
|
:param InstanceId: 实例id
|
|
376
380
|
|
|
377
381
|
:type PathPrefix: String
|
|
@@ -420,6 +424,32 @@ class AddSecurityGroupRuleRequest(AbstractModel):
|
|
|
420
424
|
self.Type = params.get("Type")
|
|
421
425
|
|
|
422
426
|
|
|
427
|
+
class DeleteSecurityGroupRulesRequest(AbstractModel):
|
|
428
|
+
"""DeleteSecurityGroupRules请求参数结构体
|
|
429
|
+
"""
|
|
430
|
+
|
|
431
|
+
def __init__(self):
|
|
432
|
+
r"""删除安全组规则
|
|
433
|
+
:param Cidrs: cidr字段集合。安全组规则id在白名单列表中获取。
|
|
434
|
+
:type PathPrefix: String
|
|
435
|
+
:param InstanceId: 实例ID。
|
|
436
|
+
:type PathPrefix: String
|
|
437
|
+
:param Type: 网络类型 。可选:IPV4 或者 IPV6。 请注意,字段值严格大写。
|
|
438
|
+
:type PathPrefix: String
|
|
439
|
+
"""
|
|
440
|
+
self.Cidrs = None
|
|
441
|
+
self.InstanceId = None
|
|
442
|
+
self.Type = None
|
|
443
|
+
|
|
444
|
+
def _deserialize(self, params):
|
|
445
|
+
if params.get("Cidrs"):
|
|
446
|
+
self.Cidrs = params.get("Cidrs")
|
|
447
|
+
if params.get("InstanceId"):
|
|
448
|
+
self.InstanceId = params.get("InstanceId")
|
|
449
|
+
if params.get("Type"):
|
|
450
|
+
self.Type = params.get("Type")
|
|
451
|
+
|
|
452
|
+
|
|
423
453
|
class ListSecurityGroupRulesRequest(AbstractModel):
|
|
424
454
|
"""ListSecurityGroupRules请求参数结构体
|
|
425
455
|
"""
|
|
@@ -488,8 +518,8 @@ class DescribeMongoDBShardNodeRequest(AbstractModel):
|
|
|
488
518
|
"""
|
|
489
519
|
|
|
490
520
|
def __init__(self):
|
|
491
|
-
r"""
|
|
492
|
-
:param InstanceId: 实例
|
|
521
|
+
r"""查询分片集群实例shard节点信息
|
|
522
|
+
:param InstanceId: 实例Id
|
|
493
523
|
:type PathPrefix: String
|
|
494
524
|
"""
|
|
495
525
|
self.InstanceId = None
|
|
@@ -504,15 +534,11 @@ class DescribeValidRegionRequest(AbstractModel):
|
|
|
504
534
|
"""
|
|
505
535
|
|
|
506
536
|
def __init__(self):
|
|
507
|
-
r"""
|
|
508
|
-
:param Action: Action
|
|
509
|
-
:type PathPrefix: String
|
|
537
|
+
r"""查询用户可用机房列表
|
|
510
538
|
"""
|
|
511
|
-
self.Action = None
|
|
512
539
|
|
|
513
540
|
def _deserialize(self, params):
|
|
514
|
-
|
|
515
|
-
self.Action = params.get("Action")
|
|
541
|
+
return
|
|
516
542
|
|
|
517
543
|
|
|
518
544
|
class AllocateEipRequest(AbstractModel):
|
|
@@ -558,14 +584,10 @@ class DescribeRegionsRequest(AbstractModel):
|
|
|
558
584
|
|
|
559
585
|
def __init__(self):
|
|
560
586
|
r"""查询机房可用区
|
|
561
|
-
:param Action: Action
|
|
562
|
-
:type PathPrefix: String
|
|
563
587
|
"""
|
|
564
|
-
self.Action = None
|
|
565
588
|
|
|
566
589
|
def _deserialize(self, params):
|
|
567
|
-
|
|
568
|
-
self.Action = params.get("Action")
|
|
590
|
+
return
|
|
569
591
|
|
|
570
592
|
|
|
571
593
|
class CreateMongoDBShardInstanceRequest(AbstractModel):
|
|
@@ -660,16 +682,21 @@ class DownloadSnapshotRequest(AbstractModel):
|
|
|
660
682
|
"""
|
|
661
683
|
|
|
662
684
|
def __init__(self):
|
|
663
|
-
r"""
|
|
685
|
+
r"""下载备份。
|
|
664
686
|
:param SnapshotId: 备份ID。请注意:暂不支持分片集群实例备份的下载。
|
|
665
687
|
|
|
688
|
+
:type PathPrefix: String
|
|
689
|
+
:param InstanceId: 实例Id。
|
|
666
690
|
:type PathPrefix: String
|
|
667
691
|
"""
|
|
668
692
|
self.SnapshotId = None
|
|
693
|
+
self.InstanceId = None
|
|
669
694
|
|
|
670
695
|
def _deserialize(self, params):
|
|
671
696
|
if params.get("SnapshotId"):
|
|
672
697
|
self.SnapshotId = params.get("SnapshotId")
|
|
698
|
+
if params.get("InstanceId"):
|
|
699
|
+
self.InstanceId = params.get("InstanceId")
|
|
673
700
|
|
|
674
701
|
|
|
675
702
|
class CloneInstanceRequest(AbstractModel):
|
|
@@ -739,7 +766,7 @@ class DescribeShardNodeRequest(AbstractModel):
|
|
|
739
766
|
"""
|
|
740
767
|
|
|
741
768
|
def __init__(self):
|
|
742
|
-
r"""查询分片集群shard
|
|
769
|
+
r"""查询分片集群shard节点信息
|
|
743
770
|
:param InstanceId: 分片集群实例id
|
|
744
771
|
:type PathPrefix: String
|
|
745
772
|
"""
|
|
@@ -755,15 +782,11 @@ class DescribeInstanceStatisticRequest(AbstractModel):
|
|
|
755
782
|
"""
|
|
756
783
|
|
|
757
784
|
def __init__(self):
|
|
758
|
-
r"""
|
|
759
|
-
:param Action: Action
|
|
760
|
-
:type PathPrefix: String
|
|
785
|
+
r"""实例概览统计
|
|
761
786
|
"""
|
|
762
|
-
self.Action = None
|
|
763
787
|
|
|
764
788
|
def _deserialize(self, params):
|
|
765
|
-
|
|
766
|
-
self.Action = params.get("Action")
|
|
789
|
+
return
|
|
767
790
|
|
|
768
791
|
|
|
769
792
|
class AddClusterNodeRequest(AbstractModel):
|
|
@@ -823,7 +846,7 @@ class DescribeSlowLogDetailRequest(AbstractModel):
|
|
|
823
846
|
"""
|
|
824
847
|
|
|
825
848
|
def __init__(self):
|
|
826
|
-
r"""
|
|
849
|
+
r"""查询实例运行慢日志
|
|
827
850
|
:param InstanceId: 实例ID。
|
|
828
851
|
|
|
829
852
|
:type PathPrefix: String
|
|
@@ -876,7 +899,7 @@ class DescribeSlowLogStatisticsRequest(AbstractModel):
|
|
|
876
899
|
"""
|
|
877
900
|
|
|
878
901
|
def __init__(self):
|
|
879
|
-
r"""
|
|
902
|
+
r"""实例运行慢日志统计
|
|
880
903
|
:param InstanceId: 实例ID。
|
|
881
904
|
:type PathPrefix: String
|
|
882
905
|
:param NodeId: 节点ID。选填节点ID则查询该节点下的慢SQL统计数据
|
|
@@ -923,7 +946,7 @@ class DescribeSlowLogDatabaseRequest(AbstractModel):
|
|
|
923
946
|
"""
|
|
924
947
|
|
|
925
948
|
def __init__(self):
|
|
926
|
-
r"""
|
|
949
|
+
r"""查询慢日志数据库列表
|
|
927
950
|
:param InstanceId: 实例ID。
|
|
928
951
|
:type PathPrefix: String
|
|
929
952
|
:param NodeId: 节点ID。加上节点ID则查询该节点下的慢SQL数据库信息。
|
|
@@ -995,7 +1018,7 @@ class UpdateMongoDBInstanceClusterRequest(AbstractModel):
|
|
|
995
1018
|
"""
|
|
996
1019
|
|
|
997
1020
|
def __init__(self):
|
|
998
|
-
r"""
|
|
1021
|
+
r"""分片集群节点配置大小更配
|
|
999
1022
|
:param InstanceId: 实例ID。
|
|
1000
1023
|
:type PathPrefix: String
|
|
1001
1024
|
:param InstanceClass: 实例套餐 可选: 1C2G 2C4G 4C8G 8C16G 8C32G 16C64G
|
|
@@ -1027,3 +1050,197 @@ class UpdateMongoDBInstanceClusterRequest(AbstractModel):
|
|
|
1027
1050
|
self.Storage = params.get("Storage")
|
|
1028
1051
|
|
|
1029
1052
|
|
|
1053
|
+
class DescribeClusterForRestoreRequest(AbstractModel):
|
|
1054
|
+
"""DescribeClusterForRestore请求参数结构体
|
|
1055
|
+
"""
|
|
1056
|
+
|
|
1057
|
+
def __init__(self):
|
|
1058
|
+
r"""查询分片集群可恢复配置
|
|
1059
|
+
:param InstanceId: MongoDB分片集群实例ID。
|
|
1060
|
+
:type PathPrefix: String
|
|
1061
|
+
:param ResetTimePoint: 恢复时间点。
|
|
1062
|
+
:type PathPrefix: String
|
|
1063
|
+
"""
|
|
1064
|
+
self.InstanceId = None
|
|
1065
|
+
self.ResetTimePoint = None
|
|
1066
|
+
|
|
1067
|
+
def _deserialize(self, params):
|
|
1068
|
+
if params.get("InstanceId"):
|
|
1069
|
+
self.InstanceId = params.get("InstanceId")
|
|
1070
|
+
if params.get("ResetTimePoint"):
|
|
1071
|
+
self.ResetTimePoint = params.get("ResetTimePoint")
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
class DescribeDefaultParamsRequest(AbstractModel):
|
|
1075
|
+
"""DescribeDefaultParams请求参数结构体
|
|
1076
|
+
"""
|
|
1077
|
+
|
|
1078
|
+
def __init__(self):
|
|
1079
|
+
r"""查询默认参数模板
|
|
1080
|
+
:param DbVersion: 实例版本
|
|
1081
|
+
:type PathPrefix: String
|
|
1082
|
+
"""
|
|
1083
|
+
self.DbVersion = None
|
|
1084
|
+
|
|
1085
|
+
def _deserialize(self, params):
|
|
1086
|
+
if params.get("DbVersion"):
|
|
1087
|
+
self.DbVersion = params.get("DbVersion")
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
class CreateParamGroupRequest(AbstractModel):
|
|
1091
|
+
"""CreateParamGroup请求参数结构体
|
|
1092
|
+
"""
|
|
1093
|
+
|
|
1094
|
+
def __init__(self):
|
|
1095
|
+
r"""创建参数组
|
|
1096
|
+
:param ParamGroupName: 参数组名称
|
|
1097
|
+
:type PathPrefix: String
|
|
1098
|
+
:param Description: 参数组描述
|
|
1099
|
+
:type PathPrefix: String
|
|
1100
|
+
:param DbVersion: 实例版本
|
|
1101
|
+
:type PathPrefix: Double
|
|
1102
|
+
:param Params: 参数项
|
|
1103
|
+
:type PathPrefix: String
|
|
1104
|
+
"""
|
|
1105
|
+
self.ParamGroupName = None
|
|
1106
|
+
self.Description = None
|
|
1107
|
+
self.DbVersion = None
|
|
1108
|
+
self.Params = None
|
|
1109
|
+
|
|
1110
|
+
def _deserialize(self, params):
|
|
1111
|
+
if params.get("ParamGroupName"):
|
|
1112
|
+
self.ParamGroupName = params.get("ParamGroupName")
|
|
1113
|
+
if params.get("Description"):
|
|
1114
|
+
self.Description = params.get("Description")
|
|
1115
|
+
if params.get("DbVersion"):
|
|
1116
|
+
self.DbVersion = params.get("DbVersion")
|
|
1117
|
+
if params.get("Params"):
|
|
1118
|
+
self.Params = params.get("Params")
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
class DescribeParamGroupListRequest(AbstractModel):
|
|
1122
|
+
"""DescribeParamGroupList请求参数结构体
|
|
1123
|
+
"""
|
|
1124
|
+
|
|
1125
|
+
def __init__(self):
|
|
1126
|
+
r"""查询参数组列表
|
|
1127
|
+
:param DbVersion: 实例版本
|
|
1128
|
+
:type PathPrefix: String
|
|
1129
|
+
:param NameSearch: 按名称筛选
|
|
1130
|
+
:type PathPrefix: String
|
|
1131
|
+
:param Offset: 偏移量
|
|
1132
|
+
:type PathPrefix: String
|
|
1133
|
+
:param Limit: 返回最大数据量
|
|
1134
|
+
:type PathPrefix: String
|
|
1135
|
+
"""
|
|
1136
|
+
self.DbVersion = None
|
|
1137
|
+
self.NameSearch = None
|
|
1138
|
+
self.Offset = None
|
|
1139
|
+
self.Limit = None
|
|
1140
|
+
|
|
1141
|
+
def _deserialize(self, params):
|
|
1142
|
+
if params.get("DbVersion"):
|
|
1143
|
+
self.DbVersion = params.get("DbVersion")
|
|
1144
|
+
if params.get("NameSearch"):
|
|
1145
|
+
self.NameSearch = params.get("NameSearch")
|
|
1146
|
+
if params.get("Offset"):
|
|
1147
|
+
self.Offset = params.get("Offset")
|
|
1148
|
+
if params.get("Limit"):
|
|
1149
|
+
self.Limit = params.get("Limit")
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
class DescribeParamGroupInfoRequest(AbstractModel):
|
|
1153
|
+
"""DescribeParamGroupInfo请求参数结构体
|
|
1154
|
+
"""
|
|
1155
|
+
|
|
1156
|
+
def __init__(self):
|
|
1157
|
+
r"""查询参数组详情
|
|
1158
|
+
:param ParamGroupId: 参数组Id
|
|
1159
|
+
:type PathPrefix: String
|
|
1160
|
+
"""
|
|
1161
|
+
self.ParamGroupId = None
|
|
1162
|
+
|
|
1163
|
+
def _deserialize(self, params):
|
|
1164
|
+
if params.get("ParamGroupId"):
|
|
1165
|
+
self.ParamGroupId = params.get("ParamGroupId")
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
class DescribeModifyHistoryRequest(AbstractModel):
|
|
1169
|
+
"""DescribeModifyHistory请求参数结构体
|
|
1170
|
+
"""
|
|
1171
|
+
|
|
1172
|
+
def __init__(self):
|
|
1173
|
+
r"""查询参数组修改历史
|
|
1174
|
+
:param ParamName: 指定查询某个参数项的修改历史。
|
|
1175
|
+
:type PathPrefix: String
|
|
1176
|
+
:param Offset: 偏移量
|
|
1177
|
+
:type PathPrefix: Int
|
|
1178
|
+
:param Limit: 每页最大返回记录数
|
|
1179
|
+
:type PathPrefix: Int
|
|
1180
|
+
"""
|
|
1181
|
+
self.ParamName = None
|
|
1182
|
+
self.Offset = None
|
|
1183
|
+
self.Limit = None
|
|
1184
|
+
|
|
1185
|
+
def _deserialize(self, params):
|
|
1186
|
+
if params.get("ParamName"):
|
|
1187
|
+
self.ParamName = params.get("ParamName")
|
|
1188
|
+
if params.get("Offset"):
|
|
1189
|
+
self.Offset = params.get("Offset")
|
|
1190
|
+
if params.get("Limit"):
|
|
1191
|
+
self.Limit = params.get("Limit")
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
class DescribeInstanceParamsRequest(AbstractModel):
|
|
1195
|
+
"""DescribeInstanceParams请求参数结构体
|
|
1196
|
+
"""
|
|
1197
|
+
|
|
1198
|
+
def __init__(self):
|
|
1199
|
+
r"""查询实例参数配置
|
|
1200
|
+
:param InstanceId: 实例Id
|
|
1201
|
+
:type PathPrefix: String
|
|
1202
|
+
"""
|
|
1203
|
+
self.InstanceId = None
|
|
1204
|
+
|
|
1205
|
+
def _deserialize(self, params):
|
|
1206
|
+
if params.get("InstanceId"):
|
|
1207
|
+
self.InstanceId = params.get("InstanceId")
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
class ModifyParamGroupRequest(AbstractModel):
|
|
1211
|
+
"""ModifyParamGroup请求参数结构体
|
|
1212
|
+
"""
|
|
1213
|
+
|
|
1214
|
+
def __init__(self):
|
|
1215
|
+
r"""修改参数组
|
|
1216
|
+
:param NewParamGroupName: 新参数组名称
|
|
1217
|
+
:type PathPrefix: String
|
|
1218
|
+
:param NewDescription: 新参数组描述
|
|
1219
|
+
:type PathPrefix: String
|
|
1220
|
+
"""
|
|
1221
|
+
self.NewParamGroupName = None
|
|
1222
|
+
self.NewDescription = None
|
|
1223
|
+
|
|
1224
|
+
def _deserialize(self, params):
|
|
1225
|
+
if params.get("NewParamGroupName"):
|
|
1226
|
+
self.NewParamGroupName = params.get("NewParamGroupName")
|
|
1227
|
+
if params.get("NewDescription"):
|
|
1228
|
+
self.NewDescription = params.get("NewDescription")
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
class DeleteParamGroupRequest(AbstractModel):
|
|
1232
|
+
"""DeleteParamGroup请求参数结构体
|
|
1233
|
+
"""
|
|
1234
|
+
|
|
1235
|
+
def __init__(self):
|
|
1236
|
+
r"""删除参数组
|
|
1237
|
+
:param ParamGroupId: 删除参数组
|
|
1238
|
+
:type PathPrefix: String
|
|
1239
|
+
"""
|
|
1240
|
+
self.ParamGroupId = None
|
|
1241
|
+
|
|
1242
|
+
def _deserialize(self, params):
|
|
1243
|
+
if params.get("ParamGroupId"):
|
|
1244
|
+
self.ParamGroupId = params.get("ParamGroupId")
|
|
1245
|
+
|
|
1246
|
+
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
3
|
+
from ksyun.common.exception.ksyun_sdk_exception import KsyunSDKException
|
|
4
|
+
from ksyun.common.abstract_client import AbstractClient
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class MongodbClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2025-01-01'
|
|
9
|
+
_endpoint = 'mongodb.api.ksyun.com'
|
|
10
|
+
_service = 'mongodb'
|
|
11
|
+
def DescribeDefaultParams(self, request):
|
|
12
|
+
"""查询默认参数模板
|
|
13
|
+
:param request: Request instance for DescribeDefaultParams.
|
|
14
|
+
:type request: :class:`ksyun.client.mongodb.v20250101.models.DescribeDefaultParamsRequest`
|
|
15
|
+
"""
|
|
16
|
+
try:
|
|
17
|
+
params = request._serialize()
|
|
18
|
+
body = self.call_judge("DescribeDefaultParams", params, "application/json")
|
|
19
|
+
response = json.loads(body)
|
|
20
|
+
if "Error" not in response:
|
|
21
|
+
return body
|
|
22
|
+
else:
|
|
23
|
+
code = response["Error"]["Code"]
|
|
24
|
+
message = response["Error"]["Message"]
|
|
25
|
+
req_id = response["RequestId"]
|
|
26
|
+
raise KsyunSDKException(code, message, req_id)
|
|
27
|
+
except Exception as e:
|
|
28
|
+
if isinstance(e, KsyunSDKException):
|
|
29
|
+
raise
|
|
30
|
+
else:
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class DescribeDefaultParamsRequest(AbstractModel):
|
|
4
|
+
"""DescribeDefaultParams请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""查询默认参数模板
|
|
9
|
+
:param DbVersion: 实例版本
|
|
10
|
+
:type PathPrefix: Double
|
|
11
|
+
"""
|
|
12
|
+
self.DbVersion = None
|
|
13
|
+
|
|
14
|
+
def _deserialize(self, params):
|
|
15
|
+
if params.get("DbVersion"):
|
|
16
|
+
self.DbVersion = params.get("DbVersion")
|
|
17
|
+
|
|
18
|
+
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
3
|
+
from ksyun.common.exception.ksyun_sdk_exception import KsyunSDKException
|
|
4
|
+
from ksyun.common.abstract_client import AbstractClient
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class MonitorClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2010-05-25'
|
|
9
|
+
_endpoint = 'monitor.api.ksyun.com'
|
|
10
|
+
_service = 'monitor'
|
|
11
|
+
def GetMetricStatistics(self, request):
|
|
12
|
+
"""获取监控数据
|
|
13
|
+
:param request: Request instance for GetMetricStatistics.
|
|
14
|
+
:type request: :class:`ksyun.client.monitor.v20100525.models.GetMetricStatisticsRequest`
|
|
15
|
+
"""
|
|
16
|
+
try:
|
|
17
|
+
params = request._serialize()
|
|
18
|
+
body = self.call_judge("GetMetricStatistics", params, "application/json")
|
|
19
|
+
response = json.loads(body)
|
|
20
|
+
if "Error" not in response:
|
|
21
|
+
return body
|
|
22
|
+
else:
|
|
23
|
+
code = response["Error"]["Code"]
|
|
24
|
+
message = response["Error"]["Message"]
|
|
25
|
+
req_id = response["RequestId"]
|
|
26
|
+
raise KsyunSDKException(code, message, req_id)
|
|
27
|
+
except Exception as e:
|
|
28
|
+
if isinstance(e, KsyunSDKException):
|
|
29
|
+
raise
|
|
30
|
+
else:
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def ListMetrics(self, request):
|
|
35
|
+
"""查看实例对应的监控指标
|
|
36
|
+
:param request: Request instance for ListMetrics.
|
|
37
|
+
:type request: :class:`ksyun.client.monitor.v20100525.models.ListMetricsRequest`
|
|
38
|
+
"""
|
|
39
|
+
try:
|
|
40
|
+
params = request._serialize()
|
|
41
|
+
body = self.call_judge("ListMetrics", params, "application/json")
|
|
42
|
+
response = json.loads(body)
|
|
43
|
+
if "Error" not in response:
|
|
44
|
+
return body
|
|
45
|
+
else:
|
|
46
|
+
code = response["Error"]["Code"]
|
|
47
|
+
message = response["Error"]["Message"]
|
|
48
|
+
req_id = response["RequestId"]
|
|
49
|
+
raise KsyunSDKException(code, message, req_id)
|
|
50
|
+
except Exception as e:
|
|
51
|
+
if isinstance(e, KsyunSDKException):
|
|
52
|
+
raise
|
|
53
|
+
else:
|
|
54
|
+
raise KsyunSDKException(message=str(e))
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class GetMetricStatisticsRequest(AbstractModel):
|
|
4
|
+
"""GetMetricStatistics请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""获取监控数据
|
|
9
|
+
:param Namespace: 表示一类云产品,指定命名空间。
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
:param InstanceID: 监控实例的ID。
|
|
12
|
+
|
|
13
|
+
> **特别注意:** 需要额外关注部分产品线实例ID,具体如下:
|
|
14
|
+
> - KS3: 实例ID为 BucketName,并非 BucketID;
|
|
15
|
+
> - MongoDB:实例ID前添加`user` 前缀;
|
|
16
|
+
:type PathPrefix: String
|
|
17
|
+
:param MetricName: 监控项名称
|
|
18
|
+
:type PathPrefix: String
|
|
19
|
+
:param StartTime: 起始时间。
|
|
20
|
+
|
|
21
|
+
> **时间格式:** `2023-07-19T16:00:50Z`
|
|
22
|
+
:type PathPrefix: String
|
|
23
|
+
:param EndTime: 结束时间。
|
|
24
|
+
|
|
25
|
+
> **时间格式:** `2023-07-19T16:09:50Z`
|
|
26
|
+
|
|
27
|
+
> **特别注意:** 数据采集可能存在有2分钟左右的延迟,EndTime的值应当比当前时间延迟两分钟,
|
|
28
|
+
>
|
|
29
|
+
> 假设当前时间为:2023-07-19T16:11:50Z,那么 EndTime=2023-07-19T16:09:50Z。
|
|
30
|
+
:type PathPrefix: String
|
|
31
|
+
:param Aggregate: 数据聚合的方法。目前支持:
|
|
32
|
+
|
|
33
|
+
- Average
|
|
34
|
+
- Max
|
|
35
|
+
- Min
|
|
36
|
+
|
|
37
|
+
> **注意:** 如果查询的数据与控制台监控视图不一致,可能是由于该参数导致。
|
|
38
|
+
:type PathPrefix: String
|
|
39
|
+
:param Period: 统计粒度,单位为秒。
|
|
40
|
+
|
|
41
|
+
> **注意:** 该参数值应为60的整数倍,值的大小可能会导致数据与控制台展示不一致。
|
|
42
|
+
>
|
|
43
|
+
> 默认值为空时,将不对数据进行降采样,按产品线的推送频率进行展示。
|
|
44
|
+
:type PathPrefix: String
|
|
45
|
+
"""
|
|
46
|
+
self.Namespace = None
|
|
47
|
+
self.InstanceID = None
|
|
48
|
+
self.MetricName = None
|
|
49
|
+
self.StartTime = None
|
|
50
|
+
self.EndTime = None
|
|
51
|
+
self.Aggregate = None
|
|
52
|
+
self.Period = None
|
|
53
|
+
|
|
54
|
+
def _deserialize(self, params):
|
|
55
|
+
if params.get("Namespace"):
|
|
56
|
+
self.Namespace = params.get("Namespace")
|
|
57
|
+
if params.get("InstanceID"):
|
|
58
|
+
self.InstanceID = params.get("InstanceID")
|
|
59
|
+
if params.get("MetricName"):
|
|
60
|
+
self.MetricName = params.get("MetricName")
|
|
61
|
+
if params.get("StartTime"):
|
|
62
|
+
self.StartTime = params.get("StartTime")
|
|
63
|
+
if params.get("EndTime"):
|
|
64
|
+
self.EndTime = params.get("EndTime")
|
|
65
|
+
if params.get("Aggregate"):
|
|
66
|
+
self.Aggregate = params.get("Aggregate")
|
|
67
|
+
if params.get("Period"):
|
|
68
|
+
self.Period = params.get("Period")
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class ListMetricsRequest(AbstractModel):
|
|
72
|
+
"""ListMetrics请求参数结构体
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
def __init__(self):
|
|
76
|
+
r"""查看实例对应的监控指标
|
|
77
|
+
:param Namespace: 表示一类云产品,指定命名空间。
|
|
78
|
+
:type PathPrefix: String
|
|
79
|
+
:param InstanceID: 实例ID。
|
|
80
|
+
:type PathPrefix: String
|
|
81
|
+
:param MetricName: 监控项。
|
|
82
|
+
:type PathPrefix: String
|
|
83
|
+
:param PageIndex: 页号,起始值:1
|
|
84
|
+
:type PathPrefix: Int
|
|
85
|
+
:param PageSize: 分页时每页显示的数据行数。
|
|
86
|
+
|
|
87
|
+
> 默认值:获取实例下所有监控项
|
|
88
|
+
:type PathPrefix: Int
|
|
89
|
+
"""
|
|
90
|
+
self.Namespace = None
|
|
91
|
+
self.InstanceID = None
|
|
92
|
+
self.MetricName = None
|
|
93
|
+
self.PageIndex = None
|
|
94
|
+
self.PageSize = None
|
|
95
|
+
|
|
96
|
+
def _deserialize(self, params):
|
|
97
|
+
if params.get("Namespace"):
|
|
98
|
+
self.Namespace = params.get("Namespace")
|
|
99
|
+
if params.get("InstanceID"):
|
|
100
|
+
self.InstanceID = params.get("InstanceID")
|
|
101
|
+
if params.get("MetricName"):
|
|
102
|
+
self.MetricName = params.get("MetricName")
|
|
103
|
+
if params.get("PageIndex"):
|
|
104
|
+
self.PageIndex = params.get("PageIndex")
|
|
105
|
+
if params.get("PageSize"):
|
|
106
|
+
self.PageSize = params.get("PageSize")
|
|
107
|
+
|
|
108
|
+
|
|
File without changes
|