tencentcloud-sdk-python-postgres 3.0.1383__tar.gz → 3.0.1385__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 (16) hide show
  1. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/setup.py +1 -1
  3. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/tencentcloud/postgres/v20170312/errorcodes.py +0 -3
  5. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/tencentcloud/postgres/v20170312/models.py +0 -338
  6. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/tencentcloud/postgres/v20170312/postgres_client.py +0 -50
  7. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/tencentcloud_sdk_python_postgres.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-postgres-3.0.1385/tencentcloud_sdk_python_postgres.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-postgres-3.0.1383/tencentcloud_sdk_python_postgres.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/README.rst +0 -0
  11. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/tencentcloud/postgres/__init__.py +0 -0
  13. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/tencentcloud/postgres/v20170312/__init__.py +0 -0
  14. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/tencentcloud_sdk_python_postgres.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/tencentcloud_sdk_python_postgres.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-postgres-3.0.1383 → tencentcloud-sdk-python-postgres-3.0.1385}/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.1383
3
+ Version: 3.0.1385
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.1383"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1385"],
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.1383'
17
+ __version__ = '3.0.1385'
@@ -416,9 +416,6 @@ INVALIDPARAMETERVALUE_PARAMETERCHARACTERERROR = 'InvalidParameterValue.Parameter
416
416
  # 参数不满足规则,请修改后重试。
417
417
  INVALIDPARAMETERVALUE_PARAMETERCHARACTERLIMITERROR = 'InvalidParameterValue.ParameterCharacterLimitError'
418
418
 
419
- # 参数前缀设置不符合规则要求,请修改后重试。
420
- INVALIDPARAMETERVALUE_PARAMETERCHARACTERPRELIMITERROR = 'InvalidParameterValue.ParameterCharacterPreLimitError'
421
-
422
419
  # 参数处理失败,请检参数值设置是否有效。
423
420
  INVALIDPARAMETERVALUE_PARAMETERHANDLEERROR = 'InvalidParameterValue.ParameterHandleError'
424
421
 
@@ -13360,130 +13360,6 @@ class Filter(AbstractModel):
13360
13360
 
13361
13361
 
13362
13362
 
13363
- class InitDBInstancesRequest(AbstractModel):
13364
- """InitDBInstances请求参数结构体
13365
-
13366
- """
13367
-
13368
- def __init__(self):
13369
- r"""
13370
- :param _DBInstanceIdSet: 实例ID集合。
13371
- :type DBInstanceIdSet: list of str
13372
- :param _AdminName: 实例根账号用户名。
13373
- :type AdminName: str
13374
- :param _AdminPassword: 实例根账号用户名对应的密码。
13375
- :type AdminPassword: str
13376
- :param _Charset: 实例字符集,目前只支持:UTF8、LATIN1。
13377
- :type Charset: str
13378
- """
13379
- self._DBInstanceIdSet = None
13380
- self._AdminName = None
13381
- self._AdminPassword = None
13382
- self._Charset = None
13383
-
13384
- @property
13385
- def DBInstanceIdSet(self):
13386
- """实例ID集合。
13387
- :rtype: list of str
13388
- """
13389
- return self._DBInstanceIdSet
13390
-
13391
- @DBInstanceIdSet.setter
13392
- def DBInstanceIdSet(self, DBInstanceIdSet):
13393
- self._DBInstanceIdSet = DBInstanceIdSet
13394
-
13395
- @property
13396
- def AdminName(self):
13397
- """实例根账号用户名。
13398
- :rtype: str
13399
- """
13400
- return self._AdminName
13401
-
13402
- @AdminName.setter
13403
- def AdminName(self, AdminName):
13404
- self._AdminName = AdminName
13405
-
13406
- @property
13407
- def AdminPassword(self):
13408
- """实例根账号用户名对应的密码。
13409
- :rtype: str
13410
- """
13411
- return self._AdminPassword
13412
-
13413
- @AdminPassword.setter
13414
- def AdminPassword(self, AdminPassword):
13415
- self._AdminPassword = AdminPassword
13416
-
13417
- @property
13418
- def Charset(self):
13419
- """实例字符集,目前只支持:UTF8、LATIN1。
13420
- :rtype: str
13421
- """
13422
- return self._Charset
13423
-
13424
- @Charset.setter
13425
- def Charset(self, Charset):
13426
- self._Charset = Charset
13427
-
13428
-
13429
- def _deserialize(self, params):
13430
- self._DBInstanceIdSet = params.get("DBInstanceIdSet")
13431
- self._AdminName = params.get("AdminName")
13432
- self._AdminPassword = params.get("AdminPassword")
13433
- self._Charset = params.get("Charset")
13434
- memeber_set = set(params.keys())
13435
- for name, value in vars(self).items():
13436
- property_name = name[1:]
13437
- if property_name in memeber_set:
13438
- memeber_set.remove(property_name)
13439
- if len(memeber_set) > 0:
13440
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
13441
-
13442
-
13443
-
13444
- class InitDBInstancesResponse(AbstractModel):
13445
- """InitDBInstances返回参数结构体
13446
-
13447
- """
13448
-
13449
- def __init__(self):
13450
- r"""
13451
- :param _DBInstanceIdSet: 实例ID集合。
13452
- :type DBInstanceIdSet: list of str
13453
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13454
- :type RequestId: str
13455
- """
13456
- self._DBInstanceIdSet = None
13457
- self._RequestId = None
13458
-
13459
- @property
13460
- def DBInstanceIdSet(self):
13461
- """实例ID集合。
13462
- :rtype: list of str
13463
- """
13464
- return self._DBInstanceIdSet
13465
-
13466
- @DBInstanceIdSet.setter
13467
- def DBInstanceIdSet(self, DBInstanceIdSet):
13468
- self._DBInstanceIdSet = DBInstanceIdSet
13469
-
13470
- @property
13471
- def RequestId(self):
13472
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13473
- :rtype: str
13474
- """
13475
- return self._RequestId
13476
-
13477
- @RequestId.setter
13478
- def RequestId(self, RequestId):
13479
- self._RequestId = RequestId
13480
-
13481
-
13482
- def _deserialize(self, params):
13483
- self._DBInstanceIdSet = params.get("DBInstanceIdSet")
13484
- self._RequestId = params.get("RequestId")
13485
-
13486
-
13487
13363
  class InquiryPriceCreateDBInstancesRequest(AbstractModel):
13488
13364
  """InquiryPriceCreateDBInstances请求参数结构体
