tencentcloud-sdk-python-postgres 3.1.143__tar.gz → 3.1.154__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/setup.py +1 -1
  3. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/postgres/v20170312/models.py +120 -60
  5. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/postgres/v20170312/postgres_client.py +36 -0
  6. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/postgres/v20170312/postgres_client_async.py +31 -0
  7. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud_sdk_python_postgres.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_postgres-3.1.154/tencentcloud_sdk_python_postgres.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_postgres-3.1.143/tencentcloud_sdk_python_postgres.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/README.rst +0 -0
  11. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/postgres/__init__.py +0 -0
  13. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/postgres/v20170312/__init__.py +0 -0
  14. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/postgres/v20170312/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud_sdk_python_postgres.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud_sdk_python_postgres.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_postgres-3.1.143 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud_sdk_python_postgres.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-postgres
3
- Version: 3.1.143
3
+ Version: 3.1.154
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.1.143
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.154
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -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.1.143,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.154,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Postgres SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.143'
17
+ __version__ = '3.1.154'
@@ -4510,7 +4510,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
4510
4510
  :type ActivityId: int
4511
4511
  :param _ReadOnlyGroupId: <p>只读组ID。</p>
4512
4512
  :type ReadOnlyGroupId: str
4513
- :param _TagList: <p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p>
4513
+ :param _TagList: <p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p><p>当前字段未完整支持多个tag形式,不推荐使用,建议使用新字段Tags</p>
4514
4514
  :type TagList: :class:`tencentcloud.postgres.v20170312.models.Tag`
4515
4515
  :param _SecurityGroupIds: <p>实例所属安全组,该参数可以通过调用 <a href="https://cloud.tencent.com/document/api/215/15808">DescribeSecurityGroups</a> 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。</p>
4516
4516
  :type SecurityGroupIds: list of str
@@ -4524,6 +4524,8 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
4524
4524
  :type DedicatedClusterId: str
4525
4525
  :param _DeletionProtection: <p>实例是否开启删除保护: true-开启删除保护;false-关闭删除保护。</p>
4526
4526
  :type DeletionProtection: bool
4527
+ :param _Tags: <p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p>
4528
+ :type Tags: list of Tag
4527
4529
  """
4528
4530
  self._Zone = None
4529
4531
  self._MasterDBInstanceId = None
@@ -4547,6 +4549,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
4547
4549
  self._DBVersion = None
4548
4550
  self._DedicatedClusterId = None
4549
4551
  self._DeletionProtection = None
4552
+ self._Tags = None
4550
4553
 
4551
4554
  @property
4552
4555
  def Zone(self):
@@ -4715,7 +4718,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
4715
4718
 
4716
4719
  @property
4717
4720
  def TagList(self):
4718
- r"""<p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p>
4721
+ r"""<p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p><p>当前字段未完整支持多个tag形式,不推荐使用,建议使用新字段Tags</p>
4719
4722
  :rtype: :class:`tencentcloud.postgres.v20170312.models.Tag`
4720
4723
  """
4721
4724
  return self._TagList
@@ -4794,6 +4797,17 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
4794
4797
  def DeletionProtection(self, DeletionProtection):
4795
4798
  self._DeletionProtection = DeletionProtection
4796
4799
 
4800
+ @property
4801
+ def Tags(self):
4802
+ r"""<p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p>
4803
+ :rtype: list of Tag
4804
+ """
4805
+ return self._Tags
4806
+
4807
+ @Tags.setter
4808
+ def Tags(self, Tags):
4809
+ self._Tags = Tags
4810
+
4797
4811
 
4798
4812
  def _deserialize(self, params):
4799
4813
  self._Zone = params.get("Zone")
@@ -4820,6 +4834,12 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
4820
4834
  self._DBVersion = params.get("DBVersion")
4821
4835
  self._DedicatedClusterId = params.get("DedicatedClusterId")
4822
4836
  self._DeletionProtection = params.get("DeletionProtection")
