tencentcloud-sdk-python-postgres 3.0.1304__tar.gz → 3.0.1306__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-postgres might be problematic. Click here for more details.

Files changed (16) hide show
  1. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/setup.py +1 -1
  3. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/tencentcloud/postgres/v20170312/errorcodes.py +6 -0
  5. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/tencentcloud/postgres/v20170312/models.py +72 -30
  6. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/tencentcloud_sdk_python_postgres.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-postgres-3.0.1306/tencentcloud_sdk_python_postgres.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-postgres-3.0.1304/tencentcloud_sdk_python_postgres.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/README.rst +0 -0
  10. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/tencentcloud/postgres/__init__.py +0 -0
  12. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/tencentcloud/postgres/v20170312/__init__.py +0 -0
  13. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/tencentcloud/postgres/v20170312/postgres_client.py +0 -0
  14. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/tencentcloud_sdk_python_postgres.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/tencentcloud_sdk_python_postgres.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-postgres-3.0.1304 → tencentcloud-sdk-python-postgres-3.0.1306}/tencentcloud_sdk_python_postgres.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-postgres
3
- Version: 3.0.1304
3
+ Version: 3.0.1306
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
@@ -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.1304"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1306"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Postgres SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1304'
17
+ __version__ = '3.0.1306'
@@ -482,6 +482,9 @@ OPERATIONDENIED_INSTANCESTATUSLIMITOPERROR = 'OperationDenied.InstanceStatusLimi
482
482
  # 实例类型错误
483
483
  OPERATIONDENIED_INSTANCETYPEDENIED = 'OperationDenied.InstanceTypeDenied'
484
484
 
485
+ # 账号余额不足。
486
+ OPERATIONDENIED_INSUFFICIENTBALANCEERROR = 'OperationDenied.InsufficientBalanceError'
487
+
485
488
  # 内核版本过低,导致实例无法创建tencentDBSuper账号。如果您想使用此功能,请升级内核版本。
486
489
  OPERATIONDENIED_KERNELVERSIONERROR = 'OperationDenied.KernelVersionError'
487
490
 
@@ -506,6 +509,9 @@ OPERATIONDENIED_ROINSTANCESTATUSLIMITOPERROR = 'OperationDenied.ROInstanceStatus
506
509
  # 只读节点总数不能超过上限值。
507
510
  OPERATIONDENIED_ROINSTANCECOUNTEXEEDERROR = 'OperationDenied.RoInstanceCountExeedError'
508
511
 
512
+ # 无支付权限,开通失败。
513
+ OPERATIONDENIED_TRADEPERMISSIONERROR = 'OperationDenied.TradePermissionError'
514
+
509
515
  # 用户未进行实名认证,请先进行实名认证才可购买。
510
516
  OPERATIONDENIED_USERNOTAUTHENTICATEDERROR = 'OperationDenied.UserNotAuthenticatedError'
511
517
 
@@ -12329,12 +12329,12 @@ class DisIsolateDBInstancesRequest(AbstractModel):
12329
12329
  :param _DBInstanceIdSet: 实例ID列表。注意:当前已不支持同时解隔离多个实例,这里只能传入单个实例ID。
12330
12330
  :type DBInstanceIdSet: list of str
12331
12331
  :param _Period: 购买时长,单位:月。
12332
- <li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36
12333
- <li>后付费:只支持1
12332
+ <li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li>
12333
+ <li>后付费:只支持1</li>
12334
12334
  :type Period: int
12335
12335
  :param _AutoVoucher: 是否使用代金券:
12336
- <li>true:使用
12337
- <li>false:不使用
12336
+ <li>true:使用</li>
12337
+ <li>false:不使用</li>
12338
12338
  默认值:false
12339
12339
  :type AutoVoucher: bool
12340
12340
  :param _VoucherIds: 代金券id列表。