13489
13365
 
@@ -21428,220 +21304,6 @@ class UpgradeDBInstanceMajorVersionResponse(AbstractModel):
21428
21304
  self._RequestId = params.get("RequestId")
21429
21305
 
21430
21306
 
21431
- class UpgradeDBInstanceRequest(AbstractModel):
21432
- """UpgradeDBInstance请求参数结构体
21433
-
21434
- """
21435
-
21436
- def __init__(self):
21437
- r"""
21438
- :param _Memory: 升级后的实例内存大小,单位GB
21439
- :type Memory: int
21440
- :param _Storage: 升级后的实例磁盘大小,单位GB
21441
- :type Storage: int
21442
- :param _DBInstanceId: 实例ID,形如postgres-lnp6j617
21443
- :type DBInstanceId: str
21444
- :param _AutoVoucher: 是否自动使用代金券,1是,0否,默认不使用
21445
- :type AutoVoucher: int
21446
- :param _VoucherIds: 代金券ID列表,目前仅支持指定一张代金券
21447
- :type VoucherIds: list of str
21448
- :param _ActivityId: 活动ID
21449
- :type ActivityId: int
21450
- :param _SwitchTag: 指定实例配置完成变更后的切换时间,默认为 立即切换,入参为 0 :立即切换 。1:指定时间切换。
21451
- :type SwitchTag: int
21452
- :param _SwitchStartTime: 切换开始时间
21453
- :type SwitchStartTime: str
21454
- :param _SwitchEndTime: 切换截止时间
21455
- :type SwitchEndTime: str
21456
- """
21457
- self._Memory = None
21458
- self._Storage = None
21459
- self._DBInstanceId = None
21460
- self._AutoVoucher = None
21461
- self._VoucherIds = None
21462
- self._ActivityId = None
21463
- self._SwitchTag = None
21464
- self._SwitchStartTime = None
21465
- self._SwitchEndTime = None
21466
-
21467
- @property
21468
- def Memory(self):
21469
- """升级后的实例内存大小,单位GB
21470
- :rtype: int
21471
- """
21472
- return self._Memory
21473
-
21474
- @Memory.setter
21475
- def Memory(self, Memory):
21476
- self._Memory = Memory
21477
-
21478
- @property
21479
- def Storage(self):
21480
- """升级后的实例磁盘大小,单位GB
21481
- :rtype: int
21482
- """
21483
- return self._Storage
21484
-
21485
- @Storage.setter
21486
- def Storage(self, Storage):
21487
- self._Storage = Storage
21488
-
21489
- @property
21490
- def DBInstanceId(self):
21491
- """实例ID,形如postgres-lnp6j617
21492
- :rtype: str
21493
- """
21494
- return self._DBInstanceId
21495
-
21496
- @DBInstanceId.setter
21497
- def DBInstanceId(self, DBInstanceId):
21498
- self._DBInstanceId = DBInstanceId
21499
-
21500
- @property
21501
- def AutoVoucher(self):
21502
- """是否自动使用代金券,1是,0否,默认不使用
21503
- :rtype: int
21504
- """
21505
- return self._AutoVoucher
21506
-
21507
- @AutoVoucher.setter
21508
- def AutoVoucher(self, AutoVoucher):
21509
- self._AutoVoucher = AutoVoucher
21510
-
21511
- @property
21512
- def VoucherIds(self):
21513
- """代金券ID列表,目前仅支持指定一张代金券
21514
- :rtype: list of str
21515
- """
21516
- return self._VoucherIds
21517
-
21518
- @VoucherIds.setter
21519
- def VoucherIds(self, VoucherIds):
21520
- self._VoucherIds = VoucherIds
21521
-
21522
- @property
21523
- def ActivityId(self):
21524
- """活动ID
21525
- :rtype: int
21526
- """
21527
- return self._ActivityId
21528
-
21529
- @ActivityId.setter
21530
- def ActivityId(self, ActivityId):
21531
- self._ActivityId = ActivityId
21532
-
21533
- @property
21534
- def SwitchTag(self):
21535
- """指定实例配置完成变更后的切换时间,默认为 立即切换,入参为 0 :立即切换 。1:指定时间切换。
21536
- :rtype: int
21537
- """
21538
- return self._SwitchTag
21539
-
21540
- @SwitchTag.setter
21541
- def SwitchTag(self, SwitchTag):
21542
- self._SwitchTag = SwitchTag
21543
-
21544
- @property
21545
- def SwitchStartTime(self):
21546
- """切换开始时间
21547
- :rtype: str
21548
- """
21549
- return self._SwitchStartTime
21550
-
21551
- @SwitchStartTime.setter
21552
- def SwitchStartTime(self, SwitchStartTime):
21553
- self._SwitchStartTime = SwitchStartTime
21554
-
21555
- @property
21556
- def SwitchEndTime(self):
21557
- """切换截止时间
21558
- :rtype: str
21559
- """
21560
- return self._SwitchEndTime
21561
-
21562
- @SwitchEndTime.setter
21563
- def SwitchEndTime(self, SwitchEndTime):
21564
- self._SwitchEndTime = SwitchEndTime
21565
-
21566
-
21567
- def _deserialize(self, params):
21568
- self._Memory = params.get("Memory")
21569
- self._Storage = params.get("Storage")
21570
- self._DBInstanceId = params.get("DBInstanceId")
21571
- self._AutoVoucher = params.get("AutoVoucher")
21572
- self._VoucherIds = params.get("VoucherIds")
21573
- self._ActivityId = params.get("ActivityId")
21574
- self._SwitchTag = params.get("SwitchTag")
21575
- self._SwitchStartTime = params.get("SwitchStartTime")
21576
- self._SwitchEndTime = params.get("SwitchEndTime")
21577
- memeber_set = set(params.keys())
21578
- for name, value in vars(self).items():
21579
- property_name = name[1:]
21580
- if property_name in memeber_set:
21581
- memeber_set.remove(property_name)
21582
- if len(memeber_set) > 0:
21583
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
21584
-
21585
-
21586
-
21587
- class UpgradeDBInstanceResponse(AbstractModel):
21588
- """UpgradeDBInstance返回参数结构体
21589
-
21590
- """
21591
-
21592
- def __init__(self):
21593
- r"""
21594
- :param _DealName: 交易名字。
21595
- :type DealName: str
21596
- :param _BillId: 冻结流水号
21597
- :type BillId: str
21598
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
21599
- :type RequestId: str
21600
- """
21601
- self._DealName = None
21602
- self._BillId = None
21603
- self._RequestId = None
21604
-
21605
- @property
21606
- def DealName(self):
21607
- """交易名字。
21608
- :rtype: str
21609
- """
21610
- return self._DealName
21611
-
21612
- @DealName.setter
21613
- def DealName(self, DealName):
21614
- self._DealName = DealName
21615
-
21616
- @property
21617
- def BillId(self):
21618
- """冻结流水号
21619
- :rtype: str
21620
- """
21621
- return self._BillId
21622
-
21623
- @BillId.setter
21624
- def BillId(self, BillId):
21625
- self._BillId = BillId
21626
-
21627
- @property
21628
- def RequestId(self):
21629
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
21630
- :rtype: str
21631
- """
21632
- return self._RequestId
21633
-
21634
- @RequestId.setter
21635
- def RequestId(self, RequestId):
21636
- self._RequestId = RequestId
21637
-
21638
-
21639
- def _deserialize(self, params):
21640
- self._DealName = params.get("DealName")
21641
- self._BillId = params.get("BillId")
21642
- self._RequestId = params.get("RequestId")
21643
-
21644
-
21645
21307
  class Version(AbstractModel):
21646
21308
  """数据库版本号信息
