tencentcloud-sdk-python-postgres 3.1.4__py2.py3-none-any.whl → 3.1.84__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/postgres/v20170312/errorcodes.py +6 -0
- tencentcloud/postgres/v20170312/models.py +719 -540
- {tencentcloud_sdk_python_postgres-3.1.4.dist-info → tencentcloud_sdk_python_postgres-3.1.84.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_postgres-3.1.84.dist-info/RECORD +11 -0
- {tencentcloud_sdk_python_postgres-3.1.4.dist-info → tencentcloud_sdk_python_postgres-3.1.84.dist-info}/WHEEL +1 -1
- tencentcloud_sdk_python_postgres-3.1.4.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_postgres-3.1.4.dist-info → tencentcloud_sdk_python_postgres-3.1.84.dist-info}/top_level.txt +0 -0
|
@@ -1121,17 +1121,17 @@ class ClassInfo(AbstractModel):
|
|
|
1121
1121
|
|
|
1122
1122
|
def __init__(self):
|
|
1123
1123
|
r"""
|
|
1124
|
-
:param _SpecCode:
|
|
1124
|
+
:param _SpecCode: <p>规格ID</p>
|
|
1125
1125
|
:type SpecCode: str
|
|
1126
|
-
:param _CPU: CPU
|
|
1126
|
+
:param _CPU: <p>CPU核数</p>
|
|
1127
1127
|
:type CPU: int
|
|
1128
|
-
:param _Memory:
|
|
1128
|
+
:param _Memory: <p>内存大小,单位:MB</p>
|
|
1129
1129
|
:type Memory: int
|
|
1130
|
-
:param _MaxStorage:
|
|
1130
|
+
:param _MaxStorage: <p>该规格所支持最大存储容量,单位:GB</p>
|
|
1131
1131
|
:type MaxStorage: int
|
|
1132
|
-
:param _MinStorage:
|
|
1132
|
+
:param _MinStorage: <p>该规格所支持最小存储容量,单位:GB</p>
|
|
1133
1133
|
:type MinStorage: int
|
|
1134
|
-
:param _QPS:
|
|
1134
|
+
:param _QPS: <p>该规格的预估QPS</p>
|
|
1135
1135
|
:type QPS: int
|
|
1136
1136
|
"""
|
|
1137
1137
|
self._SpecCode = None
|
|
@@ -1143,7 +1143,7 @@ class ClassInfo(AbstractModel):
|
|
|
1143
1143
|
|
|
1144
1144
|
@property
|
|
1145
1145
|
def SpecCode(self):
|
|
1146
|
-
r"""
|
|
1146
|
+
r"""<p>规格ID</p>
|
|
1147
1147
|
:rtype: str
|
|
1148
1148
|
"""
|
|
1149
1149
|
return self._SpecCode
|
|
@@ -1154,7 +1154,7 @@ class ClassInfo(AbstractModel):
|
|
|
1154
1154
|
|
|
1155
1155
|
@property
|
|
1156
1156
|
def CPU(self):
|
|
1157
|
-
r"""CPU
|
|
1157
|
+
r"""<p>CPU核数</p>
|
|
1158
1158
|
:rtype: int
|
|
1159
1159
|
"""
|
|
1160
1160
|
return self._CPU
|
|
@@ -1165,7 +1165,7 @@ class ClassInfo(AbstractModel):
|
|
|
1165
1165
|
|
|
1166
1166
|
@property
|
|
1167
1167
|
def Memory(self):
|
|
1168
|
-
r"""
|
|
1168
|
+
r"""<p>内存大小,单位:MB</p>
|
|
1169
1169
|
:rtype: int
|
|
1170
1170
|
"""
|
|
1171
1171
|
return self._Memory
|
|
@@ -1176,7 +1176,7 @@ class ClassInfo(AbstractModel):
|
|
|
1176
1176
|
|
|
1177
1177
|
@property
|
|
1178
1178
|
def MaxStorage(self):
|
|
1179
|
-
r"""
|
|
1179
|
+
r"""<p>该规格所支持最大存储容量,单位:GB</p>
|
|
1180
1180
|
:rtype: int
|
|
1181
1181
|
"""
|
|
1182
1182
|
return self._MaxStorage
|
|
@@ -1187,7 +1187,7 @@ class ClassInfo(AbstractModel):
|
|
|
1187
1187
|
|
|
1188
1188
|
@property
|
|
1189
1189
|
def MinStorage(self):
|
|
1190
|
-
r"""
|
|
1190
|
+
r"""<p>该规格所支持最小存储容量,单位:GB</p>
|
|
1191
1191
|
:rtype: int
|
|
1192
1192
|
"""
|
|
1193
1193
|
return self._MinStorage
|
|
@@ -1198,7 +1198,7 @@ class ClassInfo(AbstractModel):
|
|
|
1198
1198
|
|
|
1199
1199
|
@property
|
|
1200
1200
|
def QPS(self):
|
|
1201
|
-
r"""
|
|
1201
|
+
r"""<p>该规格的预估QPS</p>
|
|
1202
1202
|
:rtype: int
|
|
1203
1203
|
"""
|
|
1204
1204
|
return self._QPS
|
|
@@ -2612,122 +2612,72 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2612
2612
|
|
|
2613
2613
|
def __init__(self):
|
|
2614
2614
|
r"""
|
|
2615
|
-
:param _Zone:
|
|
2616
|
-
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
|
|
2615
|
+
:param _Zone: <p>实例所属主可用区, 如:ap-guangzhou-3;若需要支持多可用区,在DBNodeSet.N字段中进行添加主可用区和备可用区信息;<br>可用区信息可以通过调用 <a href="https://cloud.tencent.com/document/api/409/16769">DescribeZones</a> 接口的返回值中的Zone字段来获取。</p>
|
|
2617
2616
|
:type Zone: str
|
|
2618
|
-
:param _SpecCode:
|
|
2617
|
+
:param _SpecCode: <p>售卖规格码。该参数可以通过调用<a href="https://cloud.tencent.com/document/api/409/89019">DescribeClasses</a>的返回值中的SpecCode字段来获取。</p>
|
|
2619
2618
|
:type SpecCode: str
|
|
2620
|
-
:param _Storage:
|
|
2619
|
+
:param _Storage: <p>实例磁盘容量大小,单位:GB。该参数的设置步长为10。</p>
|
|
2621
2620
|
:type Storage: int
|
|
2622
|
-
:param _InstanceCount:
|
|
2621
|
+
:param _InstanceCount: <p>购买实例数量,取值范围:[1-10]。一次性购买支持最大数量10个,若超过该数量,可进行多次调用进行购买。</p>
|
|
2623
2622
|
:type InstanceCount: int
|
|
2624
|
-
:param _Period:
|
|
2625
|
-
<li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li>
|
|
2626
|
-
<li>后付费:只支持1</li>
|
|
2623
|
+
:param _Period: <p>购买时长,单位:月。</p><li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li><li>后付费:只支持1</li>
|
|
2627
2624
|
:type Period: int
|
|
2628
|
-
:param _Charset:
|
|
2629
|
-
<li> UTF8</li>
|
|
2630
|
-
<li> LATIN1</li>
|
|
2625
|
+
:param _Charset: <p>实例字符集,目前只支持:</p><li> UTF8</li><li> LATIN1</li>
|
|
2631
2626
|
:type Charset: str
|
|
2632
|
-
:param _AdminName:
|
|
2633
|
-
<li>用户名需要1-16个字符,只能由字母、数字或下划线组成</li>
|
|
2634
|
-
<li>不能为postgres</li>
|
|
2635
|
-
<li>不能由数字和pg_开头</li>
|
|
2636
|
-
<li>所有规则均不区分大小写</li>
|
|
2627
|
+
:param _AdminName: <p>实例根账号用户名,具体规范如下:</p><li>用户名需要1-16个字符,只能由字母、数字或下划线组成</li><li>不能为postgres</li><li>不能由数字和pg_开头</li><li>所有规则均不区分大小写</li>
|
|
2637
2628
|
:type AdminName: str
|
|
2638
|
-
:param _AdminPassword:
|
|
2639
|
-
必须包含以下四项,字符种类:
|
|
2640
|
-
<li>小写字母: [a ~ z]</li>
|
|
2641
|
-
<li>大写字母:[A ~ Z]</li>
|
|
2642
|
-
<li>数字:0 - 9</li>
|
|
2643
|
-
<li>特殊字符:()`~!@#$%^&*-+=_|{}[]:;'<>,.?/</li>
|
|
2629
|
+
:param _AdminPassword: <p>实例根账号用户名对应的密码,长度8 ~ 32位,推荐使用12位以上的密码;不能以" / "开头;<br>必须包含以下四项,字符种类:</p><li>小写字母: [a ~ z]</li><li>大写字母:[A ~ Z]</li><li>数字:0 - 9</li><li>特殊字符:()`~!@#$%^&*-+=_|{}[]:;'<>,.?/</li>
|
|
2644
2630
|
:type AdminPassword: str
|
|
2645
|
-
:param _DBMajorVersion: PostgreSQL
|
|
2646
|
-
输入该参数时,会基于此大版本号创建对应的最新小版本的最新内核版本号实例。
|
|
2631
|
+
:param _DBMajorVersion: <p>PostgreSQL大版本号(该参数当前必传),版本信息可从<a href="https://cloud.tencent.com/document/api/409/89018">DescribeDBVersions</a>获取。目前支持10,11,12,13,14,15这几个大版本,详情见<a href="https://cloud.tencent.com/document/product/409/67018">内核版本概述</a>。<br>输入该参数时,会基于此大版本号创建对应的最新小版本的最新内核版本号实例。</p>
|
|
2647
2632
|
:type DBMajorVersion: str
|
|
2648
|
-
:param _DBVersion: PostgreSQL
|
|
2649
|
-
一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新小版本号。
|
|
2633
|
+
:param _DBVersion: <p>PostgreSQL社区大版本+小版本号。<br>一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新小版本号。</p>
|
|
2650
2634
|
:type DBVersion: str
|
|
2651
|
-
:param _DBKernelVersion: PostgreSQL
|
|
2652
|
-
一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新内核版本号。
|
|
2635
|
+
:param _DBKernelVersion: <p>PostgreSQL内核版本号。<br>一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新内核版本号。</p>
|
|
2653
2636
|
:type DBKernelVersion: str
|
|
2654
|
-
:param _InstanceChargeType:
|
|
2655
|
-
<li>PREPAID:预付费,即包年包月</li>
|
|
2656
|
-
<li>POSTPAID_BY_HOUR:后付费,即按量计费</li>
|
|
2657
|
-
默认值:PREPAID
|
|
2637
|
+
:param _InstanceChargeType: <p>实例计费类型,目前支持:</p><li>PREPAID:预付费,即包年包月</li><li>POSTPAID_BY_HOUR:后付费,即按量计费</li>默认值:PREPAID
|
|
2658
2638
|
:type InstanceChargeType: str
|
|
2659
|
-
:param _VpcId:
|
|
2639
|
+
:param _VpcId: <p>私有网络ID,形如vpc-xxxxxxxx(该参数当前必传)。有效的VpcId可通过登录控制台查询;也可以调用接口 <a href="https://cloud.tencent.com/document/api/215/1372">DescribeVpcEx</a> ,从接口返回中的unVpcId字段获取。</p>
|
|
2660
2640
|
:type VpcId: str
|
|
2661
|
-
:param _SubnetId:
|
|
2641
|
+
:param _SubnetId: <p>私有网络子网ID,形如subnet-xxxxxxxx(该参数当前必传)。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 <a href="https://cloud.tencent.com/document/api/215/15784">DescribeSubnets </a>,从接口返回中的unSubnetId字段获取。</p>
|
|
2662
2642
|
:type SubnetId: str
|
|
2663
|
-
:param _DBNodeSet:
|
|
2664
|
-
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
|
|
2643
|
+
:param _DBNodeSet: <p>实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。<br>可用区信息可以通过调用 <a href="https://cloud.tencent.com/document/api/409/16769">DescribeZones</a> 接口的返回值中的Zone字段来获取。</p>
|
|
2665
2644
|
:type DBNodeSet: list of DBNode
|
|
2666
|
-
:param _AutoRenewFlag:
|
|
2667
|
-
<li>0:手动续费</li>
|
|
2668
|
-
<li>1:自动续费</li>
|
|
2669
|
-
默认值:0
|
|
2645
|
+
:param _AutoRenewFlag: <p>续费标记:</p><li>0:手动续费</li><li>1:自动续费</li>默认值:0
|
|
2670
2646
|
:type AutoRenewFlag: int
|
|
2671
|
-
:param _AutoVoucher:
|
|
2672
|
-
<li>0:否</li>
|
|
2673
|
-
<li>1:是</li>
|
|
2674
|
-
默认值:0
|
|
2647
|
+
:param _AutoVoucher: <p>是否自动使用代金券:</p><li>0:否</li><li>1:是</li>默认值:0
|
|
2675
2648
|
:type AutoVoucher: int
|
|
2676
|
-
:param _VoucherIds:
|
|
2649
|
+
:param _VoucherIds: <p>代金券ID列表,目前仅支持指定一张代金券。</p>
|
|
2677
2650
|
:type VoucherIds: list of str
|
|
2678
|
-
:param _ProjectId:
|
|
2651
|
+
:param _ProjectId: <p>项目ID。默认取之为0,表示归属默认项目。</p>
|
|
2679
2652
|
:type ProjectId: int
|
|
2680
|
-
:param _ActivityId:
|
|
2653
|
+
:param _ActivityId: <p>活动ID。</p>
|
|
2681
2654
|
:type ActivityId: int
|
|
2682
|
-
:param _Name:
|
|
2683
|
-
|
|
2655
|
+
:param _Name: <p>实例名称,仅支持长度小于60的中文/英文/数字/"_"/"-",不指定实例名称则默认显示"未命名"。</p>
|
|
2684
2656
|
:type Name: str
|
|
2685
|
-
:param _TagList:
|
|
2657
|
+
:param _TagList: <p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p>
|
|
2686
2658
|
:type TagList: list of Tag
|
|
2687
|
-
:param _SecurityGroupIds:
|
|
2688
|
-
|
|
2659
|
+
:param _SecurityGroupIds: <p>实例所属安全组,该参数可以通过调用 <a href="https://cloud.tencent.com/document/api/215/15808">DescribeSecurityGroups</a> 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。</p>
|
|
2689
2660
|
:type SecurityGroupIds: list of str
|
|
2690
|
-
:param _NeedSupportTDE:
|
|
2691
|
-
<li>0:否</li>
|
|
2692
|
-
<li>1:是</li>
|
|
2693
|
-
默认值:0
|
|
2694
|
-
参考[数据透明加密概述](https://cloud.tencent.com/document/product/409/71748)
|
|
2661
|
+
:param _NeedSupportTDE: <p>是否需要支持数据透明加密:</p><li>0:否</li><li>1:是</li>默认值:0参考[数据透明加密概述](https://cloud.tencent.com/document/product/409/71748)
|
|
2695
2662
|
:type NeedSupportTDE: int
|
|
2696
|
-
:param _KMSKeyId:
|
|
2697
|
-
KeyId创建获取相关参考[开启透明数据加密](https://cloud.tencent.com/document/product/409/71749)
|
|
2663
|
+
:param _KMSKeyId: <p>自定义密钥的KeyId,若选择自定义密匙加密,则需要传入自定义密匙的KeyId,KeyId是CMK的唯一标识。<br>KeyId创建获取相关参考<a href="https://cloud.tencent.com/document/product/409/71749">开启透明数据加密</a></p>
|
|
2698
2664
|
:type KMSKeyId: str
|
|
2699
|
-
:param _KMSRegion:
|
|
2700
|
-
KMSRegion相关介绍参考[开启透明数据加密](https://cloud.tencent.com/document/product/409/71749)
|
|
2665
|
+
:param _KMSRegion: <p>使用KMS服务的地域,KMSRegion为空默认使用本地域的KMS,本地域不支持的情况下需自选其他KMS支持的地域。<br>KMSRegion相关介绍参考<a href="https://cloud.tencent.com/document/product/409/71749">开启透明数据加密</a></p>
|
|
2701
2666
|
:type KMSRegion: str
|
|
2702
|
-
:param _KMSClusterId:
|
|
2667
|
+
:param _KMSClusterId: <p>指定KMS服务的集群,KMSClusterId为空使用默认集群的KMS,若选择指定KMS集群,则需要传入KMSClusterId。 KMSClusterId相关介绍参考开启透明数据加密</p>
|
|
2703
2668
|
:type KMSClusterId: str
|
|
2704
|
-
:param _DBEngine:
|
|
2705
|
-
<li>postgresql:云数据库PostgreSQL</li>
|
|
2706
|
-
<li>mssql_compatible:MSSQL兼容-云数据库PostgreSQL</li>
|
|
2707
|
-
默认值:postgresql
|
|
2669
|
+
:param _DBEngine: <p>数据库引擎,支持:</p><li>postgresql:云数据库PostgreSQL</li><li>mssql_compatible:MSSQL兼容-云数据库PostgreSQL</li>默认值:postgresql
|
|
2708
2670
|
:type DBEngine: str
|
|
2709
|
-
:param _DBEngineConfig:
|
|
2710
|
-
{"$key1":"$value1", "$key2":"$value2"}
|
|
2711
|
-
各引擎支持如下:
|
|
2712
|
-
mssql_compatible引擎:
|
|
2713
|
-
<li>migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db。</li>
|
|
2714
|
-
<li>defaultLocale:排序区域规则,可选参数,在初始化后不可修改,默认为en_US,可选值如下:
|
|
2715
|
-
"af_ZA", "sq_AL", "ar_DZ", "ar_BH", "ar_EG", "ar_IQ", "ar_JO", "ar_KW", "ar_LB", "ar_LY", "ar_MA", "ar_OM", "ar_QA", "ar_SA", "ar_SY", "ar_TN", "ar_AE", "ar_YE", "hy_AM", "az_Cyrl_AZ", "az_Latn_AZ", "eu_ES", "be_BY", "bg_BG", "ca_ES", "zh_HK", "zh_MO", "zh_CN", "zh_SG", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_BZ", "en_CA", "en_IE", "en_JM", "en_NZ", "en_PH", "en_ZA", "en_TT", "en_GB", "en_US", "en_ZW", "et_EE", "fo_FO", "fa_IR", "fi_FI", "fr_BE", "fr_CA", "fr_FR", "fr_LU", "fr_MC", "fr_CH", "mk_MK", "ka_GE", "de_AT", "de_DE", "de_LI", "de_LU", "de_CH", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "is_IS", "id_ID", "it_IT", "it_CH", "ja_JP", "kn_IN", "kok_IN", "ko_KR", "ky_KG", "lv_LV", "lt_LT", "ms_BN", "ms_MY", "mr_IN", "mn_MN", "nb_NO", "nn_NO", "pl_PL", "pt_BR", "pt_PT", "pa_IN", "ro_RO", "ru_RU", "sa_IN", "sr_Cyrl_RS", "sr_Latn_RS", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_SV", "es_GT", "es_HN", "es_MX", "es_NI", "es_PA", "es_PY","es_PE", "es_PR", "es_ES", "es_TRADITIONAL", "es_UY", "es_VE", "sw_KE", "sv_FI", "sv_SE", "tt_RU", "te_IN", "th_TH", "tr_TR", "uk_UA", "ur_IN", "ur_PK", "uz_Cyrl_UZ", "uz_Latn_UZ", "vi_VN"。</li>
|
|
2716
|
-
<li>serverCollationName:排序规则名称,可选参数,在初始化后不可修改,默认为sql_latin1_general_cp1_ci_as,可选值如下:"bbf_unicode_general_ci_as", "bbf_unicode_cp1_ci_as", "bbf_unicode_CP1250_ci_as", "bbf_unicode_CP1251_ci_as", "bbf_unicode_cp1253_ci_as", "bbf_unicode_cp1254_ci_as", "bbf_unicode_cp1255_ci_as", "bbf_unicode_cp1256_ci_as", "bbf_unicode_cp1257_ci_as", "bbf_unicode_cp1258_ci_as", "bbf_unicode_cp874_ci_as", "sql_latin1_general_cp1250_ci_as", "sql_latin1_general_cp1251_ci_as", "sql_latin1_general_cp1_ci_as", "sql_latin1_general_cp1253_ci_as", "sql_latin1_general_cp1254_ci_as", "sql_latin1_general_cp1255_ci_as","sql_latin1_general_cp1256_ci_as", "sql_latin1_general_cp1257_ci_as", "sql_latin1_general_cp1258_ci_as", "chinese_prc_ci_as", "cyrillic_general_ci_as", "finnish_swedish_ci_as", "french_ci_as", "japanese_ci_as", "korean_wansung_ci_as", "latin1_general_ci_as", "modern_spanish_ci_as", "polish_ci_as", "thai_ci_as", "traditional_spanish_ci_as", "turkish_ci_as", "ukrainian_ci_as", "vietnamese_ci_as"。</li>
|
|
2671
|
+
:param _DBEngineConfig: <p>数据库引擎的配置信息,配置格式如下:<br>{"$key1":"$value1", "$key2":"$value2"}<br>各引擎支持如下:<br>mssql_compatible引擎:</p><li>migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db。</li><li>defaultLocale:排序区域规则,可选参数,在初始化后不可修改,默认为en_US,可选值如下:"af_ZA", "sq_AL", "ar_DZ", "ar_BH", "ar_EG", "ar_IQ", "ar_JO", "ar_KW", "ar_LB", "ar_LY", "ar_MA", "ar_OM", "ar_QA", "ar_SA", "ar_SY", "ar_TN", "ar_AE", "ar_YE", "hy_AM", "az_Cyrl_AZ", "az_Latn_AZ", "eu_ES", "be_BY", "bg_BG", "ca_ES", "zh_HK", "zh_MO", "zh_CN", "zh_SG", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_BZ", "en_CA", "en_IE", "en_JM", "en_NZ", "en_PH", "en_ZA", "en_TT", "en_GB", "en_US", "en_ZW", "et_EE", "fo_FO", "fa_IR", "fi_FI", "fr_BE", "fr_CA", "fr_FR", "fr_LU", "fr_MC", "fr_CH", "mk_MK", "ka_GE", "de_AT", "de_DE", "de_LI", "de_LU", "de_CH", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "is_IS", "id_ID", "it_IT", "it_CH", "ja_JP", "kn_IN", "kok_IN", "ko_KR", "ky_KG", "lv_LV", "lt_LT", "ms_BN", "ms_MY", "mr_IN", "mn_MN", "nb_NO", "nn_NO", "pl_PL", "pt_BR", "pt_PT", "pa_IN", "ro_RO", "ru_RU", "sa_IN", "sr_Cyrl_RS", "sr_Latn_RS", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_SV", "es_GT", "es_HN", "es_MX", "es_NI", "es_PA", "es_PY","es_PE", "es_PR", "es_ES", "es_TRADITIONAL", "es_UY", "es_VE", "sw_KE", "sv_FI", "sv_SE", "tt_RU", "te_IN", "th_TH", "tr_TR", "uk_UA", "ur_IN", "ur_PK", "uz_Cyrl_UZ", "uz_Latn_UZ", "vi_VN"。</li><li>serverCollationName:排序规则名称,可选参数,在初始化后不可修改,默认为sql_latin1_general_cp1_ci_as,可选值如下:"bbf_unicode_general_ci_as", "bbf_unicode_cp1_ci_as", "bbf_unicode_CP1250_ci_as", "bbf_unicode_CP1251_ci_as", "bbf_unicode_cp1253_ci_as", "bbf_unicode_cp1254_ci_as", "bbf_unicode_cp1255_ci_as", "bbf_unicode_cp1256_ci_as", "bbf_unicode_cp1257_ci_as", "bbf_unicode_cp1258_ci_as", "bbf_unicode_cp874_ci_as", "sql_latin1_general_cp1250_ci_as", "sql_latin1_general_cp1251_ci_as", "sql_latin1_general_cp1_ci_as", "sql_latin1_general_cp1253_ci_as", "sql_latin1_general_cp1254_ci_as", "sql_latin1_general_cp1255_ci_as","sql_latin1_general_cp1256_ci_as", "sql_latin1_general_cp1257_ci_as", "sql_latin1_general_cp1258_ci_as", "chinese_prc_ci_as", "cyrillic_general_ci_as", "finnish_swedish_ci_as", "french_ci_as", "japanese_ci_as", "korean_wansung_ci_as", "latin1_general_ci_as", "modern_spanish_ci_as", "polish_ci_as", "thai_ci_as", "traditional_spanish_ci_as", "turkish_ci_as", "ukrainian_ci_as", "vietnamese_ci_as"。</li>
|
|
2717
2672
|
:type DBEngineConfig: str
|
|
2718
|
-
:param _SyncMode:
|
|
2719
|
-
<li>Semi-sync:半同步</li>
|
|
2720
|
-
<li>Async:异步</li>
|
|
2721
|
-
主实例默认值:Semi-sync
|
|
2722
|
-
只读实例默认值:Async
|
|
2673
|
+
:param _SyncMode: <p>主从同步方式,支持: </p><li>Semi-sync:半同步</li><li>Async:异步</li>主实例默认值:Semi-sync只读实例默认值:Async
|
|
2723
2674
|
:type SyncMode: str
|
|
2724
|
-
:param _NeedSupportIpv6:
|
|
2725
|
-
<li>0:否</li>
|
|
2726
|
-
<li>1:是</li>
|
|
2727
|
-
默认值:0
|
|
2675
|
+
:param _NeedSupportIpv6: <p>是否需要支持Ipv6:</p><li>0:否</li><li>1:是</li>默认值:0
|
|
2728
2676
|
:type NeedSupportIpv6: int
|
|
2729
|
-
:param _DeletionProtection:
|
|
2677
|
+
:param _DeletionProtection: <p>实例是否开启删除保护: true-开启删除保护;false-关闭删除保护。</p>
|
|
2730
2678
|
:type DeletionProtection: bool
|
|
2679
|
+
:param _StorageType: <p>实例存储类型,可选值:PHYSICAL_LOCAL_SSD:物理机本地ssd硬盘 CLOUD_PREMIUM:高性能云硬盘 CLOUD_SSD:ssd云硬盘 CLOUD_HSSD:增强型ssd云硬盘</p>
|
|
2680
|
+
:type StorageType: str
|
|
2731
2681
|
"""
|
|
2732
2682
|
self._Zone = None
|
|
2733
2683
|
self._SpecCode = None
|
|
@@ -2761,11 +2711,11 @@ mssql_compatible引擎:
|
|
|
2761
2711
|
self._SyncMode = None
|
|
2762
2712
|
self._NeedSupportIpv6 = None
|
|
2763
2713
|
self._DeletionProtection = None
|
|
2714
|
+
self._StorageType = None
|
|
2764
2715
|
|
|
2765
2716
|
@property
|
|
2766
2717
|
def Zone(self):
|
|
2767
|
-
r"""
|
|
2768
|
-
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
|
|
2718
|
+
r"""<p>实例所属主可用区, 如:ap-guangzhou-3;若需要支持多可用区,在DBNodeSet.N字段中进行添加主可用区和备可用区信息;<br>可用区信息可以通过调用 <a href="https://cloud.tencent.com/document/api/409/16769">DescribeZones</a> 接口的返回值中的Zone字段来获取。</p>
|
|
2769
2719
|
:rtype: str
|
|
2770
2720
|
"""
|
|
2771
2721
|
return self._Zone
|
|
@@ -2776,7 +2726,7 @@ mssql_compatible引擎:
|
|
|
2776
2726
|
|
|
2777
2727
|
@property
|
|
2778
2728
|
def SpecCode(self):
|
|
2779
|
-
r"""
|
|
2729
|
+
r"""<p>售卖规格码。该参数可以通过调用<a href="https://cloud.tencent.com/document/api/409/89019">DescribeClasses</a>的返回值中的SpecCode字段来获取。</p>
|
|
2780
2730
|
:rtype: str
|
|
2781
2731
|
"""
|
|
2782
2732
|
return self._SpecCode
|
|
@@ -2787,7 +2737,7 @@ mssql_compatible引擎:
|
|
|
2787
2737
|
|
|
2788
2738
|
@property
|
|
2789
2739
|
def Storage(self):
|
|
2790
|
-
r"""
|
|
2740
|
+
r"""<p>实例磁盘容量大小,单位:GB。该参数的设置步长为10。</p>
|
|
2791
2741
|
:rtype: int
|
|
2792
2742
|
"""
|
|
2793
2743
|
return self._Storage
|
|
@@ -2798,7 +2748,7 @@ mssql_compatible引擎:
|
|
|
2798
2748
|
|
|
2799
2749
|
@property
|
|
2800
2750
|
def InstanceCount(self):
|
|
2801
|
-
r"""
|
|
2751
|
+
r"""<p>购买实例数量,取值范围:[1-10]。一次性购买支持最大数量10个,若超过该数量,可进行多次调用进行购买。</p>
|
|
2802
2752
|
:rtype: int
|
|
2803
2753
|
"""
|
|
2804
2754
|
return self._InstanceCount
|
|
@@ -2809,9 +2759,7 @@ mssql_compatible引擎:
|
|
|
2809
2759
|
|
|
2810
2760
|
@property
|
|
2811
2761
|
def Period(self):
|
|
2812
|
-
r"""
|
|
2813
|
-
<li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li>
|
|
2814
|
-
<li>后付费:只支持1</li>
|
|
2762
|
+
r"""<p>购买时长,单位:月。</p><li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li><li>后付费:只支持1</li>
|
|
2815
2763
|
:rtype: int
|
|
2816
2764
|
"""
|
|
2817
2765
|
return self._Period
|
|
@@ -2822,9 +2770,7 @@ mssql_compatible引擎:
|
|
|
2822
2770
|
|
|
2823
2771
|
@property
|
|
2824
2772
|
def Charset(self):
|
|
2825
|
-
r"""
|
|
2826
|
-
<li> UTF8</li>
|
|
2827
|
-
<li> LATIN1</li>
|
|
2773
|
+
r"""<p>实例字符集,目前只支持:</p><li> UTF8</li><li> LATIN1</li>
|
|
2828
2774
|
:rtype: str
|
|
2829
2775
|
"""
|
|
2830
2776
|
return self._Charset
|
|
@@ -2835,11 +2781,7 @@ mssql_compatible引擎:
|
|
|
2835
2781
|
|
|
2836
2782
|
@property
|
|
2837
2783
|
def AdminName(self):
|
|
2838
|
-
r"""
|
|
2839
|
-
<li>用户名需要1-16个字符,只能由字母、数字或下划线组成</li>
|
|
2840
|
-
<li>不能为postgres</li>
|
|
2841
|
-
<li>不能由数字和pg_开头</li>
|
|
2842
|
-
<li>所有规则均不区分大小写</li>
|
|
2784
|
+
r"""<p>实例根账号用户名,具体规范如下:</p><li>用户名需要1-16个字符,只能由字母、数字或下划线组成</li><li>不能为postgres</li><li>不能由数字和pg_开头</li><li>所有规则均不区分大小写</li>
|
|
2843
2785
|
:rtype: str
|
|
2844
2786
|
"""
|
|
2845
2787
|
return self._AdminName
|
|
@@ -2850,12 +2792,7 @@ mssql_compatible引擎:
|
|
|
2850
2792
|
|
|
2851
2793
|
@property
|
|
2852
2794
|
def AdminPassword(self):
|
|
2853
|
-
r"""
|
|
2854
|
-
必须包含以下四项,字符种类:
|
|
2855
|
-
<li>小写字母: [a ~ z]</li>
|
|
2856
|
-
<li>大写字母:[A ~ Z]</li>
|
|
2857
|
-
<li>数字:0 - 9</li>
|
|
2858
|
-
<li>特殊字符:()`~!@#$%^&*-+=_|{}[]:;'<>,.?/</li>
|
|
2795
|
+
r"""<p>实例根账号用户名对应的密码,长度8 ~ 32位,推荐使用12位以上的密码;不能以" / "开头;<br>必须包含以下四项,字符种类:</p><li>小写字母: [a ~ z]</li><li>大写字母:[A ~ Z]</li><li>数字:0 - 9</li><li>特殊字符:()`~!@#$%^&*-+=_|{}[]:;'<>,.?/</li>
|
|
2859
2796
|
:rtype: str
|
|
2860
2797
|
"""
|
|
2861
2798
|
return self._AdminPassword
|
|
@@ -2866,8 +2803,7 @@ mssql_compatible引擎:
|
|
|
2866
2803
|
|
|
2867
2804
|
@property
|
|
2868
2805
|
def DBMajorVersion(self):
|
|
2869
|
-
r"""PostgreSQL
|
|
2870
|
-
输入该参数时,会基于此大版本号创建对应的最新小版本的最新内核版本号实例。
|
|
2806
|
+
r"""<p>PostgreSQL大版本号(该参数当前必传),版本信息可从<a href="https://cloud.tencent.com/document/api/409/89018">DescribeDBVersions</a>获取。目前支持10,11,12,13,14,15这几个大版本,详情见<a href="https://cloud.tencent.com/document/product/409/67018">内核版本概述</a>。<br>输入该参数时,会基于此大版本号创建对应的最新小版本的最新内核版本号实例。</p>
|
|
2871
2807
|
:rtype: str
|
|
2872
2808
|
"""
|
|
2873
2809
|
return self._DBMajorVersion
|
|
@@ -2878,8 +2814,7 @@ mssql_compatible引擎:
|
|
|
2878
2814
|
|
|
2879
2815
|
@property
|
|
2880
2816
|
def DBVersion(self):
|
|
2881
|
-
r"""PostgreSQL
|
|
2882
|
-
一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新小版本号。
|
|
2817
|
+
r"""<p>PostgreSQL社区大版本+小版本号。<br>一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新小版本号。</p>
|
|
2883
2818
|
:rtype: str
|
|
2884
2819
|
"""
|
|
2885
2820
|
return self._DBVersion
|
|
@@ -2890,8 +2825,7 @@ mssql_compatible引擎:
|
|
|
2890
2825
|
|
|
2891
2826
|
@property
|
|
2892
2827
|
def DBKernelVersion(self):
|
|
2893
|
-
r"""PostgreSQL
|
|
2894
|
-
一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新内核版本号。
|
|
2828
|
+
r"""<p>PostgreSQL内核版本号。<br>一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新内核版本号。</p>
|
|
2895
2829
|
:rtype: str
|
|
2896
2830
|
"""
|
|
2897
2831
|
return self._DBKernelVersion
|
|
@@ -2902,10 +2836,7 @@ mssql_compatible引擎:
|
|
|
2902
2836
|
|
|
2903
2837
|
@property
|
|
2904
2838
|
def InstanceChargeType(self):
|
|
2905
|
-
r"""
|
|
2906
|
-
<li>PREPAID:预付费,即包年包月</li>
|
|
2907
|
-
<li>POSTPAID_BY_HOUR:后付费,即按量计费</li>
|
|
2908
|
-
默认值:PREPAID
|
|
2839
|
+
r"""<p>实例计费类型,目前支持:</p><li>PREPAID:预付费,即包年包月</li><li>POSTPAID_BY_HOUR:后付费,即按量计费</li>默认值:PREPAID
|
|
2909
2840
|
:rtype: str
|
|
2910
2841
|
"""
|
|
2911
2842
|
return self._InstanceChargeType
|
|
@@ -2916,7 +2847,7 @@ mssql_compatible引擎:
|
|
|
2916
2847
|
|
|
2917
2848
|
@property
|
|
2918
2849
|
def VpcId(self):
|
|
2919
|
-
r"""
|
|
2850
|
+
r"""<p>私有网络ID,形如vpc-xxxxxxxx(该参数当前必传)。有效的VpcId可通过登录控制台查询;也可以调用接口 <a href="https://cloud.tencent.com/document/api/215/1372">DescribeVpcEx</a> ,从接口返回中的unVpcId字段获取。</p>
|
|
2920
2851
|
:rtype: str
|
|
2921
2852
|
"""
|
|
2922
2853
|
return self._VpcId
|
|
@@ -2927,7 +2858,7 @@ mssql_compatible引擎:
|
|
|
2927
2858
|
|
|
2928
2859
|
@property
|
|
2929
2860
|
def SubnetId(self):
|
|
2930
|
-
r"""
|
|
2861
|
+
r"""<p>私有网络子网ID,形如subnet-xxxxxxxx(该参数当前必传)。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 <a href="https://cloud.tencent.com/document/api/215/15784">DescribeSubnets </a>,从接口返回中的unSubnetId字段获取。</p>
|
|
2931
2862
|
:rtype: str
|
|
2932
2863
|
"""
|
|
2933
2864
|
return self._SubnetId
|
|
@@ -2938,8 +2869,7 @@ mssql_compatible引擎:
|
|
|
2938
2869
|
|
|
2939
2870
|
@property
|
|
2940
2871
|
def DBNodeSet(self):
|
|
2941
|
-
r"""
|
|
2942
|
-
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
|
|
2872
|
+
r"""<p>实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。<br>可用区信息可以通过调用 <a href="https://cloud.tencent.com/document/api/409/16769">DescribeZones</a> 接口的返回值中的Zone字段来获取。</p>
|
|
2943
2873
|
:rtype: list of DBNode
|
|
2944
2874
|
"""
|
|
2945
2875
|
return self._DBNodeSet
|
|
@@ -2950,10 +2880,7 @@ mssql_compatible引擎:
|
|
|
2950
2880
|
|
|
2951
2881
|
@property
|
|
2952
2882
|
def AutoRenewFlag(self):
|
|
2953
|
-
r"""
|
|
2954
|
-
<li>0:手动续费</li>
|
|
2955
|
-
<li>1:自动续费</li>
|
|
2956
|
-
默认值:0
|
|
2883
|
+
r"""<p>续费标记:</p><li>0:手动续费</li><li>1:自动续费</li>默认值:0
|
|
2957
2884
|
:rtype: int
|
|
2958
2885
|
"""
|
|
2959
2886
|
return self._AutoRenewFlag
|
|
@@ -2964,10 +2891,7 @@ mssql_compatible引擎:
|
|
|
2964
2891
|
|
|
2965
2892
|
@property
|
|
2966
2893
|
def AutoVoucher(self):
|
|
2967
|
-
r"""
|
|
2968
|
-
<li>0:否</li>
|
|
2969
|
-
<li>1:是</li>
|
|
2970
|
-
默认值:0
|
|
2894
|
+
r"""<p>是否自动使用代金券:</p><li>0:否</li><li>1:是</li>默认值:0
|
|
2971
2895
|
:rtype: int
|
|
2972
2896
|
"""
|
|
2973
2897
|
return self._AutoVoucher
|
|
@@ -2978,7 +2902,7 @@ mssql_compatible引擎:
|
|
|
2978
2902
|
|
|
2979
2903
|
@property
|
|
2980
2904
|
def VoucherIds(self):
|
|
2981
|
-
r"""
|
|
2905
|
+
r"""<p>代金券ID列表,目前仅支持指定一张代金券。</p>
|
|
2982
2906
|
:rtype: list of str
|
|
2983
2907
|
"""
|
|
2984
2908
|
return self._VoucherIds
|
|
@@ -2989,7 +2913,7 @@ mssql_compatible引擎:
|
|
|
2989
2913
|
|
|
2990
2914
|
@property
|
|
2991
2915
|
def ProjectId(self):
|
|
2992
|
-
r"""
|
|
2916
|
+
r"""<p>项目ID。默认取之为0,表示归属默认项目。</p>
|
|
2993
2917
|
:rtype: int
|
|
2994
2918
|
"""
|
|
2995
2919
|
return self._ProjectId
|
|
@@ -3000,7 +2924,7 @@ mssql_compatible引擎:
|
|
|
3000
2924
|
|
|
3001
2925
|
@property
|
|
3002
2926
|
def ActivityId(self):
|
|
3003
|
-
r"""
|
|
2927
|
+
r"""<p>活动ID。</p>
|
|
3004
2928
|
:rtype: int
|
|
3005
2929
|
"""
|
|
3006
2930
|
return self._ActivityId
|
|
@@ -3011,8 +2935,7 @@ mssql_compatible引擎:
|
|
|
3011
2935
|
|
|
3012
2936
|
@property
|
|
3013
2937
|
def Name(self):
|
|
3014
|
-
r"""
|
|
3015
|
-
|
|
2938
|
+
r"""<p>实例名称,仅支持长度小于60的中文/英文/数字/"_"/"-",不指定实例名称则默认显示"未命名"。</p>
|
|
3016
2939
|
:rtype: str
|
|
3017
2940
|
"""
|
|
3018
2941
|
return self._Name
|
|
@@ -3023,7 +2946,7 @@ mssql_compatible引擎:
|
|
|
3023
2946
|
|
|
3024
2947
|
@property
|
|
3025
2948
|
def TagList(self):
|
|
3026
|
-
r"""
|
|
2949
|
+
r"""<p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p>
|
|
3027
2950
|
:rtype: list of Tag
|
|
3028
2951
|
"""
|
|
3029
2952
|
return self._TagList
|
|
@@ -3034,8 +2957,7 @@ mssql_compatible引擎:
|
|
|
3034
2957
|
|
|
3035
2958
|
@property
|
|
3036
2959
|
def SecurityGroupIds(self):
|
|
3037
|
-
r"""
|
|
3038
|
-
|
|
2960
|
+
r"""<p>实例所属安全组,该参数可以通过调用 <a href="https://cloud.tencent.com/document/api/215/15808">DescribeSecurityGroups</a> 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。</p>
|
|
3039
2961
|
:rtype: list of str
|
|
3040
2962
|
"""
|
|
3041
2963
|
return self._SecurityGroupIds
|
|
@@ -3046,11 +2968,7 @@ mssql_compatible引擎:
|
|
|
3046
2968
|
|
|
3047
2969
|
@property
|
|
3048
2970
|
def NeedSupportTDE(self):
|
|
3049
|
-
r"""
|
|
3050
|
-
<li>0:否</li>
|
|
3051
|
-
<li>1:是</li>
|
|
3052
|
-
默认值:0
|
|
3053
|
-
参考[数据透明加密概述](https://cloud.tencent.com/document/product/409/71748)
|
|
2971
|
+
r"""<p>是否需要支持数据透明加密:</p><li>0:否</li><li>1:是</li>默认值:0参考[数据透明加密概述](https://cloud.tencent.com/document/product/409/71748)
|
|
3054
2972
|
:rtype: int
|
|
3055
2973
|
"""
|
|
3056
2974
|
return self._NeedSupportTDE
|
|
@@ -3061,8 +2979,7 @@ mssql_compatible引擎:
|
|
|
3061
2979
|
|
|
3062
2980
|
@property
|
|
3063
2981
|
def KMSKeyId(self):
|
|
3064
|
-
r"""
|
|
3065
|
-
KeyId创建获取相关参考[开启透明数据加密](https://cloud.tencent.com/document/product/409/71749)
|
|
2982
|
+
r"""<p>自定义密钥的KeyId,若选择自定义密匙加密,则需要传入自定义密匙的KeyId,KeyId是CMK的唯一标识。<br>KeyId创建获取相关参考<a href="https://cloud.tencent.com/document/product/409/71749">开启透明数据加密</a></p>
|
|
3066
2983
|
:rtype: str
|
|
3067
2984
|
"""
|
|
3068
2985
|
return self._KMSKeyId
|
|
@@ -3073,8 +2990,7 @@ KeyId创建获取相关参考[开启透明数据加密](https://cloud.tencent.co
|
|
|
3073
2990
|
|
|
3074
2991
|
@property
|
|
3075
2992
|
def KMSRegion(self):
|
|
3076
|
-
r"""
|
|
3077
|
-
KMSRegion相关介绍参考[开启透明数据加密](https://cloud.tencent.com/document/product/409/71749)
|
|
2993
|
+
r"""<p>使用KMS服务的地域,KMSRegion为空默认使用本地域的KMS,本地域不支持的情况下需自选其他KMS支持的地域。<br>KMSRegion相关介绍参考<a href="https://cloud.tencent.com/document/product/409/71749">开启透明数据加密</a></p>
|
|
3078
2994
|
:rtype: str
|
|
3079
2995
|
"""
|
|
3080
2996
|
return self._KMSRegion
|
|
@@ -3085,7 +3001,7 @@ KMSRegion相关介绍参考[开启透明数据加密](https://cloud.tencent.com/
|
|
|
3085
3001
|
|
|
3086
3002
|
@property
|
|
3087
3003
|
def KMSClusterId(self):
|
|
3088
|
-
r"""
|
|
3004
|
+
r"""<p>指定KMS服务的集群,KMSClusterId为空使用默认集群的KMS,若选择指定KMS集群,则需要传入KMSClusterId。 KMSClusterId相关介绍参考开启透明数据加密</p>
|
|
3089
3005
|
:rtype: str
|
|
3090
3006
|
"""
|
|
3091
3007
|
return self._KMSClusterId
|
|
@@ -3096,10 +3012,7 @@ KMSRegion相关介绍参考[开启透明数据加密](https://cloud.tencent.com/
|
|
|
3096
3012
|
|
|
3097
3013
|
@property
|
|
3098
3014
|
def DBEngine(self):
|
|
3099
|
-
r"""
|
|
3100
|
-
<li>postgresql:云数据库PostgreSQL</li>
|
|
3101
|
-
<li>mssql_compatible:MSSQL兼容-云数据库PostgreSQL</li>
|
|
3102
|
-
默认值:postgresql
|
|
3015
|
+
r"""<p>数据库引擎,支持:</p><li>postgresql:云数据库PostgreSQL</li><li>mssql_compatible:MSSQL兼容-云数据库PostgreSQL</li>默认值:postgresql
|
|
3103
3016
|
:rtype: str
|
|
3104
3017
|
"""
|
|
3105
3018
|
return self._DBEngine
|
|
@@ -3110,14 +3023,7 @@ KMSRegion相关介绍参考[开启透明数据加密](https://cloud.tencent.com/
|
|
|
3110
3023
|
|
|
3111
3024
|
@property
|
|
3112
3025
|
def DBEngineConfig(self):
|
|
3113
|
-
r"""
|
|
3114
|
-
{"$key1":"$value1", "$key2":"$value2"}
|
|
3115
|
-
各引擎支持如下:
|
|
3116
|
-
mssql_compatible引擎:
|
|
3117
|
-
<li>migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db。</li>
|
|
3118
|
-
<li>defaultLocale:排序区域规则,可选参数,在初始化后不可修改,默认为en_US,可选值如下:
|
|
3119
|
-
"af_ZA", "sq_AL", "ar_DZ", "ar_BH", "ar_EG", "ar_IQ", "ar_JO", "ar_KW", "ar_LB", "ar_LY", "ar_MA", "ar_OM", "ar_QA", "ar_SA", "ar_SY", "ar_TN", "ar_AE", "ar_YE", "hy_AM", "az_Cyrl_AZ", "az_Latn_AZ", "eu_ES", "be_BY", "bg_BG", "ca_ES", "zh_HK", "zh_MO", "zh_CN", "zh_SG", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_BZ", "en_CA", "en_IE", "en_JM", "en_NZ", "en_PH", "en_ZA", "en_TT", "en_GB", "en_US", "en_ZW", "et_EE", "fo_FO", "fa_IR", "fi_FI", "fr_BE", "fr_CA", "fr_FR", "fr_LU", "fr_MC", "fr_CH", "mk_MK", "ka_GE", "de_AT", "de_DE", "de_LI", "de_LU", "de_CH", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "is_IS", "id_ID", "it_IT", "it_CH", "ja_JP", "kn_IN", "kok_IN", "ko_KR", "ky_KG", "lv_LV", "lt_LT", "ms_BN", "ms_MY", "mr_IN", "mn_MN", "nb_NO", "nn_NO", "pl_PL", "pt_BR", "pt_PT", "pa_IN", "ro_RO", "ru_RU", "sa_IN", "sr_Cyrl_RS", "sr_Latn_RS", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_SV", "es_GT", "es_HN", "es_MX", "es_NI", "es_PA", "es_PY","es_PE", "es_PR", "es_ES", "es_TRADITIONAL", "es_UY", "es_VE", "sw_KE", "sv_FI", "sv_SE", "tt_RU", "te_IN", "th_TH", "tr_TR", "uk_UA", "ur_IN", "ur_PK", "uz_Cyrl_UZ", "uz_Latn_UZ", "vi_VN"。</li>
|
|
3120
|
-
<li>serverCollationName:排序规则名称,可选参数,在初始化后不可修改,默认为sql_latin1_general_cp1_ci_as,可选值如下:"bbf_unicode_general_ci_as", "bbf_unicode_cp1_ci_as", "bbf_unicode_CP1250_ci_as", "bbf_unicode_CP1251_ci_as", "bbf_unicode_cp1253_ci_as", "bbf_unicode_cp1254_ci_as", "bbf_unicode_cp1255_ci_as", "bbf_unicode_cp1256_ci_as", "bbf_unicode_cp1257_ci_as", "bbf_unicode_cp1258_ci_as", "bbf_unicode_cp874_ci_as", "sql_latin1_general_cp1250_ci_as", "sql_latin1_general_cp1251_ci_as", "sql_latin1_general_cp1_ci_as", "sql_latin1_general_cp1253_ci_as", "sql_latin1_general_cp1254_ci_as", "sql_latin1_general_cp1255_ci_as","sql_latin1_general_cp1256_ci_as", "sql_latin1_general_cp1257_ci_as", "sql_latin1_general_cp1258_ci_as", "chinese_prc_ci_as", "cyrillic_general_ci_as", "finnish_swedish_ci_as", "french_ci_as", "japanese_ci_as", "korean_wansung_ci_as", "latin1_general_ci_as", "modern_spanish_ci_as", "polish_ci_as", "thai_ci_as", "traditional_spanish_ci_as", "turkish_ci_as", "ukrainian_ci_as", "vietnamese_ci_as"。</li>
|
|
3026
|
+
r"""<p>数据库引擎的配置信息,配置格式如下:<br>{"$key1":"$value1", "$key2":"$value2"}<br>各引擎支持如下:<br>mssql_compatible引擎:</p><li>migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db。</li><li>defaultLocale:排序区域规则,可选参数,在初始化后不可修改,默认为en_US,可选值如下:"af_ZA", "sq_AL", "ar_DZ", "ar_BH", "ar_EG", "ar_IQ", "ar_JO", "ar_KW", "ar_LB", "ar_LY", "ar_MA", "ar_OM", "ar_QA", "ar_SA", "ar_SY", "ar_TN", "ar_AE", "ar_YE", "hy_AM", "az_Cyrl_AZ", "az_Latn_AZ", "eu_ES", "be_BY", "bg_BG", "ca_ES", "zh_HK", "zh_MO", "zh_CN", "zh_SG", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_BZ", "en_CA", "en_IE", "en_JM", "en_NZ", "en_PH", "en_ZA", "en_TT", "en_GB", "en_US", "en_ZW", "et_EE", "fo_FO", "fa_IR", "fi_FI", "fr_BE", "fr_CA", "fr_FR", "fr_LU", "fr_MC", "fr_CH", "mk_MK", "ka_GE", "de_AT", "de_DE", "de_LI", "de_LU", "de_CH", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "is_IS", "id_ID", "it_IT", "it_CH", "ja_JP", "kn_IN", "kok_IN", "ko_KR", "ky_KG", "lv_LV", "lt_LT", "ms_BN", "ms_MY", "mr_IN", "mn_MN", "nb_NO", "nn_NO", "pl_PL", "pt_BR", "pt_PT", "pa_IN", "ro_RO", "ru_RU", "sa_IN", "sr_Cyrl_RS", "sr_Latn_RS", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_SV", "es_GT", "es_HN", "es_MX", "es_NI", "es_PA", "es_PY","es_PE", "es_PR", "es_ES", "es_TRADITIONAL", "es_UY", "es_VE", "sw_KE", "sv_FI", "sv_SE", "tt_RU", "te_IN", "th_TH", "tr_TR", "uk_UA", "ur_IN", "ur_PK", "uz_Cyrl_UZ", "uz_Latn_UZ", "vi_VN"。</li><li>serverCollationName:排序规则名称,可选参数,在初始化后不可修改,默认为sql_latin1_general_cp1_ci_as,可选值如下:"bbf_unicode_general_ci_as", "bbf_unicode_cp1_ci_as", "bbf_unicode_CP1250_ci_as", "bbf_unicode_CP1251_ci_as", "bbf_unicode_cp1253_ci_as", "bbf_unicode_cp1254_ci_as", "bbf_unicode_cp1255_ci_as", "bbf_unicode_cp1256_ci_as", "bbf_unicode_cp1257_ci_as", "bbf_unicode_cp1258_ci_as", "bbf_unicode_cp874_ci_as", "sql_latin1_general_cp1250_ci_as", "sql_latin1_general_cp1251_ci_as", "sql_latin1_general_cp1_ci_as", "sql_latin1_general_cp1253_ci_as", "sql_latin1_general_cp1254_ci_as", "sql_latin1_general_cp1255_ci_as","sql_latin1_general_cp1256_ci_as", "sql_latin1_general_cp1257_ci_as", "sql_latin1_general_cp1258_ci_as", "chinese_prc_ci_as", "cyrillic_general_ci_as", "finnish_swedish_ci_as", "french_ci_as", "japanese_ci_as", "korean_wansung_ci_as", "latin1_general_ci_as", "modern_spanish_ci_as", "polish_ci_as", "thai_ci_as", "traditional_spanish_ci_as", "turkish_ci_as", "ukrainian_ci_as", "vietnamese_ci_as"。</li>
|
|
3121
3027
|
:rtype: str
|
|
3122
3028
|
"""
|
|
3123
3029
|
return self._DBEngineConfig
|
|
@@ -3128,11 +3034,7 @@ mssql_compatible引擎:
|
|
|
3128
3034
|
|
|
3129
3035
|
@property
|
|
3130
3036
|
def SyncMode(self):
|
|
3131
|
-
r"""
|
|
3132
|
-
<li>Semi-sync:半同步</li>
|
|
3133
|
-
<li>Async:异步</li>
|
|
3134
|
-
主实例默认值:Semi-sync
|
|
3135
|
-
只读实例默认值:Async
|
|
3037
|
+
r"""<p>主从同步方式,支持: </p><li>Semi-sync:半同步</li><li>Async:异步</li>主实例默认值:Semi-sync只读实例默认值:Async
|
|
3136
3038
|
:rtype: str
|
|
3137
3039
|
"""
|
|
3138
3040
|
return self._SyncMode
|
|
@@ -3143,10 +3045,7 @@ mssql_compatible引擎:
|
|
|
3143
3045
|
|
|
3144
3046
|
@property
|
|
3145
3047
|
def NeedSupportIpv6(self):
|
|
3146
|
-
r"""
|
|
3147
|
-
<li>0:否</li>
|
|
3148
|
-
<li>1:是</li>
|
|
3149
|
-
默认值:0
|
|
3048
|
+
r"""<p>是否需要支持Ipv6:</p><li>0:否</li><li>1:是</li>默认值:0
|
|
3150
3049
|
:rtype: int
|
|
3151
3050
|
"""
|
|
3152
3051
|
return self._NeedSupportIpv6
|
|
@@ -3157,7 +3056,7 @@ mssql_compatible引擎:
|
|
|
3157
3056
|
|
|
3158
3057
|
@property
|
|
3159
3058
|
def DeletionProtection(self):
|
|
3160
|
-
r"""
|
|
3059
|
+
r"""<p>实例是否开启删除保护: true-开启删除保护;false-关闭删除保护。</p>
|
|
3161
3060
|
:rtype: bool
|
|
3162
3061
|
"""
|
|
3163
3062
|
return self._DeletionProtection
|
|
@@ -3166,6 +3065,17 @@ mssql_compatible引擎:
|
|
|
3166
3065
|
def DeletionProtection(self, DeletionProtection):
|
|
3167
3066
|
self._DeletionProtection = DeletionProtection
|
|
3168
3067
|
|
|
3068
|
+
@property
|
|
3069
|
+
def StorageType(self):
|
|
3070
|
+
r"""<p>实例存储类型,可选值:PHYSICAL_LOCAL_SSD:物理机本地ssd硬盘 CLOUD_PREMIUM:高性能云硬盘 CLOUD_SSD:ssd云硬盘 CLOUD_HSSD:增强型ssd云硬盘</p>
|
|
3071
|
+
:rtype: str
|
|
3072
|
+
"""
|
|
3073
|
+
return self._StorageType
|
|
3074
|
+
|
|
3075
|
+
@StorageType.setter
|
|
3076
|
+
def StorageType(self, StorageType):
|
|
3077
|
+
self._StorageType = StorageType
|
|
3078
|
+
|
|
3169
3079
|
|
|
3170
3080
|
def _deserialize(self, params):
|
|
3171
3081
|
self._Zone = params.get("Zone")
|
|
@@ -3210,6 +3120,7 @@ mssql_compatible引擎:
|
|
|
3210
3120
|
self._SyncMode = params.get("SyncMode")
|
|
3211
3121
|
self._NeedSupportIpv6 = params.get("NeedSupportIpv6")
|
|
3212
3122
|
self._DeletionProtection = params.get("DeletionProtection")
|
|
3123
|
+
self._StorageType = params.get("StorageType")
|
|
3213
3124
|
memeber_set = set(params.keys())
|
|
3214
3125
|
for name, value in vars(self).items():
|
|
3215
3126
|
property_name = name[1:]
|
|
@@ -3227,11 +3138,11 @@ class CreateInstancesResponse(AbstractModel):
|
|
|
3227
3138
|
|
|
3228
3139
|
def __init__(self):
|
|
3229
3140
|
r"""
|
|
3230
|
-
:param _DealNames:
|
|
3141
|
+
:param _DealNames: <p>订单号列表。每个实例对应一个订单号。</p>
|
|
3231
3142
|
:type DealNames: list of str
|
|
3232
|
-
:param _BillId:
|
|
3143
|
+
:param _BillId: <p>冻结流水号。</p>
|
|
3233
3144
|
:type BillId: str
|
|
3234
|
-
:param _DBInstanceIdSet:
|
|
3145
|
+
:param _DBInstanceIdSet: <p>创建成功的实例ID集合,只在后付费情景下有返回值。</p>
|
|
3235
3146
|
:type DBInstanceIdSet: list of str
|
|
3236
3147
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3237
3148
|
:type RequestId: str
|
|
@@ -3243,7 +3154,7 @@ class CreateInstancesResponse(AbstractModel):
|
|
|
3243
3154
|
|
|
3244
3155
|
@property
|
|
3245
3156
|
def DealNames(self):
|
|
3246
|
-
r"""
|
|
3157
|
+
r"""<p>订单号列表。每个实例对应一个订单号。</p>
|
|
3247
3158
|
:rtype: list of str
|
|
3248
3159
|
"""
|
|
3249
3160
|
return self._DealNames
|
|
@@ -3254,7 +3165,7 @@ class CreateInstancesResponse(AbstractModel):
|
|
|
3254
3165
|
|
|
3255
3166
|
@property
|
|
3256
3167
|
def BillId(self):
|
|
3257
|
-
r"""
|
|
3168
|
+
r"""<p>冻结流水号。</p>
|
|
3258
3169
|
:rtype: str
|
|
3259
3170
|
"""
|
|
3260
3171
|
return self._BillId
|
|
@@ -3265,7 +3176,7 @@ class CreateInstancesResponse(AbstractModel):
|
|
|
3265
3176
|
|
|
3266
3177
|
@property
|
|
3267
3178
|
def DBInstanceIdSet(self):
|
|
3268
|
-
r"""
|
|
3179
|
+
r"""<p>创建成功的实例ID集合,只在后付费情景下有返回值。</p>
|
|
3269
3180
|
:rtype: list of str
|
|
3270
3181
|
"""
|
|
3271
3182
|
return self._DBInstanceIdSet
|
|
@@ -3424,65 +3335,49 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3424
3335
|
|
|
3425
3336
|
def __init__(self):
|
|
3426
3337
|
r"""
|
|
3427
|
-
:param _Zone:
|
|
3428
|
-
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
|
|
3338
|
+
:param _Zone: <p>实例所属主可用区, 如:ap-guangzhou-3;<br>可用区信息可以通过调用 <a href="https://cloud.tencent.com/document/api/409/16769">DescribeZones</a> 接口的返回值中的Zone字段来获取。</p>
|
|
3429
3339
|
:type Zone: str
|
|
3430
|
-
:param _MasterDBInstanceId:
|
|
3340
|
+
:param _MasterDBInstanceId: <p>只读实例的主实例ID。可通过<a href="https://cloud.tencent.com/document/api/409/16773">DescribeDBInstances</a>接口获取</p>
|
|
3431
3341
|
:type MasterDBInstanceId: str
|
|
3432
|
-
:param _SpecCode:
|
|
3342
|
+
:param _SpecCode: <p>售卖规格码。该参数可以通过调用<a href="https://cloud.tencent.com/document/api/409/89019">DescribeClasses</a>的返回值中的SpecCode字段来获取。</p>
|
|
3433
3343
|
:type SpecCode: str
|
|
3434
|
-
:param _Storage:
|
|
3344
|
+
:param _Storage: <p>实例硬盘容量大小,单位:GB。该参数的设置步长为10。</p>
|
|
3435
3345
|
:type Storage: int
|
|
3436
|
-
:param _InstanceCount:
|
|
3346
|
+
:param _InstanceCount: <p>购买实例数量,取值范围:[1-6]。购买支持最大数量6个。</p>
|
|
3437
3347
|
:type InstanceCount: int
|
|
3438
|
-
:param _Period:
|
|
3439
|
-
<li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li>
|
|
3440
|
-
<li>后付费:只支持1</li>
|
|
3348
|
+
:param _Period: <p>购买时长,单位:月。</p><li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li><li>后付费:只支持1</li>
|
|
3441
3349
|
:type Period: int
|
|
3442
|
-
:param _VpcId:
|
|
3350
|
+
:param _VpcId: <p>私有网络ID,形如vpc-xxxxxxxx(该参数当前必传)。有效的VpcId可通过登录控制台查询;也可以调用接口 <a href="https://cloud.tencent.com/document/api/215/1372">DescribeVpcEx</a> ,从接口返回中的unVpcId字段获取。</p>
|
|
3443
3351
|
:type VpcId: str
|
|
3444
|
-
:param _SubnetId:
|
|
3352
|
+
:param _SubnetId: <p>私有网络子网ID,形如subnet-xxxxxxxx(该参数当前必传)。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 <a href="https://cloud.tencent.com/document/api/215/15784">DescribeSubnets </a>,从接口返回中的unSubnetId字段获取。</p>
|
|
3445
3353
|
:type SubnetId: str
|
|
3446
|
-
:param _InstanceChargeType:
|
|
3447
|
-
<li>PREPAID:预付费,即包年包月。</li>
|
|
3448
|
-
<li>POSTPAID_BY_HOUR:后付费,即按量计费。</li>
|
|
3449
|
-
默认值:PREPAID。如果主实例为后付费,只读实例必须也为后付费。
|
|
3354
|
+
:param _InstanceChargeType: <p>实例计费类型,目前支持:</p><li>PREPAID:预付费,即包年包月。</li><li>POSTPAID_BY_HOUR:后付费,即按量计费。</li>默认值:PREPAID。如果主实例为后付费,只读实例必须也为后付费。
|
|
3450
3355
|
:type InstanceChargeType: str
|
|
3451
|
-
:param _AutoVoucher:
|
|
3452
|
-
<li>0:否</li>
|
|
3453
|
-
<li>1:是</li>
|
|
3454
|
-
默认值:0
|
|
3356
|
+
:param _AutoVoucher: <p>是否自动使用代金券:</p><li>0:否</li><li>1:是</li>默认值:0
|
|
3455
3357
|
:type AutoVoucher: int
|
|
3456
|
-
:param _VoucherIds:
|
|
3358
|
+
:param _VoucherIds: <p>代金券ID列表,目前仅支持指定一张代金券。</p>
|
|
3457
3359
|
:type VoucherIds: list of str
|
|
3458
|
-
:param _AutoRenewFlag:
|
|
3459
|
-
<li>0:手动续费</li>
|
|
3460
|
-
<li>1:自动续费</li>
|
|
3461
|
-
默认值:0
|
|
3360
|
+
:param _AutoRenewFlag: <p>续费标记:</p><li>0:手动续费</li><li>1:自动续费</li>默认值:0
|
|
3462
3361
|
:type AutoRenewFlag: int
|
|
3463
|
-
:param _ProjectId:
|
|
3362
|
+
:param _ProjectId: <p>项目ID。默认值为0,表示归属默认项目。</p>
|
|
3464
3363
|
:type ProjectId: int
|
|
3465
|
-
:param _ActivityId:
|
|
3364
|
+
:param _ActivityId: <p>优惠活动ID</p>
|
|
3466
3365
|
:type ActivityId: int
|
|
3467
|
-
:param _ReadOnlyGroupId:
|
|
3366
|
+
:param _ReadOnlyGroupId: <p>只读组ID。</p>
|
|
3468
3367
|
:type ReadOnlyGroupId: str
|
|
3469
|
-
:param _TagList:
|
|
3368
|
+
:param _TagList: <p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p>
|
|
3470
3369
|
:type TagList: :class:`tencentcloud.postgres.v20170312.models.Tag`
|
|
3471
|
-
:param _SecurityGroupIds:
|
|
3472
|
-
|
|
3370
|
+
:param _SecurityGroupIds: <p>实例所属安全组,该参数可以通过调用 <a href="https://cloud.tencent.com/document/api/215/15808">DescribeSecurityGroups</a> 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。</p>
|
|
3473
3371
|
:type SecurityGroupIds: list of str
|
|
3474
|
-
:param _NeedSupportIpv6:
|
|
3475
|
-
<li>0:否</li>
|
|
3476
|
-
<li>1:是</li>
|
|
3477
|
-
默认值:0
|
|
3372
|
+
:param _NeedSupportIpv6: <p>是否需要支持Ipv6:</p><li>0:否</li><li>1:是</li>默认值:0
|
|
3478
3373
|
:type NeedSupportIpv6: int
|
|
3479
|
-
:param _Name:
|
|
3374
|
+
:param _Name: <p>实例名。仅支持长度小于60的中文/英文/数字/"_"/"-"</p>
|
|
3480
3375
|
:type Name: str
|
|
3481
|
-
:param _DBVersion:
|
|
3376
|
+
:param _DBVersion: <p>不再需要指定,内核版本号与主实例保持一致</p>
|
|
3482
3377
|
:type DBVersion: str
|
|
3483
|
-
:param _DedicatedClusterId:
|
|
3378
|
+
:param _DedicatedClusterId: <p>专属集群ID</p>
|
|
3484
3379
|
:type DedicatedClusterId: str
|
|
3485
|
-
:param _DeletionProtection:
|
|
3380
|
+
:param _DeletionProtection: <p>实例是否开启删除保护: true-开启删除保护;false-关闭删除保护。</p>
|
|
3486
3381
|
:type DeletionProtection: bool
|
|
3487
3382
|
"""
|
|
3488
3383
|
self._Zone = None
|
|
@@ -3510,8 +3405,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3510
3405
|
|
|
3511
3406
|
@property
|
|
3512
3407
|
def Zone(self):
|
|
3513
|
-
r"""
|
|
3514
|
-
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
|
|
3408
|
+
r"""<p>实例所属主可用区, 如:ap-guangzhou-3;<br>可用区信息可以通过调用 <a href="https://cloud.tencent.com/document/api/409/16769">DescribeZones</a> 接口的返回值中的Zone字段来获取。</p>
|
|
3515
3409
|
:rtype: str
|
|
3516
3410
|
"""
|
|
3517
3411
|
return self._Zone
|
|
@@ -3522,7 +3416,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3522
3416
|
|
|
3523
3417
|
@property
|
|
3524
3418
|
def MasterDBInstanceId(self):
|
|
3525
|
-
r"""
|
|
3419
|
+
r"""<p>只读实例的主实例ID。可通过<a href="https://cloud.tencent.com/document/api/409/16773">DescribeDBInstances</a>接口获取</p>
|
|
3526
3420
|
:rtype: str
|
|
3527
3421
|
"""
|
|
3528
3422
|
return self._MasterDBInstanceId
|
|
@@ -3533,7 +3427,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3533
3427
|
|
|
3534
3428
|
@property
|
|
3535
3429
|
def SpecCode(self):
|
|
3536
|
-
r"""
|
|
3430
|
+
r"""<p>售卖规格码。该参数可以通过调用<a href="https://cloud.tencent.com/document/api/409/89019">DescribeClasses</a>的返回值中的SpecCode字段来获取。</p>
|
|
3537
3431
|
:rtype: str
|
|
3538
3432
|
"""
|
|
3539
3433
|
return self._SpecCode
|
|
@@ -3544,7 +3438,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3544
3438
|
|
|
3545
3439
|
@property
|
|
3546
3440
|
def Storage(self):
|
|
3547
|
-
r"""
|
|
3441
|
+
r"""<p>实例硬盘容量大小,单位:GB。该参数的设置步长为10。</p>
|
|
3548
3442
|
:rtype: int
|
|
3549
3443
|
"""
|
|
3550
3444
|
return self._Storage
|
|
@@ -3555,7 +3449,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3555
3449
|
|
|
3556
3450
|
@property
|
|
3557
3451
|
def InstanceCount(self):
|
|
3558
|
-
r"""
|
|
3452
|
+
r"""<p>购买实例数量,取值范围:[1-6]。购买支持最大数量6个。</p>
|
|
3559
3453
|
:rtype: int
|
|
3560
3454
|
"""
|
|
3561
3455
|
return self._InstanceCount
|
|
@@ -3566,9 +3460,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3566
3460
|
|
|
3567
3461
|
@property
|
|
3568
3462
|
def Period(self):
|
|
3569
|
-
r"""
|
|
3570
|
-
<li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li>
|
|
3571
|
-
<li>后付费:只支持1</li>
|
|
3463
|
+
r"""<p>购买时长,单位:月。</p><li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li><li>后付费:只支持1</li>
|
|
3572
3464
|
:rtype: int
|
|
3573
3465
|
"""
|
|
3574
3466
|
return self._Period
|
|
@@ -3579,7 +3471,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3579
3471
|
|
|
3580
3472
|
@property
|
|
3581
3473
|
def VpcId(self):
|
|
3582
|
-
r"""
|
|
3474
|
+
r"""<p>私有网络ID,形如vpc-xxxxxxxx(该参数当前必传)。有效的VpcId可通过登录控制台查询;也可以调用接口 <a href="https://cloud.tencent.com/document/api/215/1372">DescribeVpcEx</a> ,从接口返回中的unVpcId字段获取。</p>
|
|
3583
3475
|
:rtype: str
|
|
3584
3476
|
"""
|
|
3585
3477
|
return self._VpcId
|
|
@@ -3590,7 +3482,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3590
3482
|
|
|
3591
3483
|
@property
|
|
3592
3484
|
def SubnetId(self):
|
|
3593
|
-
r"""
|
|
3485
|
+
r"""<p>私有网络子网ID,形如subnet-xxxxxxxx(该参数当前必传)。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 <a href="https://cloud.tencent.com/document/api/215/15784">DescribeSubnets </a>,从接口返回中的unSubnetId字段获取。</p>
|
|
3594
3486
|
:rtype: str
|
|
3595
3487
|
"""
|
|
3596
3488
|
return self._SubnetId
|
|
@@ -3601,10 +3493,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3601
3493
|
|
|
3602
3494
|
@property
|
|
3603
3495
|
def InstanceChargeType(self):
|
|
3604
|
-
r"""
|
|
3605
|
-
<li>PREPAID:预付费,即包年包月。</li>
|
|
3606
|
-
<li>POSTPAID_BY_HOUR:后付费,即按量计费。</li>
|
|
3607
|
-
默认值:PREPAID。如果主实例为后付费,只读实例必须也为后付费。
|
|
3496
|
+
r"""<p>实例计费类型,目前支持:</p><li>PREPAID:预付费,即包年包月。</li><li>POSTPAID_BY_HOUR:后付费,即按量计费。</li>默认值:PREPAID。如果主实例为后付费,只读实例必须也为后付费。
|
|
3608
3497
|
:rtype: str
|
|
3609
3498
|
"""
|
|
3610
3499
|
return self._InstanceChargeType
|
|
@@ -3615,10 +3504,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3615
3504
|
|
|
3616
3505
|
@property
|
|
3617
3506
|
def AutoVoucher(self):
|
|
3618
|
-
r"""
|
|
3619
|
-
<li>0:否</li>
|
|
3620
|
-
<li>1:是</li>
|
|
3621
|
-
默认值:0
|
|
3507
|
+
r"""<p>是否自动使用代金券:</p><li>0:否</li><li>1:是</li>默认值:0
|
|
3622
3508
|
:rtype: int
|
|
3623
3509
|
"""
|
|
3624
3510
|
return self._AutoVoucher
|
|
@@ -3629,7 +3515,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3629
3515
|
|
|
3630
3516
|
@property
|
|
3631
3517
|
def VoucherIds(self):
|
|
3632
|
-
r"""
|
|
3518
|
+
r"""<p>代金券ID列表,目前仅支持指定一张代金券。</p>
|
|
3633
3519
|
:rtype: list of str
|
|
3634
3520
|
"""
|
|
3635
3521
|
return self._VoucherIds
|
|
@@ -3640,10 +3526,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3640
3526
|
|
|
3641
3527
|
@property
|
|
3642
3528
|
def AutoRenewFlag(self):
|
|
3643
|
-
r"""
|
|
3644
|
-
<li>0:手动续费</li>
|
|
3645
|
-
<li>1:自动续费</li>
|
|
3646
|
-
默认值:0
|
|
3529
|
+
r"""<p>续费标记:</p><li>0:手动续费</li><li>1:自动续费</li>默认值:0
|
|
3647
3530
|
:rtype: int
|
|
3648
3531
|
"""
|
|
3649
3532
|
return self._AutoRenewFlag
|
|
@@ -3654,7 +3537,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3654
3537
|
|
|
3655
3538
|
@property
|
|
3656
3539
|
def ProjectId(self):
|
|
3657
|
-
r"""
|
|
3540
|
+
r"""<p>项目ID。默认值为0,表示归属默认项目。</p>
|
|
3658
3541
|
:rtype: int
|
|
3659
3542
|
"""
|
|
3660
3543
|
return self._ProjectId
|
|
@@ -3665,7 +3548,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3665
3548
|
|
|
3666
3549
|
@property
|
|
3667
3550
|
def ActivityId(self):
|
|
3668
|
-
r"""
|
|
3551
|
+
r"""<p>优惠活动ID</p>
|
|
3669
3552
|
:rtype: int
|
|
3670
3553
|
"""
|
|
3671
3554
|
return self._ActivityId
|
|
@@ -3676,7 +3559,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3676
3559
|
|
|
3677
3560
|
@property
|
|
3678
3561
|
def ReadOnlyGroupId(self):
|
|
3679
|
-
r"""
|
|
3562
|
+
r"""<p>只读组ID。</p>
|
|
3680
3563
|
:rtype: str
|
|
3681
3564
|
"""
|
|
3682
3565
|
return self._ReadOnlyGroupId
|
|
@@ -3687,7 +3570,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3687
3570
|
|
|
3688
3571
|
@property
|
|
3689
3572
|
def TagList(self):
|
|
3690
|
-
r"""
|
|
3573
|
+
r"""<p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p>
|
|
3691
3574
|
:rtype: :class:`tencentcloud.postgres.v20170312.models.Tag`
|
|
3692
3575
|
"""
|
|
3693
3576
|
return self._TagList
|
|
@@ -3698,8 +3581,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3698
3581
|
|
|
3699
3582
|
@property
|
|
3700
3583
|
def SecurityGroupIds(self):
|
|
3701
|
-
r"""
|
|
3702
|
-
|
|
3584
|
+
r"""<p>实例所属安全组,该参数可以通过调用 <a href="https://cloud.tencent.com/document/api/215/15808">DescribeSecurityGroups</a> 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。</p>
|
|
3703
3585
|
:rtype: list of str
|
|
3704
3586
|
"""
|
|
3705
3587
|
return self._SecurityGroupIds
|
|
@@ -3710,10 +3592,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3710
3592
|
|
|
3711
3593
|
@property
|
|
3712
3594
|
def NeedSupportIpv6(self):
|
|
3713
|
-
r"""
|
|
3714
|
-
<li>0:否</li>
|
|
3715
|
-
<li>1:是</li>
|
|
3716
|
-
默认值:0
|
|
3595
|
+
r"""<p>是否需要支持Ipv6:</p><li>0:否</li><li>1:是</li>默认值:0
|
|
3717
3596
|
:rtype: int
|
|
3718
3597
|
"""
|
|
3719
3598
|
return self._NeedSupportIpv6
|
|
@@ -3724,7 +3603,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3724
3603
|
|
|
3725
3604
|
@property
|
|
3726
3605
|
def Name(self):
|
|
3727
|
-
r"""
|
|
3606
|
+
r"""<p>实例名。仅支持长度小于60的中文/英文/数字/"_"/"-"</p>
|
|
3728
3607
|
:rtype: str
|
|
3729
3608
|
"""
|
|
3730
3609
|
return self._Name
|
|
@@ -3737,7 +3616,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3737
3616
|
def DBVersion(self):
|
|
3738
3617
|
warnings.warn("parameter `DBVersion` is deprecated", DeprecationWarning)
|
|
3739
3618
|
|
|
3740
|
-
r"""
|
|
3619
|
+
r"""<p>不再需要指定,内核版本号与主实例保持一致</p>
|
|
3741
3620
|
:rtype: str
|
|
3742
3621
|
"""
|
|
3743
3622
|
return self._DBVersion
|
|
@@ -3750,7 +3629,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3750
3629
|
|
|
3751
3630
|
@property
|
|
3752
3631
|
def DedicatedClusterId(self):
|
|
3753
|
-
r"""
|
|
3632
|
+
r"""<p>专属集群ID</p>
|
|
3754
3633
|
:rtype: str
|
|
3755
3634
|
"""
|
|
3756
3635
|
return self._DedicatedClusterId
|
|
@@ -3761,7 +3640,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
3761
3640
|
|
|
3762
3641
|
@property
|
|
3763
3642
|
def DeletionProtection(self):
|
|
3764
|
-
r"""
|
|
3643
|
+
r"""<p>实例是否开启删除保护: true-开启删除保护;false-关闭删除保护。</p>
|
|
3765
3644
|
:rtype: bool
|
|
3766
3645
|
"""
|
|
3767
3646
|
return self._DeletionProtection
|
|
@@ -3813,13 +3692,13 @@ class CreateReadOnlyDBInstanceResponse(AbstractModel):
|
|
|
3813
3692
|
|
|
3814
3693
|
def __init__(self):
|
|
3815
3694
|
r"""
|
|
3816
|
-
:param _DealNames:
|
|
3695
|
+
:param _DealNames: <p>订单号列表。每个实例对应一个订单号</p>
|
|
3817
3696
|
:type DealNames: list of str
|
|
3818
|
-
:param _BillId:
|
|
3697
|
+
:param _BillId: <p>冻结流水号</p>
|
|
3819
3698
|
:type BillId: str
|
|
3820
|
-
:param _DBInstanceIdSet:
|
|
3699
|
+
:param _DBInstanceIdSet: <p>创建成功的实例ID集合,只在后付费情景下有返回值</p>
|
|
3821
3700
|
:type DBInstanceIdSet: list of str
|
|
3822
|
-
:param _BillingParameters:
|
|
3701
|
+
:param _BillingParameters: <p>入参有BillingParameters值时,出参才有值,值为商品下单的参数。</p>
|
|
3823
3702
|
:type BillingParameters: str
|
|
3824
3703
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3825
3704
|
:type RequestId: str
|
|
@@ -3832,7 +3711,7 @@ class CreateReadOnlyDBInstanceResponse(AbstractModel):
|
|
|
3832
3711
|
|
|
3833
3712
|
@property
|
|
3834
3713
|
def DealNames(self):
|
|
3835
|
-
r"""
|
|
3714
|
+
r"""<p>订单号列表。每个实例对应一个订单号</p>
|
|
3836
3715
|
:rtype: list of str
|
|
3837
3716
|
"""
|
|
3838
3717
|
return self._DealNames
|
|
@@ -3843,7 +3722,7 @@ class CreateReadOnlyDBInstanceResponse(AbstractModel):
|
|
|
3843
3722
|
|
|
3844
3723
|
@property
|
|
3845
3724
|
def BillId(self):
|
|
3846
|
-
r"""
|
|
3725
|
+
r"""<p>冻结流水号</p>
|
|
3847
3726
|
:rtype: str
|
|
3848
3727
|
"""
|
|
3849
3728
|
return self._BillId
|
|
@@ -3854,7 +3733,7 @@ class CreateReadOnlyDBInstanceResponse(AbstractModel):
|
|
|
3854
3733
|
|
|
3855
3734
|
@property
|
|
3856
3735
|
def DBInstanceIdSet(self):
|
|
3857
|
-
r"""
|
|
3736
|
+
r"""<p>创建成功的实例ID集合,只在后付费情景下有返回值</p>
|
|
3858
3737
|
:rtype: list of str
|
|
3859
3738
|
"""
|
|
3860
3739
|
return self._DBInstanceIdSet
|
|
@@ -3865,7 +3744,7 @@ class CreateReadOnlyDBInstanceResponse(AbstractModel):
|
|
|
3865
3744
|
|
|
3866
3745
|
@property
|
|
3867
3746
|
def BillingParameters(self):
|
|
3868
|
-
r"""
|
|
3747
|
+
r"""<p>入参有BillingParameters值时,出参才有值,值为商品下单的参数。</p>
|
|
3869
3748
|
:rtype: str
|
|
3870
3749
|
"""
|
|
3871
3750
|
return self._BillingParameters
|
|
@@ -4515,120 +4394,92 @@ class DBInstance(AbstractModel):
|
|
|
4515
4394
|
|
|
4516
4395
|
def __init__(self):
|
|
4517
4396
|
r"""
|
|
4518
|
-
:param _Region:
|
|
4397
|
+
:param _Region: <p>实例所属地域,如: ap-guangzhou,对应RegionSet的Region字段。</p>
|
|
4519
4398
|
:type Region: str
|
|
4520
|
-
:param _Zone:
|
|
4399
|
+
:param _Zone: <p>实例所属可用区, 如:ap-guangzhou-3,对应ZoneSet的Zone字段。</p>
|
|
4521
4400
|
:type Zone: str
|
|
4522
|
-
:param _VpcId:
|
|
4401
|
+
:param _VpcId: <p>私有网络ID,形如vpc-e6w23k31。有效的VpcId可通过登录控制台查询;也可以调用接口 <a href="https://cloud.tencent.com/document/api/215/15778">DescribeVpcs</a> ,从接口返回中的unVpcId字段获取。</p>
|
|
4523
4402
|
:type VpcId: str
|
|
4524
|
-
:param _SubnetId:
|
|
4403
|
+
:param _SubnetId: <p>私有网络子网ID,形如subnet-51lcif9y。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 <a href="https://cloud.tencent.com/document/api/215/15784">DescribeSubnets </a>,从接口返回中的unSubnetId字段获取。</p>
|
|
4525
4404
|
:type SubnetId: str
|
|
4526
|
-
:param _DBInstanceId:
|
|
4405
|
+
:param _DBInstanceId: <p>实例ID。</p>
|
|
4527
4406
|
:type DBInstanceId: str
|
|
4528
|
-
:param _DBInstanceName:
|
|
4407
|
+
:param _DBInstanceName: <p>实例名称。</p>
|
|
4529
4408
|
:type DBInstanceName: str
|
|
4530
|
-
:param _DBInstanceStatus:
|
|
4409
|
+
:param _DBInstanceStatus: <p>实例状态,分别为:applying(申请中)、init(待初始化)、initing(初始化中)、running(运行中)、limited run(受限运行)、isolating(隔离中)、isolated(已隔离)、disisolating(解隔离中)、recycling(回收中)、recycled(已回收)、job running(任务执行中)、offline(下线)、migrating(迁移中)、expanding(扩容中)、waitSwitch(等待切换)、switching(切换中)、readonly(只读)、restarting(重启中)、network changing(网络变更中)、upgrading(内核版本升级中)、audit-switching(审计状态变更中)、primary-switching(主备切换中)、offlining(下线中)、deployment changing(可用区变更中)、cloning(恢复数据中)、parameter modifying(参数修改中)、log-switching(日志状态变更中)、restoring(恢复中)、expanding(变配中)</p>
|
|
4531
4410
|
:type DBInstanceStatus: str
|
|
4532
|
-
:param _DBInstanceMemory:
|
|
4411
|
+
:param _DBInstanceMemory: <p>实例分配的内存大小,单位:GB</p>
|
|
4533
4412
|
:type DBInstanceMemory: int
|
|
4534
|
-
:param _DBInstanceStorage:
|
|
4413
|
+
:param _DBInstanceStorage: <p>实例分配的存储空间大小,单位:GB</p>
|
|
4535
4414
|
:type DBInstanceStorage: int
|
|
4536
|
-
:param _DBInstanceCpu:
|
|
4415
|
+
:param _DBInstanceCpu: <p>实例分配的CPU数量,单位:个</p>
|
|
4537
4416
|
:type DBInstanceCpu: int
|
|
4538
|
-
:param _DBInstanceClass:
|
|
4417
|
+
:param _DBInstanceClass: <p>售卖规格ID</p>
|
|
4539
4418
|
:type DBInstanceClass: str
|
|
4540
|
-
:param _DBMajorVersion: PostgreSQL
|
|
4419
|
+
:param _DBMajorVersion: <p>PostgreSQL大版本号,版本信息可从<a href="https://cloud.tencent.com/document/api/409/89018">DescribeDBVersions</a>获取,目前支持10,11,12,13,14,15这几个大版本。</p>
|
|
4541
4420
|
:type DBMajorVersion: str
|
|
4542
|
-
:param _DBVersion: PostgreSQL社区大版本+小版本号,如12.4
|
|
4421
|
+
:param _DBVersion: <p>PostgreSQL社区大版本+小版本号,如12.4,版本信息可从<a href="https://cloud.tencent.com/document/api/409/89018">DescribeDBVersions</a>获取。</p>
|
|
4543
4422
|
:type DBVersion: str
|
|
4544
|
-
:param _DBKernelVersion: PostgreSQL内核版本号,如v12.7_r1.8
|
|
4423
|
+
:param _DBKernelVersion: <p>PostgreSQL内核版本号,如v12.7_r1.8,版本信息可从<a href="https://cloud.tencent.com/document/api/409/89018">DescribeDBVersions</a>获取。</p>
|
|
4545
4424
|
:type DBKernelVersion: str
|
|
4546
|
-
:param _DBInstanceType:
|
|
4547
|
-
<li>primary:主实例</li>
|
|
4548
|
-
<li>readonly:只读实例</li>
|
|
4549
|
-
<li>guard:灾备实例</li>
|
|
4550
|
-
<li>temp:临时实例</li>
|
|
4425
|
+
:param _DBInstanceType: <p>实例类型,类型有:</p><li>primary:主实例</li><li>readonly:只读实例</li><li>guard:灾备实例</li><li>temp:临时实例</li>
|
|
4551
4426
|
:type DBInstanceType: str
|
|
4552
|
-
:param _DBInstanceVersion:
|
|
4427
|
+
:param _DBInstanceVersion: <p>实例版本,目前只支持standard(双机高可用版, 一主一从)。</p>
|
|
4553
4428
|
:type DBInstanceVersion: str
|
|
4554
|
-
:param _DBCharset:
|
|
4555
|
-
<li> UTF8</li>
|
|
4556
|
-
<li> LATIN1</li>
|
|
4429
|
+
:param _DBCharset: <p>实例字符集,目前只支持:</p><li> UTF8</li><li> LATIN1</li>
|
|
4557
4430
|
:type DBCharset: str
|
|
4558
|
-
:param _CreateTime:
|
|
4431
|
+
:param _CreateTime: <p>实例创建时间。</p>
|
|
4559
4432
|
:type CreateTime: str
|
|
4560
|
-
:param _UpdateTime:
|
|
4433
|
+
:param _UpdateTime: <p>实例执行最后一次更新的时间。</p>
|
|
4561
4434
|
:type UpdateTime: str
|
|
4562
|
-
:param _ExpireTime:
|
|
4435
|
+
:param _ExpireTime: <p>实例到期时间。</p>
|
|
4563
4436
|
:type ExpireTime: str
|
|
4564
|
-
:param _IsolatedTime:
|
|
4437
|
+
:param _IsolatedTime: <p>实例隔离时间。</p>
|
|
4565
4438
|
:type IsolatedTime: str
|
|
4566
|
-
:param _PayType:
|
|
4567
|
-
<li>prepaid:包年包月,预付费</li>
|
|
4568
|
-
<li>postpaid:按量计费,后付费</li>
|
|
4439
|
+
:param _PayType: <p>计费模式:</p><li>prepaid:包年包月,预付费</li><li>postpaid:按量计费,后付费</li>
|
|
4569
4440
|
:type PayType: str
|
|
4570
|
-
:param _AutoRenew:
|
|
4571
|
-
<li>0:手动续费</li>
|
|
4572
|
-
<li>1:自动续费</li>
|
|
4573
|
-
默认值:0
|
|
4441
|
+
:param _AutoRenew: <p>是否自动续费:</p><li>0:手动续费</li><li>1:自动续费</li>默认值:0
|
|
4574
4442
|
:type AutoRenew: int
|
|
4575
|
-
:param _DBInstanceNetInfo:
|
|
4443
|
+
:param _DBInstanceNetInfo: <p>实例网络连接信息。</p>
|
|
4576
4444
|
:type DBInstanceNetInfo: list of DBInstanceNetInfo
|
|
4577
|
-
:param _Type:
|
|
4445
|
+
:param _Type: <p>机器类型。</p>
|
|
4578
4446
|
:type Type: str
|
|
4579
|
-
:param _AppId:
|
|
4447
|
+
:param _AppId: <p>用户的AppId。</p>
|
|
4580
4448
|
:type AppId: int
|
|
4581
|
-
:param _Uid:
|
|
4449
|
+
:param _Uid: <p>实例的Uid。</p>
|
|
4582
4450
|
:type Uid: int
|
|
4583
|
-
:param _ProjectId:
|
|
4451
|
+
:param _ProjectId: <p>项目ID。</p>
|
|
4584
4452
|
:type ProjectId: int
|
|
4585
|
-
:param _TagList:
|
|
4453
|
+
:param _TagList: <p>实例绑定的标签信息。</p>
|
|
4586
4454
|
:type TagList: list of Tag
|
|
4587
|
-
:param _MasterDBInstanceId:
|
|
4455
|
+
:param _MasterDBInstanceId: <p>主实例信息,仅在实例为只读实例时返回。</p>
|
|
4588
4456
|
:type MasterDBInstanceId: str
|
|
4589
|
-
:param _ReadOnlyInstanceNum:
|
|
4457
|
+
:param _ReadOnlyInstanceNum: <p>只读实例数量。</p>
|
|
4590
4458
|
:type ReadOnlyInstanceNum: int
|
|
4591
|
-
:param _StatusInReadonlyGroup:
|
|
4459
|
+
:param _StatusInReadonlyGroup: <p>只读实例在只读组中的状态。</p>
|
|
4592
4460
|
:type StatusInReadonlyGroup: str
|
|
4593
|
-
:param _OfflineTime:
|
|
4461
|
+
:param _OfflineTime: <p>下线时间。</p>
|
|
4594
4462
|
:type OfflineTime: str
|
|
4595
|
-
:param _DBNodeSet:
|
|
4463
|
+
:param _DBNodeSet: <p>实例的节点信息。</p>
|
|
4596
4464
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4597
4465
|
:type DBNodeSet: list of DBNode
|
|
4598
|
-
:param _IsSupportTDE:
|
|
4599
|
-
<li>0:不支持</li>
|
|
4600
|
-
<li>1:支持</li>
|
|
4601
|
-
默认值:0
|
|
4602
|
-
TDE数据加密可参考[数据透明加密概述](https://cloud.tencent.com/document/product/409/71748)
|
|
4466
|
+
:param _IsSupportTDE: <p>实例是否支持TDE数据加密:</p><li>0:不支持</li><li>1:支持</li>默认值:0TDE数据加密可参考[数据透明加密概述](https://cloud.tencent.com/document/product/409/71748)
|
|
4603
4467
|
:type IsSupportTDE: int
|
|
4604
|
-
:param _DBEngine:
|
|
4605
|
-
<li>postgresql:云数据库PostgreSQL</li>
|
|
4606
|
-
<li>mssql_compatible:MSSQL兼容-云数据库PostgreSQL</li>
|
|
4607
|
-
默认值:postgresql
|
|
4468
|
+
:param _DBEngine: <p>数据库引擎,支持:</p><li>postgresql:云数据库PostgreSQL</li><li>mssql_compatible:MSSQL兼容-云数据库PostgreSQL</li>默认值:postgresql
|
|
4608
4469
|
:type DBEngine: str
|
|
4609
|
-
:param _DBEngineConfig:
|
|
4610
|
-
{"$key1":"$value1", "$key2":"$value2"}
|
|
4611
|
-
各引擎支持如下:
|
|
4612
|
-
mssql_compatible引擎:
|
|
4613
|
-
<li>migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db。</li>
|
|
4614
|
-
<li>defaultLocale:排序区域规则,可选参数,在初始化后不可修改,默认为en_US,可选值如下:
|
|
4615
|
-
"af_ZA", "sq_AL", "ar_DZ", "ar_BH", "ar_EG", "ar_IQ", "ar_JO", "ar_KW", "ar_LB", "ar_LY", "ar_MA", "ar_OM", "ar_QA", "ar_SA", "ar_SY", "ar_TN", "ar_AE", "ar_YE", "hy_AM", "az_Cyrl_AZ", "az_Latn_AZ", "eu_ES", "be_BY", "bg_BG", "ca_ES", "zh_HK", "zh_MO", "zh_CN", "zh_SG", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_BZ", "en_CA", "en_IE", "en_JM", "en_NZ", "en_PH", "en_ZA", "en_TT", "en_GB", "en_US", "en_ZW", "et_EE", "fo_FO", "fa_IR", "fi_FI", "fr_BE", "fr_CA", "fr_FR", "fr_LU", "fr_MC", "fr_CH", "mk_MK", "ka_GE", "de_AT", "de_DE", "de_LI", "de_LU", "de_CH", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "is_IS", "id_ID", "it_IT", "it_CH", "ja_JP", "kn_IN", "kok_IN", "ko_KR", "ky_KG", "lv_LV", "lt_LT", "ms_BN", "ms_MY", "mr_IN", "mn_MN", "nb_NO", "nn_NO", "pl_PL", "pt_BR", "pt_PT", "pa_IN", "ro_RO", "ru_RU", "sa_IN", "sr_Cyrl_RS", "sr_Latn_RS", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_SV", "es_GT", "es_HN", "es_MX", "es_NI", "es_PA", "es_PY","es_PE", "es_PR", "es_ES", "es_TRADITIONAL", "es_UY", "es_VE", "sw_KE", "sv_FI", "sv_SE", "tt_RU", "te_IN", "th_TH", "tr_TR", "uk_UA", "ur_IN", "ur_PK", "uz_Cyrl_UZ", "uz_Latn_UZ", "vi_VN"。</li>
|
|
4616
|
-
<li>serverCollationName:排序规则名称,可选参数,在初始化后不可修改,默认为sql_latin1_general_cp1_ci_as,可选值如下:"bbf_unicode_general_ci_as", "bbf_unicode_cp1_ci_as", "bbf_unicode_CP1250_ci_as", "bbf_unicode_CP1251_ci_as", "bbf_unicode_cp1253_ci_as", "bbf_unicode_cp1254_ci_as", "bbf_unicode_cp1255_ci_as", "bbf_unicode_cp1256_ci_as", "bbf_unicode_cp1257_ci_as", "bbf_unicode_cp1258_ci_as", "bbf_unicode_cp874_ci_as", "sql_latin1_general_cp1250_ci_as", "sql_latin1_general_cp1251_ci_as", "sql_latin1_general_cp1_ci_as", "sql_latin1_general_cp1253_ci_as", "sql_latin1_general_cp1254_ci_as", "sql_latin1_general_cp1255_ci_as","sql_latin1_general_cp1256_ci_as", "sql_latin1_general_cp1257_ci_as", "sql_latin1_general_cp1258_ci_as", "chinese_prc_ci_as", "cyrillic_general_ci_as", "finnish_swedish_ci_as", "french_ci_as", "japanese_ci_as", "korean_wansung_ci_as", "latin1_general_ci_as", "modern_spanish_ci_as", "polish_ci_as", "thai_ci_as", "traditional_spanish_ci_as", "turkish_ci_as", "ukrainian_ci_as", "vietnamese_ci_as"。</li>
|
|
4470
|
+
:param _DBEngineConfig: <p>数据库引擎的配置信息,配置格式如下:<br>{"$key1":"$value1", "$key2":"$value2"}<br>各引擎支持如下:<br>mssql_compatible引擎:</p><li>migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db。</li><li>defaultLocale:排序区域规则,可选参数,在初始化后不可修改,默认为en_US,可选值如下:"af_ZA", "sq_AL", "ar_DZ", "ar_BH", "ar_EG", "ar_IQ", "ar_JO", "ar_KW", "ar_LB", "ar_LY", "ar_MA", "ar_OM", "ar_QA", "ar_SA", "ar_SY", "ar_TN", "ar_AE", "ar_YE", "hy_AM", "az_Cyrl_AZ", "az_Latn_AZ", "eu_ES", "be_BY", "bg_BG", "ca_ES", "zh_HK", "zh_MO", "zh_CN", "zh_SG", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_BZ", "en_CA", "en_IE", "en_JM", "en_NZ", "en_PH", "en_ZA", "en_TT", "en_GB", "en_US", "en_ZW", "et_EE", "fo_FO", "fa_IR", "fi_FI", "fr_BE", "fr_CA", "fr_FR", "fr_LU", "fr_MC", "fr_CH", "mk_MK", "ka_GE", "de_AT", "de_DE", "de_LI", "de_LU", "de_CH", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "is_IS", "id_ID", "it_IT", "it_CH", "ja_JP", "kn_IN", "kok_IN", "ko_KR", "ky_KG", "lv_LV", "lt_LT", "ms_BN", "ms_MY", "mr_IN", "mn_MN", "nb_NO", "nn_NO", "pl_PL", "pt_BR", "pt_PT", "pa_IN", "ro_RO", "ru_RU", "sa_IN", "sr_Cyrl_RS", "sr_Latn_RS", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_SV", "es_GT", "es_HN", "es_MX", "es_NI", "es_PA", "es_PY","es_PE", "es_PR", "es_ES", "es_TRADITIONAL", "es_UY", "es_VE", "sw_KE", "sv_FI", "sv_SE", "tt_RU", "te_IN", "th_TH", "tr_TR", "uk_UA", "ur_IN", "ur_PK", "uz_Cyrl_UZ", "uz_Latn_UZ", "vi_VN"。</li><li>serverCollationName:排序规则名称,可选参数,在初始化后不可修改,默认为sql_latin1_general_cp1_ci_as,可选值如下:"bbf_unicode_general_ci_as", "bbf_unicode_cp1_ci_as", "bbf_unicode_CP1250_ci_as", "bbf_unicode_CP1251_ci_as", "bbf_unicode_cp1253_ci_as", "bbf_unicode_cp1254_ci_as", "bbf_unicode_cp1255_ci_as", "bbf_unicode_cp1256_ci_as", "bbf_unicode_cp1257_ci_as", "bbf_unicode_cp1258_ci_as", "bbf_unicode_cp874_ci_as", "sql_latin1_general_cp1250_ci_as", "sql_latin1_general_cp1251_ci_as", "sql_latin1_general_cp1_ci_as", "sql_latin1_general_cp1253_ci_as", "sql_latin1_general_cp1254_ci_as", "sql_latin1_general_cp1255_ci_as","sql_latin1_general_cp1256_ci_as", "sql_latin1_general_cp1257_ci_as", "sql_latin1_general_cp1258_ci_as", "chinese_prc_ci_as", "cyrillic_general_ci_as", "finnish_swedish_ci_as", "french_ci_as", "japanese_ci_as", "korean_wansung_ci_as", "latin1_general_ci_as", "modern_spanish_ci_as", "polish_ci_as", "thai_ci_as", "traditional_spanish_ci_as", "turkish_ci_as", "ukrainian_ci_as", "vietnamese_ci_as"。</li>
|
|
4617
4471
|
:type DBEngineConfig: str
|
|
4618
|
-
:param _NetworkAccessList:
|
|
4472
|
+
:param _NetworkAccessList: <p>实例网络信息列表(此字段已废弃)</p>
|
|
4619
4473
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4620
4474
|
:type NetworkAccessList: list of NetworkAccess
|
|
4621
|
-
:param _SupportIpv6:
|
|
4622
|
-
<li>0:否</li>
|
|
4623
|
-
<li>1:是</li>
|
|
4624
|
-
默认值:0
|
|
4475
|
+
:param _SupportIpv6: <p>实例是否支持Ipv6:</p><li>0:否</li><li>1:是</li>默认值:0
|
|
4625
4476
|
:type SupportIpv6: int
|
|
4626
|
-
:param _ExpandedCpu:
|
|
4477
|
+
:param _ExpandedCpu: <p>实例已经弹性扩容的cpu核数</p>
|
|
4627
4478
|
:type ExpandedCpu: int
|
|
4628
|
-
:param _DeletionProtection:
|
|
4629
|
-
- true:开启删除保护
|
|
4630
|
-
- false:关闭删除保护
|
|
4479
|
+
:param _DeletionProtection: <p>实例是否开启删除保护,取值如下:</p><ul><li>true:开启删除保护</li><li>false:关闭删除保护</li></ul>
|
|
4631
4480
|
:type DeletionProtection: bool
|
|
4481
|
+
:param _DBInstanceStorageType: <p>实例存储类型,可选值:PHYSICAL_LOCAL_SSD:物理机本地ssd硬盘 CLOUD_PREMIUM:高性能云硬盘 CLOUD_SSD:ssd云硬盘 CLOUD_HSSD:增强型ssd云硬盘</p>
|
|
4482
|
+
:type DBInstanceStorageType: str
|
|
4632
4483
|
"""
|
|
4633
4484
|
self._Region = None
|
|
4634
4485
|
self._Zone = None
|
|
@@ -4671,10 +4522,11 @@ mssql_compatible引擎:
|
|
|
4671
4522
|
self._SupportIpv6 = None
|
|
4672
4523
|
self._ExpandedCpu = None
|
|
4673
4524
|
self._DeletionProtection = None
|
|
4525
|
+
self._DBInstanceStorageType = None
|
|
4674
4526
|
|
|
4675
4527
|
@property
|
|
4676
4528
|
def Region(self):
|
|
4677
|
-
r"""
|
|
4529
|
+
r"""<p>实例所属地域,如: ap-guangzhou,对应RegionSet的Region字段。</p>
|
|
4678
4530
|
:rtype: str
|
|
4679
4531
|
"""
|
|
4680
4532
|
return self._Region
|
|
@@ -4685,7 +4537,7 @@ mssql_compatible引擎:
|
|
|
4685
4537
|
|
|
4686
4538
|
@property
|
|
4687
4539
|
def Zone(self):
|
|
4688
|
-
r"""
|
|
4540
|
+
r"""<p>实例所属可用区, 如:ap-guangzhou-3,对应ZoneSet的Zone字段。</p>
|
|
4689
4541
|
:rtype: str
|
|
4690
4542
|
"""
|
|
4691
4543
|
return self._Zone
|
|
@@ -4696,7 +4548,7 @@ mssql_compatible引擎:
|
|
|
4696
4548
|
|
|
4697
4549
|
@property
|
|
4698
4550
|
def VpcId(self):
|
|
4699
|
-
r"""
|
|
4551
|
+
r"""<p>私有网络ID,形如vpc-e6w23k31。有效的VpcId可通过登录控制台查询;也可以调用接口 <a href="https://cloud.tencent.com/document/api/215/15778">DescribeVpcs</a> ,从接口返回中的unVpcId字段获取。</p>
|
|
4700
4552
|
:rtype: str
|
|
4701
4553
|
"""
|
|
4702
4554
|
return self._VpcId
|
|
@@ -4707,7 +4559,7 @@ mssql_compatible引擎:
|
|
|
4707
4559
|
|
|
4708
4560
|
@property
|
|
4709
4561
|
def SubnetId(self):
|
|
4710
|
-
r"""
|
|
4562
|
+
r"""<p>私有网络子网ID,形如subnet-51lcif9y。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 <a href="https://cloud.tencent.com/document/api/215/15784">DescribeSubnets </a>,从接口返回中的unSubnetId字段获取。</p>
|
|
4711
4563
|
:rtype: str
|
|
4712
4564
|
"""
|
|
4713
4565
|
return self._SubnetId
|
|
@@ -4718,7 +4570,7 @@ mssql_compatible引擎:
|
|
|
4718
4570
|
|
|
4719
4571
|
@property
|
|
4720
4572
|
def DBInstanceId(self):
|
|
4721
|
-
r"""
|
|
4573
|
+
r"""<p>实例ID。</p>
|
|
4722
4574
|
:rtype: str
|
|
4723
4575
|
"""
|
|
4724
4576
|
return self._DBInstanceId
|
|
@@ -4729,7 +4581,7 @@ mssql_compatible引擎:
|
|
|
4729
4581
|
|
|
4730
4582
|
@property
|
|
4731
4583
|
def DBInstanceName(self):
|
|
4732
|
-
r"""
|
|
4584
|
+
r"""<p>实例名称。</p>
|
|
4733
4585
|
:rtype: str
|
|
4734
4586
|
"""
|
|
4735
4587
|
return self._DBInstanceName
|
|
@@ -4740,7 +4592,7 @@ mssql_compatible引擎:
|
|
|
4740
4592
|
|
|
4741
4593
|
@property
|
|
4742
4594
|
def DBInstanceStatus(self):
|
|
4743
|
-
r"""
|
|
4595
|
+
r"""<p>实例状态,分别为:applying(申请中)、init(待初始化)、initing(初始化中)、running(运行中)、limited run(受限运行)、isolating(隔离中)、isolated(已隔离)、disisolating(解隔离中)、recycling(回收中)、recycled(已回收)、job running(任务执行中)、offline(下线)、migrating(迁移中)、expanding(扩容中)、waitSwitch(等待切换)、switching(切换中)、readonly(只读)、restarting(重启中)、network changing(网络变更中)、upgrading(内核版本升级中)、audit-switching(审计状态变更中)、primary-switching(主备切换中)、offlining(下线中)、deployment changing(可用区变更中)、cloning(恢复数据中)、parameter modifying(参数修改中)、log-switching(日志状态变更中)、restoring(恢复中)、expanding(变配中)</p>
|
|
4744
4596
|
:rtype: str
|
|
4745
4597
|
"""
|
|
4746
4598
|
return self._DBInstanceStatus
|
|
@@ -4751,7 +4603,7 @@ mssql_compatible引擎:
|
|
|
4751
4603
|
|
|
4752
4604
|
@property
|
|
4753
4605
|
def DBInstanceMemory(self):
|
|
4754
|
-
r"""
|
|
4606
|
+
r"""<p>实例分配的内存大小,单位:GB</p>
|
|
4755
4607
|
:rtype: int
|
|
4756
4608
|
"""
|
|
4757
4609
|
return self._DBInstanceMemory
|
|
@@ -4762,7 +4614,7 @@ mssql_compatible引擎:
|
|
|
4762
4614
|
|
|
4763
4615
|
@property
|
|
4764
4616
|
def DBInstanceStorage(self):
|
|
4765
|
-
r"""
|
|
4617
|
+
r"""<p>实例分配的存储空间大小,单位:GB</p>
|
|
4766
4618
|
:rtype: int
|
|
4767
4619
|
"""
|
|
4768
4620
|
return self._DBInstanceStorage
|
|
@@ -4773,7 +4625,7 @@ mssql_compatible引擎:
|
|
|
4773
4625
|
|
|
4774
4626
|
@property
|
|
4775
4627
|
def DBInstanceCpu(self):
|
|
4776
|
-
r"""
|
|
4628
|
+
r"""<p>实例分配的CPU数量,单位:个</p>
|
|
4777
4629
|
:rtype: int
|
|
4778
4630
|
"""
|
|
4779
4631
|
return self._DBInstanceCpu
|
|
@@ -4784,7 +4636,7 @@ mssql_compatible引擎:
|
|
|
4784
4636
|
|
|
4785
4637
|
@property
|
|
4786
4638
|
def DBInstanceClass(self):
|
|
4787
|
-
r"""
|
|
4639
|
+
r"""<p>售卖规格ID</p>
|
|
4788
4640
|
:rtype: str
|
|
4789
4641
|
"""
|
|
4790
4642
|
return self._DBInstanceClass
|
|
@@ -4795,7 +4647,7 @@ mssql_compatible引擎:
|
|
|
4795
4647
|
|
|
4796
4648
|
@property
|
|
4797
4649
|
def DBMajorVersion(self):
|
|
4798
|
-
r"""PostgreSQL
|
|
4650
|
+
r"""<p>PostgreSQL大版本号,版本信息可从<a href="https://cloud.tencent.com/document/api/409/89018">DescribeDBVersions</a>获取,目前支持10,11,12,13,14,15这几个大版本。</p>
|
|
4799
4651
|
:rtype: str
|
|
4800
4652
|
"""
|
|
4801
4653
|
return self._DBMajorVersion
|
|
@@ -4806,7 +4658,7 @@ mssql_compatible引擎:
|
|
|
4806
4658
|
|
|
4807
4659
|
@property
|
|
4808
4660
|
def DBVersion(self):
|
|
4809
|
-
r"""PostgreSQL社区大版本+小版本号,如12.4
|
|
4661
|
+
r"""<p>PostgreSQL社区大版本+小版本号,如12.4,版本信息可从<a href="https://cloud.tencent.com/document/api/409/89018">DescribeDBVersions</a>获取。</p>
|
|
4810
4662
|
:rtype: str
|
|
4811
4663
|
"""
|
|
4812
4664
|
return self._DBVersion
|
|
@@ -4817,7 +4669,7 @@ mssql_compatible引擎:
|
|
|
4817
4669
|
|
|
4818
4670
|
@property
|
|
4819
4671
|
def DBKernelVersion(self):
|
|
4820
|
-
r"""PostgreSQL内核版本号,如v12.7_r1.8
|
|
4672
|
+
r"""<p>PostgreSQL内核版本号,如v12.7_r1.8,版本信息可从<a href="https://cloud.tencent.com/document/api/409/89018">DescribeDBVersions</a>获取。</p>
|
|
4821
4673
|
:rtype: str
|
|
4822
4674
|
"""
|
|
4823
4675
|
return self._DBKernelVersion
|
|
@@ -4828,11 +4680,7 @@ mssql_compatible引擎:
|
|
|
4828
4680
|
|
|
4829
4681
|
@property
|
|
4830
4682
|
def DBInstanceType(self):
|
|
4831
|
-
r"""
|
|
4832
|
-
<li>primary:主实例</li>
|
|
4833
|
-
<li>readonly:只读实例</li>
|
|
4834
|
-
<li>guard:灾备实例</li>
|
|
4835
|
-
<li>temp:临时实例</li>
|
|
4683
|
+
r"""<p>实例类型,类型有:</p><li>primary:主实例</li><li>readonly:只读实例</li><li>guard:灾备实例</li><li>temp:临时实例</li>
|
|
4836
4684
|
:rtype: str
|
|
4837
4685
|
"""
|
|
4838
4686
|
return self._DBInstanceType
|
|
@@ -4843,7 +4691,7 @@ mssql_compatible引擎:
|
|
|
4843
4691
|
|
|
4844
4692
|
@property
|
|
4845
4693
|
def DBInstanceVersion(self):
|
|
4846
|
-
r"""
|
|
4694
|
+
r"""<p>实例版本,目前只支持standard(双机高可用版, 一主一从)。</p>
|
|
4847
4695
|
:rtype: str
|
|
4848
4696
|
"""
|
|
4849
4697
|
return self._DBInstanceVersion
|
|
@@ -4854,9 +4702,7 @@ mssql_compatible引擎:
|
|
|
4854
4702
|
|
|
4855
4703
|
@property
|
|
4856
4704
|
def DBCharset(self):
|
|
4857
|
-
r"""
|
|
4858
|
-
<li> UTF8</li>
|
|
4859
|
-
<li> LATIN1</li>
|
|
4705
|
+
r"""<p>实例字符集,目前只支持:</p><li> UTF8</li><li> LATIN1</li>
|
|
4860
4706
|
:rtype: str
|
|
4861
4707
|
"""
|
|
4862
4708
|
return self._DBCharset
|
|
@@ -4867,7 +4713,7 @@ mssql_compatible引擎:
|
|
|
4867
4713
|
|
|
4868
4714
|
@property
|
|
4869
4715
|
def CreateTime(self):
|
|
4870
|
-
r"""
|
|
4716
|
+
r"""<p>实例创建时间。</p>
|
|
4871
4717
|
:rtype: str
|
|
4872
4718
|
"""
|
|
4873
4719
|
return self._CreateTime
|
|
@@ -4878,7 +4724,7 @@ mssql_compatible引擎:
|
|
|
4878
4724
|
|
|
4879
4725
|
@property
|
|
4880
4726
|
def UpdateTime(self):
|
|
4881
|
-
r"""
|
|
4727
|
+
r"""<p>实例执行最后一次更新的时间。</p>
|
|
4882
4728
|
:rtype: str
|
|
4883
4729
|
"""
|
|
4884
4730
|
return self._UpdateTime
|
|
@@ -4889,7 +4735,7 @@ mssql_compatible引擎:
|
|
|
4889
4735
|
|
|
4890
4736
|
@property
|
|
4891
4737
|
def ExpireTime(self):
|
|
4892
|
-
r"""
|
|
4738
|
+
r"""<p>实例到期时间。</p>
|
|
4893
4739
|
:rtype: str
|
|
4894
4740
|
"""
|
|
4895
4741
|
return self._ExpireTime
|
|
@@ -4900,7 +4746,7 @@ mssql_compatible引擎:
|
|
|
4900
4746
|
|
|
4901
4747
|
@property
|
|
4902
4748
|
def IsolatedTime(self):
|
|
4903
|
-
r"""
|
|
4749
|
+
r"""<p>实例隔离时间。</p>
|
|
4904
4750
|
:rtype: str
|
|
4905
4751
|
"""
|
|
4906
4752
|
return self._IsolatedTime
|
|
@@ -4911,9 +4757,7 @@ mssql_compatible引擎:
|
|
|
4911
4757
|
|
|
4912
4758
|
@property
|
|
4913
4759
|
def PayType(self):
|
|
4914
|
-
r"""
|
|
4915
|
-
<li>prepaid:包年包月,预付费</li>
|
|
4916
|
-
<li>postpaid:按量计费,后付费</li>
|
|
4760
|
+
r"""<p>计费模式:</p><li>prepaid:包年包月,预付费</li><li>postpaid:按量计费,后付费</li>
|
|
4917
4761
|
:rtype: str
|
|
4918
4762
|
"""
|
|
4919
4763
|
return self._PayType
|
|
@@ -4924,10 +4768,7 @@ mssql_compatible引擎:
|
|
|
4924
4768
|
|
|
4925
4769
|
@property
|
|
4926
4770
|
def AutoRenew(self):
|
|
4927
|
-
r"""
|
|
4928
|
-
<li>0:手动续费</li>
|
|
4929
|
-
<li>1:自动续费</li>
|
|
4930
|
-
默认值:0
|
|
4771
|
+
r"""<p>是否自动续费:</p><li>0:手动续费</li><li>1:自动续费</li>默认值:0
|
|
4931
4772
|
:rtype: int
|
|
4932
4773
|
"""
|
|
4933
4774
|
return self._AutoRenew
|
|
@@ -4938,7 +4779,7 @@ mssql_compatible引擎:
|
|
|
4938
4779
|
|
|
4939
4780
|
@property
|
|
4940
4781
|
def DBInstanceNetInfo(self):
|
|
4941
|
-
r"""
|
|
4782
|
+
r"""<p>实例网络连接信息。</p>
|
|
4942
4783
|
:rtype: list of DBInstanceNetInfo
|
|
4943
4784
|
"""
|
|
4944
4785
|
return self._DBInstanceNetInfo
|
|
@@ -4949,7 +4790,7 @@ mssql_compatible引擎:
|
|
|
4949
4790
|
|
|
4950
4791
|
@property
|
|
4951
4792
|
def Type(self):
|
|
4952
|
-
r"""
|
|
4793
|
+
r"""<p>机器类型。</p>
|
|
4953
4794
|
:rtype: str
|
|
4954
4795
|
"""
|
|
4955
4796
|
return self._Type
|
|
@@ -4960,7 +4801,7 @@ mssql_compatible引擎:
|
|
|
4960
4801
|
|
|
4961
4802
|
@property
|
|
4962
4803
|
def AppId(self):
|
|
4963
|
-
r"""
|
|
4804
|
+
r"""<p>用户的AppId。</p>
|
|
4964
4805
|
:rtype: int
|
|
4965
4806
|
"""
|
|
4966
4807
|
return self._AppId
|
|
@@ -4971,7 +4812,7 @@ mssql_compatible引擎:
|
|
|
4971
4812
|
|
|
4972
4813
|
@property
|
|
4973
4814
|
def Uid(self):
|
|
4974
|
-
r"""
|
|
4815
|
+
r"""<p>实例的Uid。</p>
|
|
4975
4816
|
:rtype: int
|
|
4976
4817
|
"""
|
|
4977
4818
|
return self._Uid
|
|
@@ -4982,7 +4823,7 @@ mssql_compatible引擎:
|
|
|
4982
4823
|
|
|
4983
4824
|
@property
|
|
4984
4825
|
def ProjectId(self):
|
|
4985
|
-
r"""
|
|
4826
|
+
r"""<p>项目ID。</p>
|
|
4986
4827
|
:rtype: int
|
|
4987
4828
|
"""
|
|
4988
4829
|
return self._ProjectId
|
|
@@ -4993,7 +4834,7 @@ mssql_compatible引擎:
|
|
|
4993
4834
|
|
|
4994
4835
|
@property
|
|
4995
4836
|
def TagList(self):
|
|
4996
|
-
r"""
|
|
4837
|
+
r"""<p>实例绑定的标签信息。</p>
|
|
4997
4838
|
:rtype: list of Tag
|
|
4998
4839
|
"""
|
|
4999
4840
|
return self._TagList
|
|
@@ -5004,7 +4845,7 @@ mssql_compatible引擎:
|
|
|
5004
4845
|
|
|
5005
4846
|
@property
|
|
5006
4847
|
def MasterDBInstanceId(self):
|
|
5007
|
-
r"""
|
|
4848
|
+
r"""<p>主实例信息,仅在实例为只读实例时返回。</p>
|
|
5008
4849
|
:rtype: str
|
|
5009
4850
|
"""
|
|
5010
4851
|
return self._MasterDBInstanceId
|
|
@@ -5015,7 +4856,7 @@ mssql_compatible引擎:
|
|
|
5015
4856
|
|
|
5016
4857
|
@property
|
|
5017
4858
|
def ReadOnlyInstanceNum(self):
|
|
5018
|
-
r"""
|
|
4859
|
+
r"""<p>只读实例数量。</p>
|
|
5019
4860
|
:rtype: int
|
|
5020
4861
|
"""
|
|
5021
4862
|
return self._ReadOnlyInstanceNum
|
|
@@ -5026,7 +4867,7 @@ mssql_compatible引擎:
|
|
|
5026
4867
|
|
|
5027
4868
|
@property
|
|
5028
4869
|
def StatusInReadonlyGroup(self):
|
|
5029
|
-
r"""
|
|
4870
|
+
r"""<p>只读实例在只读组中的状态。</p>
|
|
5030
4871
|
:rtype: str
|
|
5031
4872
|
"""
|
|
5032
4873
|
return self._StatusInReadonlyGroup
|
|
@@ -5037,7 +4878,7 @@ mssql_compatible引擎:
|
|
|
5037
4878
|
|
|
5038
4879
|
@property
|
|
5039
4880
|
def OfflineTime(self):
|
|
5040
|
-
r"""
|
|
4881
|
+
r"""<p>下线时间。</p>
|
|
5041
4882
|
:rtype: str
|
|
5042
4883
|
"""
|
|
5043
4884
|
return self._OfflineTime
|
|
@@ -5048,7 +4889,7 @@ mssql_compatible引擎:
|
|
|
5048
4889
|
|
|
5049
4890
|
@property
|
|
5050
4891
|
def DBNodeSet(self):
|
|
5051
|
-
r"""
|
|
4892
|
+
r"""<p>实例的节点信息。</p>
|
|
5052
4893
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5053
4894
|
:rtype: list of DBNode
|
|
5054
4895
|
"""
|
|
@@ -5060,11 +4901,7 @@ mssql_compatible引擎:
|
|
|
5060
4901
|
|
|
5061
4902
|
@property
|
|
5062
4903
|
def IsSupportTDE(self):
|
|
5063
|
-
r"""
|
|
5064
|
-
<li>0:不支持</li>
|
|
5065
|
-
<li>1:支持</li>
|
|
5066
|
-
默认值:0
|
|
5067
|
-
TDE数据加密可参考[数据透明加密概述](https://cloud.tencent.com/document/product/409/71748)
|
|
4904
|
+
r"""<p>实例是否支持TDE数据加密:</p><li>0:不支持</li><li>1:支持</li>默认值:0TDE数据加密可参考[数据透明加密概述](https://cloud.tencent.com/document/product/409/71748)
|
|
5068
4905
|
:rtype: int
|
|
5069
4906
|
"""
|
|
5070
4907
|
return self._IsSupportTDE
|
|
@@ -5075,10 +4912,7 @@ TDE数据加密可参考[数据透明加密概述](https://cloud.tencent.com/doc
|
|
|
5075
4912
|
|
|
5076
4913
|
@property
|
|
5077
4914
|
def DBEngine(self):
|
|
5078
|
-
r"""
|
|
5079
|
-
<li>postgresql:云数据库PostgreSQL</li>
|
|
5080
|
-
<li>mssql_compatible:MSSQL兼容-云数据库PostgreSQL</li>
|
|
5081
|
-
默认值:postgresql
|
|
4915
|
+
r"""<p>数据库引擎,支持:</p><li>postgresql:云数据库PostgreSQL</li><li>mssql_compatible:MSSQL兼容-云数据库PostgreSQL</li>默认值:postgresql
|
|
5082
4916
|
:rtype: str
|
|
5083
4917
|
"""
|
|
5084
4918
|
return self._DBEngine
|
|
@@ -5089,14 +4923,7 @@ TDE数据加密可参考[数据透明加密概述](https://cloud.tencent.com/doc
|
|
|
5089
4923
|
|
|
5090
4924
|
@property
|
|
5091
4925
|
def DBEngineConfig(self):
|
|
5092
|
-
r"""
|
|
5093
|
-
{"$key1":"$value1", "$key2":"$value2"}
|
|
5094
|
-
各引擎支持如下:
|
|
5095
|
-
mssql_compatible引擎:
|
|
5096
|
-
<li>migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db。</li>
|
|
5097
|
-
<li>defaultLocale:排序区域规则,可选参数,在初始化后不可修改,默认为en_US,可选值如下:
|
|
5098
|
-
"af_ZA", "sq_AL", "ar_DZ", "ar_BH", "ar_EG", "ar_IQ", "ar_JO", "ar_KW", "ar_LB", "ar_LY", "ar_MA", "ar_OM", "ar_QA", "ar_SA", "ar_SY", "ar_TN", "ar_AE", "ar_YE", "hy_AM", "az_Cyrl_AZ", "az_Latn_AZ", "eu_ES", "be_BY", "bg_BG", "ca_ES", "zh_HK", "zh_MO", "zh_CN", "zh_SG", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_BZ", "en_CA", "en_IE", "en_JM", "en_NZ", "en_PH", "en_ZA", "en_TT", "en_GB", "en_US", "en_ZW", "et_EE", "fo_FO", "fa_IR", "fi_FI", "fr_BE", "fr_CA", "fr_FR", "fr_LU", "fr_MC", "fr_CH", "mk_MK", "ka_GE", "de_AT", "de_DE", "de_LI", "de_LU", "de_CH", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "is_IS", "id_ID", "it_IT", "it_CH", "ja_JP", "kn_IN", "kok_IN", "ko_KR", "ky_KG", "lv_LV", "lt_LT", "ms_BN", "ms_MY", "mr_IN", "mn_MN", "nb_NO", "nn_NO", "pl_PL", "pt_BR", "pt_PT", "pa_IN", "ro_RO", "ru_RU", "sa_IN", "sr_Cyrl_RS", "sr_Latn_RS", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_SV", "es_GT", "es_HN", "es_MX", "es_NI", "es_PA", "es_PY","es_PE", "es_PR", "es_ES", "es_TRADITIONAL", "es_UY", "es_VE", "sw_KE", "sv_FI", "sv_SE", "tt_RU", "te_IN", "th_TH", "tr_TR", "uk_UA", "ur_IN", "ur_PK", "uz_Cyrl_UZ", "uz_Latn_UZ", "vi_VN"。</li>
|
|
5099
|
-
<li>serverCollationName:排序规则名称,可选参数,在初始化后不可修改,默认为sql_latin1_general_cp1_ci_as,可选值如下:"bbf_unicode_general_ci_as", "bbf_unicode_cp1_ci_as", "bbf_unicode_CP1250_ci_as", "bbf_unicode_CP1251_ci_as", "bbf_unicode_cp1253_ci_as", "bbf_unicode_cp1254_ci_as", "bbf_unicode_cp1255_ci_as", "bbf_unicode_cp1256_ci_as", "bbf_unicode_cp1257_ci_as", "bbf_unicode_cp1258_ci_as", "bbf_unicode_cp874_ci_as", "sql_latin1_general_cp1250_ci_as", "sql_latin1_general_cp1251_ci_as", "sql_latin1_general_cp1_ci_as", "sql_latin1_general_cp1253_ci_as", "sql_latin1_general_cp1254_ci_as", "sql_latin1_general_cp1255_ci_as","sql_latin1_general_cp1256_ci_as", "sql_latin1_general_cp1257_ci_as", "sql_latin1_general_cp1258_ci_as", "chinese_prc_ci_as", "cyrillic_general_ci_as", "finnish_swedish_ci_as", "french_ci_as", "japanese_ci_as", "korean_wansung_ci_as", "latin1_general_ci_as", "modern_spanish_ci_as", "polish_ci_as", "thai_ci_as", "traditional_spanish_ci_as", "turkish_ci_as", "ukrainian_ci_as", "vietnamese_ci_as"。</li>
|
|
4926
|
+
r"""<p>数据库引擎的配置信息,配置格式如下:<br>{"$key1":"$value1", "$key2":"$value2"}<br>各引擎支持如下:<br>mssql_compatible引擎:</p><li>migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db。</li><li>defaultLocale:排序区域规则,可选参数,在初始化后不可修改,默认为en_US,可选值如下:"af_ZA", "sq_AL", "ar_DZ", "ar_BH", "ar_EG", "ar_IQ", "ar_JO", "ar_KW", "ar_LB", "ar_LY", "ar_MA", "ar_OM", "ar_QA", "ar_SA", "ar_SY", "ar_TN", "ar_AE", "ar_YE", "hy_AM", "az_Cyrl_AZ", "az_Latn_AZ", "eu_ES", "be_BY", "bg_BG", "ca_ES", "zh_HK", "zh_MO", "zh_CN", "zh_SG", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_BZ", "en_CA", "en_IE", "en_JM", "en_NZ", "en_PH", "en_ZA", "en_TT", "en_GB", "en_US", "en_ZW", "et_EE", "fo_FO", "fa_IR", "fi_FI", "fr_BE", "fr_CA", "fr_FR", "fr_LU", "fr_MC", "fr_CH", "mk_MK", "ka_GE", "de_AT", "de_DE", "de_LI", "de_LU", "de_CH", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "is_IS", "id_ID", "it_IT", "it_CH", "ja_JP", "kn_IN", "kok_IN", "ko_KR", "ky_KG", "lv_LV", "lt_LT", "ms_BN", "ms_MY", "mr_IN", "mn_MN", "nb_NO", "nn_NO", "pl_PL", "pt_BR", "pt_PT", "pa_IN", "ro_RO", "ru_RU", "sa_IN", "sr_Cyrl_RS", "sr_Latn_RS", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_SV", "es_GT", "es_HN", "es_MX", "es_NI", "es_PA", "es_PY","es_PE", "es_PR", "es_ES", "es_TRADITIONAL", "es_UY", "es_VE", "sw_KE", "sv_FI", "sv_SE", "tt_RU", "te_IN", "th_TH", "tr_TR", "uk_UA", "ur_IN", "ur_PK", "uz_Cyrl_UZ", "uz_Latn_UZ", "vi_VN"。</li><li>serverCollationName:排序规则名称,可选参数,在初始化后不可修改,默认为sql_latin1_general_cp1_ci_as,可选值如下:"bbf_unicode_general_ci_as", "bbf_unicode_cp1_ci_as", "bbf_unicode_CP1250_ci_as", "bbf_unicode_CP1251_ci_as", "bbf_unicode_cp1253_ci_as", "bbf_unicode_cp1254_ci_as", "bbf_unicode_cp1255_ci_as", "bbf_unicode_cp1256_ci_as", "bbf_unicode_cp1257_ci_as", "bbf_unicode_cp1258_ci_as", "bbf_unicode_cp874_ci_as", "sql_latin1_general_cp1250_ci_as", "sql_latin1_general_cp1251_ci_as", "sql_latin1_general_cp1_ci_as", "sql_latin1_general_cp1253_ci_as", "sql_latin1_general_cp1254_ci_as", "sql_latin1_general_cp1255_ci_as","sql_latin1_general_cp1256_ci_as", "sql_latin1_general_cp1257_ci_as", "sql_latin1_general_cp1258_ci_as", "chinese_prc_ci_as", "cyrillic_general_ci_as", "finnish_swedish_ci_as", "french_ci_as", "japanese_ci_as", "korean_wansung_ci_as", "latin1_general_ci_as", "modern_spanish_ci_as", "polish_ci_as", "thai_ci_as", "traditional_spanish_ci_as", "turkish_ci_as", "ukrainian_ci_as", "vietnamese_ci_as"。</li>
|
|
5100
4927
|
:rtype: str
|
|
5101
4928
|
"""
|
|
5102
4929
|
return self._DBEngineConfig
|
|
@@ -5107,7 +4934,7 @@ mssql_compatible引擎:
|
|
|
5107
4934
|
|
|
5108
4935
|
@property
|
|
5109
4936
|
def NetworkAccessList(self):
|
|
5110
|
-
r"""
|
|
4937
|
+
r"""<p>实例网络信息列表(此字段已废弃)</p>
|
|
5111
4938
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5112
4939
|
:rtype: list of NetworkAccess
|
|
5113
4940
|
"""
|
|
@@ -5119,10 +4946,7 @@ mssql_compatible引擎:
|
|
|
5119
4946
|
|
|
5120
4947
|
@property
|
|
5121
4948
|
def SupportIpv6(self):
|
|
5122
|
-
r"""
|
|
5123
|
-
<li>0:否</li>
|
|
5124
|
-
<li>1:是</li>
|
|
5125
|
-
默认值:0
|
|
4949
|
+
r"""<p>实例是否支持Ipv6:</p><li>0:否</li><li>1:是</li>默认值:0
|
|
5126
4950
|
:rtype: int
|
|
5127
4951
|
"""
|
|
5128
4952
|
return self._SupportIpv6
|
|
@@ -5133,7 +4957,7 @@ mssql_compatible引擎:
|
|
|
5133
4957
|
|
|
5134
4958
|
@property
|
|
5135
4959
|
def ExpandedCpu(self):
|
|
5136
|
-
r"""
|
|
4960
|
+
r"""<p>实例已经弹性扩容的cpu核数</p>
|
|
5137
4961
|
:rtype: int
|
|
5138
4962
|
"""
|
|
5139
4963
|
return self._ExpandedCpu
|
|
@@ -5144,9 +4968,7 @@ mssql_compatible引擎:
|
|
|
5144
4968
|
|
|
5145
4969
|
@property
|
|
5146
4970
|
def DeletionProtection(self):
|
|
5147
|
-
r"""
|
|
5148
|
-
- true:开启删除保护
|
|
5149
|
-
- false:关闭删除保护
|
|
4971
|
+
r"""<p>实例是否开启删除保护,取值如下:</p><ul><li>true:开启删除保护</li><li>false:关闭删除保护</li></ul>
|
|
5150
4972
|
:rtype: bool
|
|
5151
4973
|
"""
|
|
5152
4974
|
return self._DeletionProtection
|
|
@@ -5155,6 +4977,17 @@ mssql_compatible引擎:
|
|
|
5155
4977
|
def DeletionProtection(self, DeletionProtection):
|
|
5156
4978
|
self._DeletionProtection = DeletionProtection
|
|
5157
4979
|
|
|
4980
|
+
@property
|
|
4981
|
+
def DBInstanceStorageType(self):
|
|
4982
|
+
r"""<p>实例存储类型,可选值:PHYSICAL_LOCAL_SSD:物理机本地ssd硬盘 CLOUD_PREMIUM:高性能云硬盘 CLOUD_SSD:ssd云硬盘 CLOUD_HSSD:增强型ssd云硬盘</p>
|
|
4983
|
+
:rtype: str
|
|
4984
|
+
"""
|
|
4985
|
+
return self._DBInstanceStorageType
|
|
4986
|
+
|
|
4987
|
+
@DBInstanceStorageType.setter
|
|
4988
|
+
def DBInstanceStorageType(self, DBInstanceStorageType):
|
|
4989
|
+
self._DBInstanceStorageType = DBInstanceStorageType
|
|
4990
|
+
|
|
5158
4991
|
|
|
5159
4992
|
def _deserialize(self, params):
|
|
5160
4993
|
self._Region = params.get("Region")
|
|
@@ -5218,6 +5051,7 @@ mssql_compatible引擎:
|
|
|
5218
5051
|
self._SupportIpv6 = params.get("SupportIpv6")
|
|
5219
5052
|
self._ExpandedCpu = params.get("ExpandedCpu")
|
|
5220
5053
|
self._DeletionProtection = params.get("DeletionProtection")
|
|
5054
|
+
self._DBInstanceStorageType = params.get("DBInstanceStorageType")
|
|
5221
5055
|
memeber_set = set(params.keys())
|
|
5222
5056
|
for name, value in vars(self).items():
|
|
5223
5057
|
property_name = name[1:]
|
|
@@ -7916,22 +7750,23 @@ class DescribeClassesRequest(AbstractModel):
|
|
|
7916
7750
|
|
|
7917
7751
|
def __init__(self):
|
|
7918
7752
|
r"""
|
|
7919
|
-
:param _Zone:
|
|
7753
|
+
:param _Zone: <p>可用区名称。可以通过接口<a href="https://cloud.tencent.com/document/product/409/16769">DescribeZones</a>获取。</p>
|
|
7920
7754
|
:type Zone: str
|
|
7921
|
-
:param _DBEngine:
|
|
7922
|
-
1、postgresql(云数据库PostgreSQL);
|
|
7923
|
-
2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL);
|
|
7755
|
+
:param _DBEngine: <p>数据库引擎,支持:<br>1、postgresql(云数据库PostgreSQL);<br>2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL);</p>
|
|
7924
7756
|
:type DBEngine: str
|
|
7925
|
-
:param _DBMajorVersion:
|
|
7757
|
+
:param _DBMajorVersion: <p>数据库主版本号。例如12,13,可以通过接口<a href="https://cloud.tencent.com/document/product/409/89018">DescribeDBVersions</a>获取。</p>
|
|
7926
7758
|
:type DBMajorVersion: str
|
|
7759
|
+
:param _StorageType: <p>实例存储类型,根据存储类型返回支持的规格。</p><p>枚举值:</p><ul><li>PHYSICAL_LOCAL_SSD: 物理机本地ssd硬盘</li><li>CLOUD_PREMIUM: 高性能云硬盘</li><li>CLOUD_SSD: ssd云硬盘</li><li>CLOUD_HSSD: 增强型ssd云硬盘</li></ul><p>默认值:PHYSICAL_LOCAL_SSD</p>
|
|
7760
|
+
:type StorageType: str
|
|
7927
7761
|
"""
|
|
7928
7762
|
self._Zone = None
|
|
7929
7763
|
self._DBEngine = None
|
|
7930
7764
|
self._DBMajorVersion = None
|
|
7765
|
+
self._StorageType = None
|
|
7931
7766
|
|
|
7932
7767
|
@property
|
|
7933
7768
|
def Zone(self):
|
|
7934
|
-
r"""
|
|
7769
|
+
r"""<p>可用区名称。可以通过接口<a href="https://cloud.tencent.com/document/product/409/16769">DescribeZones</a>获取。</p>
|
|
7935
7770
|
:rtype: str
|
|
7936
7771
|
"""
|
|
7937
7772
|
return self._Zone
|
|
@@ -7942,9 +7777,7 @@ class DescribeClassesRequest(AbstractModel):
|
|
|
7942
7777
|
|
|
7943
7778
|
@property
|
|
7944
7779
|
def DBEngine(self):
|
|
7945
|
-
r"""
|
|
7946
|
-
1、postgresql(云数据库PostgreSQL);
|
|
7947
|
-
2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL);
|
|
7780
|
+
r"""<p>数据库引擎,支持:<br>1、postgresql(云数据库PostgreSQL);<br>2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL);</p>
|
|
7948
7781
|
:rtype: str
|
|
7949
7782
|
"""
|
|
7950
7783
|
return self._DBEngine
|
|
@@ -7955,7 +7788,7 @@ class DescribeClassesRequest(AbstractModel):
|
|
|
7955
7788
|
|
|
7956
7789
|
@property
|
|
7957
7790
|
def DBMajorVersion(self):
|
|
7958
|
-
r"""
|
|
7791
|
+
r"""<p>数据库主版本号。例如12,13,可以通过接口<a href="https://cloud.tencent.com/document/product/409/89018">DescribeDBVersions</a>获取。</p>
|
|
7959
7792
|
:rtype: str
|
|
7960
7793
|
"""
|
|
7961
7794
|
return self._DBMajorVersion
|
|
@@ -7964,11 +7797,23 @@ class DescribeClassesRequest(AbstractModel):
|
|
|
7964
7797
|
def DBMajorVersion(self, DBMajorVersion):
|
|
7965
7798
|
self._DBMajorVersion = DBMajorVersion
|
|
7966
7799
|
|
|
7800
|
+
@property
|
|
7801
|
+
def StorageType(self):
|
|
7802
|
+
r"""<p>实例存储类型,根据存储类型返回支持的规格。</p><p>枚举值:</p><ul><li>PHYSICAL_LOCAL_SSD: 物理机本地ssd硬盘</li><li>CLOUD_PREMIUM: 高性能云硬盘</li><li>CLOUD_SSD: ssd云硬盘</li><li>CLOUD_HSSD: 增强型ssd云硬盘</li></ul><p>默认值:PHYSICAL_LOCAL_SSD</p>
|
|
7803
|
+
:rtype: str
|
|
7804
|
+
"""
|
|
7805
|
+
return self._StorageType
|
|
7806
|
+
|
|
7807
|
+
@StorageType.setter
|
|
7808
|
+
def StorageType(self, StorageType):
|
|
7809
|
+
self._StorageType = StorageType
|
|
7810
|
+
|
|
7967
7811
|
|
|
7968
7812
|
def _deserialize(self, params):
|
|
7969
7813
|
self._Zone = params.get("Zone")
|
|
7970
7814
|
self._DBEngine = params.get("DBEngine")
|
|
7971
7815
|
self._DBMajorVersion = params.get("DBMajorVersion")
|
|
7816
|
+
self._StorageType = params.get("StorageType")
|
|
7972
7817
|
memeber_set = set(params.keys())
|
|
7973
7818
|
for name, value in vars(self).items():
|
|
7974
7819
|
property_name = name[1:]
|
|
@@ -7986,7 +7831,7 @@ class DescribeClassesResponse(AbstractModel):
|
|
|
7986
7831
|
|
|
7987
7832
|
def __init__(self):
|
|
7988
7833
|
r"""
|
|
7989
|
-
:param _ClassInfoSet:
|
|
7834
|
+
:param _ClassInfoSet: <p>数据库规格列表</p>
|
|
7990
7835
|
:type ClassInfoSet: list of ClassInfo
|
|
7991
7836
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7992
7837
|
:type RequestId: str
|
|
@@ -7996,7 +7841,7 @@ class DescribeClassesResponse(AbstractModel):
|
|
|
7996
7841
|
|
|
7997
7842
|
@property
|
|
7998
7843
|
def ClassInfoSet(self):
|
|
7999
|
-
r"""
|
|
7844
|
+
r"""<p>数据库规格列表</p>
|
|
8000
7845
|
:rtype: list of ClassInfo
|
|
8001
7846
|
"""
|
|
8002
7847
|
return self._ClassInfoSet
|
|
@@ -8332,20 +8177,22 @@ class DescribeDBErrlogsRequest(AbstractModel):
|
|
|
8332
8177
|
|
|
8333
8178
|
def __init__(self):
|
|
8334
8179
|
r"""
|
|
8335
|
-
:param _DBInstanceId:
|
|
8180
|
+
:param _DBInstanceId: <p>实例ID。 可通过<a href="https://cloud.tencent.com/document/api/409/16773">DescribeDBInstances</a>接口获取</p>
|
|
8336
8181
|
:type DBInstanceId: str
|
|
8337
|
-
:param _StartTime:
|
|
8182
|
+
:param _StartTime: <p>查询起始时间,形如2018-01-01 00:00:00。日志保留时间默认为7天,起始时间不能超出保留时间范围。</p>
|
|
8338
8183
|
:type StartTime: str
|
|
8339
|
-
:param _EndTime:
|
|
8184
|
+
:param _EndTime: <p>查询结束时间,形如2018-01-01 00:00:00。</p>
|
|
8340
8185
|
:type EndTime: str
|
|
8341
|
-
:param _DatabaseName:
|
|
8186
|
+
:param _DatabaseName: <p>数据库名字。</p>
|
|
8342
8187
|
:type DatabaseName: str
|
|
8343
|
-
:param _SearchKeys:
|
|
8188
|
+
:param _SearchKeys: <p>搜索关键字。</p>
|
|
8344
8189
|
:type SearchKeys: list of str
|
|
8345
|
-
:param _Limit:
|
|
8190
|
+
:param _Limit: <p>每页显示数量,取值范围为1-100。默认值为50。</p>
|
|
8346
8191
|
:type Limit: int
|
|
8347
|
-
:param _Offset:
|
|
8192
|
+
:param _Offset: <p>数据偏移量,从0开始。默认值为0。</p>
|
|
8348
8193
|
:type Offset: int
|
|
8194
|
+
:param _LogFilters: <p>日志过滤条件。格式为 [{Type: "ApplicationName", Compare: "INC", Value: ["123"]}]。</p>
|
|
8195
|
+
:type LogFilters: list of LogFilter
|
|
8349
8196
|
"""
|
|
8350
8197
|
self._DBInstanceId = None
|
|
8351
8198
|
self._StartTime = None
|
|
@@ -8354,10 +8201,11 @@ class DescribeDBErrlogsRequest(AbstractModel):
|
|
|
8354
8201
|
self._SearchKeys = None
|
|
8355
8202
|
self._Limit = None
|
|
8356
8203
|
self._Offset = None
|
|
8204
|
+
self._LogFilters = None
|
|
8357
8205
|
|
|
8358
8206
|
@property
|
|
8359
8207
|
def DBInstanceId(self):
|
|
8360
|
-
r"""
|
|
8208
|
+
r"""<p>实例ID。 可通过<a href="https://cloud.tencent.com/document/api/409/16773">DescribeDBInstances</a>接口获取</p>
|
|
8361
8209
|
:rtype: str
|
|
8362
8210
|
"""
|
|
8363
8211
|
return self._DBInstanceId
|
|
@@ -8368,7 +8216,7 @@ class DescribeDBErrlogsRequest(AbstractModel):
|
|
|
8368
8216
|
|
|
8369
8217
|
@property
|
|
8370
8218
|
def StartTime(self):
|
|
8371
|
-
r"""
|
|
8219
|
+
r"""<p>查询起始时间,形如2018-01-01 00:00:00。日志保留时间默认为7天,起始时间不能超出保留时间范围。</p>
|
|
8372
8220
|
:rtype: str
|
|
8373
8221
|
"""
|
|
8374
8222
|
return self._StartTime
|
|
@@ -8379,7 +8227,7 @@ class DescribeDBErrlogsRequest(AbstractModel):
|
|
|
8379
8227
|
|
|
8380
8228
|
@property
|
|
8381
8229
|
def EndTime(self):
|
|
8382
|
-
r"""
|
|
8230
|
+
r"""<p>查询结束时间,形如2018-01-01 00:00:00。</p>
|
|
8383
8231
|
:rtype: str
|
|
8384
8232
|
"""
|
|
8385
8233
|
return self._EndTime
|
|
@@ -8390,7 +8238,7 @@ class DescribeDBErrlogsRequest(AbstractModel):
|
|
|
8390
8238
|
|
|
8391
8239
|
@property
|
|
8392
8240
|
def DatabaseName(self):
|
|
8393
|
-
r"""
|
|
8241
|
+
r"""<p>数据库名字。</p>
|
|
8394
8242
|
:rtype: str
|
|
8395
8243
|
"""
|
|
8396
8244
|
return self._DatabaseName
|
|
@@ -8401,7 +8249,7 @@ class DescribeDBErrlogsRequest(AbstractModel):
|
|
|
8401
8249
|
|
|
8402
8250
|
@property
|
|
8403
8251
|
def SearchKeys(self):
|
|
8404
|
-
r"""
|
|
8252
|
+
r"""<p>搜索关键字。</p>
|
|
8405
8253
|
:rtype: list of str
|
|
8406
8254
|
"""
|
|
8407
8255
|
return self._SearchKeys
|
|
@@ -8412,7 +8260,7 @@ class DescribeDBErrlogsRequest(AbstractModel):
|
|
|
8412
8260
|
|
|
8413
8261
|
@property
|
|
8414
8262
|
def Limit(self):
|
|
8415
|
-
r"""
|
|
8263
|
+
r"""<p>每页显示数量,取值范围为1-100。默认值为50。</p>
|
|
8416
8264
|
:rtype: int
|
|
8417
8265
|
"""
|
|
8418
8266
|
return self._Limit
|
|
@@ -8423,7 +8271,7 @@ class DescribeDBErrlogsRequest(AbstractModel):
|
|
|
8423
8271
|
|
|
8424
8272
|
@property
|
|
8425
8273
|
def Offset(self):
|
|
8426
|
-
r"""
|
|
8274
|
+
r"""<p>数据偏移量,从0开始。默认值为0。</p>
|
|
8427
8275
|
:rtype: int
|
|
8428
8276
|
"""
|
|
8429
8277
|
return self._Offset
|
|
@@ -8432,6 +8280,17 @@ class DescribeDBErrlogsRequest(AbstractModel):
|
|
|
8432
8280
|
def Offset(self, Offset):
|
|
8433
8281
|
self._Offset = Offset
|
|
8434
8282
|
|
|
8283
|
+
@property
|
|
8284
|
+
def LogFilters(self):
|
|
8285
|
+
r"""<p>日志过滤条件。格式为 [{Type: "ApplicationName", Compare: "INC", Value: ["123"]}]。</p>
|
|
8286
|
+
:rtype: list of LogFilter
|
|
8287
|
+
"""
|
|
8288
|
+
return self._LogFilters
|
|
8289
|
+
|
|
8290
|
+
@LogFilters.setter
|
|
8291
|
+
def LogFilters(self, LogFilters):
|
|
8292
|
+
self._LogFilters = LogFilters
|
|
8293
|
+
|
|
8435
8294
|
|
|
8436
8295
|
def _deserialize(self, params):
|
|
8437
8296
|
self._DBInstanceId = params.get("DBInstanceId")
|
|
@@ -8441,6 +8300,12 @@ class DescribeDBErrlogsRequest(AbstractModel):
|
|
|
8441
8300
|
self._SearchKeys = params.get("SearchKeys")
|
|
8442
8301
|
self._Limit = params.get("Limit")
|
|
8443
8302
|
self._Offset = params.get("Offset")
|
|
8303
|
+
if params.get("LogFilters") is not None:
|
|
8304
|
+
self._LogFilters = []
|
|
8305
|
+
for item in params.get("LogFilters"):
|
|
8306
|
+
obj = LogFilter()
|
|
8307
|
+
obj._deserialize(item)
|
|
8308
|
+
self._LogFilters.append(obj)
|
|
8444
8309
|
memeber_set = set(params.keys())
|
|
8445
8310
|
for name, value in vars(self).items():
|
|
8446
8311
|
property_name = name[1:]
|
|
@@ -8458,9 +8323,9 @@ class DescribeDBErrlogsResponse(AbstractModel):
|
|
|
8458
8323
|
|
|
8459
8324
|
def __init__(self):
|
|
8460
8325
|
r"""
|
|
8461
|
-
:param _TotalCount:
|
|
8326
|
+
:param _TotalCount: <p>查询到的日志数量,最大值为10000条。</p>
|
|
8462
8327
|
:type TotalCount: int
|
|
8463
|
-
:param _Details:
|
|
8328
|
+
:param _Details: <p>错误日志详细信息集合。</p>
|
|
8464
8329
|
:type Details: list of ErrLogDetail
|
|
8465
8330
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8466
8331
|
:type RequestId: str
|
|
@@ -8471,7 +8336,7 @@ class DescribeDBErrlogsResponse(AbstractModel):
|
|
|
8471
8336
|
|
|
8472
8337
|
@property
|
|
8473
8338
|
def TotalCount(self):
|
|
8474
|
-
r"""
|
|
8339
|
+
r"""<p>查询到的日志数量,最大值为10000条。</p>
|
|
8475
8340
|
:rtype: int
|
|
8476
8341
|
"""
|
|
8477
8342
|
return self._TotalCount
|
|
@@ -8482,7 +8347,7 @@ class DescribeDBErrlogsResponse(AbstractModel):
|
|
|
8482
8347
|
|
|
8483
8348
|
@property
|
|
8484
8349
|
def Details(self):
|
|
8485
|
-
r"""
|
|
8350
|
+
r"""<p>错误日志详细信息集合。</p>
|
|
8486
8351
|
:rtype: list of ErrLogDetail
|
|
8487
8352
|
"""
|
|
8488
8353
|
return self._Details
|
|
@@ -9269,6 +9134,36 @@ class DescribeDBVersionsRequest(AbstractModel):
|
|
|
9269
9134
|
|
|
9270
9135
|
"""
|
|
9271
9136
|
|
|
9137
|
+
def __init__(self):
|
|
9138
|
+
r"""
|
|
9139
|
+
:param _StorageType: <p>实例存储类型,根据磁盘类型返回支持的版本</p><p>枚举值:</p><ul><li>PHYSICAL_LOCAL_SSD: 物理机本地ssd硬盘</li><li>CLOUD_PREMIUM: 高性能云硬盘</li><li>CLOUD_SSD: ssd云硬盘</li><li>CLOUD_HSSD: 增强型ssd云硬盘</li></ul><p>默认值:PHYSICAL_LOCAL_SSD</p>
|
|
9140
|
+
:type StorageType: str
|
|
9141
|
+
"""
|
|
9142
|
+
self._StorageType = None
|
|
9143
|
+
|
|
9144
|
+
@property
|
|
9145
|
+
def StorageType(self):
|
|
9146
|
+
r"""<p>实例存储类型,根据磁盘类型返回支持的版本</p><p>枚举值:</p><ul><li>PHYSICAL_LOCAL_SSD: 物理机本地ssd硬盘</li><li>CLOUD_PREMIUM: 高性能云硬盘</li><li>CLOUD_SSD: ssd云硬盘</li><li>CLOUD_HSSD: 增强型ssd云硬盘</li></ul><p>默认值:PHYSICAL_LOCAL_SSD</p>
|
|
9147
|
+
:rtype: str
|
|
9148
|
+
"""
|
|
9149
|
+
return self._StorageType
|
|
9150
|
+
|
|
9151
|
+
@StorageType.setter
|
|
9152
|
+
def StorageType(self, StorageType):
|
|
9153
|
+
self._StorageType = StorageType
|
|
9154
|
+
|
|
9155
|
+
|
|
9156
|
+
def _deserialize(self, params):
|
|
9157
|
+
self._StorageType = params.get("StorageType")
|
|
9158
|
+
memeber_set = set(params.keys())
|
|
9159
|
+
for name, value in vars(self).items():
|
|
9160
|
+
property_name = name[1:]
|
|
9161
|
+
if property_name in memeber_set:
|
|
9162
|
+
memeber_set.remove(property_name)
|
|
9163
|
+
if len(memeber_set) > 0:
|
|
9164
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
9165
|
+
|
|
9166
|
+
|
|
9272
9167
|
|
|
9273
9168
|
class DescribeDBVersionsResponse(AbstractModel):
|
|
9274
9169
|
r"""DescribeDBVersions返回参数结构体
|
|
@@ -9277,7 +9172,7 @@ class DescribeDBVersionsResponse(AbstractModel):
|
|
|
9277
9172
|
|
|
9278
9173
|
def __init__(self):
|
|
9279
9174
|
r"""
|
|
9280
|
-
:param _VersionSet:
|
|
9175
|
+
:param _VersionSet: <p>数据库版本号信息列表</p>
|
|
9281
9176
|
:type VersionSet: list of Version
|
|
9282
9177
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9283
9178
|
:type RequestId: str
|
|
@@ -9287,7 +9182,7 @@ class DescribeDBVersionsResponse(AbstractModel):
|
|
|
9287
9182
|
|
|
9288
9183
|
@property
|
|
9289
9184
|
def VersionSet(self):
|
|
9290
|
-
r"""
|
|
9185
|
+
r"""<p>数据库版本号信息列表</p>
|
|
9291
9186
|
:rtype: list of Version
|
|
9292
9187
|
"""
|
|
9293
9188
|
return self._VersionSet
|
|
@@ -10991,20 +10886,20 @@ class DescribeProductConfigRequest(AbstractModel):
|
|
|
10991
10886
|
|
|
10992
10887
|
def __init__(self):
|
|
10993
10888
|
r"""
|
|
10994
|
-
:param _Zone:
|
|
10889
|
+
:param _Zone: <p>可用区名称</p>
|
|
10995
10890
|
:type Zone: str
|
|
10996
|
-
:param _DBEngine:
|
|
10997
|
-
1、postgresql(云数据库PostgreSQL);
|
|
10998
|
-
2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL);
|
|
10999
|
-
如不指定默认使用postgresql。
|
|
10891
|
+
:param _DBEngine: <p>数据库引擎,支持:<br>1、postgresql(云数据库PostgreSQL);<br>2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL);<br>如不指定默认使用postgresql。</p>
|
|
11000
10892
|
:type DBEngine: str
|
|
10893
|
+
:param _StorageType: <p>实例存储类型,根据存储类型返回支持的版本和规格</p><p>枚举值:</p><ul><li>PHYSICAL_LOCAL_SSD: 物理机本地ssd硬盘</li><li>CLOUD_PREMIUM: 高性能云硬盘</li><li>CLOUD_SSD: ssd云硬盘</li><li>CLOUD_HSSD: 增强型ssd云硬盘</li></ul><p>默认值:PHYSICAL_LOCAL_SSD</p>
|
|
10894
|
+
:type StorageType: str
|
|
11001
10895
|
"""
|
|
11002
10896
|
self._Zone = None
|
|
11003
10897
|
self._DBEngine = None
|
|
10898
|
+
self._StorageType = None
|
|
11004
10899
|
|
|
11005
10900
|
@property
|
|
11006
10901
|
def Zone(self):
|
|
11007
|
-
r"""
|
|
10902
|
+
r"""<p>可用区名称</p>
|
|
11008
10903
|
:rtype: str
|
|
11009
10904
|
"""
|
|
11010
10905
|
return self._Zone
|
|
@@ -11015,10 +10910,7 @@ class DescribeProductConfigRequest(AbstractModel):
|
|
|
11015
10910
|
|
|
11016
10911
|
@property
|
|
11017
10912
|
def DBEngine(self):
|
|
11018
|
-
r"""
|
|
11019
|
-
1、postgresql(云数据库PostgreSQL);
|
|
11020
|
-
2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL);
|
|
11021
|
-
如不指定默认使用postgresql。
|
|
10913
|
+
r"""<p>数据库引擎,支持:<br>1、postgresql(云数据库PostgreSQL);<br>2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL);<br>如不指定默认使用postgresql。</p>
|
|
11022
10914
|
:rtype: str
|
|
11023
10915
|
"""
|
|
11024
10916
|
return self._DBEngine
|
|
@@ -11027,10 +10919,22 @@ class DescribeProductConfigRequest(AbstractModel):
|
|
|
11027
10919
|
def DBEngine(self, DBEngine):
|
|
11028
10920
|
self._DBEngine = DBEngine
|
|
11029
10921
|
|
|
10922
|
+
@property
|
|
10923
|
+
def StorageType(self):
|
|
10924
|
+
r"""<p>实例存储类型,根据存储类型返回支持的版本和规格</p><p>枚举值:</p><ul><li>PHYSICAL_LOCAL_SSD: 物理机本地ssd硬盘</li><li>CLOUD_PREMIUM: 高性能云硬盘</li><li>CLOUD_SSD: ssd云硬盘</li><li>CLOUD_HSSD: 增强型ssd云硬盘</li></ul><p>默认值:PHYSICAL_LOCAL_SSD</p>
|
|
10925
|
+
:rtype: str
|
|
10926
|
+
"""
|
|
10927
|
+
return self._StorageType
|
|
10928
|
+
|
|
10929
|
+
@StorageType.setter
|
|
10930
|
+
def StorageType(self, StorageType):
|
|
10931
|
+
self._StorageType = StorageType
|
|
10932
|
+
|
|
11030
10933
|
|
|
11031
10934
|
def _deserialize(self, params):
|
|
11032
10935
|
self._Zone = params.get("Zone")
|
|
11033
10936
|
self._DBEngine = params.get("DBEngine")
|
|
10937
|
+
self._StorageType = params.get("StorageType")
|
|
11034
10938
|
memeber_set = set(params.keys())
|
|
11035
10939
|
for name, value in vars(self).items():
|
|
11036
10940
|
property_name = name[1:]
|
|
@@ -11048,7 +10952,7 @@ class DescribeProductConfigResponse(AbstractModel):
|
|
|
11048
10952
|
|
|
11049
10953
|
def __init__(self):
|
|
11050
10954
|
r"""
|
|
11051
|
-
:param _SpecInfoList:
|
|
10955
|
+
:param _SpecInfoList: <p>售卖规格列表。</p>
|
|
11052
10956
|
:type SpecInfoList: list of SpecInfo
|
|
11053
10957
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11054
10958
|
:type RequestId: str
|
|
@@ -11058,7 +10962,7 @@ class DescribeProductConfigResponse(AbstractModel):
|
|
|
11058
10962
|
|
|
11059
10963
|
@property
|
|
11060
10964
|
def SpecInfoList(self):
|
|
11061
|
-
r"""
|
|
10965
|
+
r"""<p>售卖规格列表。</p>
|
|
11062
10966
|
:rtype: list of SpecInfo
|
|
11063
10967
|
"""
|
|
11064
10968
|
return self._SpecInfoList
|
|
@@ -12449,23 +12353,51 @@ class ErrLogDetail(AbstractModel):
|
|
|
12449
12353
|
|
|
12450
12354
|
def __init__(self):
|
|
12451
12355
|
r"""
|
|
12452
|
-
:param _UserName:
|
|
12356
|
+
:param _UserName: <p>用户名</p>
|
|
12453
12357
|
:type UserName: str
|
|
12454
|
-
:param _Database:
|
|
12358
|
+
:param _Database: <p>数据库名字</p>
|
|
12455
12359
|
:type Database: str
|
|
12456
|
-
:param _ErrTime:
|
|
12360
|
+
:param _ErrTime: <p>错误发生时间</p>
|
|
12457
12361
|
:type ErrTime: str
|
|
12458
|
-
:param _ErrMsg:
|
|
12362
|
+
:param _ErrMsg: <p>错误消息</p>
|
|
12459
12363
|
:type ErrMsg: str
|
|
12364
|
+
:param _ProcessId: <p>进程ID</p>
|
|
12365
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12366
|
+
:type ProcessId: int
|
|
12367
|
+
:param _ClientAddr: <p>客户端地址</p>
|
|
12368
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12369
|
+
:type ClientAddr: str
|
|
12370
|
+
:param _SessionId: <p>会话ID</p>
|
|
12371
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12372
|
+
:type SessionId: str
|
|
12373
|
+
:param _SessionStartTime: <p>会话开始时间</p>
|
|
12374
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12375
|
+
:type SessionStartTime: str
|
|
12376
|
+
:param _VirtualTransactionId: <p>虚拟事务ID</p>
|
|
12377
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12378
|
+
:type VirtualTransactionId: str
|
|
12379
|
+
:param _SqlStateCode: <p>SQLSTATE错误码</p>
|
|
12380
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12381
|
+
:type SqlStateCode: str
|
|
12382
|
+
:param _ApplicationName: <p>客户端应用名称</p>
|
|
12383
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12384
|
+
:type ApplicationName: str
|
|
12460
12385
|
"""
|
|
12461
12386
|
self._UserName = None
|
|
12462
12387
|
self._Database = None
|
|
12463
12388
|
self._ErrTime = None
|
|
12464
12389
|
self._ErrMsg = None
|
|
12390
|
+
self._ProcessId = None
|
|
12391
|
+
self._ClientAddr = None
|
|
12392
|
+
self._SessionId = None
|
|
12393
|
+
self._SessionStartTime = None
|
|
12394
|
+
self._VirtualTransactionId = None
|
|
12395
|
+
self._SqlStateCode = None
|
|
12396
|
+
self._ApplicationName = None
|
|
12465
12397
|
|
|
12466
12398
|
@property
|
|
12467
12399
|
def UserName(self):
|
|
12468
|
-
r"""
|
|
12400
|
+
r"""<p>用户名</p>
|
|
12469
12401
|
:rtype: str
|
|
12470
12402
|
"""
|
|
12471
12403
|
return self._UserName
|
|
@@ -12476,7 +12408,7 @@ class ErrLogDetail(AbstractModel):
|
|
|
12476
12408
|
|
|
12477
12409
|
@property
|
|
12478
12410
|
def Database(self):
|
|
12479
|
-
r"""
|
|
12411
|
+
r"""<p>数据库名字</p>
|
|
12480
12412
|
:rtype: str
|
|
12481
12413
|
"""
|
|
12482
12414
|
return self._Database
|
|
@@ -12487,7 +12419,7 @@ class ErrLogDetail(AbstractModel):
|
|
|
12487
12419
|
|
|
12488
12420
|
@property
|
|
12489
12421
|
def ErrTime(self):
|
|
12490
|
-
r"""
|
|
12422
|
+
r"""<p>错误发生时间</p>
|
|
12491
12423
|
:rtype: str
|
|
12492
12424
|
"""
|
|
12493
12425
|
return self._ErrTime
|
|
@@ -12498,7 +12430,7 @@ class ErrLogDetail(AbstractModel):
|
|
|
12498
12430
|
|
|
12499
12431
|
@property
|
|
12500
12432
|
def ErrMsg(self):
|
|
12501
|
-
r"""
|
|
12433
|
+
r"""<p>错误消息</p>
|
|
12502
12434
|
:rtype: str
|
|
12503
12435
|
"""
|
|
12504
12436
|
return self._ErrMsg
|
|
@@ -12507,12 +12439,103 @@ class ErrLogDetail(AbstractModel):
|
|
|
12507
12439
|
def ErrMsg(self, ErrMsg):
|
|
12508
12440
|
self._ErrMsg = ErrMsg
|
|
12509
12441
|
|
|
12442
|
+
@property
|
|
12443
|
+
def ProcessId(self):
|
|
12444
|
+
r"""<p>进程ID</p>
|
|
12445
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12446
|
+
:rtype: int
|
|
12447
|
+
"""
|
|
12448
|
+
return self._ProcessId
|
|
12449
|
+
|
|
12450
|
+
@ProcessId.setter
|
|
12451
|
+
def ProcessId(self, ProcessId):
|
|
12452
|
+
self._ProcessId = ProcessId
|
|
12453
|
+
|
|
12454
|
+
@property
|
|
12455
|
+
def ClientAddr(self):
|
|
12456
|
+
r"""<p>客户端地址</p>
|
|
12457
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12458
|
+
:rtype: str
|
|
12459
|
+
"""
|
|
12460
|
+
return self._ClientAddr
|
|
12461
|
+
|
|
12462
|
+
@ClientAddr.setter
|
|
12463
|
+
def ClientAddr(self, ClientAddr):
|
|
12464
|
+
self._ClientAddr = ClientAddr
|
|
12465
|
+
|
|
12466
|
+
@property
|
|
12467
|
+
def SessionId(self):
|
|
12468
|
+
r"""<p>会话ID</p>
|
|
12469
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12470
|
+
:rtype: str
|
|
12471
|
+
"""
|
|
12472
|
+
return self._SessionId
|
|
12473
|
+
|
|
12474
|
+
@SessionId.setter
|
|
12475
|
+
def SessionId(self, SessionId):
|
|
12476
|
+
self._SessionId = SessionId
|
|
12477
|
+
|
|
12478
|
+
@property
|
|
12479
|
+
def SessionStartTime(self):
|
|
12480
|
+
r"""<p>会话开始时间</p>
|
|
12481
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12482
|
+
:rtype: str
|
|
12483
|
+
"""
|
|
12484
|
+
return self._SessionStartTime
|
|
12485
|
+
|
|
12486
|
+
@SessionStartTime.setter
|
|
12487
|
+
def SessionStartTime(self, SessionStartTime):
|
|
12488
|
+
self._SessionStartTime = SessionStartTime
|
|
12489
|
+
|
|
12490
|
+
@property
|
|
12491
|
+
def VirtualTransactionId(self):
|
|
12492
|
+
r"""<p>虚拟事务ID</p>
|
|
12493
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12494
|
+
:rtype: str
|
|
12495
|
+
"""
|
|
12496
|
+
return self._VirtualTransactionId
|
|
12497
|
+
|
|
12498
|
+
@VirtualTransactionId.setter
|
|
12499
|
+
def VirtualTransactionId(self, VirtualTransactionId):
|
|
12500
|
+
self._VirtualTransactionId = VirtualTransactionId
|
|
12501
|
+
|
|
12502
|
+
@property
|
|
12503
|
+
def SqlStateCode(self):
|
|
12504
|
+
r"""<p>SQLSTATE错误码</p>
|
|
12505
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12506
|
+
:rtype: str
|
|
12507
|
+
"""
|
|
12508
|
+
return self._SqlStateCode
|
|
12509
|
+
|
|
12510
|
+
@SqlStateCode.setter
|
|
12511
|
+
def SqlStateCode(self, SqlStateCode):
|
|
12512
|
+
self._SqlStateCode = SqlStateCode
|
|
12513
|
+
|
|
12514
|
+
@property
|
|
12515
|
+
def ApplicationName(self):
|
|
12516
|
+
r"""<p>客户端应用名称</p>
|
|
12517
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12518
|
+
:rtype: str
|
|
12519
|
+
"""
|
|
12520
|
+
return self._ApplicationName
|
|
12521
|
+
|
|
12522
|
+
@ApplicationName.setter
|
|
12523
|
+
def ApplicationName(self, ApplicationName):
|
|
12524
|
+
self._ApplicationName = ApplicationName
|
|
12525
|
+
|
|
12510
12526
|
|
|
12511
12527
|
def _deserialize(self, params):
|
|
12512
12528
|
self._UserName = params.get("UserName")
|
|
12513
12529
|
self._Database = params.get("Database")
|
|
12514
12530
|
self._ErrTime = params.get("ErrTime")
|
|
12515
12531
|
self._ErrMsg = params.get("ErrMsg")
|
|
12532
|
+
self._ProcessId = params.get("ProcessId")
|
|
12533
|
+
self._ClientAddr = params.get("ClientAddr")
|
|
12534
|
+
self._SessionId = params.get("SessionId")
|
|
12535
|
+
self._SessionStartTime = params.get("SessionStartTime")
|
|
12536
|
+
self._VirtualTransactionId = params.get("VirtualTransactionId")
|
|
12537
|
+
self._SqlStateCode = params.get("SqlStateCode")
|
|
12538
|
+
self._ApplicationName = params.get("ApplicationName")
|
|
12516
12539
|
memeber_set = set(params.keys())
|
|
12517
12540
|
for name, value in vars(self).items():
|
|
12518
12541
|
property_name = name[1:]
|
|
@@ -12795,29 +12818,26 @@ class InquiryPriceCreateDBInstancesRequest(AbstractModel):
|
|
|
12795
12818
|
|
|
12796
12819
|
def __init__(self):
|
|
12797
12820
|
r"""
|
|
12798
|
-
:param _Zone:
|
|
12821
|
+
:param _Zone: <p>可用区名称。该参数可以通过调用<a href="https://cloud.tencent.com/document/product/409/16769"> DescribeZones</a> 接口的返回值中的Zone字段来获取。</p>
|
|
12799
12822
|
:type Zone: str
|
|
12800
|
-
:param _SpecCode:
|
|
12823
|
+
:param _SpecCode: <p>规格ID。该参数可以通过调用<a href="https://cloud.tencent.com/document/product/409/89019">DescribeClasses</a>接口的返回值中的SpecCode字段来获取。</p>
|
|
12801
12824
|
:type SpecCode: str
|
|
12802
|
-
:param _Storage:
|
|
12825
|
+
:param _Storage: <p>存储容量大小,单位:GB。该参数的设置步长为10。</p>
|
|
12803
12826
|
:type Storage: int
|
|
12804
|
-
:param _InstanceCount:
|
|
12827
|
+
:param _InstanceCount: <p>实例数量。目前最大数量不超过100,如需一次性创建更多实例,请联系客服支持。</p>
|
|
12805
12828
|
:type InstanceCount: int
|
|
12806
|
-
:param _Period:
|
|
12829
|
+
:param _Period: <p>购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值。</p>
|
|
12807
12830
|
:type Period: int
|
|
12808
|
-
:param _Pid:
|
|
12831
|
+
:param _Pid: <p>【弃字段,不再生效】,计费ID。该参数可以通过调用DescribeProductConfig接口的返回值中的Pid字段来获取。</p>
|
|
12809
12832
|
:type Pid: int
|
|
12810
|
-
:param _InstanceChargeType:
|
|
12811
|
-
默认值:PREPAID
|
|
12833
|
+
:param _InstanceChargeType: <p>实例计费类型。目前支持:PREPAID(预付费,即包年包月)和 POSTPAID(按量计费)。<br>默认值:PREPAID</p>
|
|
12812
12834
|
:type InstanceChargeType: str
|
|
12813
|
-
:param _InstanceType:
|
|
12814
|
-
primary(双机高可用(一主一从))
|
|
12815
|
-
readonly(只读实例)
|
|
12835
|
+
:param _InstanceType: <p>实例类型,默认primary,支持如下:<br>primary(双机高可用(一主一从))<br>readonly(只读实例)</p>
|
|
12816
12836
|
:type InstanceType: str
|
|
12817
|
-
:param _DBEngine: DB引擎,默认postgresql
|
|
12818
|
-
postgresql(云数据库PostgreSQL)
|
|
12819
|
-
mssql_compatible(MSSQL兼容-云数据库PostgreSQL)
|
|
12837
|
+
:param _DBEngine: <p>DB引擎,默认postgresql,支持如下:<br>postgresql(云数据库PostgreSQL)<br>mssql_compatible(MSSQL兼容-云数据库PostgreSQL)</p>
|
|
12820
12838
|
:type DBEngine: str
|
|
12839
|
+
:param _StorageType: <p>实例存储类型,可选值:PHYSICAL_LOCAL_SSD:物理机本地ssd硬盘 CLOUD_PREMIUM:高性能云硬盘 CLOUD_SSD:ssd云硬盘 CLOUD_HSSD:增强型ssd云硬盘</p>
|
|
12840
|
+
:type StorageType: str
|
|
12821
12841
|
"""
|
|
12822
12842
|
self._Zone = None
|
|
12823
12843
|
self._SpecCode = None
|
|
@@ -12828,10 +12848,11 @@ mssql_compatible(MSSQL兼容-云数据库PostgreSQL)
|
|
|
12828
12848
|
self._InstanceChargeType = None
|
|
12829
12849
|
self._InstanceType = None
|
|
12830
12850
|
self._DBEngine = None
|
|
12851
|
+
self._StorageType = None
|
|
12831
12852
|
|
|
12832
12853
|
@property
|
|
12833
12854
|
def Zone(self):
|
|
12834
|
-
r"""
|
|
12855
|
+
r"""<p>可用区名称。该参数可以通过调用<a href="https://cloud.tencent.com/document/product/409/16769"> DescribeZones</a> 接口的返回值中的Zone字段来获取。</p>
|
|
12835
12856
|
:rtype: str
|
|
12836
12857
|
"""
|
|
12837
12858
|
return self._Zone
|
|
@@ -12842,7 +12863,7 @@ mssql_compatible(MSSQL兼容-云数据库PostgreSQL)
|
|
|
12842
12863
|
|
|
12843
12864
|
@property
|
|
12844
12865
|
def SpecCode(self):
|
|
12845
|
-
r"""
|
|
12866
|
+
r"""<p>规格ID。该参数可以通过调用<a href="https://cloud.tencent.com/document/product/409/89019">DescribeClasses</a>接口的返回值中的SpecCode字段来获取。</p>
|
|
12846
12867
|
:rtype: str
|
|
12847
12868
|
"""
|
|
12848
12869
|
return self._SpecCode
|
|
@@ -12853,7 +12874,7 @@ mssql_compatible(MSSQL兼容-云数据库PostgreSQL)
|
|
|
12853
12874
|
|
|
12854
12875
|
@property
|
|
12855
12876
|
def Storage(self):
|
|
12856
|
-
r"""
|
|
12877
|
+
r"""<p>存储容量大小,单位:GB。该参数的设置步长为10。</p>
|
|
12857
12878
|
:rtype: int
|
|
12858
12879
|
"""
|
|
12859
12880
|
return self._Storage
|
|
@@ -12864,7 +12885,7 @@ mssql_compatible(MSSQL兼容-云数据库PostgreSQL)
|
|
|
12864
12885
|
|
|
12865
12886
|
@property
|
|
12866
12887
|
def InstanceCount(self):
|
|
12867
|
-
r"""
|
|
12888
|
+
r"""<p>实例数量。目前最大数量不超过100,如需一次性创建更多实例,请联系客服支持。</p>
|
|
12868
12889
|
:rtype: int
|
|
12869
12890
|
"""
|
|
12870
12891
|
return self._InstanceCount
|
|
@@ -12875,7 +12896,7 @@ mssql_compatible(MSSQL兼容-云数据库PostgreSQL)
|
|
|
12875
12896
|
|
|
12876
12897
|
@property
|
|
12877
12898
|
def Period(self):
|
|
12878
|
-
r"""
|
|
12899
|
+
r"""<p>购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值。</p>
|
|
12879
12900
|
:rtype: int
|
|
12880
12901
|
"""
|
|
12881
12902
|
return self._Period
|
|
@@ -12886,7 +12907,7 @@ mssql_compatible(MSSQL兼容-云数据库PostgreSQL)
|
|
|
12886
12907
|
|
|
12887
12908
|
@property
|
|
12888
12909
|
def Pid(self):
|
|
12889
|
-
r"""
|
|
12910
|
+
r"""<p>【弃字段,不再生效】,计费ID。该参数可以通过调用DescribeProductConfig接口的返回值中的Pid字段来获取。</p>
|
|
12890
12911
|
:rtype: int
|
|
12891
12912
|
"""
|
|
12892
12913
|
return self._Pid
|
|
@@ -12897,8 +12918,7 @@ mssql_compatible(MSSQL兼容-云数据库PostgreSQL)
|
|
|
12897
12918
|
|
|
12898
12919
|
@property
|
|
12899
12920
|
def InstanceChargeType(self):
|
|
12900
|
-
r"""
|
|
12901
|
-
默认值:PREPAID
|
|
12921
|
+
r"""<p>实例计费类型。目前支持:PREPAID(预付费,即包年包月)和 POSTPAID(按量计费)。<br>默认值:PREPAID</p>
|
|
12902
12922
|
:rtype: str
|
|
12903
12923
|
"""
|
|
12904
12924
|
return self._InstanceChargeType
|
|
@@ -12909,9 +12929,7 @@ mssql_compatible(MSSQL兼容-云数据库PostgreSQL)
|
|
|
12909
12929
|
|
|
12910
12930
|
@property
|
|
12911
12931
|
def InstanceType(self):
|
|
12912
|
-
r"""
|
|
12913
|
-
primary(双机高可用(一主一从))
|
|
12914
|
-
readonly(只读实例)
|
|
12932
|
+
r"""<p>实例类型,默认primary,支持如下:<br>primary(双机高可用(一主一从))<br>readonly(只读实例)</p>
|
|
12915
12933
|
:rtype: str
|
|
12916
12934
|
"""
|
|
12917
12935
|
return self._InstanceType
|
|
@@ -12922,9 +12940,7 @@ readonly(只读实例)
|
|
|
12922
12940
|
|
|
12923
12941
|
@property
|
|
12924
12942
|
def DBEngine(self):
|
|
12925
|
-
r"""DB引擎,默认postgresql
|
|
12926
|
-
postgresql(云数据库PostgreSQL)
|
|
12927
|
-
mssql_compatible(MSSQL兼容-云数据库PostgreSQL)
|
|
12943
|
+
r"""<p>DB引擎,默认postgresql,支持如下:<br>postgresql(云数据库PostgreSQL)<br>mssql_compatible(MSSQL兼容-云数据库PostgreSQL)</p>
|
|
12928
12944
|
:rtype: str
|
|
12929
12945
|
"""
|
|
12930
12946
|
return self._DBEngine
|
|
@@ -12933,6 +12949,17 @@ mssql_compatible(MSSQL兼容-云数据库PostgreSQL)
|
|
|
12933
12949
|
def DBEngine(self, DBEngine):
|
|
12934
12950
|
self._DBEngine = DBEngine
|
|
12935
12951
|
|
|
12952
|
+
@property
|
|
12953
|
+
def StorageType(self):
|
|
12954
|
+
r"""<p>实例存储类型,可选值:PHYSICAL_LOCAL_SSD:物理机本地ssd硬盘 CLOUD_PREMIUM:高性能云硬盘 CLOUD_SSD:ssd云硬盘 CLOUD_HSSD:增强型ssd云硬盘</p>
|
|
12955
|
+
:rtype: str
|
|
12956
|
+
"""
|
|
12957
|
+
return self._StorageType
|
|
12958
|
+
|
|
12959
|
+
@StorageType.setter
|
|
12960
|
+
def StorageType(self, StorageType):
|
|
12961
|
+
self._StorageType = StorageType
|
|
12962
|
+
|
|
12936
12963
|
|
|
12937
12964
|
def _deserialize(self, params):
|
|
12938
12965
|
self._Zone = params.get("Zone")
|
|
@@ -12944,6 +12971,7 @@ mssql_compatible(MSSQL兼容-云数据库PostgreSQL)
|
|
|
12944
12971
|
self._InstanceChargeType = params.get("InstanceChargeType")
|
|
12945
12972
|
self._InstanceType = params.get("InstanceType")
|
|
12946
12973
|
self._DBEngine = params.get("DBEngine")
|
|
12974
|
+
self._StorageType = params.get("StorageType")
|
|
12947
12975
|
memeber_set = set(params.keys())
|
|
12948
12976
|
for name, value in vars(self).items():
|
|
12949
12977
|
property_name = name[1:]
|
|
@@ -12961,11 +12989,11 @@ class InquiryPriceCreateDBInstancesResponse(AbstractModel):
|
|
|
12961
12989
|
|
|
12962
12990
|
def __init__(self):
|
|
12963
12991
|
r"""
|
|
12964
|
-
:param _OriginalPrice:
|
|
12992
|
+
:param _OriginalPrice: <p>刊例价,单位:分</p>
|
|
12965
12993
|
:type OriginalPrice: int
|
|
12966
|
-
:param _Price:
|
|
12994
|
+
:param _Price: <p>折后实际付款金额,单位:分</p>
|
|
12967
12995
|
:type Price: int
|
|
12968
|
-
:param _Currency:
|
|
12996
|
+
:param _Currency: <p>币种。例如,CNY:人民币。</p>
|
|
12969
12997
|
:type Currency: str
|
|
12970
12998
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12971
12999
|
:type RequestId: str
|
|
@@ -12977,7 +13005,7 @@ class InquiryPriceCreateDBInstancesResponse(AbstractModel):
|
|
|
12977
13005
|
|
|
12978
13006
|
@property
|
|
12979
13007
|
def OriginalPrice(self):
|
|
12980
|
-
r"""
|
|
13008
|
+
r"""<p>刊例价,单位:分</p>
|
|
12981
13009
|
:rtype: int
|
|
12982
13010
|
"""
|
|
12983
13011
|
return self._OriginalPrice
|
|
@@ -12988,7 +13016,7 @@ class InquiryPriceCreateDBInstancesResponse(AbstractModel):
|
|
|
12988
13016
|
|
|
12989
13017
|
@property
|
|
12990
13018
|
def Price(self):
|
|
12991
|
-
r"""
|
|
13019
|
+
r"""<p>折后实际付款金额,单位:分</p>
|
|
12992
13020
|
:rtype: int
|
|
12993
13021
|
"""
|
|
12994
13022
|
return self._Price
|
|
@@ -12999,7 +13027,7 @@ class InquiryPriceCreateDBInstancesResponse(AbstractModel):
|
|
|
12999
13027
|
|
|
13000
13028
|
@property
|
|
13001
13029
|
def Currency(self):
|
|
13002
|
-
r"""
|
|
13030
|
+
r"""<p>币种。例如,CNY:人民币。</p>
|
|
13003
13031
|
:rtype: str
|
|
13004
13032
|
"""
|
|
13005
13033
|
return self._Currency
|
|
@@ -13642,6 +13670,72 @@ class LogBackup(AbstractModel):
|
|
|
13642
13670
|
|
|
13643
13671
|
|
|
13644
13672
|
|
|
13673
|
+
class LogFilter(AbstractModel):
|
|
13674
|
+
r"""日志过滤条件
|
|
13675
|
+
|
|
13676
|
+
"""
|
|
13677
|
+
|
|
13678
|
+
def __init__(self):
|
|
13679
|
+
r"""
|
|
13680
|
+
:param _Type: <p>过滤条件名称。</p><p>如:sql - SQL命令详情</p><p>host – 客户端 IP;<br>user – 数据库账户。</p>
|
|
13681
|
+
:type Type: str
|
|
13682
|
+
:param _Compare: <p>过滤条件匹配类型。支持:<br>INC – 包含; (多个值之间是||的关系)<br>EXC – 不包含; (多个值之间是&&的关系)<br>EQS – 等于; (多个值之间是||的关系)<br>NEQ – 不等于;(多个值之间是&&的关系)<br>RG – 范围;</p>
|
|
13683
|
+
:type Compare: str
|
|
13684
|
+
:param _Value: <p>过滤条件匹配值。当Compare=RG时,例:["1-100","200-300"]</p>
|
|
13685
|
+
:type Value: list of str
|
|
13686
|
+
"""
|
|
13687
|
+
self._Type = None
|
|
13688
|
+
self._Compare = None
|
|
13689
|
+
self._Value = None
|
|
13690
|
+
|
|
13691
|
+
@property
|
|
13692
|
+
def Type(self):
|
|
13693
|
+
r"""<p>过滤条件名称。</p><p>如:sql - SQL命令详情</p><p>host – 客户端 IP;<br>user – 数据库账户。</p>
|
|
13694
|
+
:rtype: str
|
|
13695
|
+
"""
|
|
13696
|
+
return self._Type
|
|
13697
|
+
|
|
13698
|
+
@Type.setter
|
|
13699
|
+
def Type(self, Type):
|
|
13700
|
+
self._Type = Type
|
|
13701
|
+
|
|
13702
|
+
@property
|
|
13703
|
+
def Compare(self):
|
|
13704
|
+
r"""<p>过滤条件匹配类型。支持:<br>INC – 包含; (多个值之间是||的关系)<br>EXC – 不包含; (多个值之间是&&的关系)<br>EQS – 等于; (多个值之间是||的关系)<br>NEQ – 不等于;(多个值之间是&&的关系)<br>RG – 范围;</p>
|
|
13705
|
+
:rtype: str
|
|
13706
|
+
"""
|
|
13707
|
+
return self._Compare
|
|
13708
|
+
|
|
13709
|
+
@Compare.setter
|
|
13710
|
+
def Compare(self, Compare):
|
|
13711
|
+
self._Compare = Compare
|
|
13712
|
+
|
|
13713
|
+
@property
|
|
13714
|
+
def Value(self):
|
|
13715
|
+
r"""<p>过滤条件匹配值。当Compare=RG时,例:["1-100","200-300"]</p>
|
|
13716
|
+
:rtype: list of str
|
|
13717
|
+
"""
|
|
13718
|
+
return self._Value
|
|
13719
|
+
|
|
13720
|
+
@Value.setter
|
|
13721
|
+
def Value(self, Value):
|
|
13722
|
+
self._Value = Value
|
|
13723
|
+
|
|
13724
|
+
|
|
13725
|
+
def _deserialize(self, params):
|
|
13726
|
+
self._Type = params.get("Type")
|
|
13727
|
+
self._Compare = params.get("Compare")
|
|
13728
|
+
self._Value = params.get("Value")
|
|
13729
|
+
memeber_set = set(params.keys())
|
|
13730
|
+
for name, value in vars(self).items():
|
|
13731
|
+
property_name = name[1:]
|
|
13732
|
+
if property_name in memeber_set:
|
|
13733
|
+
memeber_set.remove(property_name)
|
|
13734
|
+
if len(memeber_set) > 0:
|
|
13735
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
13736
|
+
|
|
13737
|
+
|
|
13738
|
+
|
|
13645
13739
|
class ModifyAccountPrivilegesRequest(AbstractModel):
|
|
13646
13740
|
r"""ModifyAccountPrivileges请求参数结构体
|
|
13647
13741
|
|
|
@@ -16303,9 +16397,9 @@ class ModifySwitchTimePeriodRequest(AbstractModel):
|
|
|
16303
16397
|
|
|
16304
16398
|
def __init__(self):
|
|
16305
16399
|
r"""
|
|
16306
|
-
:param _DBInstanceId:
|
|
16400
|
+
:param _DBInstanceId: <p>处于等待切换状态中的实例ID。可通过<a href="https://cloud.tencent.com/document/api/409/16773">DescribeDBInstances</a>接口获取</p>
|
|
16307
16401
|
:type DBInstanceId: str
|
|
16308
|
-
:param _SwitchTag:
|
|
16402
|
+
:param _SwitchTag: <p>入参取值为 0 ,代表立即切换。</p>
|
|
16309
16403
|
:type SwitchTag: int
|
|
16310
16404
|
"""
|
|
16311
16405
|
self._DBInstanceId = None
|
|
@@ -16313,7 +16407,7 @@ class ModifySwitchTimePeriodRequest(AbstractModel):
|
|
|
16313
16407
|
|
|
16314
16408
|
@property
|
|
16315
16409
|
def DBInstanceId(self):
|
|
16316
|
-
r"""
|
|
16410
|
+
r"""<p>处于等待切换状态中的实例ID。可通过<a href="https://cloud.tencent.com/document/api/409/16773">DescribeDBInstances</a>接口获取</p>
|
|
16317
16411
|
:rtype: str
|
|
16318
16412
|
"""
|
|
16319
16413
|
return self._DBInstanceId
|
|
@@ -16324,7 +16418,7 @@ class ModifySwitchTimePeriodRequest(AbstractModel):
|
|
|
16324
16418
|
|
|
16325
16419
|
@property
|
|
16326
16420
|
def SwitchTag(self):
|
|
16327
|
-
r"""
|
|
16421
|
+
r"""<p>入参取值为 0 ,代表立即切换。</p>
|
|
16328
16422
|
:rtype: int
|
|
16329
16423
|
"""
|
|
16330
16424
|
return self._SwitchTag
|
|
@@ -17666,18 +17760,33 @@ class RawSlowQuery(AbstractModel):
|
|
|
17666
17760
|
|
|
17667
17761
|
def __init__(self):
|
|
17668
17762
|
r"""
|
|
17669
|
-
:param _RawQuery:
|
|
17763
|
+
:param _RawQuery: <p>慢SQL 语句</p>
|
|
17670
17764
|
:type RawQuery: str
|
|
17671
|
-
:param _DatabaseName:
|
|
17765
|
+
:param _DatabaseName: <p>慢SQL 查询的数据库</p>
|
|
17672
17766
|
:type DatabaseName: str
|
|
17673
|
-
:param _Duration:
|
|
17767
|
+
:param _Duration: <p>慢SQL执行 耗时</p>
|
|
17674
17768
|
:type Duration: float
|
|
17675
|
-
:param _ClientAddr:
|
|
17769
|
+
:param _ClientAddr: <p>执行慢SQL的客户端</p>
|
|
17676
17770
|
:type ClientAddr: str
|
|
17677
|
-
:param _UserName:
|
|
17771
|
+
:param _UserName: <p>执行慢SQL的用户名</p>
|
|
17678
17772
|
:type UserName: str
|
|
17679
|
-
:param _SessionStartTime:
|
|
17773
|
+
:param _SessionStartTime: <p>慢SQL执行的开始时间</p>
|
|
17680
17774
|
:type SessionStartTime: str
|
|
17775
|
+
:param _ProcessId: <p>执行慢SQL的进程ID</p>
|
|
17776
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17777
|
+
:type ProcessId: int
|
|
17778
|
+
:param _SessionId: <p>执行慢SQL的会话ID</p>
|
|
17779
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17780
|
+
:type SessionId: str
|
|
17781
|
+
:param _VirtualTransactionId: <p>执行慢SQL的事务ID</p>
|
|
17782
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17783
|
+
:type VirtualTransactionId: str
|
|
17784
|
+
:param _SqlStateCode: <p>执行慢SQL的状态码</p>
|
|
17785
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17786
|
+
:type SqlStateCode: str
|
|
17787
|
+
:param _ApplicationName: <p>执行慢SQL的客户端名称</p>
|
|
17788
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17789
|
+
:type ApplicationName: str
|
|
17681
17790
|
"""
|
|
17682
17791
|
self._RawQuery = None
|
|
17683
17792
|
self._DatabaseName = None
|
|
@@ -17685,10 +17794,15 @@ class RawSlowQuery(AbstractModel):
|
|
|
17685
17794
|
self._ClientAddr = None
|
|
17686
17795
|
self._UserName = None
|
|
17687
17796
|
self._SessionStartTime = None
|
|
17797
|
+
self._ProcessId = None
|
|
17798
|
+
self._SessionId = None
|
|
17799
|
+
self._VirtualTransactionId = None
|
|
17800
|
+
self._SqlStateCode = None
|
|
17801
|
+
self._ApplicationName = None
|
|
17688
17802
|
|
|
17689
17803
|
@property
|
|
17690
17804
|
def RawQuery(self):
|
|
17691
|
-
r"""
|
|
17805
|
+
r"""<p>慢SQL 语句</p>
|
|
17692
17806
|
:rtype: str
|
|
17693
17807
|
"""
|
|
17694
17808
|
return self._RawQuery
|
|
@@ -17699,7 +17813,7 @@ class RawSlowQuery(AbstractModel):
|
|
|
17699
17813
|
|
|
17700
17814
|
@property
|
|
17701
17815
|
def DatabaseName(self):
|
|
17702
|
-
r"""
|
|
17816
|
+
r"""<p>慢SQL 查询的数据库</p>
|
|
17703
17817
|
:rtype: str
|
|
17704
17818
|
"""
|
|
17705
17819
|
return self._DatabaseName
|
|
@@ -17710,7 +17824,7 @@ class RawSlowQuery(AbstractModel):
|
|
|
17710
17824
|
|
|
17711
17825
|
@property
|
|
17712
17826
|
def Duration(self):
|
|
17713
|
-
r"""
|
|
17827
|
+
r"""<p>慢SQL执行 耗时</p>
|
|
17714
17828
|
:rtype: float
|
|
17715
17829
|
"""
|
|
17716
17830
|
return self._Duration
|
|
@@ -17721,7 +17835,7 @@ class RawSlowQuery(AbstractModel):
|
|
|
17721
17835
|
|
|
17722
17836
|
@property
|
|
17723
17837
|
def ClientAddr(self):
|
|
17724
|
-
r"""
|
|
17838
|
+
r"""<p>执行慢SQL的客户端</p>
|
|
17725
17839
|
:rtype: str
|
|
17726
17840
|
"""
|
|
17727
17841
|
return self._ClientAddr
|
|
@@ -17732,7 +17846,7 @@ class RawSlowQuery(AbstractModel):
|
|
|
17732
17846
|
|
|
17733
17847
|
@property
|
|
17734
17848
|
def UserName(self):
|
|
17735
|
-
r"""
|
|
17849
|
+
r"""<p>执行慢SQL的用户名</p>
|
|
17736
17850
|
:rtype: str
|
|
17737
17851
|
"""
|
|
17738
17852
|
return self._UserName
|
|
@@ -17743,7 +17857,7 @@ class RawSlowQuery(AbstractModel):
|
|
|
17743
17857
|
|
|
17744
17858
|
@property
|
|
17745
17859
|
def SessionStartTime(self):
|
|
17746
|
-
r"""
|
|
17860
|
+
r"""<p>慢SQL执行的开始时间</p>
|
|
17747
17861
|
:rtype: str
|
|
17748
17862
|
"""
|
|
17749
17863
|
return self._SessionStartTime
|
|
@@ -17752,6 +17866,66 @@ class RawSlowQuery(AbstractModel):
|
|
|
17752
17866
|
def SessionStartTime(self, SessionStartTime):
|
|
17753
17867
|
self._SessionStartTime = SessionStartTime
|
|
17754
17868
|
|
|
17869
|
+
@property
|
|
17870
|
+
def ProcessId(self):
|
|
17871
|
+
r"""<p>执行慢SQL的进程ID</p>
|
|
17872
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17873
|
+
:rtype: int
|
|
17874
|
+
"""
|
|
17875
|
+
return self._ProcessId
|
|
17876
|
+
|
|
17877
|
+
@ProcessId.setter
|
|
17878
|
+
def ProcessId(self, ProcessId):
|
|
17879
|
+
self._ProcessId = ProcessId
|
|
17880
|
+
|
|
17881
|
+
@property
|
|
17882
|
+
def SessionId(self):
|
|
17883
|
+
r"""<p>执行慢SQL的会话ID</p>
|
|
17884
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17885
|
+
:rtype: str
|
|
17886
|
+
"""
|
|
17887
|
+
return self._SessionId
|
|
17888
|
+
|
|
17889
|
+
@SessionId.setter
|
|
17890
|
+
def SessionId(self, SessionId):
|
|
17891
|
+
self._SessionId = SessionId
|
|
17892
|
+
|
|
17893
|
+
@property
|
|
17894
|
+
def VirtualTransactionId(self):
|
|
17895
|
+
r"""<p>执行慢SQL的事务ID</p>
|
|
17896
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17897
|
+
:rtype: str
|
|
17898
|
+
"""
|
|
17899
|
+
return self._VirtualTransactionId
|
|
17900
|
+
|
|
17901
|
+
@VirtualTransactionId.setter
|
|
17902
|
+
def VirtualTransactionId(self, VirtualTransactionId):
|
|
17903
|
+
self._VirtualTransactionId = VirtualTransactionId
|
|
17904
|
+
|
|
17905
|
+
@property
|
|
17906
|
+
def SqlStateCode(self):
|
|
17907
|
+
r"""<p>执行慢SQL的状态码</p>
|
|
17908
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17909
|
+
:rtype: str
|
|
17910
|
+
"""
|
|
17911
|
+
return self._SqlStateCode
|
|
17912
|
+
|
|
17913
|
+
@SqlStateCode.setter
|
|
17914
|
+
def SqlStateCode(self, SqlStateCode):
|
|
17915
|
+
self._SqlStateCode = SqlStateCode
|
|
17916
|
+
|
|
17917
|
+
@property
|
|
17918
|
+
def ApplicationName(self):
|
|
17919
|
+
r"""<p>执行慢SQL的客户端名称</p>
|
|
17920
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17921
|
+
:rtype: str
|
|
17922
|
+
"""
|
|
17923
|
+
return self._ApplicationName
|
|
17924
|
+
|
|
17925
|
+
@ApplicationName.setter
|
|
17926
|
+
def ApplicationName(self, ApplicationName):
|
|
17927
|
+
self._ApplicationName = ApplicationName
|
|
17928
|
+
|
|
17755
17929
|
|
|
17756
17930
|
def _deserialize(self, params):
|
|
17757
17931
|
self._RawQuery = params.get("RawQuery")
|
|
@@ -17760,6 +17934,11 @@ class RawSlowQuery(AbstractModel):
|
|
|
17760
17934
|
self._ClientAddr = params.get("ClientAddr")
|
|
17761
17935
|
self._UserName = params.get("UserName")
|
|
17762
17936
|
self._SessionStartTime = params.get("SessionStartTime")
|
|
17937
|
+
self._ProcessId = params.get("ProcessId")
|
|
17938
|
+
self._SessionId = params.get("SessionId")
|
|
17939
|
+
self._VirtualTransactionId = params.get("VirtualTransactionId")
|
|
17940
|
+
self._SqlStateCode = params.get("SqlStateCode")
|
|
17941
|
+
self._ApplicationName = params.get("ApplicationName")
|
|
17763
17942
|
memeber_set = set(params.keys())
|
|
17764
17943
|
for name, value in vars(self).items():
|
|
17765
17944
|
property_name = name[1:]
|
|
@@ -19209,31 +19388,31 @@ class SpecItemInfo(AbstractModel):
|
|
|
19209
19388
|
|
|
19210
19389
|
def __init__(self):
|
|
19211
19390
|
r"""
|
|
19212
|
-
:param _SpecCode:
|
|
19391
|
+
:param _SpecCode: <p>规格ID</p>
|
|
19213
19392
|
:type SpecCode: str
|
|
19214
|
-
:param _Version: PostgreSQL
|
|
19393
|
+
:param _Version: <p>PostgreSQL的版本编号</p>
|
|
19215
19394
|
:type Version: str
|
|
19216
|
-
:param _VersionName:
|
|
19395
|
+
:param _VersionName: <p>内核编号对应的完整版本名称</p>
|
|
19217
19396
|
:type VersionName: str
|
|
19218
|
-
:param _Cpu: CPU
|
|
19397
|
+
:param _Cpu: <p>CPU核数</p>
|
|
19219
19398
|
:type Cpu: int
|
|
19220
|
-
:param _Memory:
|
|
19399
|
+
:param _Memory: <p>内存大小,单位:MB</p>
|
|
19221
19400
|
:type Memory: int
|
|
19222
|
-
:param _MaxStorage:
|
|
19401
|
+
:param _MaxStorage: <p>该规格所支持最大存储容量,单位:GB</p>
|
|
19223
19402
|
:type MaxStorage: int
|
|
19224
|
-
:param _MinStorage:
|
|
19403
|
+
:param _MinStorage: <p>该规格所支持最小存储容量,单位:GB</p>
|
|
19225
19404
|
:type MinStorage: int
|
|
19226
|
-
:param _Qps:
|
|
19405
|
+
:param _Qps: <p>该规格的预估QPS</p>
|
|
19227
19406
|
:type Qps: int
|
|
19228
|
-
:param _Pid:
|
|
19407
|
+
:param _Pid: <p>【该字段废弃】</p>
|
|
19229
19408
|
:type Pid: int
|
|
19230
|
-
:param _Type:
|
|
19409
|
+
:param _Type: <p>机器类型</p>
|
|
19231
19410
|
:type Type: str
|
|
19232
|
-
:param _MajorVersion: PostgreSQL
|
|
19411
|
+
:param _MajorVersion: <p>PostgreSQL的主要版本编号</p>
|
|
19233
19412
|
:type MajorVersion: str
|
|
19234
|
-
:param _KernelVersion: PostgreSQL
|
|
19413
|
+
:param _KernelVersion: <p>PostgreSQL的内核版本编号</p>
|
|
19235
19414
|
:type KernelVersion: str
|
|
19236
|
-
:param _IsSupportTDE:
|
|
19415
|
+
:param _IsSupportTDE: <p>是否支持TDE数据加密功能,0-不支持,1-支持</p>
|
|
19237
19416
|
:type IsSupportTDE: int
|
|
19238
19417
|
"""
|
|
19239
19418
|
self._SpecCode = None
|
|
@@ -19252,7 +19431,7 @@ class SpecItemInfo(AbstractModel):
|
|
|
19252
19431
|
|
|
19253
19432
|
@property
|
|
19254
19433
|
def SpecCode(self):
|
|
19255
|
-
r"""
|
|
19434
|
+
r"""<p>规格ID</p>
|
|
19256
19435
|
:rtype: str
|
|
19257
19436
|
"""
|
|
19258
19437
|
return self._SpecCode
|
|
@@ -19263,7 +19442,7 @@ class SpecItemInfo(AbstractModel):
|
|
|
19263
19442
|
|
|
19264
19443
|
@property
|
|
19265
19444
|
def Version(self):
|
|
19266
|
-
r"""PostgreSQL
|
|
19445
|
+
r"""<p>PostgreSQL的版本编号</p>
|
|
19267
19446
|
:rtype: str
|
|
19268
19447
|
"""
|
|
19269
19448
|
return self._Version
|
|
@@ -19274,7 +19453,7 @@ class SpecItemInfo(AbstractModel):
|
|
|
19274
19453
|
|
|
19275
19454
|
@property
|
|
19276
19455
|
def VersionName(self):
|
|
19277
|
-
r"""
|
|
19456
|
+
r"""<p>内核编号对应的完整版本名称</p>
|
|
19278
19457
|
:rtype: str
|
|
19279
19458
|
"""
|
|
19280
19459
|
return self._VersionName
|
|
@@ -19285,7 +19464,7 @@ class SpecItemInfo(AbstractModel):
|
|
|
19285
19464
|
|
|
19286
19465
|
@property
|
|
19287
19466
|
def Cpu(self):
|
|
19288
|
-
r"""CPU
|
|
19467
|
+
r"""<p>CPU核数</p>
|
|
19289
19468
|
:rtype: int
|
|
19290
19469
|
"""
|
|
19291
19470
|
return self._Cpu
|
|
@@ -19296,7 +19475,7 @@ class SpecItemInfo(AbstractModel):
|
|
|
19296
19475
|
|
|
19297
19476
|
@property
|
|
19298
19477
|
def Memory(self):
|
|
19299
|
-
r"""
|
|
19478
|
+
r"""<p>内存大小,单位:MB</p>
|
|
19300
19479
|
:rtype: int
|
|
19301
19480
|
"""
|
|
19302
19481
|
return self._Memory
|
|
@@ -19307,7 +19486,7 @@ class SpecItemInfo(AbstractModel):
|
|
|
19307
19486
|
|
|
19308
19487
|
@property
|
|
19309
19488
|
def MaxStorage(self):
|
|
19310
|
-
r"""
|
|
19489
|
+
r"""<p>该规格所支持最大存储容量,单位:GB</p>
|
|
19311
19490
|
:rtype: int
|
|
19312
19491
|
"""
|
|
19313
19492
|
return self._MaxStorage
|
|
@@ -19318,7 +19497,7 @@ class SpecItemInfo(AbstractModel):
|
|
|
19318
19497
|
|
|
19319
19498
|
@property
|
|
19320
19499
|
def MinStorage(self):
|
|
19321
|
-
r"""
|
|
19500
|
+
r"""<p>该规格所支持最小存储容量,单位:GB</p>
|
|
19322
19501
|
:rtype: int
|
|
19323
19502
|
"""
|
|
19324
19503
|
return self._MinStorage
|
|
@@ -19329,7 +19508,7 @@ class SpecItemInfo(AbstractModel):
|
|
|
19329
19508
|
|
|
19330
19509
|
@property
|
|
19331
19510
|
def Qps(self):
|
|
19332
|
-
r"""
|
|
19511
|
+
r"""<p>该规格的预估QPS</p>
|
|
19333
19512
|
:rtype: int
|
|
19334
19513
|
"""
|
|
19335
19514
|
return self._Qps
|
|
@@ -19340,7 +19519,7 @@ class SpecItemInfo(AbstractModel):
|
|
|
19340
19519
|
|
|
19341
19520
|
@property
|
|
19342
19521
|
def Pid(self):
|
|
19343
|
-
r"""
|
|
19522
|
+
r"""<p>【该字段废弃】</p>
|
|
19344
19523
|
:rtype: int
|
|
19345
19524
|
"""
|
|
19346
19525
|
return self._Pid
|
|
@@ -19351,7 +19530,7 @@ class SpecItemInfo(AbstractModel):
|
|
|
19351
19530
|
|
|
19352
19531
|
@property
|
|
19353
19532
|
def Type(self):
|
|
19354
|
-
r"""
|
|
19533
|
+
r"""<p>机器类型</p>
|
|
19355
19534
|
:rtype: str
|
|
19356
19535
|
"""
|
|
19357
19536
|
return self._Type
|
|
@@ -19362,7 +19541,7 @@ class SpecItemInfo(AbstractModel):
|
|
|
19362
19541
|
|
|
19363
19542
|
@property
|
|
19364
19543
|
def MajorVersion(self):
|
|
19365
|
-
r"""PostgreSQL
|
|
19544
|
+
r"""<p>PostgreSQL的主要版本编号</p>
|
|
19366
19545
|
:rtype: str
|
|
19367
19546
|
"""
|
|
19368
19547
|
return self._MajorVersion
|
|
@@ -19373,7 +19552,7 @@ class SpecItemInfo(AbstractModel):
|
|
|
19373
19552
|
|
|
19374
19553
|
@property
|
|
19375
19554
|
def KernelVersion(self):
|
|
19376
|
-
r"""PostgreSQL
|
|
19555
|
+
r"""<p>PostgreSQL的内核版本编号</p>
|
|
19377
19556
|
:rtype: str
|
|
19378
19557
|
"""
|
|
19379
19558
|
return self._KernelVersion
|
|
@@ -19384,7 +19563,7 @@ class SpecItemInfo(AbstractModel):
|
|
|
19384
19563
|
|
|
19385
19564
|
@property
|
|
19386
19565
|
def IsSupportTDE(self):
|
|
19387
|
-
r"""
|
|
19566
|
+
r"""<p>是否支持TDE数据加密功能,0-不支持,1-支持</p>
|
|
19388
19567
|
:rtype: int
|
|
19389
19568
|
"""
|
|
19390
19569
|
return self._IsSupportTDE
|