@@ -12359,8 +12359,8 @@ class DisIsolateDBInstancesRequest(AbstractModel):
12359
12359
  @property
12360
12360
  def Period(self):
12361
12361
  """购买时长,单位:月。
12362
- <li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36
12363
- <li>后付费:只支持1
12362
+ <li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li>
12363
+ <li>后付费:只支持1</li>
12364
12364
  :rtype: int
12365
12365
  """
12366
12366
  return self._Period
@@ -12372,8 +12372,8 @@ class DisIsolateDBInstancesRequest(AbstractModel):
12372
12372
  @property
12373
12373
  def AutoVoucher(self):
12374
12374
  """是否使用代金券:
12375
- <li>true:使用
12376
- <li>false:不使用
12375
+ <li>true:使用</li>
12376
+ <li>false:不使用</li>
12377
12377
  默认值:false
12378
12378
  :rtype: bool
12379
12379
  """
@@ -14280,10 +14280,14 @@ class ModifyBackupPlanRequest(AbstractModel):
14280
14280
  :type MaxBackupStartTime: str
14281
14281
  :param _BaseBackupRetentionPeriod: 实例备份保留时长,取值范围为7-1830,单位是天
14282
14282
  :type BaseBackupRetentionPeriod: int
14283
- :param _BackupPeriod: 实例备份周期,按照星期维度,格式为小写星期英文单词
14283
+ :param _BackupPeriod: 实例备份周期,若是星期维度,格式为小写星期英文单词;若是按月维度,格式为数字字符,如["1","2"]。
14284
14284
  :type BackupPeriod: list of str
14285
14285
  :param _LogBackupRetentionPeriod: 实例日志备份保留时长,取值范围为7-1830,单位是天
14286
14286
  :type LogBackupRetentionPeriod: int
14287
+ :param _PlanId: 备份计划ID,用于指明要修改哪个备份计划,不传则是修改默认备份计划。
14288
+ :type PlanId: str
14289
+ :param _PlanName: 要修改的备份计划名称。
14290
+ :type PlanName: str
14287
14291
  """
14288
14292
  self._DBInstanceId = None
14289
14293
  self._MinBackupStartTime = None
@@ -14291,6 +14295,8 @@ class ModifyBackupPlanRequest(AbstractModel):
14291
14295
  self._BaseBackupRetentionPeriod = None
14292
14296
  self._BackupPeriod = None
14293
14297
  self._LogBackupRetentionPeriod = None
14298
+ self._PlanId = None
14299
+ self._PlanName = None
14294
14300
 
14295
14301
  @property
14296
14302
  def DBInstanceId(self):
@@ -14338,7 +14344,7 @@ class ModifyBackupPlanRequest(AbstractModel):
14338
14344
 
14339
14345
  @property
14340
14346
  def BackupPeriod(self):
14341
- """实例备份周期,按照星期维度,格式为小写星期英文单词
14347
+ """实例备份周期,若是星期维度,格式为小写星期英文单词;若是按月维度,格式为数字字符,如["1","2"]。
14342
14348
  :rtype: list of str
14343
14349
  """
14344
14350
  return self._BackupPeriod
@@ -14358,6 +14364,28 @@ class ModifyBackupPlanRequest(AbstractModel):
14358
14364
  def LogBackupRetentionPeriod(self, LogBackupRetentionPeriod):
14359
14365
  self._LogBackupRetentionPeriod = LogBackupRetentionPeriod
14360
14366
 
14367
+ @property
14368
+ def PlanId(self):
14369
+ """备份计划ID,用于指明要修改哪个备份计划,不传则是修改默认备份计划。
14370
+ :rtype: str
14371
+ """
14372
+ return self._PlanId
14373
+
14374
+ @PlanId.setter
14375
+ def PlanId(self, PlanId):
14376
+ self._PlanId = PlanId
14377
+
14378
+ @property
14379
+ def PlanName(self):
14380
+ """要修改的备份计划名称。
14381
+ :rtype: str
14382
+ """
14383
+ return self._PlanName
14384
+
14385
+ @PlanName.setter
14386
+ def PlanName(self, PlanName):
14387
+ self._PlanName = PlanName
14388
+
14361
14389
 