21647
21309
 
@@ -1557,31 +1557,6 @@ class PostgresClient(AbstractClient):
1557
1557
  raise TencentCloudSDKException(type(e).__name__, str(e))
1558
1558
 
1559
1559
 
1560
- def InitDBInstances(self, request):
1561
- """早期接口,不规范,已提供新接口 CreateInstances 替换
1562
-
1563
- 本接口(InitDBInstances)用于初始化云数据库PostgreSQL实例。本接口已废弃,推荐使用接口[CreateInstances](https://cloud.tencent.com/document/api/409/56107)替代。
1564
-
1565
- :param request: Request instance for InitDBInstances.
1566
- :type request: :class:`tencentcloud.postgres.v20170312.models.InitDBInstancesRequest`
1567
- :rtype: :class:`tencentcloud.postgres.v20170312.models.InitDBInstancesResponse`
1568
-
1569
- """
1570
- try:
1571
- params = request._serialize()
1572
- headers = request.headers
1573
- body = self.call("InitDBInstances", params, headers=headers)
1574
- response = json.loads(body)
1575
- model = models.InitDBInstancesResponse()
1576
- model._deserialize(response["Response"])
1577
- return model
1578
- except Exception as e:
1579
- if isinstance(e, TencentCloudSDKException):
1580
- raise
1581
- else:
1582
- raise TencentCloudSDKException(type(e).__name__, str(e))
1583
-
1584
-
1585
1560
  def InquiryPriceCreateDBInstances(self, request):
