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