14362
14390
  def _deserialize(self, params):
14363
14391
  self._DBInstanceId = params.get("DBInstanceId")
@@ -14366,6 +14394,8 @@ class ModifyBackupPlanRequest(AbstractModel):
14366
14394
  self._BaseBackupRetentionPeriod = params.get("BaseBackupRetentionPeriod")
14367
14395
  self._BackupPeriod = params.get("BackupPeriod")
14368
14396
  self._LogBackupRetentionPeriod = params.get("LogBackupRetentionPeriod")
14397
+ self._PlanId = params.get("PlanId")
14398
+ self._PlanName = params.get("PlanName")
14369
14399
  memeber_set = set(params.keys())
14370
14400
  for name, value in vars(self).items():
14371
14401
  property_name = name[1:]
@@ -14508,22 +14538,22 @@ class ModifyDBInstanceChargeTypeRequest(AbstractModel):
14508
14538
  :param _DBInstanceId: 实例ID,形如postgres-6fego161
14509
14539
  :type DBInstanceId: str
14510
14540
  :param _InstanceChargeType: 实例计费类型,目前支持:
14511
- <li>PREPAID:预付费,即包年包月
14512
- <li>POSTPAID_BY_HOUR:后付费,即按量计费
14541
+ <li>PREPAID:预付费,即包年包月</li>
14542
+ <li>POSTPAID_BY_HOUR:后付费,即按量计费</li>
14513
14543
  默认值:PREPAID
14514
14544
  :type InstanceChargeType: str
14515
14545
  :param _Period: 购买时长,单位:月。
14516
- <li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36
14517
- <li>后付费:只支持1
14546
+ <li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li>
14547
+ <li>后付费:只支持1</li>
14518
14548
  :type Period: int
14519
14549
  :param _AutoRenewFlag: 续费标记:
14520
- <li>0:手动续费
14521
- <li>1:自动续费
14550
+ <li>0:手动续费</li>
14551
+ <li>1:自动续费</li>
14522
14552
  默认值:0
14523
14553
  :type AutoRenewFlag: int
14524
14554
  :param _AutoVoucher: 是否自动使用代金券:
14525
- <li>0:否
14526
- <li>1:是
14555
+ <li>0:否</li>
14556
+ <li>1:是</li>
14527
14557
  默认值:0
14528
14558
  :type AutoVoucher: int
14529
14559
  """
@@ -14547,8 +14577,8 @@ class ModifyDBInstanceChargeTypeRequest(AbstractModel):
14547
14577
  @property
14548
14578
  def InstanceChargeType(self):
14549
14579
  """实例计费类型,目前支持:
14550
- <li>PREPAID:预付费,即包年包月
14551
- <li>POSTPAID_BY_HOUR:后付费,即按量计费
14580
+ <li>PREPAID:预付费,即包年包月</li>
14581
+ <li>POSTPAID_BY_HOUR:后付费,即按量计费</li>
14552
14582
  默认值:PREPAID
14553
14583
  :rtype: str
14554
14584
  """
@@ -14561,8 +14591,8 @@ class ModifyDBInstanceChargeTypeRequest(AbstractModel):
14561
14591
  @property
14562
14592
  def Period(self):
14563
14593
  """购买时长,单位:月。
14564
- <li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36
14565
- <li>后付费:只支持1
14594
+ <li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li>
14595
+ <li>后付费:只支持1</li>
14566
14596
  :rtype: int
14567
14597
  """
14568
14598
  return self._Period
@@ -14574,8 +14604,8 @@ class ModifyDBInstanceChargeTypeRequest(AbstractModel):
14574
14604
  @property
14575
14605
  def AutoRenewFlag(self):
14576
14606
  """续费标记:
