tencentcloud-sdk-python-postgres 3.0.941__tar.gz → 3.0.950__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.941 → tencentcloud-sdk-python-postgres-3.0.950}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/setup.py +1 -0
- {tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/tencentcloud/postgres/v20170312/errorcodes.py +12 -0
- {tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/tencentcloud/postgres/v20170312/models.py +485 -95
- {tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/tencentcloud/postgres/v20170312/postgres_client.py +76 -0
- {tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/tencentcloud_sdk_python_postgres.egg-info/PKG-INFO +1 -1
- {tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/tencentcloud_sdk_python_postgres.egg-info/SOURCES.txt +1 -0
- tencentcloud-sdk-python-postgres-3.0.950/tencentcloud_sdk_python_postgres.egg-info/requires.txt +1 -0
- {tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/README.rst +0 -0
- {tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/setup.cfg +0 -0
- {tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/tencentcloud/postgres/__init__.py +0 -0
- {tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/tencentcloud/postgres/v20170312/__init__.py +0 -0
- {tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/tencentcloud_sdk_python_postgres.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/tencentcloud_sdk_python_postgres.egg-info/top_level.txt +0 -0
{tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/setup.py
RENAMED
|
@@ -8,6 +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.950"],
|
|
11
12
|
version=tencentcloud.__version__,
|
|
12
13
|
description='Tencent Cloud Postgres SDK for Python',
|
|
13
14
|
long_description=open('README.rst').read(),
|
|
@@ -119,6 +119,9 @@ FAILEDOPERATION_MODIFYROGROUPERROR = 'FailedOperation.ModifyROGroupError'
|
|
|
119
119
|
# 不符合资源所拥有的网络数量要求。
|
|
120
120
|
FAILEDOPERATION_NETWORKNUMLIMITERROR = 'FailedOperation.NetworkNumLimitError'
|
|
121
121
|
|
|
122
|
+
# 实例无可用备机
|
|
123
|
+
FAILEDOPERATION_NOAVAILABLESTANDBY = 'FailedOperation.NoAvailableStandby'
|
|
124
|
+
|
|
122
125
|
# 操作超过频率限制,请稍后重试。如果持续不成功,请联系客服进行处理。
|
|
123
126
|
FAILEDOPERATION_OPERATEFREQUENCYLIMITEDERROR = 'FailedOperation.OperateFrequencyLimitedError'
|
|
124
127
|
|
|
@@ -287,6 +290,9 @@ INVALIDPARAMETER_INSTANCENAMEEXIST = 'InvalidParameter.InstanceNameExist'
|
|
|
287
290
|
# 参数检查失败。
|
|
288
291
|
INVALIDPARAMETER_PARAMETERCHECKERROR = 'InvalidParameter.ParameterCheckError'
|
|
289
292
|
|
|
293
|
+
# 参数不可全部不设置
|
|
294
|
+
INVALIDPARAMETER_PARAMETERSNOTSET = 'InvalidParameter.ParametersNotSet'
|
|
295
|
+
|
|
290
296
|
# pid错误。
|
|
291
297
|
INVALIDPARAMETER_TRADEACCESSDENIEDERROR = 'InvalidParameter.TradeAccessDeniedError'
|
|
292
298
|
|
|
@@ -401,6 +407,9 @@ INVALIDPARAMETERVALUE_PARAMETERHANDLEERROR = 'InvalidParameterValue.ParameterHan
|
|
|
401
407
|
# 参数长度超过限制。
|
|
402
408
|
INVALIDPARAMETERVALUE_PARAMETERLENGTHLIMITERROR = 'InvalidParameterValue.ParameterLengthLimitError'
|
|
403
409
|
|
|
410
|
+
# 参数超出可设置范围
|
|
411
|
+
INVALIDPARAMETERVALUE_PARAMETEROUTOFRANGE = 'InvalidParameterValue.ParameterOutOfRange'
|
|
412
|
+
|
|
404
413
|
# 存在无效的参数值。
|
|
405
414
|
INVALIDPARAMETERVALUE_PARAMETEROUTRANGEERROR = 'InvalidParameterValue.ParameterOutRangeError'
|
|
406
415
|
|
|
@@ -452,6 +461,9 @@ OPERATIONDENIED_INSTANCESTATUSLIMITERROR = 'OperationDenied.InstanceStatusLimitE
|
|
|
452
461
|
# 实例状态限制当前操作。
|
|
453
462
|
OPERATIONDENIED_INSTANCESTATUSLIMITOPERROR = 'OperationDenied.InstanceStatusLimitOpError'
|
|
454
463
|
|
|
464
|
+
# 实例类型错误
|
|
465
|
+
OPERATIONDENIED_INSTANCETYPEDENIED = 'OperationDenied.InstanceTypeDenied'
|
|
466
|
+
|
|
455
467
|
# Serverless不支持当前可用区。
|
|
456
468
|
OPERATIONDENIED_NOTSUPPORTZONEERROR = 'OperationDenied.NotSupportZoneError'
|
|
457
469
|
|
|
@@ -2512,67 +2512,99 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
2512
2512
|
|
|
2513
2513
|
def __init__(self):
|
|
2514
2514
|
r"""
|
|
2515
|
-
:param
|
|
2515
|
+
:param _Zone: 实例所属主可用区, 如:ap-guangzhou-3;
|
|
2516
|
+
可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。
|
|
2517
|
+
:type Zone: str
|
|
2518
|
+
:param _MasterDBInstanceId: 只读实例的主实例ID。
|
|
2519
|
+
:type MasterDBInstanceId: str
|
|
2520
|
+
:param _SpecCode: 售卖规格码。该参数可以通过调用[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)的返回值中的SpecCode字段来获取。
|
|
2516
2521
|
:type SpecCode: str
|
|
2517
2522
|
:param _Storage: 实例容量大小,单位:GB。
|
|
2518
2523
|
:type Storage: int
|
|
2519
|
-
:param _InstanceCount:
|
|
2524
|
+
:param _InstanceCount: 购买实例数量,取值范围:[1-10]。一次性购买支持最大数量10个,若超过该数量,可进行多次调用进行购买。
|
|
2520
2525
|
:type InstanceCount: int
|
|
2521
|
-
:param _Period:
|
|
2526
|
+
:param _Period: 购买时长,单位:月。
|
|
2527
|
+
<li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36
|
|
2528
|
+
<li>后付费:只支持1
|
|
2522
2529
|
:type Period: int
|
|
2523
|
-
:param
|
|
2524
|
-
:type
|
|
2525
|
-
:param
|
|
2526
|
-
:type
|
|
2527
|
-
:param
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
:param _InstanceChargeType: 实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR(后付费,即按量计费)。默认值:PREPAID。如果主实例为后付费,只读实例必须也为后付费。
|
|
2530
|
+
:param _VpcId: 私有网络ID,形如vpc-xxxxxxxx。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。
|
|
2531
|
+
:type VpcId: str
|
|
2532
|
+
:param _SubnetId: 私有网络子网ID,形如subnet-xxxxxxxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。
|
|
2533
|
+
:type SubnetId: str
|
|
2534
|
+
:param _InstanceChargeType: 实例计费类型,目前支持:
|
|
2535
|
+
<li>PREPAID:预付费,即包年包月。
|
|
2536
|
+
<li>POSTPAID_BY_HOUR:后付费,即按量计费。
|
|
2537
|
+
默认值:PREPAID。如果主实例为后付费,只读实例必须也为后付费。
|
|
2532
2538
|
:type InstanceChargeType: str
|
|
2533
|
-
:param _AutoVoucher:
|
|
2539
|
+
:param _AutoVoucher: 是否自动使用代金券:
|
|
2540
|
+
<li>0:否
|
|
2541
|
+
<li>1:是
|
|
2542
|
+
默认值:0
|
|
2534
2543
|
:type AutoVoucher: int
|
|
2535
2544
|
:param _VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
|
|
2536
2545
|
:type VoucherIds: list of str
|
|
2537
|
-
:param _AutoRenewFlag: 续费标记:
|
|
2546
|
+
:param _AutoRenewFlag: 续费标记:
|
|
2547
|
+
<li>0:手动续费
|
|
2548
|
+
<li>1:自动续费
|
|
2549
|
+
默认值:0
|
|
2538
2550
|
:type AutoRenewFlag: int
|
|
2539
|
-
:param
|
|
2540
|
-
:type
|
|
2541
|
-
:param _SubnetId: 私有网络子网ID。
|
|
2542
|
-
:type SubnetId: str
|
|
2551
|
+
:param _ProjectId: 项目ID。
|
|
2552
|
+
:type ProjectId: int
|
|
2543
2553
|
:param _ActivityId: 优惠活动ID
|
|
2544
2554
|
:type ActivityId: int
|
|
2545
|
-
:param _Name: 实例名(后续支持)
|
|
2546
|
-
:type Name: str
|
|
2547
|
-
:param _NeedSupportIpv6: 是否需要支持Ipv6,1:是,0:否
|
|
2548
|
-
:type NeedSupportIpv6: int
|
|
2549
2555
|
:param _ReadOnlyGroupId: 只读组ID。
|
|
2550
2556
|
:type ReadOnlyGroupId: str
|
|
2551
|
-
:param _TagList: 实例需要绑定的Tag
|
|
2557
|
+
:param _TagList: 实例需要绑定的Tag信息,默认为空;可以通过调用 [DescribeTags](https://cloud.tencent.com/document/api/651/35316) 返回值中的 Tags 字段来获取。
|
|
2552
2558
|
:type TagList: :class:`tencentcloud.postgres.v20170312.models.Tag`
|
|
2553
|
-
:param _SecurityGroupIds:
|
|
2559
|
+
:param _SecurityGroupIds: 实例所属安全组,该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
|
|
2560
|
+
|
|
2554
2561
|
:type SecurityGroupIds: list of str
|
|
2562
|
+
:param _NeedSupportIpv6: 是否需要支持Ipv6:
|
|
2563
|
+
<li>0:否
|
|
2564
|
+
<li>1:是
|
|
2565
|
+
默认值:0
|
|
2566
|
+
:type NeedSupportIpv6: int
|
|
2567
|
+
:param _Name: 实例名(后续支持)
|
|
2568
|
+
:type Name: str
|
|
2569
|
+
:param _DBVersion: 【废弃】不再需要指定,内核版本号与主实例保持一致
|
|
2570
|
+
:type DBVersion: str
|
|
2555
2571
|
"""
|
|
2572
|
+
self._Zone = None
|
|
2573
|
+
self._MasterDBInstanceId = None
|
|
2556
2574
|
self._SpecCode = None
|
|
2557
2575
|
self._Storage = None
|
|
2558
2576
|
self._InstanceCount = None
|
|
2559
2577
|
self._Period = None
|
|
2560
|
-
self.
|
|
2561
|
-
self.
|
|
2562
|
-
self._ProjectId = None
|
|
2563
|
-
self._DBVersion = None
|
|
2578
|
+
self._VpcId = None
|
|
2579
|
+
self._SubnetId = None
|
|
2564
2580
|
self._InstanceChargeType = None
|
|
2565
2581
|
self._AutoVoucher = None
|
|
2566
2582
|
self._VoucherIds = None
|
|
2567
2583
|
self._AutoRenewFlag = None
|
|
2568
|
-
self.
|
|
2569
|
-
self._SubnetId = None
|
|
2584
|
+
self._ProjectId = None
|
|
2570
2585
|
self._ActivityId = None
|
|
2571
|
-
self._Name = None
|
|
2572
|
-
self._NeedSupportIpv6 = None
|
|
2573
2586
|
self._ReadOnlyGroupId = None
|
|
2574
2587
|
self._TagList = None
|
|
2575
2588
|
self._SecurityGroupIds = None
|
|
2589
|
+
self._NeedSupportIpv6 = None
|
|
2590
|
+
self._Name = None
|
|
2591
|
+
self._DBVersion = None
|
|
2592
|
+
|
|
2593
|
+
@property
|
|
2594
|
+
def Zone(self):
|
|
2595
|
+
return self._Zone
|
|
2596
|
+
|
|
2597
|
+
@Zone.setter
|
|
2598
|
+
def Zone(self, Zone):
|
|
2599
|
+
self._Zone = Zone
|
|
2600
|
+
|
|
2601
|
+
@property
|
|
2602
|
+
def MasterDBInstanceId(self):
|
|
2603
|
+
return self._MasterDBInstanceId
|
|
2604
|
+
|
|
2605
|
+
@MasterDBInstanceId.setter
|
|
2606
|
+
def MasterDBInstanceId(self, MasterDBInstanceId):
|
|
2607
|
+
self._MasterDBInstanceId = MasterDBInstanceId
|
|
2576
2608
|
|
|
2577
2609
|
@property
|
|
2578
2610
|
def SpecCode(self):
|
|
@@ -2607,36 +2639,20 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
2607
2639
|
self._Period = Period
|
|
2608
2640
|
|
|
2609
2641
|
@property
|
|
2610
|
-
def
|
|
2611
|
-
return self.
|
|
2612
|
-
|
|
2613
|
-
@MasterDBInstanceId.setter
|
|
2614
|
-
def MasterDBInstanceId(self, MasterDBInstanceId):
|
|
2615
|
-
self._MasterDBInstanceId = MasterDBInstanceId
|
|
2616
|
-
|
|
2617
|
-
@property
|
|
2618
|
-
def Zone(self):
|
|
2619
|
-
return self._Zone
|
|
2620
|
-
|
|
2621
|
-
@Zone.setter
|
|
2622
|
-
def Zone(self, Zone):
|
|
2623
|
-
self._Zone = Zone
|
|
2624
|
-
|
|
2625
|
-
@property
|
|
2626
|
-
def ProjectId(self):
|
|
2627
|
-
return self._ProjectId
|
|
2642
|
+
def VpcId(self):
|
|
2643
|
+
return self._VpcId
|
|
2628
2644
|
|
|
2629
|
-
@
|
|
2630
|
-
def
|
|
2631
|
-
self.
|
|
2645
|
+
@VpcId.setter
|
|
2646
|
+
def VpcId(self, VpcId):
|
|
2647
|
+
self._VpcId = VpcId
|
|
2632
2648
|
|
|
2633
2649
|
@property
|
|
2634
|
-
def
|
|
2635
|
-
return self.
|
|
2650
|
+
def SubnetId(self):
|
|
2651
|
+
return self._SubnetId
|
|
2636
2652
|
|
|
2637
|
-
@
|
|
2638
|
-
def
|
|
2639
|
-
self.
|
|
2653
|
+
@SubnetId.setter
|
|
2654
|
+
def SubnetId(self, SubnetId):
|
|
2655
|
+
self._SubnetId = SubnetId
|
|
2640
2656
|
|
|
2641
2657
|
@property
|
|
2642
2658
|
def InstanceChargeType(self):
|
|
@@ -2671,20 +2687,12 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
2671
2687
|
self._AutoRenewFlag = AutoRenewFlag
|
|
2672
2688
|
|
|
2673
2689
|
@property
|
|
2674
|
-
def
|
|
2675
|
-
return self.
|
|
2676
|
-
|
|
2677
|
-
@VpcId.setter
|
|
2678
|
-
def VpcId(self, VpcId):
|
|
2679
|
-
self._VpcId = VpcId
|
|
2680
|
-
|
|
2681
|
-
@property
|
|
2682
|
-
def SubnetId(self):
|
|
2683
|
-
return self._SubnetId
|
|
2690
|
+
def ProjectId(self):
|
|
2691
|
+
return self._ProjectId
|
|
2684
2692
|
|
|
2685
|
-
@
|
|
2686
|
-
def
|
|
2687
|
-
self.
|
|
2693
|
+
@ProjectId.setter
|
|
2694
|
+
def ProjectId(self, ProjectId):
|
|
2695
|
+
self._ProjectId = ProjectId
|
|
2688
2696
|
|
|
2689
2697
|
@property
|
|
2690
2698
|
def ActivityId(self):
|
|
@@ -2694,22 +2702,6 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
2694
2702
|
def ActivityId(self, ActivityId):
|
|
2695
2703
|
self._ActivityId = ActivityId
|
|
2696
2704
|
|
|
2697
|
-
@property
|
|
2698
|
-
def Name(self):
|
|
2699
|
-
return self._Name
|
|
2700
|
-
|
|
2701
|
-
@Name.setter
|
|
2702
|
-
def Name(self, Name):
|
|
2703
|
-
self._Name = Name
|
|
2704
|
-
|
|
2705
|
-
@property
|
|
2706
|
-
def NeedSupportIpv6(self):
|
|
2707
|
-
return self._NeedSupportIpv6
|
|
2708
|
-
|
|
2709
|
-
@NeedSupportIpv6.setter
|
|
2710
|
-
def NeedSupportIpv6(self, NeedSupportIpv6):
|
|
2711
|
-
self._NeedSupportIpv6 = NeedSupportIpv6
|
|
2712
|
-
|
|
2713
2705
|
@property
|
|
2714
2706
|
def ReadOnlyGroupId(self):
|
|
2715
2707
|
return self._ReadOnlyGroupId
|
|
@@ -2734,30 +2726,54 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
2734
2726
|
def SecurityGroupIds(self, SecurityGroupIds):
|
|
2735
2727
|
self._SecurityGroupIds = SecurityGroupIds
|
|
2736
2728
|
|
|
2729
|
+
@property
|
|
2730
|
+
def NeedSupportIpv6(self):
|
|
2731
|
+
return self._NeedSupportIpv6
|
|
2732
|
+
|
|
2733
|
+
@NeedSupportIpv6.setter
|
|
2734
|
+
def NeedSupportIpv6(self, NeedSupportIpv6):
|
|
2735
|
+
self._NeedSupportIpv6 = NeedSupportIpv6
|
|
2736
|
+
|
|
2737
|
+
@property
|
|
2738
|
+
def Name(self):
|
|
2739
|
+
return self._Name
|
|
2740
|
+
|
|
2741
|
+
@Name.setter
|
|
2742
|
+
def Name(self, Name):
|
|
2743
|
+
self._Name = Name
|
|
2744
|
+
|
|
2745
|
+
@property
|
|
2746
|
+
def DBVersion(self):
|
|
2747
|
+
return self._DBVersion
|
|
2748
|
+
|
|
2749
|
+
@DBVersion.setter
|
|
2750
|
+
def DBVersion(self, DBVersion):
|
|
2751
|
+
self._DBVersion = DBVersion
|
|
2752
|
+
|
|
2737
2753
|
|
|
2738
2754
|
def _deserialize(self, params):
|
|
2755
|
+
self._Zone = params.get("Zone")
|
|
2756
|
+
self._MasterDBInstanceId = params.get("MasterDBInstanceId")
|
|
2739
2757
|
self._SpecCode = params.get("SpecCode")
|
|
2740
2758
|
self._Storage = params.get("Storage")
|
|
2741
2759
|
self._InstanceCount = params.get("InstanceCount")
|
|
2742
2760
|
self._Period = params.get("Period")
|
|
2743
|
-
self.
|
|
2744
|
-
self.
|
|
2745
|
-
self._ProjectId = params.get("ProjectId")
|
|
2746
|
-
self._DBVersion = params.get("DBVersion")
|
|
2761
|
+
self._VpcId = params.get("VpcId")
|
|
2762
|
+
self._SubnetId = params.get("SubnetId")
|
|
2747
2763
|
self._InstanceChargeType = params.get("InstanceChargeType")
|
|
2748
2764
|
self._AutoVoucher = params.get("AutoVoucher")
|
|
2749
2765
|
self._VoucherIds = params.get("VoucherIds")
|
|
2750
2766
|
self._AutoRenewFlag = params.get("AutoRenewFlag")
|
|
2751
|
-
self.
|
|
2752
|
-
self._SubnetId = params.get("SubnetId")
|
|
2767
|
+
self._ProjectId = params.get("ProjectId")
|
|
2753
2768
|
self._ActivityId = params.get("ActivityId")
|
|
2754
|
-
self._Name = params.get("Name")
|
|
2755
|
-
self._NeedSupportIpv6 = params.get("NeedSupportIpv6")
|
|
2756
2769
|
self._ReadOnlyGroupId = params.get("ReadOnlyGroupId")
|
|
2757
2770
|
if params.get("TagList") is not None:
|
|
2758
2771
|
self._TagList = Tag()
|
|
2759
2772
|
self._TagList._deserialize(params.get("TagList"))
|
|
2760
2773
|
self._SecurityGroupIds = params.get("SecurityGroupIds")
|
|
2774
|
+
self._NeedSupportIpv6 = params.get("NeedSupportIpv6")
|
|
2775
|
+
self._Name = params.get("Name")
|
|
2776
|
+
self._DBVersion = params.get("DBVersion")
|
|
2761
2777
|
memeber_set = set(params.keys())
|
|
2762
2778
|
for name, value in vars(self).items():
|
|
2763
2779
|
property_name = name[1:]
|
|
@@ -6287,6 +6303,138 @@ class DescribeDBInstanceAttributeResponse(AbstractModel):
|
|
|
6287
6303
|
self._RequestId = params.get("RequestId")
|
|
6288
6304
|
|
|
6289
6305
|
|
|
6306
|
+
class DescribeDBInstanceHAConfigRequest(AbstractModel):
|
|
6307
|
+
"""DescribeDBInstanceHAConfig请求参数结构体
|
|
6308
|
+
|
|
6309
|
+
"""
|
|
6310
|
+
|
|
6311
|
+
def __init__(self):
|
|
6312
|
+
r"""
|
|
6313
|
+
:param _DBInstanceId: 实例ID
|
|
6314
|
+
:type DBInstanceId: str
|
|
6315
|
+
"""
|
|
6316
|
+
self._DBInstanceId = None
|
|
6317
|
+
|
|
6318
|
+
@property
|
|
6319
|
+
def DBInstanceId(self):
|
|
6320
|
+
return self._DBInstanceId
|
|
6321
|
+
|
|
6322
|
+
@DBInstanceId.setter
|
|
6323
|
+
def DBInstanceId(self, DBInstanceId):
|
|
6324
|
+
self._DBInstanceId = DBInstanceId
|
|
6325
|
+
|
|
6326
|
+
|
|
6327
|
+
def _deserialize(self, params):
|
|
6328
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
6329
|
+
memeber_set = set(params.keys())
|
|
6330
|
+
for name, value in vars(self).items():
|
|
6331
|
+
property_name = name[1:]
|
|
6332
|
+
if property_name in memeber_set:
|
|
6333
|
+
memeber_set.remove(property_name)
|
|
6334
|
+
if len(memeber_set) > 0:
|
|
6335
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6336
|
+
|
|
6337
|
+
|
|
6338
|
+
|
|
6339
|
+
class DescribeDBInstanceHAConfigResponse(AbstractModel):
|
|
6340
|
+
"""DescribeDBInstanceHAConfig返回参数结构体
|
|
6341
|
+
|
|
6342
|
+
"""
|
|
6343
|
+
|
|
6344
|
+
def __init__(self):
|
|
6345
|
+
r"""
|
|
6346
|
+
:param _SyncMode: 主从同步方式:
|
|
6347
|
+
<li>Semi-sync:半同步
|
|
6348
|
+
<li>Async:异步
|
|
6349
|
+
:type SyncMode: str
|
|
6350
|
+
:param _MaxStandbyLatency: 高可用备机最大延迟数据量。备节点延迟数据量小于等于该值,且备节点延迟时间小于等于MaxStandbyLag时,可以切换为主节点。
|
|
6351
|
+
<li>单位:byte
|
|
6352
|
+
<li>参数范围:[1073741824, 322122547200]
|
|
6353
|
+
:type MaxStandbyLatency: int
|
|
6354
|
+
:param _MaxStandbyLag: 高可用备机最大延迟时间。备节点延迟时间小于等于该值,且备节点延迟数据量小于等于MaxStandbyLatency时,可以切换为主节点。
|
|
6355
|
+
<li>单位:s
|
|
6356
|
+
<li>参数范围:[5, 10]
|
|
6357
|
+
:type MaxStandbyLag: int
|
|
6358
|
+
:param _MaxSyncStandbyLatency: 同步备机最大延迟数据量。备机延迟数据量小于等于该值,且该备机延迟时间小于等于MaxSyncStandbyLag时,则该备机采用同步复制;否则,采用异步复制。
|
|
6359
|
+
该参数值针对SyncMode设置为Semi-sync的实例有效。
|
|
6360
|
+
异步实例该字段返回null。
|
|
6361
|
+
半同步实例禁止退化为异步复制时,该字段返回null。
|
|
6362
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6363
|
+
:type MaxSyncStandbyLatency: int
|
|
6364
|
+
:param _MaxSyncStandbyLag: 同步备机最大延迟时间。备机延迟时间小于等于该值,且该备机延迟数据量小于等于MaxSyncStandbyLatency时,则该备机采用同步复制;否则,采用异步复制。
|
|
6365
|
+
该参数值针对SyncMode设置为Semi-sync的实例有效。
|
|
6366
|
+
异步实例不返回该字段。
|
|
6367
|
+
半同步实例禁止退化为异步复制时,不返回该字段。
|
|
6368
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6369
|
+
:type MaxSyncStandbyLag: int
|
|
6370
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
6371
|
+
:type RequestId: str
|
|
6372
|
+
"""
|
|
6373
|
+
self._SyncMode = None
|
|
6374
|
+
self._MaxStandbyLatency = None
|
|
6375
|
+
self._MaxStandbyLag = None
|
|
6376
|
+
self._MaxSyncStandbyLatency = None
|
|
6377
|
+
self._MaxSyncStandbyLag = None
|
|
6378
|
+
self._RequestId = None
|
|
6379
|
+
|
|
6380
|
+
@property
|
|
6381
|
+
def SyncMode(self):
|
|
6382
|
+
return self._SyncMode
|
|
6383
|
+
|
|
6384
|
+
@SyncMode.setter
|
|
6385
|
+
def SyncMode(self, SyncMode):
|
|
6386
|
+
self._SyncMode = SyncMode
|
|
6387
|
+
|
|
6388
|
+
@property
|
|
6389
|
+
def MaxStandbyLatency(self):
|
|
6390
|
+
return self._MaxStandbyLatency
|
|
6391
|
+
|
|
6392
|
+
@MaxStandbyLatency.setter
|
|
6393
|
+
def MaxStandbyLatency(self, MaxStandbyLatency):
|
|
6394
|
+
self._MaxStandbyLatency = MaxStandbyLatency
|
|
6395
|
+
|
|
6396
|
+
@property
|
|
6397
|
+
def MaxStandbyLag(self):
|
|
6398
|
+
return self._MaxStandbyLag
|
|
6399
|
+
|
|
6400
|
+
@MaxStandbyLag.setter
|
|
6401
|
+
def MaxStandbyLag(self, MaxStandbyLag):
|
|
6402
|
+
self._MaxStandbyLag = MaxStandbyLag
|
|
6403
|
+
|
|
6404
|
+
@property
|
|
6405
|
+
def MaxSyncStandbyLatency(self):
|
|
6406
|
+
return self._MaxSyncStandbyLatency
|
|
6407
|
+
|
|
6408
|
+
@MaxSyncStandbyLatency.setter
|
|
6409
|
+
def MaxSyncStandbyLatency(self, MaxSyncStandbyLatency):
|
|
6410
|
+
self._MaxSyncStandbyLatency = MaxSyncStandbyLatency
|
|
6411
|
+
|
|
6412
|
+
@property
|
|
6413
|
+
def MaxSyncStandbyLag(self):
|
|
6414
|
+
return self._MaxSyncStandbyLag
|
|
6415
|
+
|
|
6416
|
+
@MaxSyncStandbyLag.setter
|
|
6417
|
+
def MaxSyncStandbyLag(self, MaxSyncStandbyLag):
|
|
6418
|
+
self._MaxSyncStandbyLag = MaxSyncStandbyLag
|
|
6419
|
+
|
|
6420
|
+
@property
|
|
6421
|
+
def RequestId(self):
|
|
6422
|
+
return self._RequestId
|
|
6423
|
+
|
|
6424
|
+
@RequestId.setter
|
|
6425
|
+
def RequestId(self, RequestId):
|
|
6426
|
+
self._RequestId = RequestId
|
|
6427
|
+
|
|
6428
|
+
|
|
6429
|
+
def _deserialize(self, params):
|
|
6430
|
+
self._SyncMode = params.get("SyncMode")
|
|
6431
|
+
self._MaxStandbyLatency = params.get("MaxStandbyLatency")
|
|
6432
|
+
self._MaxStandbyLag = params.get("MaxStandbyLag")
|
|
6433
|
+
self._MaxSyncStandbyLatency = params.get("MaxSyncStandbyLatency")
|
|
6434
|
+
self._MaxSyncStandbyLag = params.get("MaxSyncStandbyLag")
|
|
6435
|
+
self._RequestId = params.get("RequestId")
|
|
6436
|
+
|
|
6437
|
+
|
|
6290
6438
|
class DescribeDBInstanceParametersRequest(AbstractModel):
|
|
6291
6439
|
"""DescribeDBInstanceParameters请求参数结构体
|
|
6292
6440
|
|
|
@@ -10715,6 +10863,137 @@ class ModifyDBInstanceDeploymentResponse(AbstractModel):
|
|
|
10715
10863
|
self._RequestId = params.get("RequestId")
|
|
10716
10864
|
|
|
10717
10865
|
|
|
10866
|
+
class ModifyDBInstanceHAConfigRequest(AbstractModel):
|
|
10867
|
+
"""ModifyDBInstanceHAConfig请求参数结构体
|
|
10868
|
+
|
|
10869
|
+
"""
|
|
10870
|
+
|
|
10871
|
+
def __init__(self):
|
|
10872
|
+
r"""
|
|
10873
|
+
:param _DBInstanceId: 实例ID
|
|
10874
|
+
:type DBInstanceId: str
|
|
10875
|
+
:param _SyncMode: 主从同步方式:
|
|
10876
|
+
<li>Semi-sync:半同步
|
|
10877
|
+
<li>Async:异步
|
|
10878
|
+
|
|
10879
|
+
:type SyncMode: str
|
|
10880
|
+
:param _MaxStandbyLatency: 高可用备机最大延迟数据量。备节点延迟数据量小于等于该值,且备节点延迟时间小于等于MaxStandbyLag时,可以切换为主节点。
|
|
10881
|
+
<li>单位:byte
|
|
10882
|
+
<li>参数范围:[1073741824, 322122547200]
|
|
10883
|
+
:type MaxStandbyLatency: int
|
|
10884
|
+
:param _MaxStandbyLag: 高可用备机最大延迟时间。备节点延迟时间小于等于该值,且备节点延迟数据量小于等于MaxStandbyLatency时,可以切换为主节点。
|
|
10885
|
+
<li>单位:s
|
|
10886
|
+
<li>参数范围:[5, 10]
|
|
10887
|
+
:type MaxStandbyLag: int
|
|
10888
|
+
:param _MaxSyncStandbyLatency: 同步备机最大延迟数据量。备机延迟数据量小于等于该值,且该备机延迟时间小于等于MaxSyncStandbyLag时,则该备机采用同步复制;否则,采用异步复制。
|
|
10889
|
+
该参数值针对SyncMode设置为Semi-sync的实例有效。
|
|
10890
|
+
半同步实例禁止退化为异步复制时,不设置MaxSyncStandbyLatency、MaxSyncStandbyLag。
|
|
10891
|
+
半同步实例允许退化异步复制时,PostgreSQL 9版本的实例须设置MaxSyncStandbyLatency且不设置MaxSyncStandbyLag,PostgreSQL 10及以上版本的实例须设置MaxSyncStandbyLatency、MaxSyncStandbyLag。
|
|
10892
|
+
:type MaxSyncStandbyLatency: int
|
|
10893
|
+
:param _MaxSyncStandbyLag: 同步备机最大延迟时间。备机延迟时间小于等于该值,且该备机延迟数据量小于等于MaxSyncStandbyLatency时,则该备机采用同步复制;否则,采用异步复制。
|
|
10894
|
+
该参数值针对SyncMode设置为Semi-sync的实例有效。
|
|
10895
|
+
半同步实例禁止退化为异步复制时,不设置MaxSyncStandbyLatency、MaxSyncStandbyLag。
|
|
10896
|
+
半同步实例允许退化异步复制时,PostgreSQL 9版本的实例须设置MaxSyncStandbyLatency且不设置MaxSyncStandbyLag,PostgreSQL 10及以上版本的实例须设置MaxSyncStandbyLatency、MaxSyncStandbyLag,
|
|
10897
|
+
:type MaxSyncStandbyLag: int
|
|
10898
|
+
"""
|
|
10899
|
+
self._DBInstanceId = None
|
|
10900
|
+
self._SyncMode = None
|
|
10901
|
+
self._MaxStandbyLatency = None
|
|
10902
|
+
self._MaxStandbyLag = None
|
|
10903
|
+
self._MaxSyncStandbyLatency = None
|
|
10904
|
+
self._MaxSyncStandbyLag = None
|
|
10905
|
+
|
|
10906
|
+
@property
|
|
10907
|
+
def DBInstanceId(self):
|
|
10908
|
+
return self._DBInstanceId
|
|
10909
|
+
|
|
10910
|
+
@DBInstanceId.setter
|
|
10911
|
+
def DBInstanceId(self, DBInstanceId):
|
|
10912
|
+
self._DBInstanceId = DBInstanceId
|
|
10913
|
+
|
|
10914
|
+
@property
|
|
10915
|
+
def SyncMode(self):
|
|
10916
|
+
return self._SyncMode
|
|
10917
|
+
|
|
10918
|
+
@SyncMode.setter
|
|
10919
|
+
def SyncMode(self, SyncMode):
|
|
10920
|
+
self._SyncMode = SyncMode
|
|
10921
|
+
|
|
10922
|
+
@property
|
|
10923
|
+
def MaxStandbyLatency(self):
|
|
10924
|
+
return self._MaxStandbyLatency
|
|
10925
|
+
|
|
10926
|
+
@MaxStandbyLatency.setter
|
|
10927
|
+
def MaxStandbyLatency(self, MaxStandbyLatency):
|
|
10928
|
+
self._MaxStandbyLatency = MaxStandbyLatency
|
|
10929
|
+
|
|
10930
|
+
@property
|
|
10931
|
+
def MaxStandbyLag(self):
|
|
10932
|
+
return self._MaxStandbyLag
|
|
10933
|
+
|
|
10934
|
+
@MaxStandbyLag.setter
|
|
10935
|
+
def MaxStandbyLag(self, MaxStandbyLag):
|
|
10936
|
+
self._MaxStandbyLag = MaxStandbyLag
|
|
10937
|
+
|
|
10938
|
+
@property
|
|
10939
|
+
def MaxSyncStandbyLatency(self):
|
|
10940
|
+
return self._MaxSyncStandbyLatency
|
|
10941
|
+
|
|
10942
|
+
@MaxSyncStandbyLatency.setter
|
|
10943
|
+
def MaxSyncStandbyLatency(self, MaxSyncStandbyLatency):
|
|
10944
|
+
self._MaxSyncStandbyLatency = MaxSyncStandbyLatency
|
|
10945
|
+
|
|
10946
|
+
@property
|
|
10947
|
+
def MaxSyncStandbyLag(self):
|
|
10948
|
+
return self._MaxSyncStandbyLag
|
|
10949
|
+
|
|
10950
|
+
@MaxSyncStandbyLag.setter
|
|
10951
|
+
def MaxSyncStandbyLag(self, MaxSyncStandbyLag):
|
|
10952
|
+
self._MaxSyncStandbyLag = MaxSyncStandbyLag
|
|
10953
|
+
|
|
10954
|
+
|
|
10955
|
+
def _deserialize(self, params):
|
|
10956
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
10957
|
+
self._SyncMode = params.get("SyncMode")
|
|
10958
|
+
self._MaxStandbyLatency = params.get("MaxStandbyLatency")
|
|
10959
|
+
self._MaxStandbyLag = params.get("MaxStandbyLag")
|
|
10960
|
+
self._MaxSyncStandbyLatency = params.get("MaxSyncStandbyLatency")
|
|
10961
|
+
self._MaxSyncStandbyLag = params.get("MaxSyncStandbyLag")
|
|
10962
|
+
memeber_set = set(params.keys())
|
|
10963
|
+
for name, value in vars(self).items():
|
|
10964
|
+
property_name = name[1:]
|
|
10965
|
+
if property_name in memeber_set:
|
|
10966
|
+
memeber_set.remove(property_name)
|
|
10967
|
+
if len(memeber_set) > 0:
|
|
10968
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
10969
|
+
|
|
10970
|
+
|
|
10971
|
+
|
|
10972
|
+
class ModifyDBInstanceHAConfigResponse(AbstractModel):
|
|
10973
|
+
"""ModifyDBInstanceHAConfig返回参数结构体
|
|
10974
|
+
|
|
10975
|
+
"""
|
|
10976
|
+
|
|
10977
|
+
def __init__(self):
|
|
10978
|
+
r"""
|
|
10979
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
10980
|
+
:type RequestId: str
|
|
10981
|
+
"""
|
|
10982
|
+
self._RequestId = None
|
|
10983
|
+
|
|
10984
|
+
@property
|
|
10985
|
+
def RequestId(self):
|
|
10986
|
+
return self._RequestId
|
|
10987
|
+
|
|
10988
|
+
@RequestId.setter
|
|
10989
|
+
def RequestId(self, RequestId):
|
|
10990
|
+
self._RequestId = RequestId
|
|
10991
|
+
|
|
10992
|
+
|
|
10993
|
+
def _deserialize(self, params):
|
|
10994
|
+
self._RequestId = params.get("RequestId")
|
|
10995
|
+
|
|
10996
|
+
|
|
10718
10997
|
class ModifyDBInstanceNameRequest(AbstractModel):
|
|
10719
10998
|
"""ModifyDBInstanceName请求参数结构体
|
|
10720
10999
|
|
|
@@ -14674,6 +14953,117 @@ class SpecItemInfo(AbstractModel):
|
|
|
14674
14953
|
|
|
14675
14954
|
|
|
14676
14955
|
|
|
14956
|
+
class SwitchDBInstancePrimaryRequest(AbstractModel):
|
|
14957
|
+
"""SwitchDBInstancePrimary请求参数结构体
|
|
14958
|
+
|
|
14959
|
+
"""
|
|
14960
|
+
|
|
14961
|
+
def __init__(self):
|
|
14962
|
+
r"""
|
|
14963
|
+
:param _DBInstanceId: 实例ID
|
|
14964
|
+
:type DBInstanceId: str
|
|
14965
|
+
:param _Force: 是否强制切换。强制切换时只要备节点可访问,无论主备延迟多大都会发起切换。只有SwitchTag为0时,才可使用立即切换。
|
|
14966
|
+
<li>默认:false
|
|
14967
|
+
:type Force: bool
|
|
14968
|
+
:param _SwitchTag: 指定实例配置完成变更后的切换时间。
|
|
14969
|
+
<li>0:立即切换
|
|
14970
|
+
<li>1:指定时间切换
|
|
14971
|
+
<li>2:维护时间窗口内切换
|
|
14972
|
+
<li>默认值:0
|
|
14973
|
+
:type SwitchTag: int
|
|
14974
|
+
:param _SwitchStartTime: 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。
|
|
14975
|
+
:type SwitchStartTime: str
|
|
14976
|
+
:param _SwitchEndTime: 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。SwitchStartTime和SwitchEndTime时间窗口不能小于30分钟。
|
|
14977
|
+
:type SwitchEndTime: str
|
|
14978
|
+
"""
|
|
14979
|
+
self._DBInstanceId = None
|
|
14980
|
+
self._Force = None
|
|
14981
|
+
self._SwitchTag = None
|
|
14982
|
+
self._SwitchStartTime = None
|
|
14983
|
+
self._SwitchEndTime = None
|
|
14984
|
+
|
|
14985
|
+
@property
|
|
14986
|
+
def DBInstanceId(self):
|
|
14987
|
+
return self._DBInstanceId
|
|
14988
|
+
|
|
14989
|
+
@DBInstanceId.setter
|
|
14990
|
+
def DBInstanceId(self, DBInstanceId):
|
|
14991
|
+
self._DBInstanceId = DBInstanceId
|
|
14992
|
+
|
|
14993
|
+
@property
|
|
14994
|
+
def Force(self):
|
|
14995
|
+
return self._Force
|
|
14996
|
+
|
|
14997
|
+
@Force.setter
|
|
14998
|
+
def Force(self, Force):
|
|
14999
|
+
self._Force = Force
|
|
15000
|
+
|
|
15001
|
+
@property
|
|
15002
|
+
def SwitchTag(self):
|
|
15003
|
+
return self._SwitchTag
|
|
15004
|
+
|
|
15005
|
+
@SwitchTag.setter
|
|
15006
|
+
def SwitchTag(self, SwitchTag):
|
|
15007
|
+
self._SwitchTag = SwitchTag
|
|
15008
|
+
|
|
15009
|
+
@property
|
|
15010
|
+
def SwitchStartTime(self):
|
|
15011
|
+
return self._SwitchStartTime
|
|
15012
|
+
|
|
15013
|
+
@SwitchStartTime.setter
|
|
15014
|
+
def SwitchStartTime(self, SwitchStartTime):
|
|
15015
|
+
self._SwitchStartTime = SwitchStartTime
|
|
15016
|
+
|
|
15017
|
+
@property
|
|
15018
|
+
def SwitchEndTime(self):
|
|
15019
|
+
return self._SwitchEndTime
|
|
15020
|
+
|
|
15021
|
+
@SwitchEndTime.setter
|
|
15022
|
+
def SwitchEndTime(self, SwitchEndTime):
|
|
15023
|
+
self._SwitchEndTime = SwitchEndTime
|
|
15024
|
+
|
|
15025
|
+
|
|
15026
|
+
def _deserialize(self, params):
|
|
15027
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
15028
|
+
self._Force = params.get("Force")
|
|
15029
|
+
self._SwitchTag = params.get("SwitchTag")
|
|
15030
|
+
self._SwitchStartTime = params.get("SwitchStartTime")
|
|
15031
|
+
self._SwitchEndTime = params.get("SwitchEndTime")
|
|
15032
|
+
memeber_set = set(params.keys())
|
|
15033
|
+
for name, value in vars(self).items():
|
|
15034
|
+
property_name = name[1:]
|
|
15035
|
+
if property_name in memeber_set:
|
|
15036
|
+
memeber_set.remove(property_name)
|
|
15037
|
+
if len(memeber_set) > 0:
|
|
15038
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15039
|
+
|
|
15040
|
+
|
|
15041
|
+
|
|
15042
|
+
class SwitchDBInstancePrimaryResponse(AbstractModel):
|
|
15043
|
+
"""SwitchDBInstancePrimary返回参数结构体
|
|
15044
|
+
|
|
15045
|
+
"""
|
|
15046
|
+
|
|
15047
|
+
def __init__(self):
|
|
15048
|
+
r"""
|
|
15049
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
15050
|
+
:type RequestId: str
|
|
15051
|
+
"""
|
|
15052
|
+
self._RequestId = None
|
|
15053
|
+
|
|
15054
|
+
@property
|
|
15055
|
+
def RequestId(self):
|
|
15056
|
+
return self._RequestId
|
|
15057
|
+
|
|
15058
|
+
@RequestId.setter
|
|
15059
|
+
def RequestId(self, RequestId):
|
|
15060
|
+
self._RequestId = RequestId
|
|
15061
|
+
|
|
15062
|
+
|
|
15063
|
+
def _deserialize(self, params):
|
|
15064
|
+
self._RequestId = params.get("RequestId")
|
|
15065
|
+
|
|
15066
|
+
|
|
14677
15067
|
class Tag(AbstractModel):
|
|
14678
15068
|
"""实例绑定的标签信息,包含标签键TagKey和标签值TagValue
|
|
14679
15069
|
|
|
@@ -787,6 +787,31 @@ class PostgresClient(AbstractClient):
|
|
|
787
787
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
788
788
|
|
|
789
789
|
|
|
790
|
+
def DescribeDBInstanceHAConfig(self, request):
|
|
791
|
+
"""本接口(DescribeDBInstanceHAConfig)用于查询实例HA配置信息。其中HA配置信息包括:
|
|
792
|
+
<li>允许备节点切换为主节点的条件配置
|
|
793
|
+
<li>半同步实例使用同步复制或异步复制的条件配置
|
|
794
|
+
|
|
795
|
+
:param request: Request instance for DescribeDBInstanceHAConfig.
|
|
796
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBInstanceHAConfigRequest`
|
|
797
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeDBInstanceHAConfigResponse`
|
|
798
|
+
|
|
799
|
+
"""
|
|
800
|
+
try:
|
|
801
|
+
params = request._serialize()
|
|
802
|
+
headers = request.headers
|
|
803
|
+
body = self.call("DescribeDBInstanceHAConfig", params, headers=headers)
|
|
804
|
+
response = json.loads(body)
|
|
805
|
+
model = models.DescribeDBInstanceHAConfigResponse()
|
|
806
|
+
model._deserialize(response["Response"])
|
|
807
|
+
return model
|
|
808
|
+
except Exception as e:
|
|
809
|
+
if isinstance(e, TencentCloudSDKException):
|
|
810
|
+
raise
|
|
811
|
+
else:
|
|
812
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
813
|
+
|
|
814
|
+
|
|
790
815
|
def DescribeDBInstanceParameters(self, request):
|
|
791
816
|
"""本接口(DescribeDBInstanceAttribute)用于查询实例的参数信息。
|
|
792
817
|
|
|
@@ -1569,6 +1594,31 @@ class PostgresClient(AbstractClient):
|
|
|
1569
1594
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1570
1595
|
|
|
1571
1596
|
|
|
1597
|
+
def ModifyDBInstanceHAConfig(self, request):
|
|
1598
|
+
"""本接口(ModifyDBInstanceHAConfig)用于修改实例HA配置信息。其中HA配置信息包括:
|
|
1599
|
+
<li>允许备节点切换为主节点的条件配置
|
|
1600
|
+
<li>半同步实例使用同步复制或异步复制的条件配置
|
|
1601
|
+
|
|
1602
|
+
:param request: Request instance for ModifyDBInstanceHAConfig.
|
|
1603
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.ModifyDBInstanceHAConfigRequest`
|
|
1604
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.ModifyDBInstanceHAConfigResponse`
|
|
1605
|
+
|
|
1606
|
+
"""
|
|
1607
|
+
try:
|
|
1608
|
+
params = request._serialize()
|
|
1609
|
+
headers = request.headers
|
|
1610
|
+
body = self.call("ModifyDBInstanceHAConfig", params, headers=headers)
|
|
1611
|
+
response = json.loads(body)
|
|
1612
|
+
model = models.ModifyDBInstanceHAConfigResponse()
|
|
1613
|
+
model._deserialize(response["Response"])
|
|
1614
|
+
return model
|
|
1615
|
+
except Exception as e:
|
|
1616
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1617
|
+
raise
|
|
1618
|
+
else:
|
|
1619
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1620
|
+
|
|
1621
|
+
|
|
1572
1622
|
def ModifyDBInstanceName(self, request):
|
|
1573
1623
|
"""本接口(ModifyDBInstanceName)用于修改postgresql实例名字。
|
|
1574
1624
|
|
|
@@ -1960,6 +2010,32 @@ class PostgresClient(AbstractClient):
|
|
|
1960
2010
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1961
2011
|
|
|
1962
2012
|
|
|
2013
|
+
def SwitchDBInstancePrimary(self, request):
|
|
2014
|
+
"""本接口(SwitchDBInstancePrimary)用于切换实例主备关系。
|
|
2015
|
+
<li>通过主动发起切换,可以验证业务能否正确处理实例主备切换的场景
|
|
2016
|
+
<li>通过使用强制切换,可以在备节点延迟不满足切换条件时,强制发起主从切换
|
|
2017
|
+
<li>只有主实例可以执行该操作
|
|
2018
|
+
|
|
2019
|
+
:param request: Request instance for SwitchDBInstancePrimary.
|
|
2020
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.SwitchDBInstancePrimaryRequest`
|
|
2021
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.SwitchDBInstancePrimaryResponse`
|
|
2022
|
+
|
|
2023
|
+
"""
|
|
2024
|
+
try:
|
|
2025
|
+
params = request._serialize()
|
|
2026
|
+
headers = request.headers
|
|
2027
|
+
body = self.call("SwitchDBInstancePrimary", params, headers=headers)
|
|
2028
|
+
response = json.loads(body)
|
|
2029
|
+
model = models.SwitchDBInstancePrimaryResponse()
|
|
2030
|
+
model._deserialize(response["Response"])
|
|
2031
|
+
return model
|
|
2032
|
+
except Exception as e:
|
|
2033
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2034
|
+
raise
|
|
2035
|
+
else:
|
|
2036
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2037
|
+
|
|
2038
|
+
|
|
1963
2039
|
def UpgradeDBInstance(self, request):
|
|
1964
2040
|
"""本接口(UpgradeDBInstance)用于升级实例配置。本接口已废弃,推荐使用接口[ModifyDBInstanceSpec](https://cloud.tencent.com/document/api/409/63689)替代。
|
|
1965
2041
|
|
|
@@ -10,4 +10,5 @@ tencentcloud/postgres/v20170312/postgres_client.py
|
|
|
10
10
|
tencentcloud_sdk_python_postgres.egg-info/PKG-INFO
|
|
11
11
|
tencentcloud_sdk_python_postgres.egg-info/SOURCES.txt
|
|
12
12
|
tencentcloud_sdk_python_postgres.egg-info/dependency_links.txt
|
|
13
|
+
tencentcloud_sdk_python_postgres.egg-info/requires.txt
|
|
13
14
|
tencentcloud_sdk_python_postgres.egg-info/top_level.txt
|
tencentcloud-sdk-python-postgres-3.0.950/tencentcloud_sdk_python_postgres.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.950
|
{tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/README.rst
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-postgres-3.0.941 → tencentcloud-sdk-python-postgres-3.0.950}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|