tencentcloud-sdk-python-postgres 3.0.1160__py2.py3-none-any.whl → 3.0.1189__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 +3 -0
- tencentcloud/postgres/v20170312/models.py +271 -96
- tencentcloud/postgres/v20170312/postgres_client.py +25 -2
- {tencentcloud_sdk_python_postgres-3.0.1160.dist-info → tencentcloud_sdk_python_postgres-3.0.1189.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_postgres-3.0.1189.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_postgres-3.0.1160.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_postgres-3.0.1160.dist-info → tencentcloud_sdk_python_postgres-3.0.1189.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_postgres-3.0.1160.dist-info → tencentcloud_sdk_python_postgres-3.0.1189.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -353,6 +353,9 @@ INVALIDPARAMETERVALUE_INVALIDACCOUNTFORMAT = 'InvalidParameterValue.InvalidAccou
|
|
|
353
353
|
# 当前账号名称不允许是保留字符。
|
|
354
354
|
INVALIDPARAMETERVALUE_INVALIDACCOUNTNAME = 'InvalidParameterValue.InvalidAccountName'
|
|
355
355
|
|
|
356
|
+
# 账号设置无效,请遵循账号命名规则:账号名需要1-16个字符,只能由字母、数字或下划线组成;不能为postgres;不能由数字、pg_及tencentdb_开头;所有规则均不区分大小写。
|
|
357
|
+
INVALIDPARAMETERVALUE_INVALIDACCOUNTNAMEERROR = 'InvalidParameterValue.InvalidAccountNameError'
|
|
358
|
+
|
|
356
359
|
# 数据库字符集错误,当前只支持UTF8、LATIN1。
|
|
357
360
|
INVALIDPARAMETERVALUE_INVALIDCHARSET = 'InvalidParameterValue.InvalidCharset'
|
|
358
361
|
|
|
@@ -27,16 +27,18 @@ class AccountInfo(AbstractModel):
|
|
|
27
27
|
r"""
|
|
28
28
|
:param _DBInstanceId: 实例ID,形如postgres-lnp6j617
|
|
29
29
|
:type DBInstanceId: str
|
|
30
|
-
:param _UserName:
|
|
30
|
+
:param _UserName: 账号
|
|
31
31
|
:type UserName: str
|
|
32
|
-
:param _Remark:
|
|
32
|
+
:param _Remark: 账号备注
|
|
33
33
|
:type Remark: str
|
|
34
|
-
:param _Status:
|
|
34
|
+
:param _Status: 账号状态。 1-创建中,2-正常,3-修改中,4-密码重置中,5-锁定中,-1-删除中
|
|
35
35
|
:type Status: int
|
|
36
|
-
:param _CreateTime:
|
|
36
|
+
:param _CreateTime: 账号创建时间
|
|
37
37
|
:type CreateTime: str
|
|
38
|
-
:param _UpdateTime:
|
|
38
|
+
:param _UpdateTime: 账号最后一次更新时间
|
|
39
39
|
:type UpdateTime: str
|
|
40
|
+
:param _UserType: 账号类型
|
|
41
|
+
:type UserType: str
|
|
40
42
|
"""
|
|
41
43
|
self._DBInstanceId = None
|
|
42
44
|
self._UserName = None
|
|
@@ -44,6 +46,7 @@ class AccountInfo(AbstractModel):
|
|
|
44
46
|
self._Status = None
|
|
45
47
|
self._CreateTime = None
|
|
46
48
|
self._UpdateTime = None
|
|
49
|
+
self._UserType = None
|
|
47
50
|
|
|
48
51
|
@property
|
|
49
52
|
def DBInstanceId(self):
|
|
@@ -93,6 +96,14 @@ class AccountInfo(AbstractModel):
|
|
|
93
96
|
def UpdateTime(self, UpdateTime):
|
|
94
97
|
self._UpdateTime = UpdateTime
|
|
95
98
|
|
|
99
|
+
@property
|
|
100
|
+
def UserType(self):
|
|
101
|
+
return self._UserType
|
|
102
|
+
|
|
103
|
+
@UserType.setter
|
|
104
|
+
def UserType(self, UserType):
|
|
105
|
+
self._UserType = UserType
|
|
106
|
+
|
|
96
107
|
|
|
97
108
|
def _deserialize(self, params):
|
|
98
109
|
self._DBInstanceId = params.get("DBInstanceId")
|
|
@@ -101,6 +112,7 @@ class AccountInfo(AbstractModel):
|
|
|
101
112
|
self._Status = params.get("Status")
|
|
102
113
|
self._CreateTime = params.get("CreateTime")
|
|
103
114
|
self._UpdateTime = params.get("UpdateTime")
|
|
115
|
+
self._UserType = params.get("UserType")
|
|
104
116
|
memeber_set = set(params.keys())
|
|
105
117
|
for name, value in vars(self).items():
|
|
106
118
|
property_name = name[1:]
|
|
@@ -897,12 +909,16 @@ class CloneDBInstanceRequest(AbstractModel):
|
|
|
897
909
|
:param _Storage: 实例容量大小,单位:GB。
|
|
898
910
|
:type Storage: int
|
|
899
911
|
:param _Period: 购买时长,单位:月。
|
|
900
|
-
|
|
901
|
-
|
|
912
|
+
|
|
913
|
+
- 预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36
|
|
914
|
+
- 后付费:只支持1
|
|
915
|
+
|
|
902
916
|
:type Period: int
|
|
903
917
|
:param _AutoRenewFlag: 续费标记:
|
|
904
|
-
|
|
905
|
-
|
|
918
|
+
|
|
919
|
+
- 0:手动续费
|
|
920
|
+
- 1:自动续费
|
|
921
|
+
|
|
906
922
|
默认值:0
|
|
907
923
|
:type AutoRenewFlag: int
|
|
908
924
|
:param _VpcId: 私有网络ID,形如vpc-xxxxxxxx。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。
|
|
@@ -912,8 +928,10 @@ class CloneDBInstanceRequest(AbstractModel):
|
|
|
912
928
|
:param _Name: 新购的实例名称,仅支持长度小于60的中文/英文/数字/"_"/"-",不指定实例名称则默认显示"未命名"。
|
|
913
929
|
:type Name: str
|
|
914
930
|
:param _InstanceChargeType: 实例计费类型,目前支持:
|
|
915
|
-
|
|
916
|
-
|
|
931
|
+
|
|
932
|
+
- PREPAID:预付费,即包年包月
|
|
933
|
+
- POSTPAID_BY_HOUR:后付费,即按量计费
|
|
934
|
+
|
|
917
935
|
默认值:PREPAID
|
|
918
936
|
:type InstanceChargeType: str
|
|
919
937
|
:param _SecurityGroupIds: 实例所属安全组,该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
|
|
@@ -927,8 +945,10 @@ class CloneDBInstanceRequest(AbstractModel):
|
|
|
927
945
|
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
|
|
928
946
|
:type DBNodeSet: list of DBNode
|
|
929
947
|
:param _AutoVoucher: 是否自动使用代金券:
|
|
930
|
-
|
|
931
|
-
|
|
948
|
+
|
|
949
|
+
- 0:否
|
|
950
|
+
- 1:是
|
|
951
|
+
|
|
932
952
|
默认值:0
|
|
933
953
|
:type AutoVoucher: int
|
|
934
954
|
:param _VoucherIds: 代金券ID列表。
|
|
@@ -940,8 +960,8 @@ class CloneDBInstanceRequest(AbstractModel):
|
|
|
940
960
|
:param _RecoveryTargetTime: 恢复时间点。
|
|
941
961
|
:type RecoveryTargetTime: str
|
|
942
962
|
:param _SyncMode: 主从同步方式,支持:
|
|
943
|
-
<li>Semi-sync
|
|
944
|
-
<li>Async
|
|
963
|
+
<li>Semi-sync:半同步</li>
|
|
964
|
+
<li>Async:异步</li>
|
|
945
965
|
主实例默认值:Semi-sync
|
|
946
966
|
只读实例默认值:Async
|
|
947
967
|
:type SyncMode: str
|
|
@@ -1911,25 +1931,25 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
1911
1931
|
:param _InstanceCount: 购买实例数量,取值范围:[1-10]。一次性购买支持最大数量10个,若超过该数量,可进行多次调用进行购买。
|
|
1912
1932
|
:type InstanceCount: int
|
|
1913
1933
|
:param _Period: 购买时长,单位:月。
|
|
1914
|
-
<li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36
|
|
1915
|
-
<li>后付费:只支持1
|
|
1934
|
+
<li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li>
|
|
1935
|
+
<li>后付费:只支持1</li>
|
|
1916
1936
|
:type Period: int
|
|
1917
1937
|
:param _Charset: 实例字符集,目前只支持:
|
|
1918
|
-
<li> UTF8
|
|
1919
|
-
<li> LATIN1
|
|
1938
|
+
<li> UTF8</li>
|
|
1939
|
+
<li> LATIN1</li>
|
|
1920
1940
|
:type Charset: str
|
|
1921
1941
|
:param _AdminName: 实例根账号用户名,具体规范如下:
|
|
1922
|
-
<li>用户名需要1-16
|
|
1923
|
-
<li>不能为postgres
|
|
1924
|
-
<li>不能由数字和pg_
|
|
1925
|
-
<li
|
|
1942
|
+
<li>用户名需要1-16个字符,只能由字母、数字或下划线组成</li>
|
|
1943
|
+
<li>不能为postgres</li>
|
|
1944
|
+
<li>不能由数字和pg_开头</li>
|
|
1945
|
+
<li>所有规则均不区分大小写</li>
|
|
1926
1946
|
:type AdminName: str
|
|
1927
1947
|
:param _AdminPassword: 实例根账号用户名对应的密码,长度8 ~ 32位,推荐使用12位以上的密码;不能以" / "开头;
|
|
1928
1948
|
必须包含以下四项,字符种类:
|
|
1929
|
-
<li>小写字母: [a ~ z]
|
|
1930
|
-
<li>大写字母:[A ~ Z]
|
|
1931
|
-
<li>数字:0 - 9
|
|
1932
|
-
<li>特殊字符:()`~!@#$%^&*-+=_|{}[]:;'
|
|
1949
|
+
<li>小写字母: [a ~ z]</li>
|
|
1950
|
+
<li>大写字母:[A ~ Z]</li>
|
|
1951
|
+
<li>数字:0 - 9</li>
|
|
1952
|
+
<li>特殊字符:()`~!@#$%^&*-+=_|{}[]:;'<>,.?/</li>
|
|
1933
1953
|
:type AdminPassword: str
|
|
1934
1954
|
:param _DBMajorVersion: PostgreSQL大版本号(该参数当前必传),版本信息可从[DescribeDBVersions](https://cloud.tencent.com/document/api/409/89018)获取。目前支持10,11,12,13,14,15这几个大版本,详情见[内核版本概述](https://cloud.tencent.com/document/product/409/67018)。
|
|
1935
1955
|
输入该参数时,会基于此大版本号创建对应的最新小版本的最新内核版本号实例。
|
|
@@ -1941,8 +1961,8 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
1941
1961
|
一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新内核版本号。
|
|
1942
1962
|
:type DBKernelVersion: str
|
|
1943
1963
|
:param _InstanceChargeType: 实例计费类型,目前支持:
|
|
1944
|
-
<li>PREPAID
|
|
1945
|
-
<li>POSTPAID_BY_HOUR
|
|
1964
|
+
<li>PREPAID:预付费,即包年包月</li>
|
|
1965
|
+
<li>POSTPAID_BY_HOUR:后付费,即按量计费</li>
|
|
1946
1966
|
默认值:PREPAID
|
|
1947
1967
|
:type InstanceChargeType: str
|
|
1948
1968
|
:param _VpcId: 私有网络ID,形如vpc-xxxxxxxx(该参数当前必传)。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。
|
|
@@ -1953,13 +1973,13 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
1953
1973
|
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
|
|
1954
1974
|
:type DBNodeSet: list of DBNode
|
|
1955
1975
|
:param _AutoRenewFlag: 续费标记:
|
|
1956
|
-
<li>0
|
|
1957
|
-
<li>1
|
|
1976
|
+
<li>0:手动续费</li>
|
|
1977
|
+
<li>1:自动续费</li>
|
|
1958
1978
|
默认值:0
|
|
1959
1979
|
:type AutoRenewFlag: int
|
|
1960
1980
|
:param _AutoVoucher: 是否自动使用代金券:
|
|
1961
|
-
<li>0
|
|
1962
|
-
<li>1
|
|
1981
|
+
<li>0:否</li>
|
|
1982
|
+
<li>1:是</li>
|
|
1963
1983
|
默认值:0
|
|
1964
1984
|
:type AutoVoucher: int
|
|
1965
1985
|
:param _VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
|
|
@@ -1977,8 +1997,8 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
1977
1997
|
|
|
1978
1998
|
:type SecurityGroupIds: list of str
|
|
1979
1999
|
:param _NeedSupportTDE: 是否需要支持数据透明加密:
|
|
1980
|
-
<li>0
|
|
1981
|
-
<li>1
|
|
2000
|
+
<li>0:否</li>
|
|
2001
|
+
<li>1:是</li>
|
|
1982
2002
|
默认值:0
|
|
1983
2003
|
参考[数据透明加密概述](https://cloud.tencent.com/document/product/409/71748)
|
|
1984
2004
|
:type NeedSupportTDE: int
|
|
@@ -1989,28 +2009,28 @@ KeyId创建获取相关参考[开启透明数据加密](https://cloud.tencent.co
|
|
|
1989
2009
|
KMSRegion相关介绍参考[开启透明数据加密](https://cloud.tencent.com/document/product/409/71749)
|
|
1990
2010
|
:type KMSRegion: str
|
|
1991
2011
|
:param _DBEngine: 数据库引擎,支持:
|
|
1992
|
-
<li>postgresql:云数据库PostgreSQL
|
|
1993
|
-
<li>mssql_compatible:MSSQL兼容-云数据库PostgreSQL
|
|
2012
|
+
<li>postgresql:云数据库PostgreSQL</li>
|
|
2013
|
+
<li>mssql_compatible:MSSQL兼容-云数据库PostgreSQL</li>
|
|
1994
2014
|
默认值:postgresql
|
|
1995
2015
|
:type DBEngine: str
|
|
1996
2016
|
:param _DBEngineConfig: 数据库引擎的配置信息,配置格式如下:
|
|
1997
2017
|
{"$key1":"$value1", "$key2":"$value2"}
|
|
1998
2018
|
各引擎支持如下:
|
|
1999
2019
|
mssql_compatible引擎:
|
|
2000
|
-
<li>migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db
|
|
2020
|
+
<li>migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db。</li>
|
|
2001
2021
|
<li>defaultLocale:排序区域规则,可选参数,在初始化后不可修改,默认为en_US,可选值如下:
|
|
2002
|
-
"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"
|
|
2003
|
-
<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"
|
|
2022
|
+
"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>
|
|
2023
|
+
<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>
|
|
2004
2024
|
:type DBEngineConfig: str
|
|
2005
2025
|
:param _SyncMode: 主从同步方式,支持:
|
|
2006
|
-
<li>Semi-sync
|
|
2007
|
-
<li>Async
|
|
2026
|
+
<li>Semi-sync:半同步</li>
|
|
2027
|
+
<li>Async:异步</li>
|
|
2008
2028
|
主实例默认值:Semi-sync
|
|
2009
2029
|
只读实例默认值:Async
|
|
2010
2030
|
:type SyncMode: str
|
|
2011
2031
|
:param _NeedSupportIpv6: 是否需要支持Ipv6:
|
|
2012
|
-
<li>0
|
|
2013
|
-
<li>1
|
|
2032
|
+
<li>0:否</li>
|
|
2033
|
+
<li>1:是</li>
|
|
2014
2034
|
默认值:0
|
|
2015
2035
|
:type NeedSupportIpv6: int
|
|
2016
2036
|
"""
|
|
@@ -3502,15 +3522,15 @@ class DBInstance(AbstractModel):
|
|
|
3502
3522
|
:type Region: str
|
|
3503
3523
|
:param _Zone: 实例所属可用区, 如:ap-guangzhou-3,对应ZoneSet的Zone字段。
|
|
3504
3524
|
:type Zone: str
|
|
3505
|
-
:param _VpcId: 私有网络ID,形如vpc-
|
|
3525
|
+
:param _VpcId: 私有网络ID,形如vpc-e6w23k31。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcs](https://cloud.tencent.com/document/api/215/15778) ,从接口返回中的unVpcId字段获取。
|
|
3506
3526
|
:type VpcId: str
|
|
3507
|
-
:param _SubnetId: 私有网络子网ID,形如subnet-
|
|
3527
|
+
:param _SubnetId: 私有网络子网ID,形如subnet-51lcif9y。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。
|
|
3508
3528
|
:type SubnetId: str
|
|
3509
3529
|
:param _DBInstanceId: 实例ID。
|
|
3510
3530
|
:type DBInstanceId: str
|
|
3511
3531
|
:param _DBInstanceName: 实例名称。
|
|
3512
3532
|
:type DBInstanceName: str
|
|
3513
|
-
:param _DBInstanceStatus: 实例状态,分别为:applying(申请中)、init(待初始化)、initing(初始化中)、running(运行中)、limited run(受限运行)、isolating(隔离中)、isolated(已隔离)、recycling(回收中)、recycled(已回收)、job running(任务执行中)、offline(下线)、migrating(迁移中)、expanding(扩容中)、waitSwitch(等待切换)、switching(切换中)、readonly(只读)、restarting(重启中)、network changing(网络变更中)、upgrading(内核版本升级中)、audit-switching(审计状态变更中)、primary-switching(主备切换中)
|
|
3533
|
+
:param _DBInstanceStatus: 实例状态,分别为: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(主备切换中)
|
|
3514
3534
|
:type DBInstanceStatus: str
|
|
3515
3535
|
:param _DBInstanceMemory: 实例分配的内存大小,单位:GB
|
|
3516
3536
|
:type DBInstanceMemory: int
|
|
@@ -3529,16 +3549,16 @@ class DBInstance(AbstractModel):
|
|
|
3529
3549
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3530
3550
|
:type DBKernelVersion: str
|
|
3531
3551
|
:param _DBInstanceType: 实例类型,类型有:
|
|
3532
|
-
<li>primary
|
|
3533
|
-
<li>readonly
|
|
3534
|
-
<li>guard
|
|
3535
|
-
<li>temp
|
|
3552
|
+
<li>primary:主实例</li>
|
|
3553
|
+
<li>readonly:只读实例</li>
|
|
3554
|
+
<li>guard:灾备实例</li>
|
|
3555
|
+
<li>temp:临时实例</li>
|
|
3536
3556
|
:type DBInstanceType: str
|
|
3537
3557
|
:param _DBInstanceVersion: 实例版本,目前只支持standard(双机高可用版, 一主一从)。
|
|
3538
3558
|
:type DBInstanceVersion: str
|
|
3539
3559
|
:param _DBCharset: 实例字符集,目前只支持:
|
|
3540
|
-
<li> UTF8
|
|
3541
|
-
<li> LATIN1
|
|
3560
|
+
<li> UTF8</li>
|
|
3561
|
+
<li> LATIN1</li>
|
|
3542
3562
|
:type DBCharset: str
|
|
3543
3563
|
:param _CreateTime: 实例创建时间。
|
|
3544
3564
|
:type CreateTime: str
|
|
@@ -3549,12 +3569,12 @@ class DBInstance(AbstractModel):
|
|
|
3549
3569
|
:param _IsolatedTime: 实例隔离时间。
|
|
3550
3570
|
:type IsolatedTime: str
|
|
3551
3571
|
:param _PayType: 计费模式:
|
|
3552
|
-
<li>prepaid
|
|
3553
|
-
<li>postpaid
|
|
3572
|
+
<li>prepaid:包年包月,预付费</li>
|
|
3573
|
+
<li>postpaid:按量计费,后付费</li>
|
|
3554
3574
|
:type PayType: str
|
|
3555
3575
|
:param _AutoRenew: 是否自动续费:
|
|
3556
|
-
<li>0
|
|
3557
|
-
<li>1
|
|
3576
|
+
<li>0:手动续费</li>
|
|
3577
|
+
<li>1:自动续费</li>
|
|
3558
3578
|
默认值:0
|
|
3559
3579
|
:type AutoRenew: int
|
|
3560
3580
|
:param _DBInstanceNetInfo: 实例网络连接信息。
|
|
@@ -3586,15 +3606,15 @@ class DBInstance(AbstractModel):
|
|
|
3586
3606
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3587
3607
|
:type DBNodeSet: list of DBNode
|
|
3588
3608
|
:param _IsSupportTDE: 实例是否支持TDE数据加密:
|
|
3589
|
-
<li>0
|
|
3590
|
-
<li>1
|
|
3609
|
+
<li>0:不支持</li>
|
|
3610
|
+
<li>1:支持</li>
|
|
3591
3611
|
默认值:0
|
|
3592
3612
|
TDE数据加密可参考[数据透明加密概述](https://cloud.tencent.com/document/product/409/71748)
|
|
3593
3613
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3594
3614
|
:type IsSupportTDE: int
|
|
3595
3615
|
:param _DBEngine: 数据库引擎,支持:
|
|
3596
|
-
<li>postgresql:云数据库PostgreSQL
|
|
3597
|
-
<li>mssql_compatible:MSSQL兼容-云数据库PostgreSQL
|
|
3616
|
+
<li>postgresql:云数据库PostgreSQL</li>
|
|
3617
|
+
<li>mssql_compatible:MSSQL兼容-云数据库PostgreSQL</li>
|
|
3598
3618
|
默认值:postgresql
|
|
3599
3619
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3600
3620
|
:type DBEngine: str
|
|
@@ -3602,18 +3622,18 @@ TDE数据加密可参考[数据透明加密概述](https://cloud.tencent.com/doc
|
|
|
3602
3622
|
{"$key1":"$value1", "$key2":"$value2"}
|
|
3603
3623
|
各引擎支持如下:
|
|
3604
3624
|
mssql_compatible引擎:
|
|
3605
|
-
<li>migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db
|
|
3625
|
+
<li>migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db。</li>
|
|
3606
3626
|
<li>defaultLocale:排序区域规则,可选参数,在初始化后不可修改,默认为en_US,可选值如下:
|
|
3607
|
-
"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"
|
|
3608
|
-
<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"
|
|
3627
|
+
"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>
|
|
3628
|
+
<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>
|
|
3609
3629
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3610
3630
|
:type DBEngineConfig: str
|
|
3611
3631
|
:param _NetworkAccessList: 实例网络信息列表(此字段已废弃)
|
|
3612
3632
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3613
3633
|
:type NetworkAccessList: list of NetworkAccess
|
|
3614
3634
|
:param _SupportIpv6: 实例是否支持Ipv6:
|
|
3615
|
-
<li>0
|
|
3616
|
-
<li>1
|
|
3635
|
+
<li>0:否</li>
|
|
3636
|
+
<li>1:是</li>
|
|
3617
3637
|
默认值:0
|
|
3618
3638
|
:type SupportIpv6: int
|
|
3619
3639
|
"""
|
|
@@ -4769,11 +4789,11 @@ class DescribeAccountsRequest(AbstractModel):
|
|
|
4769
4789
|
r"""
|
|
4770
4790
|
:param _DBInstanceId: 实例ID,形如postgres-6fego161
|
|
4771
4791
|
:type DBInstanceId: str
|
|
4772
|
-
:param _Limit: 分页返回,每页最大返回数目,默认
|
|
4792
|
+
:param _Limit: 分页返回,每页最大返回数目,默认20,取值范围为1-100
|
|
4773
4793
|
:type Limit: int
|
|
4774
4794
|
:param _Offset: 数据偏移量,从0开始。
|
|
4775
4795
|
:type Offset: int
|
|
4776
|
-
:param _OrderBy:
|
|
4796
|
+
:param _OrderBy: 返回数据按照创建时间或者用户名排序。取值支持createTime、name、updateTime。createTime-按照创建时间排序;name-按照用户名排序; updateTime-按照更新时间排序。
|
|
4777
4797
|
:type OrderBy: str
|
|
4778
4798
|
:param _OrderByType: 返回结果是升序还是降序。取值只能为desc或者asc。desc-降序;asc-升序
|
|
4779
4799
|
:type OrderByType: str
|
|
@@ -4850,7 +4870,7 @@ class DescribeAccountsResponse(AbstractModel):
|
|
|
4850
4870
|
r"""
|
|
4851
4871
|
:param _TotalCount: 本次调用接口共返回了多少条数据。
|
|
4852
4872
|
:type TotalCount: int
|
|
4853
|
-
:param _Details:
|
|
4873
|
+
:param _Details: 账号列表详细信息。当CreateTime项为0000-00-00 00:00:00时,意味着对应账号是直连数据库创建的,并非通过CreateAccount接口创建。
|
|
4854
4874
|
:type Details: list of AccountInfo
|
|
4855
4875
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4856
4876
|
:type RequestId: str
|
|
@@ -6631,8 +6651,10 @@ class DescribeDBInstancesRequest(AbstractModel):
|
|
|
6631
6651
|
db-instance-id:按照实例ID过滤,类型为string
|
|
6632
6652
|
db-instance-name:按照实例名过滤,类型为string
|
|
6633
6653
|
db-project-id:按照项目ID过滤,类型为integer
|
|
6634
|
-
db-pay-mode
|
|
6654
|
+
db-pay-mode:按照实例付费模式过滤,类型为string
|
|
6635
6655
|
db-tag-key:按照标签键过滤,类型为string
|
|
6656
|
+
db-private-ip: 按照实例私有网络IP过滤,类型为string
|
|
6657
|
+
db-public-address: 按照实例外网地址过滤,类型为string
|
|
6636
6658
|
:type Filters: list of Filter
|
|
6637
6659
|
:param _Limit: 每页显示数量,取值范围为1-100,默认为返回10条。
|
|
6638
6660
|
:type Limit: int
|
|
@@ -7125,8 +7147,17 @@ class DescribeDatabasesRequest(AbstractModel):
|
|
|
7125
7147
|
r"""
|
|
7126
7148
|
:param _DBInstanceId: 实例ID
|
|
7127
7149
|
:type DBInstanceId: str
|
|
7150
|
+
:param _Filters: 按照一个或者多个过滤条件进行查询,目前支持的过滤条件有:database-name:按照数据库名称过滤,类型为string。此处使用模糊匹配搜索符合条件的数据库。
|
|
7151
|
+
:type Filters: list of Filter
|
|
7152
|
+
:param _Offset: 数据偏移量,从0开始。
|
|
7153
|
+
:type Offset: int
|
|
7154
|
+
:param _Limit: 单次显示数量
|
|
7155
|
+
:type Limit: int
|
|
7128
7156
|
"""
|
|
7129
7157
|
self._DBInstanceId = None
|
|
7158
|
+
self._Filters = None
|
|
7159
|
+
self._Offset = None
|
|
7160
|
+
self._Limit = None
|
|
7130
7161
|
|
|
7131
7162
|
@property
|
|
7132
7163
|
def DBInstanceId(self):
|
|
@@ -7136,9 +7167,41 @@ class DescribeDatabasesRequest(AbstractModel):
|
|
|
7136
7167
|
def DBInstanceId(self, DBInstanceId):
|
|
7137
7168
|
self._DBInstanceId = DBInstanceId
|
|
7138
7169
|
|
|
7170
|
+
@property
|
|
7171
|
+
def Filters(self):
|
|
7172
|
+
return self._Filters
|
|
7173
|
+
|
|
7174
|
+
@Filters.setter
|
|
7175
|
+
def Filters(self, Filters):
|
|
7176
|
+
self._Filters = Filters
|
|
7177
|
+
|
|
7178
|
+
@property
|
|
7179
|
+
def Offset(self):
|
|
7180
|
+
return self._Offset
|
|
7181
|
+
|
|
7182
|
+
@Offset.setter
|
|
7183
|
+
def Offset(self, Offset):
|
|
7184
|
+
self._Offset = Offset
|
|
7185
|
+
|
|
7186
|
+
@property
|
|
7187
|
+
def Limit(self):
|
|
7188
|
+
return self._Limit
|
|
7189
|
+
|
|
7190
|
+
@Limit.setter
|
|
7191
|
+
def Limit(self, Limit):
|
|
7192
|
+
self._Limit = Limit
|
|
7193
|
+
|
|
7139
7194
|
|
|
7140
7195
|
def _deserialize(self, params):
|
|
7141
7196
|
self._DBInstanceId = params.get("DBInstanceId")
|
|
7197
|
+
if params.get("Filters") is not None:
|
|
7198
|
+
self._Filters = []
|
|
7199
|
+
for item in params.get("Filters"):
|
|
7200
|
+
obj = Filter()
|
|
7201
|
+
obj._deserialize(item)
|
|
7202
|
+
self._Filters.append(obj)
|
|
7203
|
+
self._Offset = params.get("Offset")
|
|
7204
|
+
self._Limit = params.get("Limit")
|
|
7142
7205
|
memeber_set = set(params.keys())
|
|
7143
7206
|
for name, value in vars(self).items():
|
|
7144
7207
|
property_name = name[1:]
|
|
@@ -7158,10 +7221,13 @@ class DescribeDatabasesResponse(AbstractModel):
|
|
|
7158
7221
|
r"""
|
|
7159
7222
|
:param _Items: 数据库信息
|
|
7160
7223
|
:type Items: list of str
|
|
7224
|
+
:param _TotalCount: 数据库总数
|
|
7225
|
+
:type TotalCount: int
|
|
7161
7226
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7162
7227
|
:type RequestId: str
|
|
7163
7228
|
"""
|
|
7164
7229
|
self._Items = None
|
|
7230
|
+
self._TotalCount = None
|
|
7165
7231
|
self._RequestId = None
|
|
7166
7232
|
|
|
7167
7233
|
@property
|
|
@@ -7172,6 +7238,14 @@ class DescribeDatabasesResponse(AbstractModel):
|
|
|
7172
7238
|
def Items(self, Items):
|
|
7173
7239
|
self._Items = Items
|
|
7174
7240
|
|
|
7241
|
+
@property
|
|
7242
|
+
def TotalCount(self):
|
|
7243
|
+
return self._TotalCount
|
|
7244
|
+
|
|
7245
|
+
@TotalCount.setter
|
|
7246
|
+
def TotalCount(self, TotalCount):
|
|
7247
|
+
self._TotalCount = TotalCount
|
|
7248
|
+
|
|
7175
7249
|
@property
|
|
7176
7250
|
def RequestId(self):
|
|
7177
7251
|
return self._RequestId
|
|
@@ -7183,6 +7257,7 @@ class DescribeDatabasesResponse(AbstractModel):
|
|
|
7183
7257
|
|
|
7184
7258
|
def _deserialize(self, params):
|
|
7185
7259
|
self._Items = params.get("Items")
|
|
7260
|
+
self._TotalCount = params.get("TotalCount")
|
|
7186
7261
|
self._RequestId = params.get("RequestId")
|
|
7187
7262
|
|
|
7188
7263
|
|
|
@@ -8284,7 +8359,13 @@ class DescribeServerlessDBInstancesRequest(AbstractModel):
|
|
|
8284
8359
|
|
|
8285
8360
|
def __init__(self):
|
|
8286
8361
|
r"""
|
|
8287
|
-
:param _Filter:
|
|
8362
|
+
:param _Filter: 查询条件。按照一个或者多个过滤条件进行查询,目前支持的过滤条件类型(name字段指定)有:
|
|
8363
|
+
|
|
8364
|
+
- db-instance-id:按照实例ID过滤,类型为string
|
|
8365
|
+
- db-instance-name:按照实例名过滤,类型为string
|
|
8366
|
+
- db-tag-key:按照实例的tag过滤,类型为string
|
|
8367
|
+
|
|
8368
|
+
value字段指定该类型过滤条件下具体要过滤的实例ID/实例名/实例tag-key。
|
|
8288
8369
|
:type Filter: list of Filter
|
|
8289
8370
|
:param _Limit: 查询个数
|
|
8290
8371
|
:type Limit: int
|
|
@@ -8427,19 +8508,19 @@ class DescribeSlowQueryAnalysisRequest(AbstractModel):
|
|
|
8427
8508
|
r"""
|
|
8428
8509
|
:param _DBInstanceId: 实例ID。
|
|
8429
8510
|
:type DBInstanceId: str
|
|
8430
|
-
:param _StartTime:
|
|
8511
|
+
:param _StartTime: 查询起始时间,形如2018-01-01 00:00:00。日志保留时间默认为7天,起始时间不能超出保留时间范围。
|
|
8431
8512
|
:type StartTime: str
|
|
8432
|
-
:param _EndTime:
|
|
8513
|
+
:param _EndTime: 查询结束时间,形如2018-01-01 00:00:00。
|
|
8433
8514
|
:type EndTime: str
|
|
8434
|
-
:param _DatabaseName:
|
|
8515
|
+
:param _DatabaseName: 数据库名字。
|
|
8435
8516
|
:type DatabaseName: str
|
|
8436
|
-
:param _OrderBy:
|
|
8517
|
+
:param _OrderBy: 排序字段,取值范围[CallNum,CostTime,AvgCostTime]。默认值为CallNum。
|
|
8437
8518
|
:type OrderBy: str
|
|
8438
|
-
:param _OrderByType:
|
|
8519
|
+
:param _OrderByType: 排序方式,包括升序:asc 降序:desc。默认值为desc。
|
|
8439
8520
|
:type OrderByType: str
|
|
8440
|
-
:param _Limit:
|
|
8521
|
+
:param _Limit: 每页显示数量,取值范围为1-100。默认值为50。
|
|
8441
8522
|
:type Limit: int
|
|
8442
|
-
:param _Offset:
|
|
8523
|
+
:param _Offset: 数据偏移量,从0开始。默认值为0。
|
|
8443
8524
|
:type Offset: int
|
|
8444
8525
|
"""
|
|
8445
8526
|
self._DBInstanceId = None
|
|
@@ -8542,9 +8623,9 @@ class DescribeSlowQueryAnalysisResponse(AbstractModel):
|
|
|
8542
8623
|
|
|
8543
8624
|
def __init__(self):
|
|
8544
8625
|
r"""
|
|
8545
|
-
:param _TotalCount:
|
|
8626
|
+
:param _TotalCount: 查询到的总条数,最大值为10000条。
|
|
8546
8627
|
:type TotalCount: int
|
|
8547
|
-
:param _Detail:
|
|
8628
|
+
:param _Detail: 查询到的慢SQL统计分析详细信息集合。
|
|
8548
8629
|
:type Detail: :class:`tencentcloud.postgres.v20170312.models.Detail`
|
|
8549
8630
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8550
8631
|
:type RequestId: str
|
|
@@ -8595,19 +8676,19 @@ class DescribeSlowQueryListRequest(AbstractModel):
|
|
|
8595
8676
|
r"""
|
|
8596
8677
|
:param _DBInstanceId: 实例ID。
|
|
8597
8678
|
:type DBInstanceId: str
|
|
8598
|
-
:param _StartTime:
|
|
8679
|
+
:param _StartTime: 查询起始时间,形如2018-01-01 00:00:00。日志保留时间默认为7天,起始时间不能超出保留时间范围。
|
|
8599
8680
|
:type StartTime: str
|
|
8600
|
-
:param _EndTime:
|
|
8681
|
+
:param _EndTime: 查询结束时间,形如2018-01-01 00:00:00。
|
|
8601
8682
|
:type EndTime: str
|
|
8602
|
-
:param _DatabaseName:
|
|
8683
|
+
:param _DatabaseName: 数据库名字。
|
|
8603
8684
|
:type DatabaseName: str
|
|
8604
|
-
:param _OrderByType:
|
|
8685
|
+
:param _OrderByType: 排序方式,包括升序:asc 降序:desc。默认值为desc。
|
|
8605
8686
|
:type OrderByType: str
|
|
8606
|
-
:param _OrderBy:
|
|
8687
|
+
:param _OrderBy: 排序字段,取值范围[SessionStartTime,Duration]。默认值为SessionStartTime。
|
|
8607
8688
|
:type OrderBy: str
|
|
8608
|
-
:param _Limit:
|
|
8689
|
+
:param _Limit: 每页显示数量,取值范围为1-100。默认值为50。
|
|
8609
8690
|
:type Limit: int
|
|
8610
|
-
:param _Offset:
|
|
8691
|
+
:param _Offset: 数据偏移量,从0开始。默认值为0。
|
|
8611
8692
|
:type Offset: int
|
|
8612
8693
|
"""
|
|
8613
8694
|
self._DBInstanceId = None
|
|
@@ -8710,12 +8791,12 @@ class DescribeSlowQueryListResponse(AbstractModel):
|
|
|
8710
8791
|
|
|
8711
8792
|
def __init__(self):
|
|
8712
8793
|
r"""
|
|
8713
|
-
:param _TotalCount:
|
|
8794
|
+
:param _TotalCount: 查询到的慢日志数量,最大值为10000条。
|
|
8714
8795
|
:type TotalCount: int
|
|
8715
|
-
:param _DurationAnalysis:
|
|
8796
|
+
:param _DurationAnalysis: 查询到的慢日志耗时分段分析结果。
|
|
8716
8797
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8717
8798
|
:type DurationAnalysis: list of DurationAnalysis
|
|
8718
|
-
:param _RawSlowQueryList:
|
|
8799
|
+
:param _RawSlowQueryList: 查询到的慢日志详细信息集合。
|
|
8719
8800
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
8720
8801
|
:type RawSlowQueryList: list of RawSlowQuery
|
|
8721
8802
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -10783,9 +10864,9 @@ class ModifyDBInstanceDeploymentRequest(AbstractModel):
|
|
|
10783
10864
|
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
|
|
10784
10865
|
:type DBNodeSet: list of DBNode
|
|
10785
10866
|
:param _SwitchTag: 指定实例配置完成变更后的切换时间。
|
|
10786
|
-
<li>0:立即切换
|
|
10787
|
-
<li>1
|
|
10788
|
-
<li>2
|
|
10867
|
+
<li>0:立即切换 </li>
|
|
10868
|
+
<li>1:指定时间切换</li>
|
|
10869
|
+
<li>2:维护时间窗口内切换</li>
|
|
10789
10870
|
默认值:0
|
|
10790
10871
|
:type SwitchTag: int
|
|
10791
10872
|
:param _SwitchStartTime: 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。
|
|
@@ -11095,9 +11176,9 @@ class ModifyDBInstanceParametersRequest(AbstractModel):
|
|
|
11095
11176
|
|
|
11096
11177
|
def __init__(self):
|
|
11097
11178
|
r"""
|
|
11098
|
-
:param _DBInstanceId: 实例ID
|
|
11179
|
+
:param _DBInstanceId: 实例ID。
|
|
11099
11180
|
:type DBInstanceId: str
|
|
11100
|
-
:param _ParamList:
|
|
11181
|
+
:param _ParamList: 待修改参数及期望值。
|
|
11101
11182
|
:type ParamList: list of ParamEntry
|
|
11102
11183
|
"""
|
|
11103
11184
|
self._DBInstanceId = None
|
|
@@ -14071,6 +14152,100 @@ class RestartDBInstanceResponse(AbstractModel):
|
|
|
14071
14152
|
self._RequestId = params.get("RequestId")
|
|
14072
14153
|
|
|
14073
14154
|
|
|
14155
|
+
class RestoreDBInstanceObjectsRequest(AbstractModel):
|
|
14156
|
+
"""RestoreDBInstanceObjects请求参数结构体
|
|
14157
|
+
|
|
14158
|
+
"""
|
|
14159
|
+
|
|
14160
|
+
def __init__(self):
|
|
14161
|
+
r"""
|
|
14162
|
+
:param _DBInstanceId: 实例ID。
|
|
14163
|
+
:type DBInstanceId: str
|
|
14164
|
+
:param _RestoreObjects: 需要恢复的对象列表。假设需要恢复的对象名为test,则恢复后的名称为test_bak_${LinuxTime}。${LinuxTime}无法指定,由系统根据任务发起的linux时间设定。
|
|
14165
|
+
:type RestoreObjects: list of str
|
|
14166
|
+
:param _BackupSetId: 恢复所用备份集。BackupSetId与RestoreTargetTime有且只能传一个。
|
|
14167
|
+
:type BackupSetId: str
|
|
14168
|
+
:param _RestoreTargetTime: 恢复目标时间,北京时间。BackupSetId与RestoreTargetTime有且只能传一个。
|
|
14169
|
+
:type RestoreTargetTime: str
|
|
14170
|
+
"""
|
|
14171
|
+
self._DBInstanceId = None
|
|
14172
|
+
self._RestoreObjects = None
|
|
14173
|
+
self._BackupSetId = None
|
|
14174
|
+
self._RestoreTargetTime = None
|
|
14175
|
+
|
|
14176
|
+
@property
|
|
14177
|
+
def DBInstanceId(self):
|
|
14178
|
+
return self._DBInstanceId
|
|
14179
|
+
|
|
14180
|
+
@DBInstanceId.setter
|
|
14181
|
+
def DBInstanceId(self, DBInstanceId):
|
|
14182
|
+
self._DBInstanceId = DBInstanceId
|
|
14183
|
+
|
|
14184
|
+
@property
|
|
14185
|
+
def RestoreObjects(self):
|
|
14186
|
+
return self._RestoreObjects
|
|
14187
|
+
|
|
14188
|
+
@RestoreObjects.setter
|
|
14189
|
+
def RestoreObjects(self, RestoreObjects):
|
|
14190
|
+
self._RestoreObjects = RestoreObjects
|
|
14191
|
+
|
|
14192
|
+
@property
|
|
14193
|
+
def BackupSetId(self):
|
|
14194
|
+
return self._BackupSetId
|
|
14195
|
+
|
|
14196
|
+
@BackupSetId.setter
|
|
14197
|
+
def BackupSetId(self, BackupSetId):
|
|
14198
|
+
self._BackupSetId = BackupSetId
|
|
14199
|
+
|
|
14200
|
+
@property
|
|
14201
|
+
def RestoreTargetTime(self):
|
|
14202
|
+
return self._RestoreTargetTime
|
|
14203
|
+
|
|
14204
|
+
@RestoreTargetTime.setter
|
|
14205
|
+
def RestoreTargetTime(self, RestoreTargetTime):
|
|
14206
|
+
self._RestoreTargetTime = RestoreTargetTime
|
|
14207
|
+
|
|
14208
|
+
|
|
14209
|
+
def _deserialize(self, params):
|
|
14210
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
14211
|
+
self._RestoreObjects = params.get("RestoreObjects")
|
|
14212
|
+
self._BackupSetId = params.get("BackupSetId")
|
|
14213
|
+
self._RestoreTargetTime = params.get("RestoreTargetTime")
|
|
14214
|
+
memeber_set = set(params.keys())
|
|
14215
|
+
for name, value in vars(self).items():
|
|
14216
|
+
property_name = name[1:]
|
|
14217
|
+
if property_name in memeber_set:
|
|
14218
|
+
memeber_set.remove(property_name)
|
|
14219
|
+
if len(memeber_set) > 0:
|
|
14220
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14221
|
+
|
|
14222
|
+
|
|
14223
|
+
|
|
14224
|
+
class RestoreDBInstanceObjectsResponse(AbstractModel):
|
|
14225
|
+
"""RestoreDBInstanceObjects返回参数结构体
|
|
14226
|
+
|
|
14227
|
+
"""
|
|
14228
|
+
|
|
14229
|
+
def __init__(self):
|
|
14230
|
+
r"""
|
|
14231
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14232
|
+
:type RequestId: str
|
|
14233
|
+
"""
|
|
14234
|
+
self._RequestId = None
|
|
14235
|
+
|
|
14236
|
+
@property
|
|
14237
|
+
def RequestId(self):
|
|
14238
|
+
return self._RequestId
|
|
14239
|
+
|
|
14240
|
+
@RequestId.setter
|
|
14241
|
+
def RequestId(self, RequestId):
|
|
14242
|
+
self._RequestId = RequestId
|
|
14243
|
+
|
|
14244
|
+
|
|
14245
|
+
def _deserialize(self, params):
|
|
14246
|
+
self._RequestId = params.get("RequestId")
|
|
14247
|
+
|
|
14248
|
+
|
|
14074
14249
|
class SecurityGroup(AbstractModel):
|
|
14075
14250
|
"""安全组信息
|
|
14076
14251
|
|
|
@@ -15640,7 +15815,7 @@ TDE:支持数据加密。
|
|
|
15640
15815
|
AVAILABLE:可用;
|
|
15641
15816
|
DEPRECATED:已弃用。
|
|
15642
15817
|
:type Status: str
|
|
15643
|
-
:param _AvailableUpgradeTarget: 该数据库版本(DBKernelVersion
|
|
15818
|
+
:param _AvailableUpgradeTarget: 该数据库版本(DBKernelVersion)可以升级到的版本号列表。其中包含可升级的小版本号和可升级的大版本号(完整内核版本格式示例:v15.1_v1.6)。
|
|
15644
15819
|
:type AvailableUpgradeTarget: list of str
|
|
15645
15820
|
"""
|
|
15646
15821
|
self._DBEngine = None
|
|
@@ -189,8 +189,8 @@ class PostgresClient(AbstractClient):
|
|
|
189
189
|
|
|
190
190
|
def CreateInstances(self, request):
|
|
191
191
|
"""本接口 (CreateInstances) 用于创建一个或者多个PostgreSQL实例,通过此接口创建的实例无需进行初始化,可直接使用。
|
|
192
|
-
<li
|
|
193
|
-
<li
|
|
192
|
+
<li>实例创建成功后将自动开机启动,实例状态变为“运行中”。</li>
|
|
193
|
+
<li>预付费实例的购买会预先扣除本次实例购买所需金额,按小时后付费实例购买会预先冻结本次实例购买一小时内所需金额,在调用本接口前请确保账户余额充足。</li>
|
|
194
194
|
|
|
195
195
|
:param request: Request instance for CreateInstances.
|
|
196
196
|
:type request: :class:`tencentcloud.postgres.v20170312.models.CreateInstancesRequest`
|
|
@@ -1987,6 +1987,29 @@ class PostgresClient(AbstractClient):
|
|
|
1987
1987
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1988
1988
|
|
|
1989
1989
|
|
|
1990
|
+
def RestoreDBInstanceObjects(self, request):
|
|
1991
|
+
"""根据备份集或恢复目标时间,在原实例上恢复数据库相关对象,例如数据库、表。
|
|
1992
|
+
|
|
1993
|
+
:param request: Request instance for RestoreDBInstanceObjects.
|
|
1994
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.RestoreDBInstanceObjectsRequest`
|
|
1995
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.RestoreDBInstanceObjectsResponse`
|
|
1996
|
+
|
|
1997
|
+
"""
|
|
1998
|
+
try:
|
|
1999
|
+
params = request._serialize()
|
|
2000
|
+
headers = request.headers
|
|
2001
|
+
body = self.call("RestoreDBInstanceObjects", params, headers=headers)
|
|
2002
|
+
response = json.loads(body)
|
|
2003
|
+
model = models.RestoreDBInstanceObjectsResponse()
|
|
2004
|
+
model._deserialize(response["Response"])
|
|
2005
|
+
return model
|
|
2006
|
+
except Exception as e:
|
|
2007
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2008
|
+
raise
|
|
2009
|
+
else:
|
|
2010
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2011
|
+
|
|
2012
|
+
|
|
1990
2013
|
def SetAutoRenewFlag(self, request):
|
|
1991
2014
|
"""本接口(SetAutoRenewFlag)用于设置自动续费。
|
|
1992
2015
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-postgres
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1189
|
|
4
4
|
Summary: Tencent Cloud Postgres SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common (==3.0.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common (==3.0.1189)
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=WfI4fSsSRntAy8b9DJ59q6gq1--CgLbHKmJ5auStPQ0,631
|
|
2
|
+
tencentcloud/postgres/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/postgres/v20170312/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/postgres/v20170312/errorcodes.py,sha256=ja4vVSiO3AVa9BvehAc-dl_QsAoRVzjVHUJ0va4J0T8,21492
|
|
5
|
+
tencentcloud/postgres/v20170312/models.py,sha256=-0RO1J6ba-OlHVHFfUEx46ZqJegATqpBsLlXAMqN4Jk,492652
|
|
6
|
+
tencentcloud/postgres/v20170312/postgres_client.py,sha256=cV64ykO0ZRaThiyn_BsrwZhFmEZKSjfld_rMqHUpC_I,92056
|
|
7
|
+
tencentcloud_sdk_python_postgres-3.0.1189.dist-info/METADATA,sha256=nUV587CbKXj4b8hJNjzBvI_21DR_WsqAwzo6cuG_mjY,1517
|
|
8
|
+
tencentcloud_sdk_python_postgres-3.0.1189.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
+
tencentcloud_sdk_python_postgres-3.0.1189.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
+
tencentcloud_sdk_python_postgres-3.0.1189.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=18oY8rNsdWOduHcx55Fe03J0DuvBJqiLgUIPy4X4YeY,631
|
|
2
|
-
tencentcloud/postgres/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/postgres/v20170312/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/postgres/v20170312/errorcodes.py,sha256=iPjoUnGlD_uOtpzHK73x0pvWxBvzEIN3HhoGj7PHMA8,21166
|
|
5
|
-
tencentcloud/postgres/v20170312/models.py,sha256=bDL-zJjcFF70idEFdmELbzVDoAQ4o4z6E3ZCveHE3Ws,486542
|
|
6
|
-
tencentcloud/postgres/v20170312/postgres_client.py,sha256=HeSw4TLpSsUp8r68OZbbQpPw0amhnmathz9gxHBi5O4,91035
|
|
7
|
-
tencentcloud_sdk_python_postgres-3.0.1160.dist-info/METADATA,sha256=P-UYKvPYCBTh3gHLgM9cI9pBtSCjaRCy_kbeAoic6OI,1517
|
|
8
|
-
tencentcloud_sdk_python_postgres-3.0.1160.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
-
tencentcloud_sdk_python_postgres-3.0.1160.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
-
tencentcloud_sdk_python_postgres-3.0.1160.dist-info/RECORD,,
|
|
File without changes
|