tencentcloud-sdk-python-postgres 3.0.1481__tar.gz → 3.0.1490__tar.gz
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_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/setup.py +1 -1
- {tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/tencentcloud/postgres/v20170312/errorcodes.py +3 -0
- {tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/tencentcloud/postgres/v20170312/models.py +346 -0
- {tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/tencentcloud/postgres/v20170312/postgres_client.py +92 -0
- {tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/tencentcloud_sdk_python_postgres.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_postgres-3.0.1490/tencentcloud_sdk_python_postgres.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_postgres-3.0.1481/tencentcloud_sdk_python_postgres.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/README.rst +0 -0
- {tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/setup.cfg +0 -0
- {tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/tencentcloud/postgres/__init__.py +0 -0
- {tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/tencentcloud/postgres/v20170312/__init__.py +0 -0
- {tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/tencentcloud_sdk_python_postgres.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/tencentcloud_sdk_python_postgres.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/tencentcloud_sdk_python_postgres.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/PKG-INFO
RENAMED
|
@@ -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.1490
|
|
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<4.0.0,>=3.0.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1490
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-postgres',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1490,<4.0.0"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Postgres SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -56,6 +56,9 @@ FAILEDOPERATION_CDBCGWCONNECTERROR = 'FailedOperation.CdbCgwConnectError'
|
|
|
56
56
|
# 检查数据库账号状态错误:账号已开启CAM验证,不支持当前操作。
|
|
57
57
|
FAILEDOPERATION_CHECKACCOUNTCAMCLOSEERROR = 'FailedOperation.CheckAccountCAMCloseError'
|
|
58
58
|
|
|
59
|
+
# 检查数据库账号状态错误:账号未开启CAM验证,不支持当前操作。
|
|
60
|
+
FAILEDOPERATION_CHECKACCOUNTCAMOPENERROR = 'FailedOperation.CheckAccountCAMOpenError'
|
|
61
|
+
|
|
59
62
|
# 不支持新增基础网络。
|
|
60
63
|
FAILEDOPERATION_CREATEBASICNETWORKDENIEDERROR = 'FailedOperation.CreateBasicNetworkDeniedError'
|
|
61
64
|
|
|
@@ -1681,6 +1681,115 @@ class CloneDBInstanceResponse(AbstractModel):
|
|
|
1681
1681
|
self._RequestId = params.get("RequestId")
|
|
1682
1682
|
|
|
1683
1683
|
|
|
1684
|
+
class CloseAccountCAMRequest(AbstractModel):
|
|
1685
|
+
r"""CloseAccountCAM请求参数结构体
|
|
1686
|
+
|
|
1687
|
+
"""
|
|
1688
|
+
|
|
1689
|
+
def __init__(self):
|
|
1690
|
+
r"""
|
|
1691
|
+
:param _DBInstanceId: 实例ID
|
|
1692
|
+
:type DBInstanceId: str
|
|
1693
|
+
:param _UserName: 需要关闭CAM服务的账号名称
|
|
1694
|
+
:type UserName: str
|
|
1695
|
+
:param _Password: 关闭CAM后,登录该账号所需要的新密码
|
|
1696
|
+
:type Password: str
|
|
1697
|
+
:param _PasswordEncrypt: 密码是否加密
|
|
1698
|
+
:type PasswordEncrypt: bool
|
|
1699
|
+
"""
|
|
1700
|
+
self._DBInstanceId = None
|
|
1701
|
+
self._UserName = None
|
|
1702
|
+
self._Password = None
|
|
1703
|
+
self._PasswordEncrypt = None
|
|
1704
|
+
|
|
1705
|
+
@property
|
|
1706
|
+
def DBInstanceId(self):
|
|
1707
|
+
r"""实例ID
|
|
1708
|
+
:rtype: str
|
|
1709
|
+
"""
|
|
1710
|
+
return self._DBInstanceId
|
|
1711
|
+
|
|
1712
|
+
@DBInstanceId.setter
|
|
1713
|
+
def DBInstanceId(self, DBInstanceId):
|
|
1714
|
+
self._DBInstanceId = DBInstanceId
|
|
1715
|
+
|
|
1716
|
+
@property
|
|
1717
|
+
def UserName(self):
|
|
1718
|
+
r"""需要关闭CAM服务的账号名称
|
|
1719
|
+
:rtype: str
|
|
1720
|
+
"""
|
|
1721
|
+
return self._UserName
|
|
1722
|
+
|
|
1723
|
+
@UserName.setter
|
|
1724
|
+
def UserName(self, UserName):
|
|
1725
|
+
self._UserName = UserName
|
|
1726
|
+
|
|
1727
|
+
@property
|
|
1728
|
+
def Password(self):
|
|
1729
|
+
r"""关闭CAM后,登录该账号所需要的新密码
|
|
1730
|
+
:rtype: str
|
|
1731
|
+
"""
|
|
1732
|
+
return self._Password
|
|
1733
|
+
|
|
1734
|
+
@Password.setter
|
|
1735
|
+
def Password(self, Password):
|
|
1736
|
+
self._Password = Password
|
|
1737
|
+
|
|
1738
|
+
@property
|
|
1739
|
+
def PasswordEncrypt(self):
|
|
1740
|
+
r"""密码是否加密
|
|
1741
|
+
:rtype: bool
|
|
1742
|
+
"""
|
|
1743
|
+
return self._PasswordEncrypt
|
|
1744
|
+
|
|
1745
|
+
@PasswordEncrypt.setter
|
|
1746
|
+
def PasswordEncrypt(self, PasswordEncrypt):
|
|
1747
|
+
self._PasswordEncrypt = PasswordEncrypt
|
|
1748
|
+
|
|
1749
|
+
|
|
1750
|
+
def _deserialize(self, params):
|
|
1751
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
1752
|
+
self._UserName = params.get("UserName")
|
|
1753
|
+
self._Password = params.get("Password")
|
|
1754
|
+
self._PasswordEncrypt = params.get("PasswordEncrypt")
|
|
1755
|
+
memeber_set = set(params.keys())
|
|
1756
|
+
for name, value in vars(self).items():
|
|
1757
|
+
property_name = name[1:]
|
|
1758
|
+
if property_name in memeber_set:
|
|
1759
|
+
memeber_set.remove(property_name)
|
|
1760
|
+
if len(memeber_set) > 0:
|
|
1761
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
class CloseAccountCAMResponse(AbstractModel):
|
|
1766
|
+
r"""CloseAccountCAM返回参数结构体
|
|
1767
|
+
|
|
1768
|
+
"""
|
|
1769
|
+
|
|
1770
|
+
def __init__(self):
|
|
1771
|
+
r"""
|
|
1772
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1773
|
+
:type RequestId: str
|
|
1774
|
+
"""
|
|
1775
|
+
self._RequestId = None
|
|
1776
|
+
|
|
1777
|
+
@property
|
|
1778
|
+
def RequestId(self):
|
|
1779
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1780
|
+
:rtype: str
|
|
1781
|
+
"""
|
|
1782
|
+
return self._RequestId
|
|
1783
|
+
|
|
1784
|
+
@RequestId.setter
|
|
1785
|
+
def RequestId(self, RequestId):
|
|
1786
|
+
self._RequestId = RequestId
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
def _deserialize(self, params):
|
|
1790
|
+
self._RequestId = params.get("RequestId")
|
|
1791
|
+
|
|
1792
|
+
|
|
1684
1793
|
class CloseDBExtranetAccessRequest(AbstractModel):
|
|
1685
1794
|
r"""CloseDBExtranetAccess请求参数结构体
|
|
1686
1795
|
|
|
@@ -14278,6 +14387,85 @@ class ModifyDBInstanceChargeTypeResponse(AbstractModel):
|
|
|
14278
14387
|
self._RequestId = params.get("RequestId")
|
|
14279
14388
|
|
|
14280
14389
|
|
|
14390
|
+
class ModifyDBInstanceDeletionProtectionRequest(AbstractModel):
|
|
14391
|
+
r"""ModifyDBInstanceDeletionProtection请求参数结构体
|
|
14392
|
+
|
|
14393
|
+
"""
|
|
14394
|
+
|
|
14395
|
+
def __init__(self):
|
|
14396
|
+
r"""
|
|
14397
|
+
:param _DBInstanceId: 实例 ID。可通过[DescribeDBInstances](https://cloud.tencent.com/document/api/409/16773)接口获取
|
|
14398
|
+
:type DBInstanceId: str
|
|
14399
|
+
:param _DeletionProtection: 开启或关闭实例删除保护。true - 开启 ;false - 关闭。
|
|
14400
|
+
:type DeletionProtection: bool
|
|
14401
|
+
"""
|
|
14402
|
+
self._DBInstanceId = None
|
|
14403
|
+
self._DeletionProtection = None
|
|
14404
|
+
|
|
14405
|
+
@property
|
|
14406
|
+
def DBInstanceId(self):
|
|
14407
|
+
r"""实例 ID。可通过[DescribeDBInstances](https://cloud.tencent.com/document/api/409/16773)接口获取
|
|
14408
|
+
:rtype: str
|
|
14409
|
+
"""
|
|
14410
|
+
return self._DBInstanceId
|
|
14411
|
+
|
|
14412
|
+
@DBInstanceId.setter
|
|
14413
|
+
def DBInstanceId(self, DBInstanceId):
|
|
14414
|
+
self._DBInstanceId = DBInstanceId
|
|
14415
|
+
|
|
14416
|
+
@property
|
|
14417
|
+
def DeletionProtection(self):
|
|
14418
|
+
r"""开启或关闭实例删除保护。true - 开启 ;false - 关闭。
|
|
14419
|
+
:rtype: bool
|
|
14420
|
+
"""
|
|
14421
|
+
return self._DeletionProtection
|
|
14422
|
+
|
|
14423
|
+
@DeletionProtection.setter
|
|
14424
|
+
def DeletionProtection(self, DeletionProtection):
|
|
14425
|
+
self._DeletionProtection = DeletionProtection
|
|
14426
|
+
|
|
14427
|
+
|
|
14428
|
+
def _deserialize(self, params):
|
|
14429
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
14430
|
+
self._DeletionProtection = params.get("DeletionProtection")
|
|
14431
|
+
memeber_set = set(params.keys())
|
|
14432
|
+
for name, value in vars(self).items():
|
|
14433
|
+
property_name = name[1:]
|
|
14434
|
+
if property_name in memeber_set:
|
|
14435
|
+
memeber_set.remove(property_name)
|
|
14436
|
+
if len(memeber_set) > 0:
|
|
14437
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14438
|
+
|
|
14439
|
+
|
|
14440
|
+
|
|
14441
|
+
class ModifyDBInstanceDeletionProtectionResponse(AbstractModel):
|
|
14442
|
+
r"""ModifyDBInstanceDeletionProtection返回参数结构体
|
|
14443
|
+
|
|
14444
|
+
"""
|
|
14445
|
+
|
|
14446
|
+
def __init__(self):
|
|
14447
|
+
r"""
|
|
14448
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14449
|
+
:type RequestId: str
|
|
14450
|
+
"""
|
|
14451
|
+
self._RequestId = None
|
|
14452
|
+
|
|
14453
|
+
@property
|
|
14454
|
+
def RequestId(self):
|
|
14455
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14456
|
+
:rtype: str
|
|
14457
|
+
"""
|
|
14458
|
+
return self._RequestId
|
|
14459
|
+
|
|
14460
|
+
@RequestId.setter
|
|
14461
|
+
def RequestId(self, RequestId):
|
|
14462
|
+
self._RequestId = RequestId
|
|
14463
|
+
|
|
14464
|
+
|
|
14465
|
+
def _deserialize(self, params):
|
|
14466
|
+
self._RequestId = params.get("RequestId")
|
|
14467
|
+
|
|
14468
|
+
|
|
14281
14469
|
class ModifyDBInstanceDeploymentRequest(AbstractModel):
|
|
14282
14470
|
r"""ModifyDBInstanceDeployment请求参数结构体
|
|
14283
14471
|
|
|
@@ -16328,6 +16516,85 @@ class NetworkAccess(AbstractModel):
|
|
|
16328
16516
|
|
|
16329
16517
|
|
|
16330
16518
|
|
|
16519
|
+
class OpenAccountCAMRequest(AbstractModel):
|
|
16520
|
+
r"""OpenAccountCAM请求参数结构体
|
|
16521
|
+
|
|
16522
|
+
"""
|
|
16523
|
+
|
|
16524
|
+
def __init__(self):
|
|
16525
|
+
r"""
|
|
16526
|
+
:param _DBInstanceId: 数据库实例ID
|
|
16527
|
+
:type DBInstanceId: str
|
|
16528
|
+
:param _UserName: 需要开启CAM服务的账号名称
|
|
16529
|
+
:type UserName: str
|
|
16530
|
+
"""
|
|
16531
|
+
self._DBInstanceId = None
|
|
16532
|
+
self._UserName = None
|
|
16533
|
+
|
|
16534
|
+
@property
|
|
16535
|
+
def DBInstanceId(self):
|
|
16536
|
+
r"""数据库实例ID
|
|
16537
|
+
:rtype: str
|
|
16538
|
+
"""
|
|
16539
|
+
return self._DBInstanceId
|
|
16540
|
+
|
|
16541
|
+
@DBInstanceId.setter
|
|
16542
|
+
def DBInstanceId(self, DBInstanceId):
|
|
16543
|
+
self._DBInstanceId = DBInstanceId
|
|
16544
|
+
|
|
16545
|
+
@property
|
|
16546
|
+
def UserName(self):
|
|
16547
|
+
r"""需要开启CAM服务的账号名称
|
|
16548
|
+
:rtype: str
|
|
16549
|
+
"""
|
|
16550
|
+
return self._UserName
|
|
16551
|
+
|
|
16552
|
+
@UserName.setter
|
|
16553
|
+
def UserName(self, UserName):
|
|
16554
|
+
self._UserName = UserName
|
|
16555
|
+
|
|
16556
|
+
|
|
16557
|
+
def _deserialize(self, params):
|
|
16558
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
16559
|
+
self._UserName = params.get("UserName")
|
|
16560
|
+
memeber_set = set(params.keys())
|
|
16561
|
+
for name, value in vars(self).items():
|
|
16562
|
+
property_name = name[1:]
|
|
16563
|
+
if property_name in memeber_set:
|
|
16564
|
+
memeber_set.remove(property_name)
|
|
16565
|
+
if len(memeber_set) > 0:
|
|
16566
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16567
|
+
|
|
16568
|
+
|
|
16569
|
+
|
|
16570
|
+
class OpenAccountCAMResponse(AbstractModel):
|
|
16571
|
+
r"""OpenAccountCAM返回参数结构体
|
|
16572
|
+
|
|
16573
|
+
"""
|
|
16574
|
+
|
|
16575
|
+
def __init__(self):
|
|
16576
|
+
r"""
|
|
16577
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
16578
|
+
:type RequestId: str
|
|
16579
|
+
"""
|
|
16580
|
+
self._RequestId = None
|
|
16581
|
+
|
|
16582
|
+
@property
|
|
16583
|
+
def RequestId(self):
|
|
16584
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
16585
|
+
:rtype: str
|
|
16586
|
+
"""
|
|
16587
|
+
return self._RequestId
|
|
16588
|
+
|
|
16589
|
+
@RequestId.setter
|
|
16590
|
+
def RequestId(self, RequestId):
|
|
16591
|
+
self._RequestId = RequestId
|
|
16592
|
+
|
|
16593
|
+
|
|
16594
|
+
def _deserialize(self, params):
|
|
16595
|
+
self._RequestId = params.get("RequestId")
|
|
16596
|
+
|
|
16597
|
+
|
|
16331
16598
|
class OpenDBExtranetAccessRequest(AbstractModel):
|
|
16332
16599
|
r"""OpenDBExtranetAccess请求参数结构体
|
|
16333
16600
|
|
|
@@ -17875,6 +18142,85 @@ class RebalanceReadOnlyGroupResponse(AbstractModel):
|
|
|
17875
18142
|
self._RequestId = params.get("RequestId")
|
|
17876
18143
|
|
|
17877
18144
|
|
|
18145
|
+
class RefreshAccountPasswordRequest(AbstractModel):
|
|
18146
|
+
r"""RefreshAccountPassword请求参数结构体
|
|
18147
|
+
|
|
18148
|
+
"""
|
|
18149
|
+
|
|
18150
|
+
def __init__(self):
|
|
18151
|
+
r"""
|
|
18152
|
+
:param _DBInstanceId: 实例ID
|
|
18153
|
+
:type DBInstanceId: str
|
|
18154
|
+
:param _UserName: 账号名称
|
|
18155
|
+
:type UserName: str
|
|
18156
|
+
"""
|
|
18157
|
+
self._DBInstanceId = None
|
|
18158
|
+
self._UserName = None
|
|
18159
|
+
|
|
18160
|
+
@property
|
|
18161
|
+
def DBInstanceId(self):
|
|
18162
|
+
r"""实例ID
|
|
18163
|
+
:rtype: str
|
|
18164
|
+
"""
|
|
18165
|
+
return self._DBInstanceId
|
|
18166
|
+
|
|
18167
|
+
@DBInstanceId.setter
|
|
18168
|
+
def DBInstanceId(self, DBInstanceId):
|
|
18169
|
+
self._DBInstanceId = DBInstanceId
|
|
18170
|
+
|
|
18171
|
+
@property
|
|
18172
|
+
def UserName(self):
|
|
18173
|
+
r"""账号名称
|
|
18174
|
+
:rtype: str
|
|
18175
|
+
"""
|
|
18176
|
+
return self._UserName
|
|
18177
|
+
|
|
18178
|
+
@UserName.setter
|
|
18179
|
+
def UserName(self, UserName):
|
|
18180
|
+
self._UserName = UserName
|
|
18181
|
+
|
|
18182
|
+
|
|
18183
|
+
def _deserialize(self, params):
|
|
18184
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
18185
|
+
self._UserName = params.get("UserName")
|
|
18186
|
+
memeber_set = set(params.keys())
|
|
18187
|
+
for name, value in vars(self).items():
|
|
18188
|
+
property_name = name[1:]
|
|
18189
|
+
if property_name in memeber_set:
|
|
18190
|
+
memeber_set.remove(property_name)
|
|
18191
|
+
if len(memeber_set) > 0:
|
|
18192
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18193
|
+
|
|
18194
|
+
|
|
18195
|
+
|
|
18196
|
+
class RefreshAccountPasswordResponse(AbstractModel):
|
|
18197
|
+
r"""RefreshAccountPassword返回参数结构体
|
|
18198
|
+
|
|
18199
|
+
"""
|
|
18200
|
+
|
|
18201
|
+
def __init__(self):
|
|
18202
|
+
r"""
|
|
18203
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18204
|
+
:type RequestId: str
|
|
18205
|
+
"""
|
|
18206
|
+
self._RequestId = None
|
|
18207
|
+
|
|
18208
|
+
@property
|
|
18209
|
+
def RequestId(self):
|
|
18210
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18211
|
+
:rtype: str
|
|
18212
|
+
"""
|
|
18213
|
+
return self._RequestId
|
|
18214
|
+
|
|
18215
|
+
@RequestId.setter
|
|
18216
|
+
def RequestId(self, RequestId):
|
|
18217
|
+
self._RequestId = RequestId
|
|
18218
|
+
|
|
18219
|
+
|
|
18220
|
+
def _deserialize(self, params):
|
|
18221
|
+
self._RequestId = params.get("RequestId")
|
|
18222
|
+
|
|
18223
|
+
|
|
17878
18224
|
class RegionInfo(AbstractModel):
|
|
17879
18225
|
r"""描述地域的编码和状态等信息
|
|
17880
18226
|
|
|
@@ -72,6 +72,29 @@ class PostgresClient(AbstractClient):
|
|
|
72
72
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
73
|
|
|
74
74
|
|
|
75
|
+
def CloseAccountCAM(self, request):
|
|
76
|
+
r"""本接口用于关闭数据库账户的CAM验证服务。
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for CloseAccountCAM.
|
|
79
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.CloseAccountCAMRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.CloseAccountCAMResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("CloseAccountCAM", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.CloseAccountCAMResponse()
|
|
89
|
+
model._deserialize(response["Response"])
|
|
90
|
+
return model
|
|
91
|
+
except Exception as e:
|
|
92
|
+
if isinstance(e, TencentCloudSDKException):
|
|
93
|
+
raise
|
|
94
|
+
else:
|
|
95
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
96
|
+
|
|
97
|
+
|
|
75
98
|
def CloseDBExtranetAccess(self, request):
|
|
76
99
|
r"""本接口(CloseDBExtranetAccess)用于关闭实例公网地址。
|
|
77
100
|
|
|
@@ -1710,6 +1733,29 @@ class PostgresClient(AbstractClient):
|
|
|
1710
1733
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1711
1734
|
|
|
1712
1735
|
|
|
1736
|
+
def ModifyDBInstanceDeletionProtection(self, request):
|
|
1737
|
+
r"""本接口(DeletionProtection)用于开启或关闭实例销毁保护
|
|
1738
|
+
|
|
1739
|
+
:param request: Request instance for ModifyDBInstanceDeletionProtection.
|
|
1740
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.ModifyDBInstanceDeletionProtectionRequest`
|
|
1741
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.ModifyDBInstanceDeletionProtectionResponse`
|
|
1742
|
+
|
|
1743
|
+
"""
|
|
1744
|
+
try:
|
|
1745
|
+
params = request._serialize()
|
|
1746
|
+
headers = request.headers
|
|
1747
|
+
body = self.call("ModifyDBInstanceDeletionProtection", params, headers=headers)
|
|
1748
|
+
response = json.loads(body)
|
|
1749
|
+
model = models.ModifyDBInstanceDeletionProtectionResponse()
|
|
1750
|
+
model._deserialize(response["Response"])
|
|
1751
|
+
return model
|
|
1752
|
+
except Exception as e:
|
|
1753
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1754
|
+
raise
|
|
1755
|
+
else:
|
|
1756
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1757
|
+
|
|
1758
|
+
|
|
1713
1759
|
def ModifyDBInstanceDeployment(self, request):
|
|
1714
1760
|
r"""本接口(ModifyDBInstanceDeployment)用于修改节点可用区部署方式,仅支持主实例。
|
|
1715
1761
|
|
|
@@ -2057,6 +2103,29 @@ class PostgresClient(AbstractClient):
|
|
|
2057
2103
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2058
2104
|
|
|
2059
2105
|
|
|
2106
|
+
def OpenAccountCAM(self, request):
|
|
2107
|
+
r"""本接口用于开启数据库账户的CAM验证服务。
|
|
2108
|
+
|
|
2109
|
+
:param request: Request instance for OpenAccountCAM.
|
|
2110
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.OpenAccountCAMRequest`
|
|
2111
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.OpenAccountCAMResponse`
|
|
2112
|
+
|
|
2113
|
+
"""
|
|
2114
|
+
try:
|
|
2115
|
+
params = request._serialize()
|
|
2116
|
+
headers = request.headers
|
|
2117
|
+
body = self.call("OpenAccountCAM", params, headers=headers)
|
|
2118
|
+
response = json.loads(body)
|
|
2119
|
+
model = models.OpenAccountCAMResponse()
|
|
2120
|
+
model._deserialize(response["Response"])
|
|
2121
|
+
return model
|
|
2122
|
+
except Exception as e:
|
|
2123
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2124
|
+
raise
|
|
2125
|
+
else:
|
|
2126
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2127
|
+
|
|
2128
|
+
|
|
2060
2129
|
def OpenDBExtranetAccess(self, request):
|
|
2061
2130
|
r"""本接口(OpenDBExtranetAccess)用于开通实例公网地址。
|
|
2062
2131
|
|
|
@@ -2103,6 +2172,29 @@ class PostgresClient(AbstractClient):
|
|
|
2103
2172
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2104
2173
|
|
|
2105
2174
|
|
|
2175
|
+
def RefreshAccountPassword(self, request):
|
|
2176
|
+
r"""本接口用于对开启CAM验证的账户执行手动刷新密码。
|
|
2177
|
+
|
|
2178
|
+
:param request: Request instance for RefreshAccountPassword.
|
|
2179
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.RefreshAccountPasswordRequest`
|
|
2180
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.RefreshAccountPasswordResponse`
|
|
2181
|
+
|
|
2182
|
+
"""
|
|
2183
|
+
try:
|
|
2184
|
+
params = request._serialize()
|
|
2185
|
+
headers = request.headers
|
|
2186
|
+
body = self.call("RefreshAccountPassword", params, headers=headers)
|
|
2187
|
+
response = json.loads(body)
|
|
2188
|
+
model = models.RefreshAccountPasswordResponse()
|
|
2189
|
+
model._deserialize(response["Response"])
|
|
2190
|
+
return model
|
|
2191
|
+
except Exception as e:
|
|
2192
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2193
|
+
raise
|
|
2194
|
+
else:
|
|
2195
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2196
|
+
|
|
2197
|
+
|
|
2106
2198
|
def RemoveDBInstanceFromReadOnlyGroup(self, request):
|
|
2107
2199
|
r"""本接口(RemoveDBInstanceFromReadOnlyGroup)用户将只读实例从只读组中移除
|
|
2108
2200
|
|
|
@@ -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.1490
|
|
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<4.0.0,>=3.0.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1490
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
tencentcloud_sdk_python_postgres-3.0.1490/tencentcloud_sdk_python_postgres.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1490
|
tencentcloud_sdk_python_postgres-3.0.1481/tencentcloud_sdk_python_postgres.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.0.1481
|
{tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/README.rst
RENAMED
|
File without changes
|
{tencentcloud_sdk_python_postgres-3.0.1481 → tencentcloud_sdk_python_postgres-3.0.1490}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|