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,1629 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class CreateDBInstanceRequest(AbstractModel):
|
|
4
|
+
"""CreateDBInstance请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""创建实例(可指定具体产品类型)
|
|
9
|
+
:param Mem: 客户只能购买特定规格的套餐,否则将会报错, 注:各规格对应连接数和iops见下方附表.
|
|
10
|
+
|
|
11
|
+
| 实例规格 | 最大连接数 | 读IOPS | 写IOPS | 对应磁盘取值范围(步长均为5) |
|
|
12
|
+
| :- | - | - | - | - |
|
|
13
|
+
| **1G** | 200 | 1200 | 1200 | *5~40* |
|
|
14
|
+
| **2G** | 400 | 2400 | 2400 | *5~80* |
|
|
15
|
+
| **4G** | 800 | 4800 | 4800 | *5~200* |
|
|
16
|
+
| **8G** | 1600 | 9600 | 9600 | *5~300* |
|
|
17
|
+
| **12G** | 2400 | 14400 | 14400 | *5~500* |
|
|
18
|
+
| **16G** | 3200 | 19200 | 19200 | *5~600* |
|
|
19
|
+
| **24G** | 4800 | 28800 | 28800 | *5~1000* |
|
|
20
|
+
| **32G** | 6400 | 38400 | 38400 | *5~1500* |
|
|
21
|
+
| **48G** | 9600 | 57600 | 57600 | *5~2000* |
|
|
22
|
+
:type PathPrefix: Int
|
|
23
|
+
:param Disk: 客户只能购买特定规格的套餐,单位为G,否则将会报错
|
|
24
|
+
:type PathPrefix: Int
|
|
25
|
+
:param DBInstanceName: 实例名称
|
|
26
|
+
不超过256个字节,仅支持中文、大小写字母、数字、减号和下划线
|
|
27
|
+
:type PathPrefix: String
|
|
28
|
+
:param Engine: 实例数据库引擎名称
|
|
29
|
+
取固定值:postgresql
|
|
30
|
+
:type PathPrefix: String
|
|
31
|
+
:param EngineVersion: 实例数据库引擎版本
|
|
32
|
+
取值范围:9.6 | 10 | 11 | 12.5 | 13
|
|
33
|
+
:type PathPrefix: String
|
|
34
|
+
:param MasterUserPassword: 数据库用户密码
|
|
35
|
+
8-30个字符,必须包含大小写字母和数字,支持的特殊字符为!@#$%^&*()_+=-
|
|
36
|
+
:type PathPrefix: String
|
|
37
|
+
:param MasterUserName: 数据库用户名
|
|
38
|
+
root, rdsrepladmin, rdsadmin,dtsroot, postgres不可用
|
|
39
|
+
:type PathPrefix: String
|
|
40
|
+
:param DBInstanceType: 数据库类型,区分大小写,取固定值:高可用实例:HRDS_PG
|
|
41
|
+
|
|
42
|
+
:type PathPrefix: String
|
|
43
|
+
:param VpcId: VPC网络ID,可在网络控制台获取。
|
|
44
|
+
:type PathPrefix: String
|
|
45
|
+
:param SubnetId: 终端子网ID,可在网络控制台获取(注意类型必须为终端子网)。
|
|
46
|
+
:type PathPrefix: String
|
|
47
|
+
:param PreferredBackupTime: 自动备份发起时间范围
|
|
48
|
+
格式(hh:mm-hh:mm,如:01:00-02:00),如不指定后台将随机分配
|
|
49
|
+
:type PathPrefix: String
|
|
50
|
+
:param DBParameterGroupId: 参数组id
|
|
51
|
+
指定实例的参数组,如不指定,系统将采用默认的参数组来创建实例。用户需事先在控制台创建好参数组。
|
|
52
|
+
:type PathPrefix: String
|
|
53
|
+
:param SecurityGroupId: 安全组id,不传入默认为空
|
|
54
|
+
:type PathPrefix: String
|
|
55
|
+
:param Port: 数据库连接端口,默认:5432
|
|
56
|
+
:type PathPrefix: String
|
|
57
|
+
:param BillType: 计费方式
|
|
58
|
+
默认值:YEAR_MONTH,取值范围:YEAR_MONTH(包年包月),DAY(按日计费)。
|
|
59
|
+
:type PathPrefix: String
|
|
60
|
+
:param Duration: 购买时长
|
|
61
|
+
默认值:1 单位为月,选择YEAR_MONTH时计费方式必传.
|
|
62
|
+
:type PathPrefix: String
|
|
63
|
+
:param DurationUnit: 购买时长单位
|
|
64
|
+
取值范围:M(月),默认值:M(区分大小写),选择YEAR_MONTH时计费方式必传.
|
|
65
|
+
:type PathPrefix: String
|
|
66
|
+
:param AvailabilityZone: 可用区字段;
|
|
67
|
+
示例(AvailabilityZone.1=cn-beijing-6a&AvailabilityZone.2=cn-beijing-6b),表示实例的主副本在a区,备副本在b区。如果没有跨可用区的需求,建议将实例创建在云主机的可用区内已减少网络延时。
|
|
68
|
+
:type PathPrefix: Filter
|
|
69
|
+
:param ProjectId: 项目Id
|
|
70
|
+
可从IAM获取ProjectId。可按项目来进行细粒度权限控制,将实例归类到某个项目下
|
|
71
|
+
:type PathPrefix: String
|
|
72
|
+
"""
|
|
73
|
+
self.Mem = None
|
|
74
|
+
self.Disk = None
|
|
75
|
+
self.DBInstanceName = None
|
|
76
|
+
self.Engine = None
|
|
77
|
+
self.EngineVersion = None
|
|
78
|
+
self.MasterUserPassword = None
|
|
79
|
+
self.MasterUserName = None
|
|
80
|
+
self.DBInstanceType = None
|
|
81
|
+
self.VpcId = None
|
|
82
|
+
self.SubnetId = None
|
|
83
|
+
self.PreferredBackupTime = None
|
|
84
|
+
self.DBParameterGroupId = None
|
|
85
|
+
self.SecurityGroupId = None
|
|
86
|
+
self.Port = None
|
|
87
|
+
self.BillType = None
|
|
88
|
+
self.Duration = None
|
|
89
|
+
self.DurationUnit = None
|
|
90
|
+
self.AvailabilityZone = None
|
|
91
|
+
self.ProjectId = None
|
|
92
|
+
|
|
93
|
+
def _deserialize(self, params):
|
|
94
|
+
if params.get("Mem"):
|
|
95
|
+
self.Mem = params.get("Mem")
|
|
96
|
+
if params.get("Disk"):
|
|
97
|
+
self.Disk = params.get("Disk")
|
|
98
|
+
if params.get("DBInstanceName"):
|
|
99
|
+
self.DBInstanceName = params.get("DBInstanceName")
|
|
100
|
+
if params.get("Engine"):
|
|
101
|
+
self.Engine = params.get("Engine")
|
|
102
|
+
if params.get("EngineVersion"):
|
|
103
|
+
self.EngineVersion = params.get("EngineVersion")
|
|
104
|
+
if params.get("MasterUserPassword"):
|
|
105
|
+
self.MasterUserPassword = params.get("MasterUserPassword")
|
|
106
|
+
if params.get("MasterUserName"):
|
|
107
|
+
self.MasterUserName = params.get("MasterUserName")
|
|
108
|
+
if params.get("DBInstanceType"):
|
|
109
|
+
self.DBInstanceType = params.get("DBInstanceType")
|
|
110
|
+
if params.get("VpcId"):
|
|
111
|
+
self.VpcId = params.get("VpcId")
|
|
112
|
+
if params.get("SubnetId"):
|
|
113
|
+
self.SubnetId = params.get("SubnetId")
|
|
114
|
+
if params.get("PreferredBackupTime"):
|
|
115
|
+
self.PreferredBackupTime = params.get("PreferredBackupTime")
|
|
116
|
+
if params.get("DBParameterGroupId"):
|
|
117
|
+
self.DBParameterGroupId = params.get("DBParameterGroupId")
|
|
118
|
+
if params.get("SecurityGroupId"):
|
|
119
|
+
self.SecurityGroupId = params.get("SecurityGroupId")
|
|
120
|
+
if params.get("Port"):
|
|
121
|
+
self.Port = params.get("Port")
|
|
122
|
+
if params.get("BillType"):
|
|
123
|
+
self.BillType = params.get("BillType")
|
|
124
|
+
if params.get("Duration"):
|
|
125
|
+
self.Duration = params.get("Duration")
|
|
126
|
+
if params.get("DurationUnit"):
|
|
127
|
+
self.DurationUnit = params.get("DurationUnit")
|
|
128
|
+
if params.get("AvailabilityZone"):
|
|
129
|
+
self.AvailabilityZone = params.get("AvailabilityZone")
|
|
130
|
+
if params.get("ProjectId"):
|
|
131
|
+
self.ProjectId = params.get("ProjectId")
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
class DescribeDBInstancesRequest(AbstractModel):
|
|
135
|
+
"""DescribeDBInstances请求参数结构体
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
def __init__(self):
|
|
139
|
+
r"""查询实例列表/详情
|
|
140
|
+
:param DBInstanceIdentifier: 实例id 传入实例ID,获取的是该实例的详情,否则则获取list
|
|
141
|
+
:type PathPrefix: String
|
|
142
|
+
:param DBInstanceType: 实例类型
|
|
143
|
+
取值范围: HRDS_PG高可用实例 TRDS_PG临时实例 RR_PG只读实例
|
|
144
|
+
:type PathPrefix: String
|
|
145
|
+
:param Keyword: 按单个名称/单个VIP模糊过滤
|
|
146
|
+
:type PathPrefix: String
|
|
147
|
+
:param Marker: 记录开始偏移量
|
|
148
|
+
默认0
|
|
149
|
+
:type PathPrefix: Int
|
|
150
|
+
:param MaxRecords: 每页结果中包含的最大条数;
|
|
151
|
+
默认10 取值10~10000
|
|
152
|
+
:type PathPrefix: Int
|
|
153
|
+
:param GroupId: 实例分组id
|
|
154
|
+
:type PathPrefix: String
|
|
155
|
+
:param ProjectId: 项目制Id,默认值为所有项目
|
|
156
|
+
:type PathPrefix: String
|
|
157
|
+
:param DBInstanceIdentifierIn: 实例id列表,中间用逗号隔开
|
|
158
|
+
:type PathPrefix: String
|
|
159
|
+
:param DBInstanceNameIn: 实例名称列表,用逗号隔开,支持模糊查询
|
|
160
|
+
:type PathPrefix: String
|
|
161
|
+
:param VipIn: vip列表,按IP地址筛选,可多选,中间逗号隔开
|
|
162
|
+
:type PathPrefix: String
|
|
163
|
+
:param ExpiryDateLessThan: 按照实例过期时间过滤,取值范围>0
|
|
164
|
+
:type PathPrefix: Int
|
|
165
|
+
:param Order: 排序方式,区分大小写,取值范围:DEFAULT(默认排序方式),GROUP(按复制组排序,会把只读实例排在所属主实例的后面)
|
|
166
|
+
:type PathPrefix: String
|
|
167
|
+
"""
|
|
168
|
+
self.DBInstanceIdentifier = None
|
|
169
|
+
self.DBInstanceType = None
|
|
170
|
+
self.Keyword = None
|
|
171
|
+
self.Marker = None
|
|
172
|
+
self.MaxRecords = None
|
|
173
|
+
self.GroupId = None
|
|
174
|
+
self.ProjectId = None
|
|
175
|
+
self.DBInstanceIdentifierIn = None
|
|
176
|
+
self.DBInstanceNameIn = None
|
|
177
|
+
self.VipIn = None
|
|
178
|
+
self.ExpiryDateLessThan = None
|
|
179
|
+
self.Order = None
|
|
180
|
+
|
|
181
|
+
def _deserialize(self, params):
|
|
182
|
+
if params.get("DBInstanceIdentifier"):
|
|
183
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
184
|
+
if params.get("DBInstanceType"):
|
|
185
|
+
self.DBInstanceType = params.get("DBInstanceType")
|
|
186
|
+
if params.get("Keyword"):
|
|
187
|
+
self.Keyword = params.get("Keyword")
|
|
188
|
+
if params.get("Marker"):
|
|
189
|
+
self.Marker = params.get("Marker")
|
|
190
|
+
if params.get("MaxRecords"):
|
|
191
|
+
self.MaxRecords = params.get("MaxRecords")
|
|
192
|
+
if params.get("GroupId"):
|
|
193
|
+
self.GroupId = params.get("GroupId")
|
|
194
|
+
if params.get("ProjectId"):
|
|
195
|
+
self.ProjectId = params.get("ProjectId")
|
|
196
|
+
if params.get("DBInstanceIdentifierIn"):
|
|
197
|
+
self.DBInstanceIdentifierIn = params.get("DBInstanceIdentifierIn")
|
|
198
|
+
if params.get("DBInstanceNameIn"):
|
|
199
|
+
self.DBInstanceNameIn = params.get("DBInstanceNameIn")
|
|
200
|
+
if params.get("VipIn"):
|
|
201
|
+
self.VipIn = params.get("VipIn")
|
|
202
|
+
if params.get("ExpiryDateLessThan"):
|
|
203
|
+
self.ExpiryDateLessThan = params.get("ExpiryDateLessThan")
|
|
204
|
+
if params.get("Order"):
|
|
205
|
+
self.Order = params.get("Order")
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
class DeleteDBInstanceRequest(AbstractModel):
|
|
209
|
+
"""DeleteDBInstance请求参数结构体
|
|
210
|
+
"""
|
|
211
|
+
|
|
212
|
+
def __init__(self):
|
|
213
|
+
r"""删除指定实例(不支持批量)
|
|
214
|
+
:param DBInstanceIdentifier: 实例id
|
|
215
|
+
:type PathPrefix: String
|
|
216
|
+
"""
|
|
217
|
+
self.DBInstanceIdentifier = None
|
|
218
|
+
|
|
219
|
+
def _deserialize(self, params):
|
|
220
|
+
if params.get("DBInstanceIdentifier"):
|
|
221
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
class StatisticDBInstancesRequest(AbstractModel):
|
|
225
|
+
"""StatisticDBInstances请求参数结构体
|
|
226
|
+
"""
|
|
227
|
+
|
|
228
|
+
def __init__(self):
|
|
229
|
+
r"""实例概览统计(全可用地域下单区分类统计)
|
|
230
|
+
:param ExpiryDateLessThan: 按照实例过期时间过滤,取值范围>1
|
|
231
|
+
:type PathPrefix: String
|
|
232
|
+
:param GroupId: 实例分组id
|
|
233
|
+
:type PathPrefix: String
|
|
234
|
+
:param Keyword: 按名称/VIP模糊过滤
|
|
235
|
+
:type PathPrefix: String
|
|
236
|
+
"""
|
|
237
|
+
self.ExpiryDateLessThan = None
|
|
238
|
+
self.GroupId = None
|
|
239
|
+
self.Keyword = None
|
|
240
|
+
|
|
241
|
+
def _deserialize(self, params):
|
|
242
|
+
if params.get("ExpiryDateLessThan"):
|
|
243
|
+
self.ExpiryDateLessThan = params.get("ExpiryDateLessThan")
|
|
244
|
+
if params.get("GroupId"):
|
|
245
|
+
self.GroupId = params.get("GroupId")
|
|
246
|
+
if params.get("Keyword"):
|
|
247
|
+
self.Keyword = params.get("Keyword")
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
class ModifyDBInstanceRequest(AbstractModel):
|
|
251
|
+
"""ModifyDBInstance请求参数结构体
|
|
252
|
+
"""
|
|
253
|
+
|
|
254
|
+
def __init__(self):
|
|
255
|
+
r"""修改实例信息(实例名/账户密码/自动备份时间/参数组/安全组)
|
|
256
|
+
:param DBInstanceIdentifier: 实例ID
|
|
257
|
+
:type PathPrefix: String
|
|
258
|
+
:param PreferredBackupTime: 自动备份发起时间
|
|
259
|
+
|
|
260
|
+
格式(hh:mm-hh:mm,如:01:00-02:00)
|
|
261
|
+
:type PathPrefix: String
|
|
262
|
+
:param DBInstanceName: 实例新名称
|
|
263
|
+
|
|
264
|
+
不超过256个字节,仅支持中文、大小写字母、数字、减号、下划线和@#
|
|
265
|
+
:type PathPrefix: String
|
|
266
|
+
:param MasterUserPassword: 数据库用户密码
|
|
267
|
+
|
|
268
|
+
8-30个字符,必须包含大小写字母和数字,支持的特殊字符为!@#$%^&*()_=- 注:[不支持 + 号]
|
|
269
|
+
:type PathPrefix: String
|
|
270
|
+
:param DBParameterGroupId: 参数组id
|
|
271
|
+
|
|
272
|
+
租户的参数组id或者是官方的默认参数组id
|
|
273
|
+
:type PathPrefix: String
|
|
274
|
+
:param SecurityGroupId: 安全组ID
|
|
275
|
+
:type PathPrefix: String
|
|
276
|
+
"""
|
|
277
|
+
self.DBInstanceIdentifier = None
|
|
278
|
+
self.PreferredBackupTime = None
|
|
279
|
+
self.DBInstanceName = None
|
|
280
|
+
self.MasterUserPassword = None
|
|
281
|
+
self.DBParameterGroupId = None
|
|
282
|
+
self.SecurityGroupId = None
|
|
283
|
+
|
|
284
|
+
def _deserialize(self, params):
|
|
285
|
+
if params.get("DBInstanceIdentifier"):
|
|
286
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
287
|
+
if params.get("PreferredBackupTime"):
|
|
288
|
+
self.PreferredBackupTime = params.get("PreferredBackupTime")
|
|
289
|
+
if params.get("DBInstanceName"):
|
|
290
|
+
self.DBInstanceName = params.get("DBInstanceName")
|
|
291
|
+
if params.get("MasterUserPassword"):
|
|
292
|
+
self.MasterUserPassword = params.get("MasterUserPassword")
|
|
293
|
+
if params.get("DBParameterGroupId"):
|
|
294
|
+
self.DBParameterGroupId = params.get("DBParameterGroupId")
|
|
295
|
+
if params.get("SecurityGroupId"):
|
|
296
|
+
self.SecurityGroupId = params.get("SecurityGroupId")
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
class CreateSecurityGroupRequest(AbstractModel):
|
|
300
|
+
"""CreateSecurityGroup请求参数结构体
|
|
301
|
+
"""
|
|
302
|
+
|
|
303
|
+
def __init__(self):
|
|
304
|
+
r"""创建安全组(模版)
|
|
305
|
+
:param SecurityGroupName: 安全组名称
|
|
306
|
+
```json
|
|
307
|
+
不超过256字符,中文,字母,数字,中划线,下划线
|
|
308
|
+
```
|
|
309
|
+
:type PathPrefix: String
|
|
310
|
+
:param SecurityGroupDescription: 安全组描述
|
|
311
|
+
```json
|
|
312
|
+
不超过256字符,中文,字母,数字,中划线,下划线
|
|
313
|
+
```
|
|
314
|
+
:type PathPrefix: String
|
|
315
|
+
:param DBInstanceIdentifier: 安全组绑定的实例列表
|
|
316
|
+
|
|
317
|
+
```json
|
|
318
|
+
UUID格式,可填写未绑定过安全组的实例ID
|
|
319
|
+
```
|
|
320
|
+
:type PathPrefix: Filter
|
|
321
|
+
:param SecurityGroupRule: 安全组规则
|
|
322
|
+
:type PathPrefix: Filter
|
|
323
|
+
"""
|
|
324
|
+
self.SecurityGroupName = None
|
|
325
|
+
self.SecurityGroupDescription = None
|
|
326
|
+
self.DBInstanceIdentifier = None
|
|
327
|
+
self.SecurityGroupRule = None
|
|
328
|
+
|
|
329
|
+
def _deserialize(self, params):
|
|
330
|
+
if params.get("SecurityGroupName"):
|
|
331
|
+
self.SecurityGroupName = params.get("SecurityGroupName")
|
|
332
|
+
if params.get("SecurityGroupDescription"):
|
|
333
|
+
self.SecurityGroupDescription = params.get("SecurityGroupDescription")
|
|
334
|
+
if params.get("DBInstanceIdentifier"):
|
|
335
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
336
|
+
if params.get("SecurityGroupRule"):
|
|
337
|
+
self.SecurityGroupRule = params.get("SecurityGroupRule")
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
class DescribeSecurityGroupRequest(AbstractModel):
|
|
341
|
+
"""DescribeSecurityGroup请求参数结构体
|
|
342
|
+
"""
|
|
343
|
+
|
|
344
|
+
def __init__(self):
|
|
345
|
+
r"""查询安全组详情
|
|
346
|
+
:param SecurityGroupId: 安全组ID
|
|
347
|
+
|
|
348
|
+
```json
|
|
349
|
+
根据安全组ID筛选,若不指定则为查询列表
|
|
350
|
+
```
|
|
351
|
+
:type PathPrefix: String
|
|
352
|
+
"""
|
|
353
|
+
self.SecurityGroupId = None
|
|
354
|
+
|
|
355
|
+
def _deserialize(self, params):
|
|
356
|
+
if params.get("SecurityGroupId"):
|
|
357
|
+
self.SecurityGroupId = params.get("SecurityGroupId")
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
class DeleteSecurityGroupRequest(AbstractModel):
|
|
361
|
+
"""DeleteSecurityGroup请求参数结构体
|
|
362
|
+
"""
|
|
363
|
+
|
|
364
|
+
def __init__(self):
|
|
365
|
+
r"""删除安全组(支持批量)
|
|
366
|
+
:param SecurityGroupId: 安全组ID
|
|
367
|
+
:type PathPrefix: String
|
|
368
|
+
"""
|
|
369
|
+
self.SecurityGroupId = None
|
|
370
|
+
|
|
371
|
+
def _deserialize(self, params):
|
|
372
|
+
if params.get("SecurityGroupId"):
|
|
373
|
+
self.SecurityGroupId = params.get("SecurityGroupId")
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
class ModifySecurityGroupRequest(AbstractModel):
|
|
377
|
+
"""ModifySecurityGroup请求参数结构体
|
|
378
|
+
"""
|
|
379
|
+
|
|
380
|
+
def __init__(self):
|
|
381
|
+
r"""修改安全组名称/描述
|
|
382
|
+
:param SecurityGroupId: 安全组ID
|
|
383
|
+
:type PathPrefix: String
|
|
384
|
+
:param SecurityGroupName: 安全组名称
|
|
385
|
+
```json
|
|
386
|
+
不超过256个字符,中文,字母,数字,中划线,下划线
|
|
387
|
+
```
|
|
388
|
+
:type PathPrefix: String
|
|
389
|
+
:param SecurityGroupDescription: 安全组描述
|
|
390
|
+
```json
|
|
391
|
+
不超过256个字符,中文,字母,数字,中划线,下划线
|
|
392
|
+
```
|
|
393
|
+
:type PathPrefix: String
|
|
394
|
+
"""
|
|
395
|
+
self.SecurityGroupId = None
|
|
396
|
+
self.SecurityGroupName = None
|
|
397
|
+
self.SecurityGroupDescription = None
|
|
398
|
+
|
|
399
|
+
def _deserialize(self, params):
|
|
400
|
+
if params.get("SecurityGroupId"):
|
|
401
|
+
self.SecurityGroupId = params.get("SecurityGroupId")
|
|
402
|
+
if params.get("SecurityGroupName"):
|
|
403
|
+
self.SecurityGroupName = params.get("SecurityGroupName")
|
|
404
|
+
if params.get("SecurityGroupDescription"):
|
|
405
|
+
self.SecurityGroupDescription = params.get("SecurityGroupDescription")
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
class CloneSecurityGroupRequest(AbstractModel):
|
|
409
|
+
"""CloneSecurityGroup请求参数结构体
|
|
410
|
+
"""
|
|
411
|
+
|
|
412
|
+
def __init__(self):
|
|
413
|
+
r"""克隆安全组
|
|
414
|
+
:param SecurityGroupId: 安全组ID(源安全组ID)
|
|
415
|
+
:type PathPrefix: String
|
|
416
|
+
:param SecurityGroupName: 安全组名称
|
|
417
|
+
|
|
418
|
+
##### 不可超过256个字符,中文,字母,数字,中划线,下划线
|
|
419
|
+
:type PathPrefix: String
|
|
420
|
+
:param SecurityGroupDescription: 安全组描述
|
|
421
|
+
|
|
422
|
+
##### 安全组描述 支持1-64个字符 不可超过256个字符,中文,字母,数字,中划线,下划线
|
|
423
|
+
:type PathPrefix: String
|
|
424
|
+
"""
|
|
425
|
+
self.SecurityGroupId = None
|
|
426
|
+
self.SecurityGroupName = None
|
|
427
|
+
self.SecurityGroupDescription = None
|
|
428
|
+
|
|
429
|
+
def _deserialize(self, params):
|
|
430
|
+
if params.get("SecurityGroupId"):
|
|
431
|
+
self.SecurityGroupId = params.get("SecurityGroupId")
|
|
432
|
+
if params.get("SecurityGroupName"):
|
|
433
|
+
self.SecurityGroupName = params.get("SecurityGroupName")
|
|
434
|
+
if params.get("SecurityGroupDescription"):
|
|
435
|
+
self.SecurityGroupDescription = params.get("SecurityGroupDescription")
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
class ModifySecurityGroupRuleRequest(AbstractModel):
|
|
439
|
+
"""ModifySecurityGroupRule请求参数结构体
|
|
440
|
+
"""
|
|
441
|
+
|
|
442
|
+
def __init__(self):
|
|
443
|
+
r"""修改CIDR规则
|
|
444
|
+
:param SecurityGroupId: 安全组ID
|
|
445
|
+
:type PathPrefix: String
|
|
446
|
+
:param SecurityGroupRuleAction: 安全组规则操作
|
|
447
|
+
|
|
448
|
+
```json
|
|
449
|
+
1.取值范围:Attach|Delete|Cover
|
|
450
|
+
2.Attach: 将传入的规则列表(SecurityGroupRuleName,SecurityGroupRuleProtocol)追加到安全组规则列表内。所有绑定了此安全组的实例都会发生变化。
|
|
451
|
+
3.Delete:从安全组中删除传入的规则列表(SecurityGroupRuleId)。所有绑定了此安全组的实例都会发生变化。
|
|
452
|
+
4.Cover:用传入的规则列表(SecurityGroupRuleName,SecurityGroupRuleProtocol)覆盖安全组规则列表。所有绑定了此安全组的实例都会发生变化。
|
|
453
|
+
```
|
|
454
|
+
:type PathPrefix: String
|
|
455
|
+
:param SecurityGroupRule:
|
|
456
|
+
:type PathPrefix: Filter
|
|
457
|
+
"""
|
|
458
|
+
self.SecurityGroupId = None
|
|
459
|
+
self.SecurityGroupRuleAction = None
|
|
460
|
+
self.SecurityGroupRule = None
|
|
461
|
+
|
|
462
|
+
def _deserialize(self, params):
|
|
463
|
+
if params.get("SecurityGroupId"):
|
|
464
|
+
self.SecurityGroupId = params.get("SecurityGroupId")
|
|
465
|
+
if params.get("SecurityGroupRuleAction"):
|
|
466
|
+
self.SecurityGroupRuleAction = params.get("SecurityGroupRuleAction")
|
|
467
|
+
if params.get("SecurityGroupRule"):
|
|
468
|
+
self.SecurityGroupRule = params.get("SecurityGroupRule")
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
class SecurityGroupRelationRequest(AbstractModel):
|
|
472
|
+
"""SecurityGroupRelation请求参数结构体
|
|
473
|
+
"""
|
|
474
|
+
|
|
475
|
+
def __init__(self):
|
|
476
|
+
r"""实例绑定/解绑安全组
|
|
477
|
+
:param RelationAction: 操作类型
|
|
478
|
+
|
|
479
|
+
```json
|
|
480
|
+
1.取值范围:Attach|Dettach
|
|
481
|
+
2.Attach: 添加实例Id到安全组
|
|
482
|
+
3.Dettach:将实例Id从安全组解绑
|
|
483
|
+
```
|
|
484
|
+
:type PathPrefix: String
|
|
485
|
+
:param SecurityGroupId: 安全组id
|
|
486
|
+
:type PathPrefix: String
|
|
487
|
+
:param DBInstanceIdentifier: 实例ID列表,支持批量
|
|
488
|
+
:type PathPrefix: Filter
|
|
489
|
+
"""
|
|
490
|
+
self.RelationAction = None
|
|
491
|
+
self.SecurityGroupId = None
|
|
492
|
+
self.DBInstanceIdentifier = None
|
|
493
|
+
|
|
494
|
+
def _deserialize(self, params):
|
|
495
|
+
if params.get("RelationAction"):
|
|
496
|
+
self.RelationAction = params.get("RelationAction")
|
|
497
|
+
if params.get("SecurityGroupId"):
|
|
498
|
+
self.SecurityGroupId = params.get("SecurityGroupId")
|
|
499
|
+
if params.get("DBInstanceIdentifier"):
|
|
500
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
class ModifySecurityGroupRuleNameRequest(AbstractModel):
|
|
504
|
+
"""ModifySecurityGroupRuleName请求参数结构体
|
|
505
|
+
"""
|
|
506
|
+
|
|
507
|
+
def __init__(self):
|
|
508
|
+
r"""修改安全组规则备注
|
|
509
|
+
:param SecurityGroupRuleId: 安全组规则ID
|
|
510
|
+
:type PathPrefix: String
|
|
511
|
+
:param SecurityGroupRuleName: 安全组规则名称
|
|
512
|
+
|
|
513
|
+
```json
|
|
514
|
+
安全组规则备注,不指定默认''
|
|
515
|
+
```
|
|
516
|
+
:type PathPrefix: String
|
|
517
|
+
"""
|
|
518
|
+
self.SecurityGroupRuleId = None
|
|
519
|
+
self.SecurityGroupRuleName = None
|
|
520
|
+
|
|
521
|
+
def _deserialize(self, params):
|
|
522
|
+
if params.get("SecurityGroupRuleId"):
|
|
523
|
+
self.SecurityGroupRuleId = params.get("SecurityGroupRuleId")
|
|
524
|
+
if params.get("SecurityGroupRuleName"):
|
|
525
|
+
self.SecurityGroupRuleName = params.get("SecurityGroupRuleName")
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
class DescribeDBLogFilesRequest(AbstractModel):
|
|
529
|
+
"""DescribeDBLogFiles请求参数结构体
|
|
530
|
+
"""
|
|
531
|
+
|
|
532
|
+
def __init__(self):
|
|
533
|
+
r"""查询日志文件列表
|
|
534
|
+
:param DBInstanceIdentifier: 实例ID
|
|
535
|
+
:type PathPrefix: String
|
|
536
|
+
:param DBLogType: 日志类型
|
|
537
|
+
|
|
538
|
+
##### 取值范围:Log/SlowLog/ErrorLog/Binlog
|
|
539
|
+
:type PathPrefix: String
|
|
540
|
+
:param StartTime: 日志开始记录时间
|
|
541
|
+
##### 按照yyyy-MM-dd HH:mm:ss格式
|
|
542
|
+
:type PathPrefix: String
|
|
543
|
+
:param EndTime: 日志结束记录时间
|
|
544
|
+
##### 按照yyyy-MM-dd HH:mm:ss格式
|
|
545
|
+
:type PathPrefix: String
|
|
546
|
+
:param MaxFileSize: 最大文件大小
|
|
547
|
+
##### 过滤文件大小大于MaxFileSize的文件,单位:字节
|
|
548
|
+
:type PathPrefix: Long
|
|
549
|
+
:param Marker: 偏移量
|
|
550
|
+
:type PathPrefix: Int
|
|
551
|
+
:param MaxRecords: 每页结果中包含的最大条数
|
|
552
|
+
##### 默认:200,区间 = [10,200]
|
|
553
|
+
:type PathPrefix: Int
|
|
554
|
+
"""
|
|
555
|
+
self.DBInstanceIdentifier = None
|
|
556
|
+
self.DBLogType = None
|
|
557
|
+
self.StartTime = None
|
|
558
|
+
self.EndTime = None
|
|
559
|
+
self.MaxFileSize = None
|
|
560
|
+
self.Marker = None
|
|
561
|
+
self.MaxRecords = None
|
|
562
|
+
|
|
563
|
+
def _deserialize(self, params):
|
|
564
|
+
if params.get("DBInstanceIdentifier"):
|
|
565
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
566
|
+
if params.get("DBLogType"):
|
|
567
|
+
self.DBLogType = params.get("DBLogType")
|
|
568
|
+
if params.get("StartTime"):
|
|
569
|
+
self.StartTime = params.get("StartTime")
|
|
570
|
+
if params.get("EndTime"):
|
|
571
|
+
self.EndTime = params.get("EndTime")
|
|
572
|
+
if params.get("MaxFileSize"):
|
|
573
|
+
self.MaxFileSize = params.get("MaxFileSize")
|
|
574
|
+
if params.get("Marker"):
|
|
575
|
+
self.Marker = params.get("Marker")
|
|
576
|
+
if params.get("MaxRecords"):
|
|
577
|
+
self.MaxRecords = params.get("MaxRecords")
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
class CreateDBBackupRequest(AbstractModel):
|
|
581
|
+
"""CreateDBBackup请求参数结构体
|
|
582
|
+
"""
|
|
583
|
+
|
|
584
|
+
def __init__(self):
|
|
585
|
+
r"""创建指定实例手动备份
|
|
586
|
+
:param DBInstanceIdentifier: 实例ID
|
|
587
|
+
:type PathPrefix: String
|
|
588
|
+
:param DBBackupName: 备份名称
|
|
589
|
+
:type PathPrefix: String
|
|
590
|
+
:param Description: 备份描述,控制台页面暂无填写入口,接口支持备份描述写入
|
|
591
|
+
:type PathPrefix: String
|
|
592
|
+
"""
|
|
593
|
+
self.DBInstanceIdentifier = None
|
|
594
|
+
self.DBBackupName = None
|
|
595
|
+
self.Description = None
|
|
596
|
+
|
|
597
|
+
def _deserialize(self, params):
|
|
598
|
+
if params.get("DBInstanceIdentifier"):
|
|
599
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
600
|
+
if params.get("DBBackupName"):
|
|
601
|
+
self.DBBackupName = params.get("DBBackupName")
|
|
602
|
+
if params.get("Description"):
|
|
603
|
+
self.Description = params.get("Description")
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
class DeleteDBBackupRequest(AbstractModel):
|
|
607
|
+
"""DeleteDBBackup请求参数结构体
|
|
608
|
+
"""
|
|
609
|
+
|
|
610
|
+
def __init__(self):
|
|
611
|
+
r"""删除实例备份(手动备份)
|
|
612
|
+
:param DBBackupIdentifier: 备份ID
|
|
613
|
+
:type PathPrefix: String
|
|
614
|
+
"""
|
|
615
|
+
self.DBBackupIdentifier = None
|
|
616
|
+
|
|
617
|
+
def _deserialize(self, params):
|
|
618
|
+
if params.get("DBBackupIdentifier"):
|
|
619
|
+
self.DBBackupIdentifier = params.get("DBBackupIdentifier")
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
class DescribeDBBackupsRequest(AbstractModel):
|
|
623
|
+
"""DescribeDBBackups请求参数结构体
|
|
624
|
+
"""
|
|
625
|
+
|
|
626
|
+
def __init__(self):
|
|
627
|
+
r"""查询备份列表
|
|
628
|
+
:param DBInstanceIdentifier: 实例ID
|
|
629
|
+
:type PathPrefix: String
|
|
630
|
+
:param BackupType: 数据库快照类型,取值范围:AutoBackup(自动产生的备份)、Snapshot(手动发起的备份)
|
|
631
|
+
:type PathPrefix: String
|
|
632
|
+
:param Keyword: 备份搜索关键字
|
|
633
|
+
:type PathPrefix: String
|
|
634
|
+
:param Marker: 获取记录开始偏移量
|
|
635
|
+
|
|
636
|
+
默认:0
|
|
637
|
+
:type PathPrefix: Int
|
|
638
|
+
:param MaxRecords: 每页结果中包含的最大条数
|
|
639
|
+
|
|
640
|
+
默认:10,区间10~100
|
|
641
|
+
:type PathPrefix: Int
|
|
642
|
+
"""
|
|
643
|
+
self.DBInstanceIdentifier = None
|
|
644
|
+
self.BackupType = None
|
|
645
|
+
self.Keyword = None
|
|
646
|
+
self.Marker = None
|
|
647
|
+
self.MaxRecords = None
|
|
648
|
+
|
|
649
|
+
def _deserialize(self, params):
|
|
650
|
+
if params.get("DBInstanceIdentifier"):
|
|
651
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
652
|
+
if params.get("BackupType"):
|
|
653
|
+
self.BackupType = params.get("BackupType")
|
|
654
|
+
if params.get("Keyword"):
|
|
655
|
+
self.Keyword = params.get("Keyword")
|
|
656
|
+
if params.get("Marker"):
|
|
657
|
+
self.Marker = params.get("Marker")
|
|
658
|
+
if params.get("MaxRecords"):
|
|
659
|
+
self.MaxRecords = params.get("MaxRecords")
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
class ModifyDBBackupPolicyRequest(AbstractModel):
|
|
663
|
+
"""ModifyDBBackupPolicy请求参数结构体
|
|
664
|
+
"""
|
|
665
|
+
|
|
666
|
+
def __init__(self):
|
|
667
|
+
r"""修改备份策略
|
|
668
|
+
:param DBInstanceIdentifier: 实例ID
|
|
669
|
+
:type PathPrefix: String
|
|
670
|
+
:param PreferredBackupTime: 备份时间段
|
|
671
|
+
|
|
672
|
+
例如:02:00-03:00,范围取值:[00:00-01:00,23:00-24:00], 间隔一小时的整点时刻
|
|
673
|
+
:type PathPrefix: String
|
|
674
|
+
"""
|
|
675
|
+
self.DBInstanceIdentifier = None
|
|
676
|
+
self.PreferredBackupTime = None
|
|
677
|
+
|
|
678
|
+
def _deserialize(self, params):
|
|
679
|
+
if params.get("DBInstanceIdentifier"):
|
|
680
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
681
|
+
if params.get("PreferredBackupTime"):
|
|
682
|
+
self.PreferredBackupTime = params.get("PreferredBackupTime")
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
class OverrideDBInstanceRequest(AbstractModel):
|
|
686
|
+
"""OverrideDBInstance请求参数结构体
|
|
687
|
+
"""
|
|
688
|
+
|
|
689
|
+
def __init__(self):
|
|
690
|
+
r"""恢复至源实例
|
|
691
|
+
:param DBInstanceIdentifier: 实例ID
|
|
692
|
+
:type PathPrefix: String
|
|
693
|
+
:param DBBackupIdentifier: 备份ID
|
|
694
|
+
:type PathPrefix: String
|
|
695
|
+
"""
|
|
696
|
+
self.DBInstanceIdentifier = None
|
|
697
|
+
self.DBBackupIdentifier = None
|
|
698
|
+
|
|
699
|
+
def _deserialize(self, params):
|
|
700
|
+
if params.get("DBInstanceIdentifier"):
|
|
701
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
702
|
+
if params.get("DBBackupIdentifier"):
|
|
703
|
+
self.DBBackupIdentifier = params.get("DBBackupIdentifier")
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
class CreateDBParameterGroupRequest(AbstractModel):
|
|
707
|
+
"""CreateDBParameterGroup请求参数结构体
|
|
708
|
+
"""
|
|
709
|
+
|
|
710
|
+
def __init__(self):
|
|
711
|
+
r"""创建参数组(模版)
|
|
712
|
+
:param Engine: #### 数据库引擎名称
|
|
713
|
+
取值范围:PostgreSQL
|
|
714
|
+
:type PathPrefix: String
|
|
715
|
+
:param EngineVersion: #### 数据库引擎版本
|
|
716
|
+
取值范围: 9.6/12.5/9.4/11/10/13
|
|
717
|
+
:type PathPrefix: String
|
|
718
|
+
:param DBParameterGroupName: #### 参数组名称
|
|
719
|
+
:type PathPrefix: String
|
|
720
|
+
:param Description: #### 参数组描述
|
|
721
|
+
:type PathPrefix: String
|
|
722
|
+
:param Parameters: #### 参数详情
|
|
723
|
+
不传入指定参数及数值,则按照默认模板创建参数组
|
|
724
|
+
:type PathPrefix: Filter
|
|
725
|
+
"""
|
|
726
|
+
self.Engine = None
|
|
727
|
+
self.EngineVersion = None
|
|
728
|
+
self.DBParameterGroupName = None
|
|
729
|
+
self.Description = None
|
|
730
|
+
self.Parameters = None
|
|
731
|
+
|
|
732
|
+
def _deserialize(self, params):
|
|
733
|
+
if params.get("Engine"):
|
|
734
|
+
self.Engine = params.get("Engine")
|
|
735
|
+
if params.get("EngineVersion"):
|
|
736
|
+
self.EngineVersion = params.get("EngineVersion")
|
|
737
|
+
if params.get("DBParameterGroupName"):
|
|
738
|
+
self.DBParameterGroupName = params.get("DBParameterGroupName")
|
|
739
|
+
if params.get("Description"):
|
|
740
|
+
self.Description = params.get("Description")
|
|
741
|
+
if params.get("Parameters"):
|
|
742
|
+
self.Parameters = params.get("Parameters")
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
class ModifyDBParameterGroupRequest(AbstractModel):
|
|
746
|
+
"""ModifyDBParameterGroup请求参数结构体
|
|
747
|
+
"""
|
|
748
|
+
|
|
749
|
+
def __init__(self):
|
|
750
|
+
r"""修改参数组
|
|
751
|
+
:param DBParameterGroupId: 参数组ID
|
|
752
|
+
:type PathPrefix: String
|
|
753
|
+
:param DBParameterGroupName: 参数组名称
|
|
754
|
+
|
|
755
|
+
参数组名-参数值/参数组名称/参数组描述,至少填写一项
|
|
756
|
+
:type PathPrefix: String
|
|
757
|
+
:param Description: 参数组描述
|
|
758
|
+
|
|
759
|
+
参数组名-参数值/参数组名称/参数组描述,至少填写一项
|
|
760
|
+
:type PathPrefix: String
|
|
761
|
+
:param Parameters: 参数值
|
|
762
|
+
|
|
763
|
+
参数名与参数值同时填写;参数组名-参数值/参数组名称/参数组描述,至少填写一项
|
|
764
|
+
:type PathPrefix: Filter
|
|
765
|
+
"""
|
|
766
|
+
self.DBParameterGroupId = None
|
|
767
|
+
self.DBParameterGroupName = None
|
|
768
|
+
self.Description = None
|
|
769
|
+
self.Parameters = None
|
|
770
|
+
|
|
771
|
+
def _deserialize(self, params):
|
|
772
|
+
if params.get("DBParameterGroupId"):
|
|
773
|
+
self.DBParameterGroupId = params.get("DBParameterGroupId")
|
|
774
|
+
if params.get("DBParameterGroupName"):
|
|
775
|
+
self.DBParameterGroupName = params.get("DBParameterGroupName")
|
|
776
|
+
if params.get("Description"):
|
|
777
|
+
self.Description = params.get("Description")
|
|
778
|
+
if params.get("Parameters"):
|
|
779
|
+
self.Parameters = params.get("Parameters")
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
class DeleteDBParameterGroupRequest(AbstractModel):
|
|
783
|
+
"""DeleteDBParameterGroup请求参数结构体
|
|
784
|
+
"""
|
|
785
|
+
|
|
786
|
+
def __init__(self):
|
|
787
|
+
r"""删除参数组(模版)
|
|
788
|
+
:param DBParameterGroupId: #### 参数组ID
|
|
789
|
+
:type PathPrefix: String
|
|
790
|
+
"""
|
|
791
|
+
self.DBParameterGroupId = None
|
|
792
|
+
|
|
793
|
+
def _deserialize(self, params):
|
|
794
|
+
if params.get("DBParameterGroupId"):
|
|
795
|
+
self.DBParameterGroupId = params.get("DBParameterGroupId")
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
class ResetDBParameterGroupRequest(AbstractModel):
|
|
799
|
+
"""ResetDBParameterGroup请求参数结构体
|
|
800
|
+
"""
|
|
801
|
+
|
|
802
|
+
def __init__(self):
|
|
803
|
+
r"""重置实例参数
|
|
804
|
+
:param DBParameterGroupId: 参数组ID
|
|
805
|
+
:type PathPrefix: String
|
|
806
|
+
"""
|
|
807
|
+
self.DBParameterGroupId = None
|
|
808
|
+
|
|
809
|
+
def _deserialize(self, params):
|
|
810
|
+
if params.get("DBParameterGroupId"):
|
|
811
|
+
self.DBParameterGroupId = params.get("DBParameterGroupId")
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
class DescribeDBParameterGroupRequest(AbstractModel):
|
|
815
|
+
"""DescribeDBParameterGroup请求参数结构体
|
|
816
|
+
"""
|
|
817
|
+
|
|
818
|
+
def __init__(self):
|
|
819
|
+
r"""查询参数组列表/详情
|
|
820
|
+
:param DBParameterGroupId: 参数组id
|
|
821
|
+
:type PathPrefix: String
|
|
822
|
+
:param Marker: 获取记录开始偏移量
|
|
823
|
+
|
|
824
|
+
##### 默认:0,仅查询列表生效
|
|
825
|
+
:type PathPrefix: Int
|
|
826
|
+
:param MaxRecords: 每页结果中包含的最大条数
|
|
827
|
+
|
|
828
|
+
##### 默认:10,区间10~100,仅查询列表生效
|
|
829
|
+
:type PathPrefix: Int
|
|
830
|
+
:param Source: 参数模版类型
|
|
831
|
+
|
|
832
|
+
##### 默认查询:TEMPLATE 自建;DEFAULT 系统默认模版;INSTANCE 实例本身模版(参数配置)
|
|
833
|
+
##### 注意:切勿修改操作内置和实例本身模板(可能造成实例异常)!!!!!
|
|
834
|
+
:type PathPrefix: String
|
|
835
|
+
"""
|
|
836
|
+
self.DBParameterGroupId = None
|
|
837
|
+
self.Marker = None
|
|
838
|
+
self.MaxRecords = None
|
|
839
|
+
self.Source = None
|
|
840
|
+
|
|
841
|
+
def _deserialize(self, params):
|
|
842
|
+
if params.get("DBParameterGroupId"):
|
|
843
|
+
self.DBParameterGroupId = params.get("DBParameterGroupId")
|
|
844
|
+
if params.get("Marker"):
|
|
845
|
+
self.Marker = params.get("Marker")
|
|
846
|
+
if params.get("MaxRecords"):
|
|
847
|
+
self.MaxRecords = params.get("MaxRecords")
|
|
848
|
+
if params.get("Source"):
|
|
849
|
+
self.Source = params.get("Source")
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
class DescribeEngineDefaultParametersRequest(AbstractModel):
|
|
853
|
+
"""DescribeEngineDefaultParameters请求参数结构体
|
|
854
|
+
"""
|
|
855
|
+
|
|
856
|
+
def __init__(self):
|
|
857
|
+
r"""查询默认参数组详情
|
|
858
|
+
:param Engine: 数据库引擎名称
|
|
859
|
+
|
|
860
|
+
固定PostgreSQL
|
|
861
|
+
:type PathPrefix: String
|
|
862
|
+
:param EngineVersion: 引擎版本
|
|
863
|
+
|
|
864
|
+
引擎名称和版本必须对应,目前支持的版本:9.6/10/11/12.5/13
|
|
865
|
+
:type PathPrefix: String
|
|
866
|
+
"""
|
|
867
|
+
self.Engine = None
|
|
868
|
+
self.EngineVersion = None
|
|
869
|
+
|
|
870
|
+
def _deserialize(self, params):
|
|
871
|
+
if params.get("Engine"):
|
|
872
|
+
self.Engine = params.get("Engine")
|
|
873
|
+
if params.get("EngineVersion"):
|
|
874
|
+
self.EngineVersion = params.get("EngineVersion")
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
class DescribeDBInstanceParametersRequest(AbstractModel):
|
|
878
|
+
"""DescribeDBInstanceParameters请求参数结构体
|
|
879
|
+
"""
|
|
880
|
+
|
|
881
|
+
def __init__(self):
|
|
882
|
+
r"""查询实例参数(运行中参数)
|
|
883
|
+
:param DBInstanceIdentifier: 实例ID
|
|
884
|
+
:type PathPrefix: String
|
|
885
|
+
"""
|
|
886
|
+
self.DBInstanceIdentifier = None
|
|
887
|
+
|
|
888
|
+
def _deserialize(self, params):
|
|
889
|
+
if params.get("DBInstanceIdentifier"):
|
|
890
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
class RebootDBInstanceRequest(AbstractModel):
|
|
894
|
+
"""RebootDBInstance请求参数结构体
|
|
895
|
+
"""
|
|
896
|
+
|
|
897
|
+
def __init__(self):
|
|
898
|
+
r"""重启指定实例
|
|
899
|
+
:param DBInstanceIdentifier: 实例ID
|
|
900
|
+
:type PathPrefix: String
|
|
901
|
+
"""
|
|
902
|
+
self.DBInstanceIdentifier = None
|
|
903
|
+
|
|
904
|
+
def _deserialize(self, params):
|
|
905
|
+
if params.get("DBInstanceIdentifier"):
|
|
906
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
class DescribeDBEngineVersionsRequest(AbstractModel):
|
|
910
|
+
"""DescribeDBEngineVersions请求参数结构体
|
|
911
|
+
"""
|
|
912
|
+
|
|
913
|
+
def __init__(self):
|
|
914
|
+
r"""查询支持的引擎版本及最新小版本信息
|
|
915
|
+
"""
|
|
916
|
+
|
|
917
|
+
def _deserialize(self, params):
|
|
918
|
+
return
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
class AllocateDBInstanceEipRequest(AbstractModel):
|
|
922
|
+
"""AllocateDBInstanceEip请求参数结构体
|
|
923
|
+
"""
|
|
924
|
+
|
|
925
|
+
def __init__(self):
|
|
926
|
+
r"""申请外网EIP
|
|
927
|
+
:param DBInstanceIdentifier: 实例id
|
|
928
|
+
:type PathPrefix: String
|
|
929
|
+
:param Port: 外网访问端口号,可设置外网访问端口号 范围:10000~65500
|
|
930
|
+
:type PathPrefix: Int
|
|
931
|
+
"""
|
|
932
|
+
self.DBInstanceIdentifier = None
|
|
933
|
+
self.Port = None
|
|
934
|
+
|
|
935
|
+
def _deserialize(self, params):
|
|
936
|
+
if params.get("DBInstanceIdentifier"):
|
|
937
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
938
|
+
if params.get("Port"):
|
|
939
|
+
self.Port = params.get("Port")
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
class ReleaseDBInstanceEipRequest(AbstractModel):
|
|
943
|
+
"""ReleaseDBInstanceEip请求参数结构体
|
|
944
|
+
"""
|
|
945
|
+
|
|
946
|
+
def __init__(self):
|
|
947
|
+
r"""释放外网EIP
|
|
948
|
+
:param DBInstanceIdentifier: 实例ID
|
|
949
|
+
:type PathPrefix: String
|
|
950
|
+
"""
|
|
951
|
+
self.DBInstanceIdentifier = None
|
|
952
|
+
|
|
953
|
+
def _deserialize(self, params):
|
|
954
|
+
if params.get("DBInstanceIdentifier"):
|
|
955
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
959
|
+
"""ModifyDBInstanceSpec请求参数结构体
|
|
960
|
+
"""
|
|
961
|
+
|
|
962
|
+
def __init__(self):
|
|
963
|
+
r"""更改实例配置
|
|
964
|
+
:param DBInstanceIdentifier: 实例ID
|
|
965
|
+
:type PathPrefix: String
|
|
966
|
+
:param Mem: 内存大小,客户只能购买特定规格的套餐,且需>=原规格.否则将会报错 注:各规格对应连接数和iops见下方附表.
|
|
967
|
+
|
|
968
|
+
| 实例规格 | 最大连接数 | 读IOPS | 写IOPS | 对应磁盘取值范围(步长均为5) |
|
|
969
|
+
| :- | - | - | - | - |
|
|
970
|
+
| **1G** | 200 | 1200 | 1200 | *5~40* |
|
|
971
|
+
| **2G** | 400 | 2400 | 2400 | *5~80* |
|
|
972
|
+
| **4G** | 800 | 4800 | 4800 | *5~200* |
|
|
973
|
+
| **8G** | 1600 | 9600 | 9600 | *5~300* |
|
|
974
|
+
| **12G** | 2400 | 14400 | 14400 | *5~500* |
|
|
975
|
+
| **16G** | 3200 | 19200 | 19200 | *5~600* |
|
|
976
|
+
| **24G** | 4800 | 28800 | 28800 | *5~1000* |
|
|
977
|
+
| **32G** | 6400 | 38400 | 38400 | *5~1500* |
|
|
978
|
+
| **48G** | 9600 | 57600 | 57600 | *5~2000* |
|
|
979
|
+
:type PathPrefix: Int
|
|
980
|
+
:param Disk: 磁盘大小,客户只能购买特定规格的套餐,单位为G,同规格内存只支持升配磁盘.否则将会报错 注:各配置取值范围见下方附表
|
|
981
|
+
|
|
982
|
+
| 实例规格 | 最大连接数 | 读IOPS | 写IOPS | 对应磁盘取值范围(步长均为5) |
|
|
983
|
+
| :- | - | - | - | - |
|
|
984
|
+
| **1G** | 200 | 1200 | 1200 | *5~40* |
|
|
985
|
+
| **2G** | 400 | 2400 | 2400 | *5~80* |
|
|
986
|
+
| **4G** | 800 | 4800 | 4800 | *5~200* |
|
|
987
|
+
| **8G** | 1600 | 9600 | 9600 | *5~300* |
|
|
988
|
+
| **12G** | 2400 | 14400 | 14400 | *5~500* |
|
|
989
|
+
| **16G** | 3200 | 19200 | 19200 | *5~600* |
|
|
990
|
+
| **24G** | 4800 | 28800 | 28800 | *5~1000* |
|
|
991
|
+
| **32G** | 6400 | 38400 | 38400 | *5~1500* |
|
|
992
|
+
| **48G** | 9600 | 57600 | 57600 | *5~2000* |
|
|
993
|
+
:type PathPrefix: Int
|
|
994
|
+
"""
|
|
995
|
+
self.DBInstanceIdentifier = None
|
|
996
|
+
self.Mem = None
|
|
997
|
+
self.Disk = None
|
|
998
|
+
|
|
999
|
+
def _deserialize(self, params):
|
|
1000
|
+
if params.get("DBInstanceIdentifier"):
|
|
1001
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1002
|
+
if params.get("Mem"):
|
|
1003
|
+
self.Mem = params.get("Mem")
|
|
1004
|
+
if params.get("Disk"):
|
|
1005
|
+
self.Disk = params.get("Disk")
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
class RestoreDBInstanceFromDBBackupRequest(AbstractModel):
|
|
1009
|
+
"""RestoreDBInstanceFromDBBackup请求参数结构体
|
|
1010
|
+
"""
|
|
1011
|
+
|
|
1012
|
+
def __init__(self):
|
|
1013
|
+
r"""恢复至新实例
|
|
1014
|
+
:param DBBackupIdentifier: #### 备份ID
|
|
1015
|
+
:type PathPrefix: String
|
|
1016
|
+
:param DBInstanceType: #### 实例类型
|
|
1017
|
+
区分大小写,取固定值:高可用实例:HRDS_PG,临时实例:TRDS_PG
|
|
1018
|
+
:type PathPrefix: String
|
|
1019
|
+
:param DBInstanceName: #### 实例名称
|
|
1020
|
+
不超过256个字节,仅支持中文、大小写字母、数字、减号和下划线
|
|
1021
|
+
:type PathPrefix: String
|
|
1022
|
+
:param BillType: #### 计费方式
|
|
1023
|
+
默认值:YEAR_MONTH,取值范围:YEAR_MONTH(包年包月),DAY(按日计费)。
|
|
1024
|
+
:type PathPrefix: String
|
|
1025
|
+
:param Duration: #### 购买时长
|
|
1026
|
+
取值范围:默认1。选择YEAR_MONTH时计费方式必传.
|
|
1027
|
+
:type PathPrefix: Int
|
|
1028
|
+
:param DurationUnit: #### 购买时长单位
|
|
1029
|
+
取值范围:M(月),默认值:M(区分大小写),选择YEAR_MONTH时计费方式必传.
|
|
1030
|
+
:type PathPrefix: String
|
|
1031
|
+
:param AvailabilityZone: #### 可用区字段
|
|
1032
|
+
示例(AvailabilityZone.1=cn-beijing-6a&AvailabilityZone.2=cn-beijing-6b),表示实例的主副本在a区,备副本在b区。如果没有跨可用区的需求,建议将实例创建在云主机的可用区内已减少网络延时。
|
|
1033
|
+
:type PathPrefix: Filter
|
|
1034
|
+
:param VpcId: ##### VPC网络ID,可在网络控制台获取。不传默认与原备份一致
|
|
1035
|
+
:type PathPrefix: String
|
|
1036
|
+
:param SubnetId: ##### 终端子网ID,可在网络控制台获取(注意类型必须为终端子网)。不传默认与原备份一致
|
|
1037
|
+
:type PathPrefix: String
|
|
1038
|
+
"""
|
|
1039
|
+
self.DBBackupIdentifier = None
|
|
1040
|
+
self.DBInstanceType = None
|
|
1041
|
+
self.DBInstanceName = None
|
|
1042
|
+
self.BillType = None
|
|
1043
|
+
self.Duration = None
|
|
1044
|
+
self.DurationUnit = None
|
|
1045
|
+
self.AvailabilityZone = None
|
|
1046
|
+
self.VpcId = None
|
|
1047
|
+
self.SubnetId = None
|
|
1048
|
+
|
|
1049
|
+
def _deserialize(self, params):
|
|
1050
|
+
if params.get("DBBackupIdentifier"):
|
|
1051
|
+
self.DBBackupIdentifier = params.get("DBBackupIdentifier")
|
|
1052
|
+
if params.get("DBInstanceType"):
|
|
1053
|
+
self.DBInstanceType = params.get("DBInstanceType")
|
|
1054
|
+
if params.get("DBInstanceName"):
|
|
1055
|
+
self.DBInstanceName = params.get("DBInstanceName")
|
|
1056
|
+
if params.get("BillType"):
|
|
1057
|
+
self.BillType = params.get("BillType")
|
|
1058
|
+
if params.get("Duration"):
|
|
1059
|
+
self.Duration = params.get("Duration")
|
|
1060
|
+
if params.get("DurationUnit"):
|
|
1061
|
+
self.DurationUnit = params.get("DurationUnit")
|
|
1062
|
+
if params.get("AvailabilityZone"):
|
|
1063
|
+
self.AvailabilityZone = params.get("AvailabilityZone")
|
|
1064
|
+
if params.get("VpcId"):
|
|
1065
|
+
self.VpcId = params.get("VpcId")
|
|
1066
|
+
if params.get("SubnetId"):
|
|
1067
|
+
self.SubnetId = params.get("SubnetId")
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
class SwitchDBInstanceHARequest(AbstractModel):
|
|
1071
|
+
"""SwitchDBInstanceHA请求参数结构体
|
|
1072
|
+
"""
|
|
1073
|
+
|
|
1074
|
+
def __init__(self):
|
|
1075
|
+
r"""主备切换(可用区)
|
|
1076
|
+
:param DBInstanceIdentifier: 实例ID
|
|
1077
|
+
:type PathPrefix: String
|
|
1078
|
+
"""
|
|
1079
|
+
self.DBInstanceIdentifier = None
|
|
1080
|
+
|
|
1081
|
+
def _deserialize(self, params):
|
|
1082
|
+
if params.get("DBInstanceIdentifier"):
|
|
1083
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
class CreateDBInstanceReadReplicaRequest(AbstractModel):
|
|
1087
|
+
"""CreateDBInstanceReadReplica请求参数结构体
|
|
1088
|
+
"""
|
|
1089
|
+
|
|
1090
|
+
def __init__(self):
|
|
1091
|
+
r"""创建只读实例
|
|
1092
|
+
:param DBInstanceIdentifier: 主实例Id
|
|
1093
|
+
:type PathPrefix: String
|
|
1094
|
+
:param DBInstanceName: 实例名称
|
|
1095
|
+
|
|
1096
|
+
不超过256个字节,仅支持中文、大小写字母、数字、减号和下划线
|
|
1097
|
+
:type PathPrefix: String
|
|
1098
|
+
:param AttachedVipId: 只读实例ip
|
|
1099
|
+
|
|
1100
|
+
共享同一主实例下的只读实例ip,默认创建一个新的ip
|
|
1101
|
+
:type PathPrefix: String
|
|
1102
|
+
:param BillType: 计费方式
|
|
1103
|
+
|
|
1104
|
+
YEAR_MONTH(包年包月),DAY(按日计费),默认值:YEAR_MONTH
|
|
1105
|
+
:type PathPrefix: String
|
|
1106
|
+
:param Duration: 购买时长
|
|
1107
|
+
|
|
1108
|
+
时长 默认值:1(单位:月) 注:billType=1(包年包月)则必填
|
|
1109
|
+
:type PathPrefix: String
|
|
1110
|
+
:param DurationUnit: 购买时长单位
|
|
1111
|
+
|
|
1112
|
+
取值范围:M(月),默认值:M(区分大小写)
|
|
1113
|
+
:type PathPrefix: String
|
|
1114
|
+
:param AvailabilityZone: 可用区
|
|
1115
|
+
|
|
1116
|
+
示例(AvailabilityZone.1=cn-beijing-6a),默认情况下只读实例可用区与主实例一致,如果主实例是跨可用区实例,只读实例会随机分布。
|
|
1117
|
+
:type PathPrefix: Filter
|
|
1118
|
+
:param Vip: 只读ip地址
|
|
1119
|
+
|
|
1120
|
+
选定的IP地址
|
|
1121
|
+
:type PathPrefix: String
|
|
1122
|
+
:param Mem: 实例内存大小,,参照附表范围填写
|
|
1123
|
+
:type PathPrefix: Int
|
|
1124
|
+
:param Disk: 实例硬盘大小,参照附表范围填写
|
|
1125
|
+
:type PathPrefix: Int
|
|
1126
|
+
"""
|
|
1127
|
+
self.DBInstanceIdentifier = None
|
|
1128
|
+
self.DBInstanceName = None
|
|
1129
|
+
self.AttachedVipId = None
|
|
1130
|
+
self.BillType = None
|
|
1131
|
+
self.Duration = None
|
|
1132
|
+
self.DurationUnit = None
|
|
1133
|
+
self.AvailabilityZone = None
|
|
1134
|
+
self.Vip = None
|
|
1135
|
+
self.Mem = None
|
|
1136
|
+
self.Disk = None
|
|
1137
|
+
|
|
1138
|
+
def _deserialize(self, params):
|
|
1139
|
+
if params.get("DBInstanceIdentifier"):
|
|
1140
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1141
|
+
if params.get("DBInstanceName"):
|
|
1142
|
+
self.DBInstanceName = params.get("DBInstanceName")
|
|
1143
|
+
if params.get("AttachedVipId"):
|
|
1144
|
+
self.AttachedVipId = params.get("AttachedVipId")
|
|
1145
|
+
if params.get("BillType"):
|
|
1146
|
+
self.BillType = params.get("BillType")
|
|
1147
|
+
if params.get("Duration"):
|
|
1148
|
+
self.Duration = params.get("Duration")
|
|
1149
|
+
if params.get("DurationUnit"):
|
|
1150
|
+
self.DurationUnit = params.get("DurationUnit")
|
|
1151
|
+
if params.get("AvailabilityZone"):
|
|
1152
|
+
self.AvailabilityZone = params.get("AvailabilityZone")
|
|
1153
|
+
if params.get("Vip"):
|
|
1154
|
+
self.Vip = params.get("Vip")
|
|
1155
|
+
if params.get("Mem"):
|
|
1156
|
+
self.Mem = params.get("Mem")
|
|
1157
|
+
if params.get("Disk"):
|
|
1158
|
+
self.Disk = params.get("Disk")
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
class ModifyInstanceAccountInfoRequest(AbstractModel):
|
|
1162
|
+
"""ModifyInstanceAccountInfo请求参数结构体
|
|
1163
|
+
"""
|
|
1164
|
+
|
|
1165
|
+
def __init__(self):
|
|
1166
|
+
r"""编辑账号信息
|
|
1167
|
+
:param DBInstanceIdentifier: 实例id
|
|
1168
|
+
:type PathPrefix: String
|
|
1169
|
+
:param AccountName: 实例名称
|
|
1170
|
+
:type PathPrefix: String
|
|
1171
|
+
:param AccountPassword: 实例密码
|
|
1172
|
+
:type PathPrefix: String
|
|
1173
|
+
:param AccountDescription: 数据库账户描述
|
|
1174
|
+
:type PathPrefix: String
|
|
1175
|
+
"""
|
|
1176
|
+
self.DBInstanceIdentifier = None
|
|
1177
|
+
self.AccountName = None
|
|
1178
|
+
self.AccountPassword = None
|
|
1179
|
+
self.AccountDescription = None
|
|
1180
|
+
|
|
1181
|
+
def _deserialize(self, params):
|
|
1182
|
+
if params.get("DBInstanceIdentifier"):
|
|
1183
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1184
|
+
if params.get("AccountName"):
|
|
1185
|
+
self.AccountName = params.get("AccountName")
|
|
1186
|
+
if params.get("AccountPassword"):
|
|
1187
|
+
self.AccountPassword = params.get("AccountPassword")
|
|
1188
|
+
if params.get("AccountDescription"):
|
|
1189
|
+
self.AccountDescription = params.get("AccountDescription")
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
class DescribeInstanceDatabasesRequest(AbstractModel):
|
|
1193
|
+
"""DescribeInstanceDatabases请求参数结构体
|
|
1194
|
+
"""
|
|
1195
|
+
|
|
1196
|
+
def __init__(self):
|
|
1197
|
+
r"""查询数据库列表
|
|
1198
|
+
:param DBInstanceIdentifier: 实例ID
|
|
1199
|
+
:type PathPrefix: String
|
|
1200
|
+
"""
|
|
1201
|
+
self.DBInstanceIdentifier = None
|
|
1202
|
+
|
|
1203
|
+
def _deserialize(self, params):
|
|
1204
|
+
if params.get("DBInstanceIdentifier"):
|
|
1205
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
class DescribeDBInstanceExtensionsRequest(AbstractModel):
|
|
1209
|
+
"""DescribeDBInstanceExtensions请求参数结构体
|
|
1210
|
+
"""
|
|
1211
|
+
|
|
1212
|
+
def __init__(self):
|
|
1213
|
+
r"""查询插件列表
|
|
1214
|
+
:param DBInstanceIdentifier: 实例ID
|
|
1215
|
+
:type PathPrefix: String
|
|
1216
|
+
:param KeyWord: 绑定类型(绑定/未绑定)
|
|
1217
|
+
|
|
1218
|
+
```json
|
|
1219
|
+
支持接口选定查询是否绑定,不传则都查询出来(绑定+解绑);
|
|
1220
|
+
installed
|
|
1221
|
+
uninstalled
|
|
1222
|
+
```
|
|
1223
|
+
:type PathPrefix: String
|
|
1224
|
+
"""
|
|
1225
|
+
self.DBInstanceIdentifier = None
|
|
1226
|
+
self.KeyWord = None
|
|
1227
|
+
|
|
1228
|
+
def _deserialize(self, params):
|
|
1229
|
+
if params.get("DBInstanceIdentifier"):
|
|
1230
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1231
|
+
if params.get("KeyWord"):
|
|
1232
|
+
self.KeyWord = params.get("KeyWord")
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
class ModifyDBInstanceExtensionRequest(AbstractModel):
|
|
1236
|
+
"""ModifyDBInstanceExtension请求参数结构体
|
|
1237
|
+
"""
|
|
1238
|
+
|
|
1239
|
+
def __init__(self):
|
|
1240
|
+
r"""安装/卸载用户实例插件
|
|
1241
|
+
:param DBInstanceIdentifier: 实例Id
|
|
1242
|
+
:type PathPrefix: String
|
|
1243
|
+
:param InstanceDatabaseName: 数据库名称
|
|
1244
|
+
|
|
1245
|
+
```json
|
|
1246
|
+
注意:插件是'database'级别的,必须指定db
|
|
1247
|
+
```
|
|
1248
|
+
:type PathPrefix: String
|
|
1249
|
+
:param Operation: 操作类型
|
|
1250
|
+
|
|
1251
|
+
```json
|
|
1252
|
+
1.默认放的:install
|
|
1253
|
+
2.Install 安装
|
|
1254
|
+
3.Uninstall 卸载(不支持)
|
|
1255
|
+
```
|
|
1256
|
+
:type PathPrefix: String
|
|
1257
|
+
:param Extension: 插件列表
|
|
1258
|
+
|
|
1259
|
+
```json
|
|
1260
|
+
注意:支持普通GET传List<string>的方式,也支持以Extension=aaa,bbb,ccc的形式传值
|
|
1261
|
+
```
|
|
1262
|
+
:type PathPrefix: Filter
|
|
1263
|
+
"""
|
|
1264
|
+
self.DBInstanceIdentifier = None
|
|
1265
|
+
self.InstanceDatabaseName = None
|
|
1266
|
+
self.Operation = None
|
|
1267
|
+
self.Extension = None
|
|
1268
|
+
|
|
1269
|
+
def _deserialize(self, params):
|
|
1270
|
+
if params.get("DBInstanceIdentifier"):
|
|
1271
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1272
|
+
if params.get("InstanceDatabaseName"):
|
|
1273
|
+
self.InstanceDatabaseName = params.get("InstanceDatabaseName")
|
|
1274
|
+
if params.get("Operation"):
|
|
1275
|
+
self.Operation = params.get("Operation")
|
|
1276
|
+
if params.get("Extension"):
|
|
1277
|
+
self.Extension = params.get("Extension")
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
class DescribeCollationsRequest(AbstractModel):
|
|
1281
|
+
"""DescribeCollations请求参数结构体
|
|
1282
|
+
"""
|
|
1283
|
+
|
|
1284
|
+
def __init__(self):
|
|
1285
|
+
r"""查询支持字符集
|
|
1286
|
+
:param DBInstanceIdentifier: 实例ID
|
|
1287
|
+
:type PathPrefix: String
|
|
1288
|
+
"""
|
|
1289
|
+
self.DBInstanceIdentifier = None
|
|
1290
|
+
|
|
1291
|
+
def _deserialize(self, params):
|
|
1292
|
+
if params.get("DBInstanceIdentifier"):
|
|
1293
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
class ModifyInstanceDatabaseOwnerRequest(AbstractModel):
|
|
1297
|
+
"""ModifyInstanceDatabaseOwner请求参数结构体
|
|
1298
|
+
"""
|
|
1299
|
+
|
|
1300
|
+
def __init__(self):
|
|
1301
|
+
r"""修改数据库所有者
|
|
1302
|
+
:param DBInstanceIdentifier: 实例ID
|
|
1303
|
+
:type PathPrefix: String
|
|
1304
|
+
:param InstanceDatabaseName: 数据库名称
|
|
1305
|
+
:type PathPrefix: String
|
|
1306
|
+
:param Owner: 数据库拥有者(账户)
|
|
1307
|
+
:type PathPrefix: String
|
|
1308
|
+
"""
|
|
1309
|
+
self.DBInstanceIdentifier = None
|
|
1310
|
+
self.InstanceDatabaseName = None
|
|
1311
|
+
self.Owner = None
|
|
1312
|
+
|
|
1313
|
+
def _deserialize(self, params):
|
|
1314
|
+
if params.get("DBInstanceIdentifier"):
|
|
1315
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1316
|
+
if params.get("InstanceDatabaseName"):
|
|
1317
|
+
self.InstanceDatabaseName = params.get("InstanceDatabaseName")
|
|
1318
|
+
if params.get("Owner"):
|
|
1319
|
+
self.Owner = params.get("Owner")
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
class DeleteInstanceDatabaseRequest(AbstractModel):
|
|
1323
|
+
"""DeleteInstanceDatabase请求参数结构体
|
|
1324
|
+
"""
|
|
1325
|
+
|
|
1326
|
+
def __init__(self):
|
|
1327
|
+
r"""删除数据库
|
|
1328
|
+
:param DBInstanceIdentifier: 实例ID
|
|
1329
|
+
:type PathPrefix: String
|
|
1330
|
+
:param InstanceDatabaseName: 库表名称
|
|
1331
|
+
:type PathPrefix: String
|
|
1332
|
+
"""
|
|
1333
|
+
self.DBInstanceIdentifier = None
|
|
1334
|
+
self.InstanceDatabaseName = None
|
|
1335
|
+
|
|
1336
|
+
def _deserialize(self, params):
|
|
1337
|
+
if params.get("DBInstanceIdentifier"):
|
|
1338
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1339
|
+
if params.get("InstanceDatabaseName"):
|
|
1340
|
+
self.InstanceDatabaseName = params.get("InstanceDatabaseName")
|
|
1341
|
+
|
|
1342
|
+
|
|
1343
|
+
class CreateInstanceDatabaseRequest(AbstractModel):
|
|
1344
|
+
"""CreateInstanceDatabase请求参数结构体
|
|
1345
|
+
"""
|
|
1346
|
+
|
|
1347
|
+
def __init__(self):
|
|
1348
|
+
r"""创建数据库
|
|
1349
|
+
:param DBInstanceIdentifier: 实例ID
|
|
1350
|
+
:type PathPrefix: String
|
|
1351
|
+
:param InstanceDatabaseName: 库名称
|
|
1352
|
+
:type PathPrefix: String
|
|
1353
|
+
:param InstanceDatabaseCollation: 排序规则
|
|
1354
|
+
:type PathPrefix: String
|
|
1355
|
+
:param InstanceDatabaseCharacterSet: 字符集
|
|
1356
|
+
:type PathPrefix: String
|
|
1357
|
+
:param InstanceDatabaseCharacterSetType: 字符分类
|
|
1358
|
+
:type PathPrefix: String
|
|
1359
|
+
:param Description: 描述
|
|
1360
|
+
:type PathPrefix: String
|
|
1361
|
+
:param InstanceDatabaseOwner: 拥有者
|
|
1362
|
+
:type PathPrefix: String
|
|
1363
|
+
"""
|
|
1364
|
+
self.DBInstanceIdentifier = None
|
|
1365
|
+
self.InstanceDatabaseName = None
|
|
1366
|
+
self.InstanceDatabaseCollation = None
|
|
1367
|
+
self.InstanceDatabaseCharacterSet = None
|
|
1368
|
+
self.InstanceDatabaseCharacterSetType = None
|
|
1369
|
+
self.Description = None
|
|
1370
|
+
self.InstanceDatabaseOwner = None
|
|
1371
|
+
|
|
1372
|
+
def _deserialize(self, params):
|
|
1373
|
+
if params.get("DBInstanceIdentifier"):
|
|
1374
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1375
|
+
if params.get("InstanceDatabaseName"):
|
|
1376
|
+
self.InstanceDatabaseName = params.get("InstanceDatabaseName")
|
|
1377
|
+
if params.get("InstanceDatabaseCollation"):
|
|
1378
|
+
self.InstanceDatabaseCollation = params.get("InstanceDatabaseCollation")
|
|
1379
|
+
if params.get("InstanceDatabaseCharacterSet"):
|
|
1380
|
+
self.InstanceDatabaseCharacterSet = params.get("InstanceDatabaseCharacterSet")
|
|
1381
|
+
if params.get("InstanceDatabaseCharacterSetType"):
|
|
1382
|
+
self.InstanceDatabaseCharacterSetType = params.get("InstanceDatabaseCharacterSetType")
|
|
1383
|
+
if params.get("Description"):
|
|
1384
|
+
self.Description = params.get("Description")
|
|
1385
|
+
if params.get("InstanceDatabaseOwner"):
|
|
1386
|
+
self.InstanceDatabaseOwner = params.get("InstanceDatabaseOwner")
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
class DescribeInstanceAccountsRequest(AbstractModel):
|
|
1390
|
+
"""DescribeInstanceAccounts请求参数结构体
|
|
1391
|
+
"""
|
|
1392
|
+
|
|
1393
|
+
def __init__(self):
|
|
1394
|
+
r"""查询账号列表
|
|
1395
|
+
:param DBInstanceIdentifier: 实例ID
|
|
1396
|
+
:type PathPrefix: String
|
|
1397
|
+
"""
|
|
1398
|
+
self.DBInstanceIdentifier = None
|
|
1399
|
+
|
|
1400
|
+
def _deserialize(self, params):
|
|
1401
|
+
if params.get("DBInstanceIdentifier"):
|
|
1402
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
class CreateInstanceAccountRequest(AbstractModel):
|
|
1406
|
+
"""CreateInstanceAccount请求参数结构体
|
|
1407
|
+
"""
|
|
1408
|
+
|
|
1409
|
+
def __init__(self):
|
|
1410
|
+
r"""创建账号(数据库账号)
|
|
1411
|
+
:param DBInstanceIdentifier: 实例ID
|
|
1412
|
+
:type PathPrefix: String
|
|
1413
|
+
:param AccountName: 账号名称
|
|
1414
|
+
|
|
1415
|
+
```json
|
|
1416
|
+
长度为2~16个字符,由小写字母、数字或下划线组成,但开头需为字母,结尾需为字母或数字
|
|
1417
|
+
```
|
|
1418
|
+
:type PathPrefix: String
|
|
1419
|
+
:param AccountPassword: 账号密码
|
|
1420
|
+
:type PathPrefix: String
|
|
1421
|
+
:param AccountDescription: 账号描述
|
|
1422
|
+
:type PathPrefix: String
|
|
1423
|
+
"""
|
|
1424
|
+
self.DBInstanceIdentifier = None
|
|
1425
|
+
self.AccountName = None
|
|
1426
|
+
self.AccountPassword = None
|
|
1427
|
+
self.AccountDescription = None
|
|
1428
|
+
|
|
1429
|
+
def _deserialize(self, params):
|
|
1430
|
+
if params.get("DBInstanceIdentifier"):
|
|
1431
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1432
|
+
if params.get("AccountName"):
|
|
1433
|
+
self.AccountName = params.get("AccountName")
|
|
1434
|
+
if params.get("AccountPassword"):
|
|
1435
|
+
self.AccountPassword = params.get("AccountPassword")
|
|
1436
|
+
if params.get("AccountDescription"):
|
|
1437
|
+
self.AccountDescription = params.get("AccountDescription")
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
class DeleteInstanceAccountRequest(AbstractModel):
|
|
1441
|
+
"""DeleteInstanceAccount请求参数结构体
|
|
1442
|
+
"""
|
|
1443
|
+
|
|
1444
|
+
def __init__(self):
|
|
1445
|
+
r"""删除账号(不支持批量)
|
|
1446
|
+
:param DBInstanceIdentifier: 实例ID
|
|
1447
|
+
:type PathPrefix: String
|
|
1448
|
+
:param AccountName: 账号名称
|
|
1449
|
+
:type PathPrefix: String
|
|
1450
|
+
"""
|
|
1451
|
+
self.DBInstanceIdentifier = None
|
|
1452
|
+
self.AccountName = None
|
|
1453
|
+
|
|
1454
|
+
def _deserialize(self, params):
|
|
1455
|
+
if params.get("DBInstanceIdentifier"):
|
|
1456
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1457
|
+
if params.get("AccountName"):
|
|
1458
|
+
self.AccountName = params.get("AccountName")
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
class ModifyDBNetworkRequest(AbstractModel):
|
|
1462
|
+
"""ModifyDBNetwork请求参数结构体
|
|
1463
|
+
"""
|
|
1464
|
+
|
|
1465
|
+
def __init__(self):
|
|
1466
|
+
r"""变更网络(修改VPC信息)
|
|
1467
|
+
:param DBInstanceIdentifier: 实例Id
|
|
1468
|
+
:type PathPrefix: String
|
|
1469
|
+
:param SubnetId: SubnetId
|
|
1470
|
+
:type PathPrefix: String
|
|
1471
|
+
:param VpcId: VpcId
|
|
1472
|
+
:type PathPrefix: String
|
|
1473
|
+
"""
|
|
1474
|
+
self.DBInstanceIdentifier = None
|
|
1475
|
+
self.SubnetId = None
|
|
1476
|
+
self.VpcId = None
|
|
1477
|
+
|
|
1478
|
+
def _deserialize(self, params):
|
|
1479
|
+
if params.get("DBInstanceIdentifier"):
|
|
1480
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1481
|
+
if params.get("SubnetId"):
|
|
1482
|
+
self.SubnetId = params.get("SubnetId")
|
|
1483
|
+
if params.get("VpcId"):
|
|
1484
|
+
self.VpcId = params.get("VpcId")
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
class UpdateDBInstanceVersionRequest(AbstractModel):
|
|
1488
|
+
"""UpdateDBInstanceVersion请求参数结构体
|
|
1489
|
+
"""
|
|
1490
|
+
|
|
1491
|
+
def __init__(self):
|
|
1492
|
+
r"""升级至当前实例最新小版本
|
|
1493
|
+
:param DBInstanceIdentifier: 实例ID
|
|
1494
|
+
:type PathPrefix: String
|
|
1495
|
+
:param Engine: 实例引擎,默认:'postgresql',可不填
|
|
1496
|
+
:type PathPrefix: String
|
|
1497
|
+
:param EngineVersion: 实例版本,需要指定当前实例具体的大版本。
|
|
1498
|
+
若不指定则默认:'9.6'
|
|
1499
|
+
|
|
1500
|
+
```json
|
|
1501
|
+
现支持如下版本:
|
|
1502
|
+
9.6|10|11|12.5|13|1
|
|
1503
|
+
|
|
1504
|
+
注意:
|
|
1505
|
+
9.6仅做维护,已不支持售卖,请您务必指定实例版本
|
|
1506
|
+
```
|
|
1507
|
+
:type PathPrefix: String
|
|
1508
|
+
"""
|
|
1509
|
+
self.DBInstanceIdentifier = None
|
|
1510
|
+
self.Engine = None
|
|
1511
|
+
self.EngineVersion = None
|
|
1512
|
+
|
|
1513
|
+
def _deserialize(self, params):
|
|
1514
|
+
if params.get("DBInstanceIdentifier"):
|
|
1515
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1516
|
+
if params.get("Engine"):
|
|
1517
|
+
self.Engine = params.get("Engine")
|
|
1518
|
+
if params.get("EngineVersion"):
|
|
1519
|
+
self.EngineVersion = params.get("EngineVersion")
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
class ModifyDBInstanceAvailabilityZoneRequest(AbstractModel):
|
|
1523
|
+
"""ModifyDBInstanceAvailabilityZone请求参数结构体
|
|
1524
|
+
"""
|
|
1525
|
+
|
|
1526
|
+
def __init__(self):
|
|
1527
|
+
r"""迁移可用区(迁移备库可用区)
|
|
1528
|
+
:param DBInstanceIdentifier: 实例ID
|
|
1529
|
+
:type PathPrefix: String
|
|
1530
|
+
:param AvailabilityZone.1: 主可用区
|
|
1531
|
+
:type PathPrefix: String
|
|
1532
|
+
:param AvailabilityZone.2: 备可用区
|
|
1533
|
+
:type PathPrefix: String
|
|
1534
|
+
"""
|
|
1535
|
+
self.DBInstanceIdentifier = None
|
|
1536
|
+
self.AvailabilityZone_1 = None
|
|
1537
|
+
self.AvailabilityZone_2 = None
|
|
1538
|
+
|
|
1539
|
+
def _deserialize(self, params):
|
|
1540
|
+
if params.get("DBInstanceIdentifier"):
|
|
1541
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1542
|
+
if params.get("AvailabilityZone.1"):
|
|
1543
|
+
self.AvailabilityZone_1 = params.get("AvailabilityZone.1")
|
|
1544
|
+
if params.get("AvailabilityZone.2"):
|
|
1545
|
+
self.AvailabilityZone_2 = params.get("AvailabilityZone.2")
|
|
1546
|
+
|
|
1547
|
+
|
|
1548
|
+
class UpdateDBInstanceOrderRequest(AbstractModel):
|
|
1549
|
+
"""UpdateDBInstanceOrder请求参数结构体
|
|
1550
|
+
"""
|
|
1551
|
+
|
|
1552
|
+
def __init__(self):
|
|
1553
|
+
r"""试用订单延期/转正
|
|
1554
|
+
:param DBInstanceIdentifier: 实例Id
|
|
1555
|
+
:type PathPrefix: String
|
|
1556
|
+
:param UpdateUse: 操作类型
|
|
1557
|
+
|
|
1558
|
+
```json
|
|
1559
|
+
试用延期:Renew
|
|
1560
|
+
试用转正:Buy
|
|
1561
|
+
```
|
|
1562
|
+
:type PathPrefix: String
|
|
1563
|
+
:param Duration: 持续时间
|
|
1564
|
+
|
|
1565
|
+
```json
|
|
1566
|
+
注意:选定续费或者转正方式为包年包月是,需要指定持续时间;
|
|
1567
|
+
```
|
|
1568
|
+
:type PathPrefix: Int
|
|
1569
|
+
:param BillType: 计费类型
|
|
1570
|
+
|
|
1571
|
+
```json
|
|
1572
|
+
包年包月:YEAR_MONTH
|
|
1573
|
+
按日月结(按日配置付费月结):DAY
|
|
1574
|
+
按小时实时结算:HourlyInstantSettlement
|
|
1575
|
+
|
|
1576
|
+
注意:若不选定计费类型,则默认为HourlyInstantSettlement
|
|
1577
|
+
```
|
|
1578
|
+
:type PathPrefix: String
|
|
1579
|
+
"""
|
|
1580
|
+
self.DBInstanceIdentifier = None
|
|
1581
|
+
self.UpdateUse = None
|
|
1582
|
+
self.Duration = None
|
|
1583
|
+
self.BillType = None
|
|
1584
|
+
|
|
1585
|
+
def _deserialize(self, params):
|
|
1586
|
+
if params.get("DBInstanceIdentifier"):
|
|
1587
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1588
|
+
if params.get("UpdateUse"):
|
|
1589
|
+
self.UpdateUse = params.get("UpdateUse")
|
|
1590
|
+
if params.get("Duration"):
|
|
1591
|
+
self.Duration = params.get("Duration")
|
|
1592
|
+
if params.get("BillType"):
|
|
1593
|
+
self.BillType = params.get("BillType")
|
|
1594
|
+
|
|
1595
|
+
|
|
1596
|
+
class UpdateResourceProtectionRequest(AbstractModel):
|
|
1597
|
+
"""UpdateResourceProtection请求参数结构体
|
|
1598
|
+
"""
|
|
1599
|
+
|
|
1600
|
+
def __init__(self):
|
|
1601
|
+
r"""删除保护设置
|
|
1602
|
+
:param DBInstanceIdentifier: 实例id
|
|
1603
|
+
:type PathPrefix: String
|
|
1604
|
+
:param ProtectionSwitch: 保护开关
|
|
1605
|
+
|
|
1606
|
+
```json
|
|
1607
|
+
开启:ON 关闭:OFF
|
|
1608
|
+
```
|
|
1609
|
+
:type PathPrefix: String
|
|
1610
|
+
:param ProtectionReason: 操作理由
|
|
1611
|
+
|
|
1612
|
+
```json
|
|
1613
|
+
限定64字符
|
|
1614
|
+
```
|
|
1615
|
+
:type PathPrefix: String
|
|
1616
|
+
"""
|
|
1617
|
+
self.DBInstanceIdentifier = None
|
|
1618
|
+
self.ProtectionSwitch = None
|
|
1619
|
+
self.ProtectionReason = None
|
|
1620
|
+
|
|
1621
|
+
def _deserialize(self, params):
|
|
1622
|
+
if params.get("DBInstanceIdentifier"):
|
|
1623
|
+
self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
|
|
1624
|
+
if params.get("ProtectionSwitch"):
|
|
1625
|
+
self.ProtectionSwitch = params.get("ProtectionSwitch")
|
|
1626
|
+
if params.get("ProtectionReason"):
|
|
1627
|
+
self.ProtectionReason = params.get("ProtectionReason")
|
|
1628
|
+
|
|
1629
|
+
|