14577
- <li>0:手动续费
14578
- <li>1:自动续费
14607
+ <li>0:手动续费</li>
14608
+ <li>1:自动续费</li>
14579
14609
  默认值:0
14580
14610
  :rtype: int
14581
14611
  """
@@ -14588,8 +14618,8 @@ class ModifyDBInstanceChargeTypeRequest(AbstractModel):
14588
14618
  @property
14589
14619
  def AutoVoucher(self):
14590
14620
  """是否自动使用代金券:
14591
- <li>0:否
14592
- <li>1:是
14621
+ <li>0:否</li>
14622
+ <li>1:是</li>
14593
14623
  默认值:0
14594
14624
  :rtype: int
14595
14625
  """
@@ -18609,9 +18639,14 @@ class RenewInstanceRequest(AbstractModel):
18609
18639
  r"""
18610
18640
  :param _DBInstanceId: 实例ID,形如postgres-6fego161
18611
18641
  :type DBInstanceId: str
18612
- :param _Period: 续费多少个月
18642
+ :param _Period: 购买时长,单位:月。
18643
+ <li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li>
18644
+ <li>后付费:只支持1</li>
18613
18645
  :type Period: int
18614
- :param _AutoVoucher: 是否自动使用代金券,1是,0否,默认不使用
18646
+ :param _AutoVoucher: 是否自动使用代金券:
18647
+ <li>0:否</li>
18648
+ <li>1:是</li>
18649
+ 默认值:0
18615
18650
  :type AutoVoucher: int
18616
18651
  :param _VoucherIds: 代金券ID列表,目前仅支持指定一张代金券
18617
18652
  :type VoucherIds: list of str
@@ -18634,7 +18669,9 @@ class RenewInstanceRequest(AbstractModel):
18634
18669
 
18635
18670
  @property
18636
18671
  def Period(self):
18637
- """续费多少个月
18672
+ """购买时长,单位:月。
18673
+ <li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li>
18674
+ <li>后付费:只支持1</li>
18638
18675
  :rtype: int
18639
18676
  """
18640
18677
  return self._Period
@@ -18645,7 +18682,10 @@ class RenewInstanceRequest(AbstractModel):
18645
18682
 
18646
18683
  @property
18647
18684
  def AutoVoucher(self):
18648
- """是否自动使用代金券,1是,0否,默认不使用
18685
+ """是否自动使用代金券:
18686
+ <li>0:否</li>
18687
+ <li>1:是</li>
18688
+ 默认值:0
18649
18689
  :rtype: int
18650
18690
  """
18651
18691
  return self._AutoVoucher
@@ -20987,6 +21027,7 @@ TDE:支持数据加密。
20987
21027
  :type SupportedFeatureNames: list of str
20988
21028
  :param _Status: 数据库版本状态,包括:
20989
21029
  AVAILABLE:可用;
21030
+ UPGRADE_ONLY:不可创建,此版本仅可升级至高版本;
20990
21031
  DEPRECATED:已弃用。
20991
21032
  :type Status: str
20992
21033
  :param _AvailableUpgradeTarget: 该数据库版本(DBKernelVersion)可以升级到的版本号列表。其中包含可升级的小版本号和可升级的大版本号(完整内核版本格式示例:v15.1_v1.6)。
@@ -21062,6 +21103,7 @@ TDE:支持数据加密。
21062
21103
  def Status(self):
21063
21104
  """数据库版本状态,包括:
21064
21105
  AVAILABLE:可用;
21106
+ UPGRADE_ONLY:不可创建,此版本仅可升级至高版本;
21065
21107
  DEPRECATED:已弃用。
21066
21108
  :rtype: str
21067
21109
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-postgres
3
- Version: 3.0.1304
3
+ Version: 3.0.1306
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1306
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1304