4837
+ if params.get("Tags") is not None:
4838
+ self._Tags = []
4839
+ for item in params.get("Tags"):
4840
+ obj = Tag()
4841
+ obj._deserialize(item)
4842
+ self._Tags.append(obj)
4823
4843
  memeber_set = set(params.keys())
4824
4844
  for name, value in vars(self).items():
4825
4845
  property_name = name[1:]
@@ -7368,6 +7388,40 @@ class DeleteDBInstanceNetworkAccessResponse(AbstractModel):
7368
7388
  self._RequestId = params.get("RequestId")
7369
7389
 
7370
7390
 
7391
+ class DeleteDatabaseRequest(AbstractModel):
7392
+ r"""DeleteDatabase请求参数结构体
7393
+
7394
+ """
7395
+
7396
+
7397
+ class DeleteDatabaseResponse(AbstractModel):
7398
+ r"""DeleteDatabase返回参数结构体
7399
+
7400
+ """
7401
+
7402
+ def __init__(self):
7403
+ r"""
7404
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7405
+ :type RequestId: str
7406
+ """
7407
+ self._RequestId = None
7408
+
7409
+ @property
7410
+ def RequestId(self):
7411
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7412
+ :rtype: str
7413
+ """
7414
+ return self._RequestId
7415
+
7416
+ @RequestId.setter
7417
+ def RequestId(self, RequestId):
7418
+ self._RequestId = RequestId
7419
+
7420
+
7421
+ def _deserialize(self, params):
7422
+ self._RequestId = params.get("RequestId")
7423
+
7424
+
7371
7425
  class DeleteLogBackupRequest(AbstractModel):
7372
7426
  r"""DeleteLogBackup请求参数结构体
7373
7427
 
@@ -13762,21 +13816,21 @@ class DescribeTasksRequest(AbstractModel):
13762
13816
 
13763
13817
  def __init__(self):
13764
13818
  r"""
13765
- :param _TaskId: 按照任务ID进行查询。其余云API中返回的FlowId和TaskId等价。
13819
+ :param _TaskId: <p>按照任务ID进行查询。其余云API中返回的FlowId和TaskId等价。</p>
13766
13820
  :type TaskId: int
13767
- :param _DBInstanceId: 按照数据库实例ID进行查询。
13821
+ :param _DBInstanceId: <p>按照数据库实例ID进行查询。</p>
13768
13822
  :type DBInstanceId: str
13769
- :param _MinStartTime: 任务的最早开始时间,形如2024-08-23 00:00:00,默认只展示180天内的数据。
13823
+ :param _MinStartTime: <p>任务的最早开始时间,形如2024-08-23 00:00:00,默认只展示180天内的数据。</p>
13770
13824
  :type MinStartTime: str
13771
- :param _MaxStartTime: 任务的最晚开始时间,形如2024-08-23 00:00:00,默认为当前时间。
13825
+ :param _MaxStartTime: <p>任务的最晚开始时间,形如2024-08-23 00:00:00,默认为当前时间。</p>
13772
13826
  :type MaxStartTime: str
13773
- :param _Limit: 每页显示数量,取值范围为1-100,默认为返回20条。
13827
+ :param _Limit: <p>每页显示数量,取值范围为1-100,默认为返回20条。</p>
13774
13828
  :type Limit: int
13775
- :param _Offset: 数据偏移量,从0开始。
13829
+ :param _Offset: <p>数据偏移量,从0开始。</p>
13776
13830
  :type Offset: int
13777
- :param _OrderBy: 排序字段,支持StartTime,EndTime,默认为StartTime
13831
+ :param _OrderBy: <p>排序字段,支持StartTime,EndTime,默认为StartTime。</p>
13778
13832
  :type OrderBy: str
13779
- :param _OrderByType: 排序方式,包括升序:asc,降序:desc,默认为desc
13833
+ :param _OrderByType: <p>排序方式,包括升序:asc,降序:desc,默认为desc。</p>
13780
13834
  :type OrderByType: str
13781
13835
  """
13782
13836
  self._TaskId = None
@@ -13790,7 +13844,7 @@ class DescribeTasksRequest(AbstractModel):
13790
13844
 
13791
13845
  @property