1586
1561
  """本接口 (InquiryPriceCreateDBInstances) 用于查询购买实例的价格信息。
1587
1562
 
@@ -2415,31 +2390,6 @@ class PostgresClient(AbstractClient):
2415
2390
  raise TencentCloudSDKException(type(e).__name__, str(e))
2416
2391
 
2417
2392
 
2418
- def UpgradeDBInstance(self, request):
2419
- """早期接口,不规范,已提供新接口 ModifyDBInstanceSpec 替换
2420
-
2421
- 本接口(UpgradeDBInstance)用于升级实例配置。本接口已废弃,推荐使用接口[ModifyDBInstanceSpec](https://cloud.tencent.com/document/api/409/63689)替代。
2422
-
2423
- :param request: Request instance for UpgradeDBInstance.
2424
- :type request: :class:`tencentcloud.postgres.v20170312.models.UpgradeDBInstanceRequest`
2425
- :rtype: :class:`tencentcloud.postgres.v20170312.models.UpgradeDBInstanceResponse`
2426
-
2427
- """
2428
- try:
2429
- params = request._serialize()
2430
- headers = request.headers
2431
- body = self.call("UpgradeDBInstance", params, headers=headers)
2432
- response = json.loads(body)
2433
- model = models.UpgradeDBInstanceResponse()
2434
- model._deserialize(response["Response"])
2435
- return model
2436
- except Exception as e:
2437
- if isinstance(e, TencentCloudSDKException):
2438
- raise
2439
- else:
2440
- raise TencentCloudSDKException(type(e).__name__, str(e))
2441
-
2442
-
2443
2393
  def UpgradeDBInstanceKernelVersion(self, request):
2444
2394
  """本接口(UpgradeDBInstanceKernelVersion)用于升级实例的内核版本号。
2445
2395
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-postgres
3
- Version: 3.0.1383
3
+ Version: 3.0.1385
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.1385
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1383