13792
13846
  def TaskId(self):
13793
- r"""按照任务ID进行查询。其余云API中返回的FlowId和TaskId等价。
13847
+ r"""<p>按照任务ID进行查询。其余云API中返回的FlowId和TaskId等价。</p>
13794
13848
  :rtype: int
13795
13849
  """
13796
13850
  return self._TaskId
@@ -13801,7 +13855,7 @@ class DescribeTasksRequest(AbstractModel):
13801
13855
 
13802
13856
  @property
13803
13857
  def DBInstanceId(self):
13804
- r"""按照数据库实例ID进行查询。
13858
+ r"""<p>按照数据库实例ID进行查询。</p>
13805
13859
  :rtype: str
13806
13860
  """
13807
13861
  return self._DBInstanceId
@@ -13812,7 +13866,7 @@ class DescribeTasksRequest(AbstractModel):
13812
13866
 
13813
13867
  @property
13814
13868
  def MinStartTime(self):
13815
- r"""任务的最早开始时间,形如2024-08-23 00:00:00,默认只展示180天内的数据。
13869
+ r"""<p>任务的最早开始时间,形如2024-08-23 00:00:00,默认只展示180天内的数据。</p>
13816
13870
  :rtype: str
13817
13871
  """
13818
13872
  return self._MinStartTime
@@ -13823,7 +13877,7 @@ class DescribeTasksRequest(AbstractModel):
13823
13877
 
13824
13878
  @property
13825
13879
  def MaxStartTime(self):
13826
- r"""任务的最晚开始时间,形如2024-08-23 00:00:00,默认为当前时间。
13880
+ r"""<p>任务的最晚开始时间,形如2024-08-23 00:00:00,默认为当前时间。</p>
13827
13881
  :rtype: str
13828
13882
  """
13829
13883
  return self._MaxStartTime
@@ -13834,7 +13888,7 @@ class DescribeTasksRequest(AbstractModel):
13834
13888
 
13835
13889
  @property
13836
13890
  def Limit(self):
13837
- r"""每页显示数量,取值范围为1-100,默认为返回20条。
13891
+ r"""<p>每页显示数量,取值范围为1-100,默认为返回20条。</p>
13838
13892
  :rtype: int
13839
13893
  """
13840
13894
  return self._Limit
@@ -13845,7 +13899,7 @@ class DescribeTasksRequest(AbstractModel):
13845
13899
 
13846
13900
  @property
13847
13901
  def Offset(self):
13848
- r"""数据偏移量,从0开始。
13902
+ r"""<p>数据偏移量,从0开始。</p>
13849
13903
  :rtype: int
13850
13904
  """
13851
13905
  return self._Offset
@@ -13856,7 +13910,7 @@ class DescribeTasksRequest(AbstractModel):
13856
13910
 
13857
13911
  @property
13858
13912
  def OrderBy(self):
13859
- r"""排序字段,支持StartTime,EndTime,默认为StartTime
13913
+ r"""<p>排序字段,支持StartTime,EndTime,默认为StartTime。</p>
13860
13914
  :rtype: str
13861
13915
  """
13862
13916
  return self._OrderBy
@@ -13867,7 +13921,7 @@ class DescribeTasksRequest(AbstractModel):
13867
13921
 
13868
13922
  @property
13869
13923
  def OrderByType(self):
13870
- r"""排序方式,包括升序:asc,降序:desc,默认为desc
13924
+ r"""<p>排序方式,包括升序:asc,降序:desc,默认为desc。</p>
13871
13925
  :rtype: str
13872
13926
  """
13873
13927
  return self._OrderByType
@@ -13903,9 +13957,9 @@ class DescribeTasksResponse(AbstractModel):
13903
13957
 
13904
13958
  def __init__(self):
13905
13959
  r"""
13906
- :param _TotalCount: 查询到的任务数量
13960
+ :param _TotalCount: <p>查询到的任务数量</p>
13907
13961
  :type TotalCount: int
13908
- :param _TaskSet: 任务信息列表
13962
+ :param _TaskSet: <p>任务信息列表</p>
13909
13963
  :type TaskSet: list of TaskSet
13910
13964
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13911
13965
  :type RequestId: str
@@ -13916,7 +13970,7 @@ class DescribeTasksResponse(AbstractModel):
13916
13970
 
13917
13971
  @property
13918
13972
  def TotalCount(self):
13919
- r"""查询到的任务数量
13973
+ r"""<p>查询到的任务数量</p>
13920
13974
  :rtype: int
13921
13975
  """
13922
13976
  return self._TotalCount
@@ -13927,7 +13981,7 @@ class DescribeTasksResponse(AbstractModel):
13927
13981
 
13928
13982
  @property
13929
13983
  def TaskSet(self):
13930
- r"""任务信息列表
13984
+ r"""<p>任务信息列表</p>
13931
13985
  :rtype: list of TaskSet
13932
13986
  """
13933
13987
  return self._TaskSet
@@ -17919,33 +17973,28 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
17919
17973
 
17920
17974
  def __init__(self):
17921
17975
  r"""
17922
- :param _DBInstanceId: 实例ID,形如:postgres-6bwgamo3。可通过[DescribeDBInstances](https://cloud.tencent.com/document/api/409/16773)接口获取
17976
+ :param _DBInstanceId: <p>实例ID,形如:postgres-6bwgamo3。可通过<a href="https://cloud.tencent.com/document/api/409/16773">DescribeDBInstances</a>接口获取</p>
17923
17977
  :type DBInstanceId: str
17924
- :param _Memory: 修改后的实例内存大小,单位GiB。
17978
+ :param _Memory: <p>修改后的实例内存大小,单位GB。</p>
17925
17979
  :type Memory: int
17926
- :param _Storage: 修改后的实例磁盘大小,单位GiB。该参数的设置步长为10
17980
+ :param _Storage: <p>修改后的实例磁盘大小,单位GB。该参数的设置步长为10。</p>
17927
17981
  :type Storage: int
17928
- :param _AutoVoucher: 是否自动使用代金券:
17929
- <li>0:否</li>
17930
- <li>1:是</li>
17931
- 默认值:0
17982
+ :param _AutoVoucher: <p>是否自动使用代金券:</p><li>0:否</li><li>1:是</li>默认值:0
17932
17983
  :type AutoVoucher: int
17933
- :param _VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
17984
+ :param _VoucherIds: <p>代金券ID列表,目前仅支持指定一张代金券。</p>
17934
17985
  :type VoucherIds: list of str
17935
- :param _ActivityId: 活动ID
17986
+ :param _ActivityId: <p>活动ID。</p>
17936
17987
  :type ActivityId: int
17937
- :param _SwitchTag: 指定实例配置完成变更后的切换时间。
17938
- <li>0:立即切换 </li>
17939
- <li>1:指定时间切换</li>
17940
- <li>2:维护时间窗口内</li>切换
17941
- 默认值:0
17988
+ :param _SwitchTag: <p>指定实例配置完成变更后的切换时间。</p><li>0:立即切换 </li><li>1:指定时间切换</li><li>2:维护时间窗口内</li>切换默认值:0
17942
17989
  :type SwitchTag: int
17943
- :param _SwitchStartTime: 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。
17990
+ :param _SwitchStartTime: <p>切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。</p>
17944
17991
  :type SwitchStartTime: str
17945
- :param _SwitchEndTime: 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。
17992
+ :param _SwitchEndTime: <p>切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。</p>
17946
17993
  :type SwitchEndTime: str
17947
- :param _Cpu: 修改后的实例CPU大小,单位Core。不填写该参数时,默认根据Memory确定Cpu大小。如Memory为2,支持的规格有1核2GiB,则不传入Cpu时,Cpu默认为1
17994
+ :param _Cpu: <p>修改后的实例CPU大小,单位Core。不填写该参数时,默认根据Memory确定Cpu大小。如Memory为2,支持的规格有1核2GB,则不传入Cpu时,Cpu默认为1。</p>
17948
17995
  :type Cpu: int
17996
+ :param _SyncModifyParams: <p>变配时同步修改的参数列表</p>
17997
+ :type SyncModifyParams: list of ParamEntry
17949
17998
  """
17950
17999
  self._DBInstanceId = None
17951
18000
  self._Memory = None
@@ -17957,10 +18006,11 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
17957
18006
  self._SwitchStartTime = None
17958
18007
  self._SwitchEndTime = None
17959
18008
  self._Cpu = None
18009
+ self._SyncModifyParams = None
17960
18010
 
17961
18011
  @property
17962
18012
  def DBInstanceId(self):
17963
- r"""实例ID,形如:postgres-6bwgamo3。可通过[DescribeDBInstances](https://cloud.tencent.com/document/api/409/16773)接口获取
18013
+ r"""<p>实例ID,形如:postgres-6bwgamo3。可通过<a href="https://cloud.tencent.com/document/api/409/16773">DescribeDBInstances</a>接口获取</p>
17964
18014
  :rtype: str
17965
18015
  """
17966
18016
  return self._DBInstanceId
@@ -17971,7 +18021,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
17971
18021
 
17972
18022
  @property
17973
18023
  def Memory(self):
17974
- r"""修改后的实例内存大小,单位GiB。
18024
+ r"""<p>修改后的实例内存大小,单位GB。</p>
17975
18025
  :rtype: int
17976
18026
  """
17977
18027
  return self._Memory
@@ -17982,7 +18032,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
17982
18032
 
17983
18033
  @property
17984
18034
  def Storage(self):
17985
- r"""修改后的实例磁盘大小,单位GiB。该参数的设置步长为10
18035
+ r"""<p>修改后的实例磁盘大小,单位GB。该参数的设置步长为10。</p>
17986
18036
  :rtype: int
17987
18037
  """
17988
18038
  return self._Storage
@@ -17993,10 +18043,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
17993
18043
 
17994
18044
  @property
17995
18045
  def AutoVoucher(self):
17996
- r"""是否自动使用代金券:
17997
- <li>0:否</li>
17998
- <li>1:是</li>
17999
- 默认值:0
18046
+ r"""<p>是否自动使用代金券:</p><li>0:否</li><li>1:是</li>默认值:0
18000
18047
  :rtype: int
18001
18048
  """
18002
18049
  return self._AutoVoucher
@@ -18007,7 +18054,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
18007
18054
 
18008
18055
  @property
18009
18056
  def VoucherIds(self):
18010
- r"""代金券ID列表,目前仅支持指定一张代金券。
18057
+ r"""<p>代金券ID列表,目前仅支持指定一张代金券。</p>
18011
18058
  :rtype: list of str
18012
18059
  """
18013
18060
  return self._VoucherIds
@@ -18018,7 +18065,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
18018
18065
 
18019
18066
  @property
18020
18067
  def ActivityId(self):
18021
- r"""活动ID
18068
+ r"""<p>活动ID。</p>
18022
18069
  :rtype: int
18023
18070
  """
18024
18071
  return self._ActivityId
@@ -18029,11 +18076,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
18029
18076
 
18030
18077
  @property
18031
18078
  def SwitchTag(self):
18032
- r"""指定实例配置完成变更后的切换时间。
18033
- <li>0:立即切换 </li>
18034
- <li>1:指定时间切换</li>
18035
- <li>2:维护时间窗口内</li>切换
18036
- 默认值:0
18079
+ r"""<p>指定实例配置完成变更后的切换时间。</p><li>0:立即切换 </li><li>1:指定时间切换</li><li>2:维护时间窗口内</li>切换默认值:0
18037
18080
  :rtype: int
18038
18081
  """
18039
18082
  return self._SwitchTag
@@ -18044,7 +18087,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
18044
18087
 
18045
18088
  @property
18046
18089
  def SwitchStartTime(self):
18047
- r"""切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。
18090
+ r"""<p>切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。</p>
18048
18091
  :rtype: str
18049
18092
  """
18050
18093
  return self._SwitchStartTime
@@ -18055,7 +18098,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
18055
18098
 
18056
18099
  @property
18057
18100
  def SwitchEndTime(self):
18058
- r"""切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。
18101
+ r"""<p>切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。</p>
18059
18102
  :rtype: str
18060
18103
  """
18061
18104
  return self._SwitchEndTime
@@ -18066,7 +18109,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
18066
18109
 
18067
18110
  @property
18068
18111
  def Cpu(self):
18069
- r"""修改后的实例CPU大小,单位Core。不填写该参数时,默认根据Memory确定Cpu大小。如Memory为2,支持的规格有1核2GiB,则不传入Cpu时,Cpu默认为1
18112
+ r"""<p>修改后的实例CPU大小,单位Core。不填写该参数时,默认根据Memory确定Cpu大小。如Memory为2,支持的规格有1核2GB,则不传入Cpu时,Cpu默认为1。</p>
18070
18113
  :rtype: int
18071
18114
  """
18072
18115
  return self._Cpu
@@ -18075,6 +18118,17 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
18075
18118
  def Cpu(self, Cpu):
18076
18119
  self._Cpu = Cpu
18077
18120
 
18121
+ @property
18122
+ def SyncModifyParams(self):
18123
+ r"""<p>变配时同步修改的参数列表</p>
18124
+ :rtype: list of ParamEntry
18125
+ """
18126
+ return self._SyncModifyParams
18127
+
18128
+ @SyncModifyParams.setter
18129
+ def SyncModifyParams(self, SyncModifyParams):
18130
+ self._SyncModifyParams = SyncModifyParams
18131
+
18078
18132
 
18079
18133
  def _deserialize(self, params):
18080
18134
  self._DBInstanceId = params.get("DBInstanceId")
@@ -18087,6 +18141,12 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
18087
18141
  self._SwitchStartTime = params.get("SwitchStartTime")
18088
18142
  self._SwitchEndTime = params.get("SwitchEndTime")
18089
18143
  self._Cpu = params.get("Cpu")
18144
+ if params.get("SyncModifyParams") is not None:
18145
+ self._SyncModifyParams = []
18146
+ for item in params.get("SyncModifyParams"):
18147
+ obj = ParamEntry()
18148
+ obj._deserialize(item)
18149
+ self._SyncModifyParams.append(obj)
18090
18150
  memeber_set = set(params.keys())
18091
18151
  for name, value in vars(self).items():
18092
18152
  property_name = name[1:]
@@ -18104,9 +18164,9 @@ class ModifyDBInstanceSpecResponse(AbstractModel):
18104
18164
 
18105
18165
  def __init__(self):
18106
18166
  r"""
18107
- :param _DealName: 订单号。
18167
+ :param _DealName: <p>订单号。</p>
18108
18168
  :type DealName: str
18109
- :param _BillId: 冻结流水号。
18169
+ :param _BillId: <p>冻结流水号。</p>
18110
18170
  :type BillId: str
18111
18171
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
18112
18172
  :type RequestId: str
@@ -18117,7 +18177,7 @@ class ModifyDBInstanceSpecResponse(AbstractModel):
18117
18177
 
18118
18178
  @property
18119
18179
  def DealName(self):
18120
- r"""订单号。
18180
+ r"""<p>订单号。</p>
18121
18181
  :rtype: str
18122
18182
  """
18123
18183
  return self._DealName
@@ -18128,7 +18188,7 @@ class ModifyDBInstanceSpecResponse(AbstractModel):
18128
18188
 
18129
18189
  @property
18130
18190
  def BillId(self):
18131
- r"""冻结流水号。
18191
+ r"""<p>冻结流水号。</p>
18132
18192
  :rtype: str
18133
18193
  """
18134
18194
  return self._BillId
@@ -534,6 +534,42 @@ class PostgresClient(AbstractClient):
534
534
  raise TencentCloudSDKException(type(e).__name__, str(e))
535
535
 
536
536
 
537
+ def DeleteDatabase(self, request):
538
+ r"""本接口(DeleteDatabase)用于删除指定 PostgreSQL 实例中的数据库。删除操作会直接调用底层存储引擎执行,为保障数据安全和系统稳定,接口在执行前会进行多项前置校验。
539
+ 使用限制
540
+
541
+ - 实例状态限制:仅允许对运行中的实例执行删除数据库操作。
542
+
543
+ - 只读实例限制:只读实例不支持删除数据库操作。由于只读实例的数据来源于主实例同步,不允许在只读侧执行库级别的删除变更。若对只读实例发起此请求,将直接被拦截并返回错误。
544
+
545
+ - 数据库名合法性限制:待删除的数据库名称必须通过以下校验,否则报错:
546
+ 长度符合 PostgreSQL 命名规范
547
+ 字符集合法(仅允许字母、数字、下划线,且不能以数字开头)
548
+ 不能为系统保留库名(如 postgres、template0、template1 等)
549
+ 不能为 PostgreSQL 关键字/保留字
550
+
551
+ - 不可逆操作:数据库一经删除,数据将无法恢复。执行前请确认已做好必要的数据备份。
552
+
553
+ :param request: Request instance for DeleteDatabase.
554
+ :type request: :class:`tencentcloud.postgres.v20170312.models.DeleteDatabaseRequest`
555
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.DeleteDatabaseResponse`
556
+
557
+ """
558
+ try:
559
+ params = request._serialize()
560
+ headers = request.headers
561
+ body = self.call("DeleteDatabase", params, headers=headers)
562
+ response = json.loads(body)
563
+ model = models.DeleteDatabaseResponse()
564
+ model._deserialize(response["Response"])
565
+ return model
566
+ except Exception as e:
567
+ if isinstance(e, TencentCloudSDKException):
568
+ raise
569
+ else:
570
+ raise TencentCloudSDKException(type(e).__name__, str(e))
571
+
572
+
537
573
  def DeleteLogBackup(self, request):
538
574
  r"""本接口(DeleteLogBackup)用于删除实例指定日志备份。
539
575
 
@@ -423,6 +423,37 @@ class PostgresClient(AbstractClient):
423
423
 
424
424
  return await self.call_and_deserialize(**kwargs)
425
425
 
426
+ async def DeleteDatabase(
427
+ self,
428
+ request: models.DeleteDatabaseRequest,
429
+ opts: Dict = None,
430
+ ) -> models.DeleteDatabaseResponse:
431
+ """
432
+ 本接口(DeleteDatabase)用于删除指定 PostgreSQL 实例中的数据库。删除操作会直接调用底层存储引擎执行,为保障数据安全和系统稳定,接口在执行前会进行多项前置校验。
433
+ 使用限制
434
+
435
+ - 实例状态限制:仅允许对运行中的实例执行删除数据库操作。
436
+
437
+ - 只读实例限制:只读实例不支持删除数据库操作。由于只读实例的数据来源于主实例同步,不允许在只读侧执行库级别的删除变更。若对只读实例发起此请求,将直接被拦截并返回错误。
438
+
439
+ - 数据库名合法性限制:待删除的数据库名称必须通过以下校验,否则报错:
440
+ 长度符合 PostgreSQL 命名规范
441
+ 字符集合法(仅允许字母、数字、下划线,且不能以数字开头)
442
+ 不能为系统保留库名(如 postgres、template0、template1 等)
443
+ 不能为 PostgreSQL 关键字/保留字
444
+
445
+ - 不可逆操作:数据库一经删除,数据将无法恢复。执行前请确认已做好必要的数据备份。
446
+ """
447
+
448
+ kwargs = {}
449
+ kwargs["action"] = "DeleteDatabase"
450
+ kwargs["params"] = request._serialize()
451
+ kwargs["resp_cls"] = models.DeleteDatabaseResponse
452
+ kwargs["headers"] = request.headers
453
+ kwargs["opts"] = opts or {}
454
+
455
+ return await self.call_and_deserialize(**kwargs)
456
+
426
457
  async def DeleteLogBackup(
427
458
  self,
428
459
  request: models.DeleteLogBackupRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-postgres
3
- Version: 3.1.143
3
+ Version: 3.1.154
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.1.143
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.154
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.154
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.143