tencentcloud-sdk-python-postgres 3.1.134__py2.py3-none-any.whl → 3.1.143__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/postgres/v20170312/errorcodes.py +6 -0
- tencentcloud/postgres/v20170312/models.py +1820 -236
- tencentcloud/postgres/v20170312/postgres_client.py +161 -0
- tencentcloud/postgres/v20170312/postgres_client_async.py +126 -0
- {tencentcloud_sdk_python_postgres-3.1.134.dist-info → tencentcloud_sdk_python_postgres-3.1.143.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_postgres-3.1.143.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_postgres-3.1.134.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_postgres-3.1.134.dist-info → tencentcloud_sdk_python_postgres-3.1.143.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_postgres-3.1.134.dist-info → tencentcloud_sdk_python_postgres-3.1.143.dist-info}/top_level.txt +0 -0
|
@@ -3416,6 +3416,195 @@ class CreateDBInstanceNetworkAccessResponse(AbstractModel):
|
|
|
3416
3416
|
self._RequestId = params.get("RequestId")
|
|
3417
3417
|
|
|
3418
3418
|
|
|
3419
|
+
class CreateDBProxyRequest(AbstractModel):
|
|
3420
|
+
r"""CreateDBProxy请求参数结构体
|
|
3421
|
+
|
|
3422
|
+
"""
|
|
3423
|
+
|
|
3424
|
+
def __init__(self):
|
|
3425
|
+
r"""
|
|
3426
|
+
:param _DBInstanceId: <p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
3427
|
+
:type DBInstanceId: str
|
|
3428
|
+
:param _VpcId: <p>Proxy 所在私有网络 ID,需与主实例所在 VPC 一致</p>
|
|
3429
|
+
:type VpcId: str
|
|
3430
|
+
:param _SubnetId: <p>Proxy 所在私有网络子网 ID</p>
|
|
3431
|
+
:type SubnetId: str
|
|
3432
|
+
:param _ProxyNodeCustom: <p>Proxy 节点自定义规格列表,至少一个元素,按可用区分组</p>
|
|
3433
|
+
:type ProxyNodeCustom: list of ProxyNodeCustom
|
|
3434
|
+
:param _SecurityGroup: <p>Proxy 关联的安全组 ID 列表</p>
|
|
3435
|
+
:type SecurityGroup: list of str
|
|
3436
|
+
:param _Description: <p>Proxy 描述信息</p><p>长度范围:[0, 256]</p>
|
|
3437
|
+
:type Description: str
|
|
3438
|
+
:param _ConnectionPoolLimit: <p>连接池阈值(连接数),单位:个</p>
|
|
3439
|
+
:type ConnectionPoolLimit: int
|
|
3440
|
+
"""
|
|
3441
|
+
self._DBInstanceId = None
|
|
3442
|
+
self._VpcId = None
|
|
3443
|
+
self._SubnetId = None
|
|
3444
|
+
self._ProxyNodeCustom = None
|
|
3445
|
+
self._SecurityGroup = None
|
|
3446
|
+
self._Description = None
|
|
3447
|
+
self._ConnectionPoolLimit = None
|
|
3448
|
+
|
|
3449
|
+
@property
|
|
3450
|
+
def DBInstanceId(self):
|
|
3451
|
+
r"""<p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
3452
|
+
:rtype: str
|
|
3453
|
+
"""
|
|
3454
|
+
return self._DBInstanceId
|
|
3455
|
+
|
|
3456
|
+
@DBInstanceId.setter
|
|
3457
|
+
def DBInstanceId(self, DBInstanceId):
|
|
3458
|
+
self._DBInstanceId = DBInstanceId
|
|
3459
|
+
|
|
3460
|
+
@property
|
|
3461
|
+
def VpcId(self):
|
|
3462
|
+
r"""<p>Proxy 所在私有网络 ID,需与主实例所在 VPC 一致</p>
|
|
3463
|
+
:rtype: str
|
|
3464
|
+
"""
|
|
3465
|
+
return self._VpcId
|
|
3466
|
+
|
|
3467
|
+
@VpcId.setter
|
|
3468
|
+
def VpcId(self, VpcId):
|
|
3469
|
+
self._VpcId = VpcId
|
|
3470
|
+
|
|
3471
|
+
@property
|
|
3472
|
+
def SubnetId(self):
|
|
3473
|
+
r"""<p>Proxy 所在私有网络子网 ID</p>
|
|
3474
|
+
:rtype: str
|
|
3475
|
+
"""
|
|
3476
|
+
return self._SubnetId
|
|
3477
|
+
|
|
3478
|
+
@SubnetId.setter
|
|
3479
|
+
def SubnetId(self, SubnetId):
|
|
3480
|
+
self._SubnetId = SubnetId
|
|
3481
|
+
|
|
3482
|
+
@property
|
|
3483
|
+
def ProxyNodeCustom(self):
|
|
3484
|
+
r"""<p>Proxy 节点自定义规格列表,至少一个元素,按可用区分组</p>
|
|
3485
|
+
:rtype: list of ProxyNodeCustom
|
|
3486
|
+
"""
|
|
3487
|
+
return self._ProxyNodeCustom
|
|
3488
|
+
|
|
3489
|
+
@ProxyNodeCustom.setter
|
|
3490
|
+
def ProxyNodeCustom(self, ProxyNodeCustom):
|
|
3491
|
+
self._ProxyNodeCustom = ProxyNodeCustom
|
|
3492
|
+
|
|
3493
|
+
@property
|
|
3494
|
+
def SecurityGroup(self):
|
|
3495
|
+
r"""<p>Proxy 关联的安全组 ID 列表</p>
|
|
3496
|
+
:rtype: list of str
|
|
3497
|
+
"""
|
|
3498
|
+
return self._SecurityGroup
|
|
3499
|
+
|
|
3500
|
+
@SecurityGroup.setter
|
|
3501
|
+
def SecurityGroup(self, SecurityGroup):
|
|
3502
|
+
self._SecurityGroup = SecurityGroup
|
|
3503
|
+
|
|
3504
|
+
@property
|
|
3505
|
+
def Description(self):
|
|
3506
|
+
r"""<p>Proxy 描述信息</p><p>长度范围:[0, 256]</p>
|
|
3507
|
+
:rtype: str
|
|
3508
|
+
"""
|
|
3509
|
+
return self._Description
|
|
3510
|
+
|
|
3511
|
+
@Description.setter
|
|
3512
|
+
def Description(self, Description):
|
|
3513
|
+
self._Description = Description
|
|
3514
|
+
|
|
3515
|
+
@property
|
|
3516
|
+
def ConnectionPoolLimit(self):
|
|
3517
|
+
r"""<p>连接池阈值(连接数),单位:个</p>
|
|
3518
|
+
:rtype: int
|
|
3519
|
+
"""
|
|
3520
|
+
return self._ConnectionPoolLimit
|
|
3521
|
+
|
|
3522
|
+
@ConnectionPoolLimit.setter
|
|
3523
|
+
def ConnectionPoolLimit(self, ConnectionPoolLimit):
|
|
3524
|
+
self._ConnectionPoolLimit = ConnectionPoolLimit
|
|
3525
|
+
|
|
3526
|
+
|
|
3527
|
+
def _deserialize(self, params):
|
|
3528
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
3529
|
+
self._VpcId = params.get("VpcId")
|
|
3530
|
+
self._SubnetId = params.get("SubnetId")
|
|
3531
|
+
if params.get("ProxyNodeCustom") is not None:
|
|
3532
|
+
self._ProxyNodeCustom = []
|
|
3533
|
+
for item in params.get("ProxyNodeCustom"):
|
|
3534
|
+
obj = ProxyNodeCustom()
|
|
3535
|
+
obj._deserialize(item)
|
|
3536
|
+
self._ProxyNodeCustom.append(obj)
|
|
3537
|
+
self._SecurityGroup = params.get("SecurityGroup")
|
|
3538
|
+
self._Description = params.get("Description")
|
|
3539
|
+
self._ConnectionPoolLimit = params.get("ConnectionPoolLimit")
|
|
3540
|
+
memeber_set = set(params.keys())
|
|
3541
|
+
for name, value in vars(self).items():
|
|
3542
|
+
property_name = name[1:]
|
|
3543
|
+
if property_name in memeber_set:
|
|
3544
|
+
memeber_set.remove(property_name)
|
|
3545
|
+
if len(memeber_set) > 0:
|
|
3546
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3547
|
+
|
|
3548
|
+
|
|
3549
|
+
|
|
3550
|
+
class CreateDBProxyResponse(AbstractModel):
|
|
3551
|
+
r"""CreateDBProxy返回参数结构体
|
|
3552
|
+
|
|
3553
|
+
"""
|
|
3554
|
+
|
|
3555
|
+
def __init__(self):
|
|
3556
|
+
r"""
|
|
3557
|
+
:param _DealName: <p>订单号,下单成功返回。</p>
|
|
3558
|
+
:type DealName: str
|
|
3559
|
+
:param _ProxyGroupId: <p>创建出的 Proxy 实例 ID,格式形如:proxy-xxxxxxxx。</p>
|
|
3560
|
+
:type ProxyGroupId: str
|
|
3561
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3562
|
+
:type RequestId: str
|
|
3563
|
+
"""
|
|
3564
|
+
self._DealName = None
|
|
3565
|
+
self._ProxyGroupId = None
|
|
3566
|
+
self._RequestId = None
|
|
3567
|
+
|
|
3568
|
+
@property
|
|
3569
|
+
def DealName(self):
|
|
3570
|
+
r"""<p>订单号,下单成功返回。</p>
|
|
3571
|
+
:rtype: str
|
|
3572
|
+
"""
|
|
3573
|
+
return self._DealName
|
|
3574
|
+
|
|
3575
|
+
@DealName.setter
|
|
3576
|
+
def DealName(self, DealName):
|
|
3577
|
+
self._DealName = DealName
|
|
3578
|
+
|
|
3579
|
+
@property
|
|
3580
|
+
def ProxyGroupId(self):
|
|
3581
|
+
r"""<p>创建出的 Proxy 实例 ID,格式形如:proxy-xxxxxxxx。</p>
|
|
3582
|
+
:rtype: str
|
|
3583
|
+
"""
|
|
3584
|
+
return self._ProxyGroupId
|
|
3585
|
+
|
|
3586
|
+
@ProxyGroupId.setter
|
|
3587
|
+
def ProxyGroupId(self, ProxyGroupId):
|
|
3588
|
+
self._ProxyGroupId = ProxyGroupId
|
|
3589
|
+
|
|
3590
|
+
@property
|
|
3591
|
+
def RequestId(self):
|
|
3592
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3593
|
+
:rtype: str
|
|
3594
|
+
"""
|
|
3595
|
+
return self._RequestId
|
|
3596
|
+
|
|
3597
|
+
@RequestId.setter
|
|
3598
|
+
def RequestId(self, RequestId):
|
|
3599
|
+
self._RequestId = RequestId
|
|
3600
|
+
|
|
3601
|
+
|
|
3602
|
+
def _deserialize(self, params):
|
|
3603
|
+
self._DealName = params.get("DealName")
|
|
3604
|
+
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
3605
|
+
self._RequestId = params.get("RequestId")
|
|
3606
|
+
|
|
3607
|
+
|
|
3419
3608
|
class CreateDatabaseRequest(AbstractModel):
|
|
3420
3609
|
r"""CreateDatabase请求参数结构体
|
|
3421
3610
|
|
|
@@ -10825,32 +11014,47 @@ class DescribeDBInstancesResponse(AbstractModel):
|
|
|
10825
11014
|
self._RequestId = params.get("RequestId")
|
|
10826
11015
|
|
|
10827
11016
|
|
|
10828
|
-
class
|
|
10829
|
-
r"""
|
|
11017
|
+
class DescribeDBProxyRequest(AbstractModel):
|
|
11018
|
+
r"""DescribeDBProxy请求参数结构体
|
|
10830
11019
|
|
|
10831
11020
|
"""
|
|
10832
11021
|
|
|
10833
11022
|
def __init__(self):
|
|
10834
11023
|
r"""
|
|
10835
|
-
:param
|
|
10836
|
-
:type
|
|
11024
|
+
:param _DBInstanceId: <p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
11025
|
+
:type DBInstanceId: str
|
|
11026
|
+
:param _ProxyGroupId: <p>Proxy 实例 ID,格式形如:proxy-xxxxxxxx;不传则查询该实例下全部 Proxy</p>
|
|
11027
|
+
:type ProxyGroupId: str
|
|
10837
11028
|
"""
|
|
10838
|
-
self.
|
|
11029
|
+
self._DBInstanceId = None
|
|
11030
|
+
self._ProxyGroupId = None
|
|
10839
11031
|
|
|
10840
11032
|
@property
|
|
10841
|
-
def
|
|
10842
|
-
r"""<p
|
|
11033
|
+
def DBInstanceId(self):
|
|
11034
|
+
r"""<p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
10843
11035
|
:rtype: str
|
|
10844
11036
|
"""
|
|
10845
|
-
return self.
|
|
11037
|
+
return self._DBInstanceId
|
|
10846
11038
|
|
|
10847
|
-
@
|
|
10848
|
-
def
|
|
10849
|
-
self.
|
|
11039
|
+
@DBInstanceId.setter
|
|
11040
|
+
def DBInstanceId(self, DBInstanceId):
|
|
11041
|
+
self._DBInstanceId = DBInstanceId
|
|
11042
|
+
|
|
11043
|
+
@property
|
|
11044
|
+
def ProxyGroupId(self):
|
|
11045
|
+
r"""<p>Proxy 实例 ID,格式形如:proxy-xxxxxxxx;不传则查询该实例下全部 Proxy</p>
|
|
11046
|
+
:rtype: str
|
|
11047
|
+
"""
|
|
11048
|
+
return self._ProxyGroupId
|
|
11049
|
+
|
|
11050
|
+
@ProxyGroupId.setter
|
|
11051
|
+
def ProxyGroupId(self, ProxyGroupId):
|
|
11052
|
+
self._ProxyGroupId = ProxyGroupId
|
|
10850
11053
|
|
|
10851
11054
|
|
|
10852
11055
|
def _deserialize(self, params):
|
|
10853
|
-
self.
|
|
11056
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
11057
|
+
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
10854
11058
|
memeber_set = set(params.keys())
|
|
10855
11059
|
for name, value in vars(self).items():
|
|
10856
11060
|
property_name = name[1:]
|
|
@@ -10861,31 +11065,45 @@ class DescribeDBVersionsRequest(AbstractModel):
|
|
|
10861
11065
|
|
|
10862
11066
|
|
|
10863
11067
|
|
|
10864
|
-
class
|
|
10865
|
-
r"""
|
|
11068
|
+
class DescribeDBProxyResponse(AbstractModel):
|
|
11069
|
+
r"""DescribeDBProxy返回参数结构体
|
|
10866
11070
|
|
|
10867
11071
|
"""
|
|
10868
11072
|
|
|
10869
11073
|
def __init__(self):
|
|
10870
11074
|
r"""
|
|
10871
|
-
:param
|
|
10872
|
-
:type
|
|
11075
|
+
:param _Count: <p>Proxy 实例数量。</p>
|
|
11076
|
+
:type Count: int
|
|
11077
|
+
:param _ProxyInfos: <p>Proxy 实例详情列表。</p>
|
|
11078
|
+
:type ProxyInfos: list of ProxyGroupInfo
|
|
10873
11079
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10874
11080
|
:type RequestId: str
|
|
10875
11081
|
"""
|
|
10876
|
-
self.
|
|
11082
|
+
self._Count = None
|
|
11083
|
+
self._ProxyInfos = None
|
|
10877
11084
|
self._RequestId = None
|
|
10878
11085
|
|
|
10879
11086
|
@property
|
|
10880
|
-
def
|
|
10881
|
-
r"""<p
|
|
10882
|
-
:rtype:
|
|
11087
|
+
def Count(self):
|
|
11088
|
+
r"""<p>Proxy 实例数量。</p>
|
|
11089
|
+
:rtype: int
|
|
10883
11090
|
"""
|
|
10884
|
-
return self.
|
|
11091
|
+
return self._Count
|
|
10885
11092
|
|
|
10886
|
-
@
|
|
10887
|
-
def
|
|
10888
|
-
self.
|
|
11093
|
+
@Count.setter
|
|
11094
|
+
def Count(self, Count):
|
|
11095
|
+
self._Count = Count
|
|
11096
|
+
|
|
11097
|
+
@property
|
|
11098
|
+
def ProxyInfos(self):
|
|
11099
|
+
r"""<p>Proxy 实例详情列表。</p>
|
|
11100
|
+
:rtype: list of ProxyGroupInfo
|
|
11101
|
+
"""
|
|
11102
|
+
return self._ProxyInfos
|
|
11103
|
+
|
|
11104
|
+
@ProxyInfos.setter
|
|
11105
|
+
def ProxyInfos(self, ProxyInfos):
|
|
11106
|
+
self._ProxyInfos = ProxyInfos
|
|
10889
11107
|
|
|
10890
11108
|
@property
|
|
10891
11109
|
def RequestId(self):
|
|
@@ -10900,42 +11118,31 @@ class DescribeDBVersionsResponse(AbstractModel):
|
|
|
10900
11118
|
|
|
10901
11119
|
|
|
10902
11120
|
def _deserialize(self, params):
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
11121
|
+
self._Count = params.get("Count")
|
|
11122
|
+
if params.get("ProxyInfos") is not None:
|
|
11123
|
+
self._ProxyInfos = []
|
|
11124
|
+
for item in params.get("ProxyInfos"):
|
|
11125
|
+
obj = ProxyGroupInfo()
|
|
10907
11126
|
obj._deserialize(item)
|
|
10908
|
-
self.
|
|
11127
|
+
self._ProxyInfos.append(obj)
|
|
10909
11128
|
self._RequestId = params.get("RequestId")
|
|
10910
11129
|
|
|
10911
11130
|
|
|
10912
|
-
class
|
|
10913
|
-
r"""
|
|
11131
|
+
class DescribeDBProxySpecsRequest(AbstractModel):
|
|
11132
|
+
r"""DescribeDBProxySpecs请求参数结构体
|
|
10914
11133
|
|
|
10915
11134
|
"""
|
|
10916
11135
|
|
|
10917
11136
|
def __init__(self):
|
|
10918
11137
|
r"""
|
|
10919
|
-
:param _DBInstanceId:
|
|
11138
|
+
:param _DBInstanceId: <p>实例ID。传入时返回该实例的 Proxy 支持情况和可用区</p>
|
|
10920
11139
|
:type DBInstanceId: str
|
|
10921
|
-
:param _StartTime: 查询开始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前
|
|
10922
|
-
:type StartTime: str
|
|
10923
|
-
:param _EndTime: 查询结束时间,形如2018-06-10 17:06:38
|
|
10924
|
-
:type EndTime: str
|
|
10925
|
-
:param _Offset: 分页返回,表示返回第几页的条目。从第0页开始计数。
|
|
10926
|
-
:type Offset: int
|
|
10927
|
-
:param _Limit: 分页返回,表示每页有多少条目。取值为1-100。
|
|
10928
|
-
:type Limit: int
|
|
10929
11140
|
"""
|
|
10930
11141
|
self._DBInstanceId = None
|
|
10931
|
-
self._StartTime = None
|
|
10932
|
-
self._EndTime = None
|
|
10933
|
-
self._Offset = None
|
|
10934
|
-
self._Limit = None
|
|
10935
11142
|
|
|
10936
11143
|
@property
|
|
10937
11144
|
def DBInstanceId(self):
|
|
10938
|
-
r"""
|
|
11145
|
+
r"""<p>实例ID。传入时返回该实例的 Proxy 支持情况和可用区</p>
|
|
10939
11146
|
:rtype: str
|
|
10940
11147
|
"""
|
|
10941
11148
|
return self._DBInstanceId
|
|
@@ -10944,57 +11151,9 @@ class DescribeDBXlogsRequest(AbstractModel):
|
|
|
10944
11151
|
def DBInstanceId(self, DBInstanceId):
|
|
10945
11152
|
self._DBInstanceId = DBInstanceId
|
|
10946
11153
|
|
|
10947
|
-
@property
|
|
10948
|
-
def StartTime(self):
|
|
10949
|
-
r"""查询开始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前
|
|
10950
|
-
:rtype: str
|
|
10951
|
-
"""
|
|
10952
|
-
return self._StartTime
|
|
10953
|
-
|
|
10954
|
-
@StartTime.setter
|
|
10955
|
-
def StartTime(self, StartTime):
|
|
10956
|
-
self._StartTime = StartTime
|
|
10957
|
-
|
|
10958
|
-
@property
|
|
10959
|
-
def EndTime(self):
|
|
10960
|
-
r"""查询结束时间,形如2018-06-10 17:06:38
|
|
10961
|
-
:rtype: str
|
|
10962
|
-
"""
|
|
10963
|
-
return self._EndTime
|
|
10964
|
-
|
|
10965
|
-
@EndTime.setter
|
|
10966
|
-
def EndTime(self, EndTime):
|
|
10967
|
-
self._EndTime = EndTime
|
|
10968
|
-
|
|
10969
|
-
@property
|
|
10970
|
-
def Offset(self):
|
|
10971
|
-
r"""分页返回,表示返回第几页的条目。从第0页开始计数。
|
|
10972
|
-
:rtype: int
|
|
10973
|
-
"""
|
|
10974
|
-
return self._Offset
|
|
10975
|
-
|
|
10976
|
-
@Offset.setter
|
|
10977
|
-
def Offset(self, Offset):
|
|
10978
|
-
self._Offset = Offset
|
|
10979
|
-
|
|
10980
|
-
@property
|
|
10981
|
-
def Limit(self):
|
|
10982
|
-
r"""分页返回,表示每页有多少条目。取值为1-100。
|
|
10983
|
-
:rtype: int
|
|
10984
|
-
"""
|
|
10985
|
-
return self._Limit
|
|
10986
|
-
|
|
10987
|
-
@Limit.setter
|
|
10988
|
-
def Limit(self, Limit):
|
|
10989
|
-
self._Limit = Limit
|
|
10990
|
-
|
|
10991
11154
|
|
|
10992
11155
|
def _deserialize(self, params):
|
|
10993
11156
|
self._DBInstanceId = params.get("DBInstanceId")
|
|
10994
|
-
self._StartTime = params.get("StartTime")
|
|
10995
|
-
self._EndTime = params.get("EndTime")
|
|
10996
|
-
self._Offset = params.get("Offset")
|
|
10997
|
-
self._Limit = params.get("Limit")
|
|
10998
11157
|
memeber_set = set(params.keys())
|
|
10999
11158
|
for name, value in vars(self).items():
|
|
11000
11159
|
property_name = name[1:]
|
|
@@ -11005,21 +11164,279 @@ class DescribeDBXlogsRequest(AbstractModel):
|
|
|
11005
11164
|
|
|
11006
11165
|
|
|
11007
11166
|
|
|
11008
|
-
class
|
|
11009
|
-
r"""
|
|
11167
|
+
class DescribeDBProxySpecsResponse(AbstractModel):
|
|
11168
|
+
r"""DescribeDBProxySpecs返回参数结构体
|
|
11010
11169
|
|
|
11011
11170
|
"""
|
|
11012
11171
|
|
|
11013
11172
|
def __init__(self):
|
|
11014
11173
|
r"""
|
|
11015
|
-
:param
|
|
11016
|
-
:type
|
|
11017
|
-
:param
|
|
11018
|
-
:type
|
|
11174
|
+
:param _SpecSet: <p>规格列表</p>
|
|
11175
|
+
:type SpecSet: list of ProxySpecItem
|
|
11176
|
+
:param _SupportProxy: <p>该实例是否支持开通 Proxy(仅传 DBInstanceId 时返回)</p>
|
|
11177
|
+
:type SupportProxy: bool
|
|
11178
|
+
:param _AvailableZones: <p>可部署可用区列表(仅传 DBInstanceId 时返回)</p>
|
|
11179
|
+
:type AvailableZones: list of str
|
|
11019
11180
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11020
11181
|
:type RequestId: str
|
|
11021
11182
|
"""
|
|
11022
|
-
self.
|
|
11183
|
+
self._SpecSet = None
|
|
11184
|
+
self._SupportProxy = None
|
|
11185
|
+
self._AvailableZones = None
|
|
11186
|
+
self._RequestId = None
|
|
11187
|
+
|
|
11188
|
+
@property
|
|
11189
|
+
def SpecSet(self):
|
|
11190
|
+
r"""<p>规格列表</p>
|
|
11191
|
+
:rtype: list of ProxySpecItem
|
|
11192
|
+
"""
|
|
11193
|
+
return self._SpecSet
|
|
11194
|
+
|
|
11195
|
+
@SpecSet.setter
|
|
11196
|
+
def SpecSet(self, SpecSet):
|
|
11197
|
+
self._SpecSet = SpecSet
|
|
11198
|
+
|
|
11199
|
+
@property
|
|
11200
|
+
def SupportProxy(self):
|
|
11201
|
+
r"""<p>该实例是否支持开通 Proxy(仅传 DBInstanceId 时返回)</p>
|
|
11202
|
+
:rtype: bool
|
|
11203
|
+
"""
|
|
11204
|
+
return self._SupportProxy
|
|
11205
|
+
|
|
11206
|
+
@SupportProxy.setter
|
|
11207
|
+
def SupportProxy(self, SupportProxy):
|
|
11208
|
+
self._SupportProxy = SupportProxy
|
|
11209
|
+
|
|
11210
|
+
@property
|
|
11211
|
+
def AvailableZones(self):
|
|
11212
|
+
r"""<p>可部署可用区列表(仅传 DBInstanceId 时返回)</p>
|
|
11213
|
+
:rtype: list of str
|
|
11214
|
+
"""
|
|
11215
|
+
return self._AvailableZones
|
|
11216
|
+
|
|
11217
|
+
@AvailableZones.setter
|
|
11218
|
+
def AvailableZones(self, AvailableZones):
|
|
11219
|
+
self._AvailableZones = AvailableZones
|
|
11220
|
+
|
|
11221
|
+
@property
|
|
11222
|
+
def RequestId(self):
|
|
11223
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11224
|
+
:rtype: str
|
|
11225
|
+
"""
|
|
11226
|
+
return self._RequestId
|
|
11227
|
+
|
|
11228
|
+
@RequestId.setter
|
|
11229
|
+
def RequestId(self, RequestId):
|
|
11230
|
+
self._RequestId = RequestId
|
|
11231
|
+
|
|
11232
|
+
|
|
11233
|
+
def _deserialize(self, params):
|
|
11234
|
+
if params.get("SpecSet") is not None:
|
|
11235
|
+
self._SpecSet = []
|
|
11236
|
+
for item in params.get("SpecSet"):
|
|
11237
|
+
obj = ProxySpecItem()
|
|
11238
|
+
obj._deserialize(item)
|
|
11239
|
+
self._SpecSet.append(obj)
|
|
11240
|
+
self._SupportProxy = params.get("SupportProxy")
|
|
11241
|
+
self._AvailableZones = params.get("AvailableZones")
|
|
11242
|
+
self._RequestId = params.get("RequestId")
|
|
11243
|
+
|
|
11244
|
+
|
|
11245
|
+
class DescribeDBVersionsRequest(AbstractModel):
|
|
11246
|
+
r"""DescribeDBVersions请求参数结构体
|
|
11247
|
+
|
|
11248
|
+
"""
|
|
11249
|
+
|
|
11250
|
+
def __init__(self):
|
|
11251
|
+
r"""
|
|
11252
|
+
:param _StorageType: <p>实例存储类型,根据磁盘类型返回支持的版本</p><p>枚举值:</p><ul><li>PHYSICAL_LOCAL_SSD: 物理机本地ssd硬盘</li><li>CLOUD_PREMIUM: 高性能云硬盘</li><li>CLOUD_SSD: ssd云硬盘</li><li>CLOUD_HSSD: 增强型ssd云硬盘</li></ul><p>默认值:PHYSICAL_LOCAL_SSD</p>
|
|
11253
|
+
:type StorageType: str
|
|
11254
|
+
"""
|
|
11255
|
+
self._StorageType = None
|
|
11256
|
+
|
|
11257
|
+
@property
|
|
11258
|
+
def StorageType(self):
|
|
11259
|
+
r"""<p>实例存储类型,根据磁盘类型返回支持的版本</p><p>枚举值:</p><ul><li>PHYSICAL_LOCAL_SSD: 物理机本地ssd硬盘</li><li>CLOUD_PREMIUM: 高性能云硬盘</li><li>CLOUD_SSD: ssd云硬盘</li><li>CLOUD_HSSD: 增强型ssd云硬盘</li></ul><p>默认值:PHYSICAL_LOCAL_SSD</p>
|
|
11260
|
+
:rtype: str
|
|
11261
|
+
"""
|
|
11262
|
+
return self._StorageType
|
|
11263
|
+
|
|
11264
|
+
@StorageType.setter
|
|
11265
|
+
def StorageType(self, StorageType):
|
|
11266
|
+
self._StorageType = StorageType
|
|
11267
|
+
|
|
11268
|
+
|
|
11269
|
+
def _deserialize(self, params):
|
|
11270
|
+
self._StorageType = params.get("StorageType")
|
|
11271
|
+
memeber_set = set(params.keys())
|
|
11272
|
+
for name, value in vars(self).items():
|
|
11273
|
+
property_name = name[1:]
|
|
11274
|
+
if property_name in memeber_set:
|
|
11275
|
+
memeber_set.remove(property_name)
|
|
11276
|
+
if len(memeber_set) > 0:
|
|
11277
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11278
|
+
|
|
11279
|
+
|
|
11280
|
+
|
|
11281
|
+
class DescribeDBVersionsResponse(AbstractModel):
|
|
11282
|
+
r"""DescribeDBVersions返回参数结构体
|
|
11283
|
+
|
|
11284
|
+
"""
|
|
11285
|
+
|
|
11286
|
+
def __init__(self):
|
|
11287
|
+
r"""
|
|
11288
|
+
:param _VersionSet: <p>数据库版本号信息列表</p>
|
|
11289
|
+
:type VersionSet: list of Version
|
|
11290
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11291
|
+
:type RequestId: str
|
|
11292
|
+
"""
|
|
11293
|
+
self._VersionSet = None
|
|
11294
|
+
self._RequestId = None
|
|
11295
|
+
|
|
11296
|
+
@property
|
|
11297
|
+
def VersionSet(self):
|
|
11298
|
+
r"""<p>数据库版本号信息列表</p>
|
|
11299
|
+
:rtype: list of Version
|
|
11300
|
+
"""
|
|
11301
|
+
return self._VersionSet
|
|
11302
|
+
|
|
11303
|
+
@VersionSet.setter
|
|
11304
|
+
def VersionSet(self, VersionSet):
|
|
11305
|
+
self._VersionSet = VersionSet
|
|
11306
|
+
|
|
11307
|
+
@property
|
|
11308
|
+
def RequestId(self):
|
|
11309
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11310
|
+
:rtype: str
|
|
11311
|
+
"""
|
|
11312
|
+
return self._RequestId
|
|
11313
|
+
|
|
11314
|
+
@RequestId.setter
|
|
11315
|
+
def RequestId(self, RequestId):
|
|
11316
|
+
self._RequestId = RequestId
|
|
11317
|
+
|
|
11318
|
+
|
|
11319
|
+
def _deserialize(self, params):
|
|
11320
|
+
if params.get("VersionSet") is not None:
|
|
11321
|
+
self._VersionSet = []
|
|
11322
|
+
for item in params.get("VersionSet"):
|
|
11323
|
+
obj = Version()
|
|
11324
|
+
obj._deserialize(item)
|
|
11325
|
+
self._VersionSet.append(obj)
|
|
11326
|
+
self._RequestId = params.get("RequestId")
|
|
11327
|
+
|
|
11328
|
+
|
|
11329
|
+
class DescribeDBXlogsRequest(AbstractModel):
|
|
11330
|
+
r"""DescribeDBXlogs请求参数结构体
|
|
11331
|
+
|
|
11332
|
+
"""
|
|
11333
|
+
|
|
11334
|
+
def __init__(self):
|
|
11335
|
+
r"""
|
|
11336
|
+
:param _DBInstanceId: 实例ID,形如postgres-4wdeb0zv。
|
|
11337
|
+
:type DBInstanceId: str
|
|
11338
|
+
:param _StartTime: 查询开始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前
|
|
11339
|
+
:type StartTime: str
|
|
11340
|
+
:param _EndTime: 查询结束时间,形如2018-06-10 17:06:38
|
|
11341
|
+
:type EndTime: str
|
|
11342
|
+
:param _Offset: 分页返回,表示返回第几页的条目。从第0页开始计数。
|
|
11343
|
+
:type Offset: int
|
|
11344
|
+
:param _Limit: 分页返回,表示每页有多少条目。取值为1-100。
|
|
11345
|
+
:type Limit: int
|
|
11346
|
+
"""
|
|
11347
|
+
self._DBInstanceId = None
|
|
11348
|
+
self._StartTime = None
|
|
11349
|
+
self._EndTime = None
|
|
11350
|
+
self._Offset = None
|
|
11351
|
+
self._Limit = None
|
|
11352
|
+
|
|
11353
|
+
@property
|
|
11354
|
+
def DBInstanceId(self):
|
|
11355
|
+
r"""实例ID,形如postgres-4wdeb0zv。
|
|
11356
|
+
:rtype: str
|
|
11357
|
+
"""
|
|
11358
|
+
return self._DBInstanceId
|
|
11359
|
+
|
|
11360
|
+
@DBInstanceId.setter
|
|
11361
|
+
def DBInstanceId(self, DBInstanceId):
|
|
11362
|
+
self._DBInstanceId = DBInstanceId
|
|
11363
|
+
|
|
11364
|
+
@property
|
|
11365
|
+
def StartTime(self):
|
|
11366
|
+
r"""查询开始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前
|
|
11367
|
+
:rtype: str
|
|
11368
|
+
"""
|
|
11369
|
+
return self._StartTime
|
|
11370
|
+
|
|
11371
|
+
@StartTime.setter
|
|
11372
|
+
def StartTime(self, StartTime):
|
|
11373
|
+
self._StartTime = StartTime
|
|
11374
|
+
|
|
11375
|
+
@property
|
|
11376
|
+
def EndTime(self):
|
|
11377
|
+
r"""查询结束时间,形如2018-06-10 17:06:38
|
|
11378
|
+
:rtype: str
|
|
11379
|
+
"""
|
|
11380
|
+
return self._EndTime
|
|
11381
|
+
|
|
11382
|
+
@EndTime.setter
|
|
11383
|
+
def EndTime(self, EndTime):
|
|
11384
|
+
self._EndTime = EndTime
|
|
11385
|
+
|
|
11386
|
+
@property
|
|
11387
|
+
def Offset(self):
|
|
11388
|
+
r"""分页返回,表示返回第几页的条目。从第0页开始计数。
|
|
11389
|
+
:rtype: int
|
|
11390
|
+
"""
|
|
11391
|
+
return self._Offset
|
|
11392
|
+
|
|
11393
|
+
@Offset.setter
|
|
11394
|
+
def Offset(self, Offset):
|
|
11395
|
+
self._Offset = Offset
|
|
11396
|
+
|
|
11397
|
+
@property
|
|
11398
|
+
def Limit(self):
|
|
11399
|
+
r"""分页返回,表示每页有多少条目。取值为1-100。
|
|
11400
|
+
:rtype: int
|
|
11401
|
+
"""
|
|
11402
|
+
return self._Limit
|
|
11403
|
+
|
|
11404
|
+
@Limit.setter
|
|
11405
|
+
def Limit(self, Limit):
|
|
11406
|
+
self._Limit = Limit
|
|
11407
|
+
|
|
11408
|
+
|
|
11409
|
+
def _deserialize(self, params):
|
|
11410
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
11411
|
+
self._StartTime = params.get("StartTime")
|
|
11412
|
+
self._EndTime = params.get("EndTime")
|
|
11413
|
+
self._Offset = params.get("Offset")
|
|
11414
|
+
self._Limit = params.get("Limit")
|
|
11415
|
+
memeber_set = set(params.keys())
|
|
11416
|
+
for name, value in vars(self).items():
|
|
11417
|
+
property_name = name[1:]
|
|
11418
|
+
if property_name in memeber_set:
|
|
11419
|
+
memeber_set.remove(property_name)
|
|
11420
|
+
if len(memeber_set) > 0:
|
|
11421
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11422
|
+
|
|
11423
|
+
|
|
11424
|
+
|
|
11425
|
+
class DescribeDBXlogsResponse(AbstractModel):
|
|
11426
|
+
r"""DescribeDBXlogs返回参数结构体
|
|
11427
|
+
|
|
11428
|
+
"""
|
|
11429
|
+
|
|
11430
|
+
def __init__(self):
|
|
11431
|
+
r"""
|
|
11432
|
+
:param _TotalCount: 表示此次返回结果有多少条数据。
|
|
11433
|
+
:type TotalCount: int
|
|
11434
|
+
:param _XlogList: Xlog列表
|
|
11435
|
+
:type XlogList: list of Xlog
|
|
11436
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11437
|
+
:type RequestId: str
|
|
11438
|
+
"""
|
|
11439
|
+
self._TotalCount = None
|
|
11023
11440
|
self._XlogList = None
|
|
11024
11441
|
self._RequestId = None
|
|
11025
11442
|
|
|
@@ -13705,38 +14122,117 @@ class DestroyDBInstanceResponse(AbstractModel):
|
|
|
13705
14122
|
self._RequestId = params.get("RequestId")
|
|
13706
14123
|
|
|
13707
14124
|
|
|
13708
|
-
class
|
|
13709
|
-
r"""
|
|
14125
|
+
class DestroyDBProxyRequest(AbstractModel):
|
|
14126
|
+
r"""DestroyDBProxy请求参数结构体
|
|
13710
14127
|
|
|
13711
14128
|
"""
|
|
13712
14129
|
|
|
13713
14130
|
def __init__(self):
|
|
13714
14131
|
r"""
|
|
13715
|
-
:param
|
|
13716
|
-
:type
|
|
13717
|
-
:param
|
|
13718
|
-
:type
|
|
13719
|
-
:param _AnalysisItems: 慢SQL统计分析列表
|
|
13720
|
-
:type AnalysisItems: list of AnalysisItems
|
|
14132
|
+
:param _DBInstanceId: <p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
14133
|
+
:type DBInstanceId: str
|
|
14134
|
+
:param _ProxyGroupId: <p>Proxy 实例 ID,格式形如:proxy-xxxxxxxx;不传时若实例下仅有一个 Proxy 则销毁该 Proxy,存在多个 Proxy 必须显式传入</p>
|
|
14135
|
+
:type ProxyGroupId: str
|
|
13721
14136
|
"""
|
|
13722
|
-
self.
|
|
13723
|
-
self.
|
|
13724
|
-
self._AnalysisItems = None
|
|
14137
|
+
self._DBInstanceId = None
|
|
14138
|
+
self._ProxyGroupId = None
|
|
13725
14139
|
|
|
13726
14140
|
@property
|
|
13727
|
-
def
|
|
13728
|
-
r"""
|
|
13729
|
-
:rtype:
|
|
14141
|
+
def DBInstanceId(self):
|
|
14142
|
+
r"""<p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
14143
|
+
:rtype: str
|
|
13730
14144
|
"""
|
|
13731
|
-
return self.
|
|
14145
|
+
return self._DBInstanceId
|
|
13732
14146
|
|
|
13733
|
-
@
|
|
13734
|
-
def
|
|
13735
|
-
self.
|
|
14147
|
+
@DBInstanceId.setter
|
|
14148
|
+
def DBInstanceId(self, DBInstanceId):
|
|
14149
|
+
self._DBInstanceId = DBInstanceId
|
|
13736
14150
|
|
|
13737
14151
|
@property
|
|
13738
|
-
def
|
|
13739
|
-
r"""
|
|
14152
|
+
def ProxyGroupId(self):
|
|
14153
|
+
r"""<p>Proxy 实例 ID,格式形如:proxy-xxxxxxxx;不传时若实例下仅有一个 Proxy 则销毁该 Proxy,存在多个 Proxy 必须显式传入</p>
|
|
14154
|
+
:rtype: str
|
|
14155
|
+
"""
|
|
14156
|
+
return self._ProxyGroupId
|
|
14157
|
+
|
|
14158
|
+
@ProxyGroupId.setter
|
|
14159
|
+
def ProxyGroupId(self, ProxyGroupId):
|
|
14160
|
+
self._ProxyGroupId = ProxyGroupId
|
|
14161
|
+
|
|
14162
|
+
|
|
14163
|
+
def _deserialize(self, params):
|
|
14164
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
14165
|
+
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
14166
|
+
memeber_set = set(params.keys())
|
|
14167
|
+
for name, value in vars(self).items():
|
|
14168
|
+
property_name = name[1:]
|
|
14169
|
+
if property_name in memeber_set:
|
|
14170
|
+
memeber_set.remove(property_name)
|
|
14171
|
+
if len(memeber_set) > 0:
|
|
14172
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14173
|
+
|
|
14174
|
+
|
|
14175
|
+
|
|
14176
|
+
class DestroyDBProxyResponse(AbstractModel):
|
|
14177
|
+
r"""DestroyDBProxy返回参数结构体
|
|
14178
|
+
|
|
14179
|
+
"""
|
|
14180
|
+
|
|
14181
|
+
def __init__(self):
|
|
14182
|
+
r"""
|
|
14183
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14184
|
+
:type RequestId: str
|
|
14185
|
+
"""
|
|
14186
|
+
self._RequestId = None
|
|
14187
|
+
|
|
14188
|
+
@property
|
|
14189
|
+
def RequestId(self):
|
|
14190
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14191
|
+
:rtype: str
|
|
14192
|
+
"""
|
|
14193
|
+
return self._RequestId
|
|
14194
|
+
|
|
14195
|
+
@RequestId.setter
|
|
14196
|
+
def RequestId(self, RequestId):
|
|
14197
|
+
self._RequestId = RequestId
|
|
14198
|
+
|
|
14199
|
+
|
|
14200
|
+
def _deserialize(self, params):
|
|
14201
|
+
self._RequestId = params.get("RequestId")
|
|
14202
|
+
|
|
14203
|
+
|
|
14204
|
+
class Detail(AbstractModel):
|
|
14205
|
+
r"""慢SQL 统计分析接口返回详情
|
|
14206
|
+
|
|
14207
|
+
"""
|
|
14208
|
+
|
|
14209
|
+
def __init__(self):
|
|
14210
|
+
r"""
|
|
14211
|
+
:param _TotalTime: 输入时间范围内所有慢sql执行的总时间,单位毫秒(ms)
|
|
14212
|
+
:type TotalTime: float
|
|
14213
|
+
:param _TotalCallNum: 输入时间范围内所有慢sql总条数
|
|
14214
|
+
:type TotalCallNum: int
|
|
14215
|
+
:param _AnalysisItems: 慢SQL统计分析列表
|
|
14216
|
+
:type AnalysisItems: list of AnalysisItems
|
|
14217
|
+
"""
|
|
14218
|
+
self._TotalTime = None
|
|
14219
|
+
self._TotalCallNum = None
|
|
14220
|
+
self._AnalysisItems = None
|
|
14221
|
+
|
|
14222
|
+
@property
|
|
14223
|
+
def TotalTime(self):
|
|
14224
|
+
r"""输入时间范围内所有慢sql执行的总时间,单位毫秒(ms)
|
|
14225
|
+
:rtype: float
|
|
14226
|
+
"""
|
|
14227
|
+
return self._TotalTime
|
|
14228
|
+
|
|
14229
|
+
@TotalTime.setter
|
|
14230
|
+
def TotalTime(self, TotalTime):
|
|
14231
|
+
self._TotalTime = TotalTime
|
|
14232
|
+
|
|
14233
|
+
@property
|
|
14234
|
+
def TotalCallNum(self):
|
|
14235
|
+
r"""输入时间范围内所有慢sql总条数
|
|
13740
14236
|
:rtype: int
|
|
13741
14237
|
"""
|
|
13742
14238
|
return self._TotalCallNum
|
|
@@ -17753,27 +18249,33 @@ class ModifyDBInstancesProjectResponse(AbstractModel):
|
|
|
17753
18249
|
self._RequestId = params.get("RequestId")
|
|
17754
18250
|
|
|
17755
18251
|
|
|
17756
|
-
class
|
|
17757
|
-
r"""
|
|
18252
|
+
class ModifyDBProxyAddressRequest(AbstractModel):
|
|
18253
|
+
r"""ModifyDBProxyAddress请求参数结构体
|
|
17758
18254
|
|
|
17759
18255
|
"""
|
|
17760
18256
|
|
|
17761
18257
|
def __init__(self):
|
|
17762
18258
|
r"""
|
|
17763
|
-
:param _DBInstanceId:
|
|
18259
|
+
:param _DBInstanceId: <p>实例ID</p>
|
|
17764
18260
|
:type DBInstanceId: str
|
|
17765
|
-
:param
|
|
17766
|
-
:type
|
|
17767
|
-
:param
|
|
17768
|
-
:type
|
|
18261
|
+
:param _AddressId: <p>Proxy地址ID</p>
|
|
18262
|
+
:type AddressId: str
|
|
18263
|
+
:param _ProxyGroupId: <p>Proxy代理组 ID(不传则默认操作该实例下唯一的代理)</p>
|
|
18264
|
+
:type ProxyGroupId: str
|
|
18265
|
+
:param _Description: <p>地址描述/备注(最多 256 字符)</p>
|
|
18266
|
+
:type Description: str
|
|
18267
|
+
:param _ConnectionPool: <p>连接池开关</p><p>枚举值:</p><ul><li>true: 开启</li><li>false: 关闭</li></ul>
|
|
18268
|
+
:type ConnectionPool: bool
|
|
17769
18269
|
"""
|
|
17770
18270
|
self._DBInstanceId = None
|
|
17771
|
-
self.
|
|
17772
|
-
self.
|
|
18271
|
+
self._AddressId = None
|
|
18272
|
+
self._ProxyGroupId = None
|
|
18273
|
+
self._Description = None
|
|
18274
|
+
self._ConnectionPool = None
|
|
17773
18275
|
|
|
17774
18276
|
@property
|
|
17775
18277
|
def DBInstanceId(self):
|
|
17776
|
-
r"""
|
|
18278
|
+
r"""<p>实例ID</p>
|
|
17777
18279
|
:rtype: str
|
|
17778
18280
|
"""
|
|
17779
18281
|
return self._DBInstanceId
|
|
@@ -17783,32 +18285,56 @@ class ModifyDatabaseOwnerRequest(AbstractModel):
|
|
|
17783
18285
|
self._DBInstanceId = DBInstanceId
|
|
17784
18286
|
|
|
17785
18287
|
@property
|
|
17786
|
-
def
|
|
17787
|
-
r"""
|
|
18288
|
+
def AddressId(self):
|
|
18289
|
+
r"""<p>Proxy地址ID</p>
|
|
17788
18290
|
:rtype: str
|
|
17789
18291
|
"""
|
|
17790
|
-
return self.
|
|
18292
|
+
return self._AddressId
|
|
17791
18293
|
|
|
17792
|
-
@
|
|
17793
|
-
def
|
|
17794
|
-
self.
|
|
18294
|
+
@AddressId.setter
|
|
18295
|
+
def AddressId(self, AddressId):
|
|
18296
|
+
self._AddressId = AddressId
|
|
17795
18297
|
|
|
17796
18298
|
@property
|
|
17797
|
-
def
|
|
17798
|
-
r"""
|
|
18299
|
+
def ProxyGroupId(self):
|
|
18300
|
+
r"""<p>Proxy代理组 ID(不传则默认操作该实例下唯一的代理)</p>
|
|
17799
18301
|
:rtype: str
|
|
17800
18302
|
"""
|
|
17801
|
-
return self.
|
|
18303
|
+
return self._ProxyGroupId
|
|
17802
18304
|
|
|
17803
|
-
@
|
|
17804
|
-
def
|
|
17805
|
-
self.
|
|
18305
|
+
@ProxyGroupId.setter
|
|
18306
|
+
def ProxyGroupId(self, ProxyGroupId):
|
|
18307
|
+
self._ProxyGroupId = ProxyGroupId
|
|
18308
|
+
|
|
18309
|
+
@property
|
|
18310
|
+
def Description(self):
|
|
18311
|
+
r"""<p>地址描述/备注(最多 256 字符)</p>
|
|
18312
|
+
:rtype: str
|
|
18313
|
+
"""
|
|
18314
|
+
return self._Description
|
|
18315
|
+
|
|
18316
|
+
@Description.setter
|
|
18317
|
+
def Description(self, Description):
|
|
18318
|
+
self._Description = Description
|
|
18319
|
+
|
|
18320
|
+
@property
|
|
18321
|
+
def ConnectionPool(self):
|
|
18322
|
+
r"""<p>连接池开关</p><p>枚举值:</p><ul><li>true: 开启</li><li>false: 关闭</li></ul>
|
|
18323
|
+
:rtype: bool
|
|
18324
|
+
"""
|
|
18325
|
+
return self._ConnectionPool
|
|
18326
|
+
|
|
18327
|
+
@ConnectionPool.setter
|
|
18328
|
+
def ConnectionPool(self, ConnectionPool):
|
|
18329
|
+
self._ConnectionPool = ConnectionPool
|
|
17806
18330
|
|
|
17807
18331
|
|
|
17808
18332
|
def _deserialize(self, params):
|
|
17809
18333
|
self._DBInstanceId = params.get("DBInstanceId")
|
|
17810
|
-
self.
|
|
17811
|
-
self.
|
|
18334
|
+
self._AddressId = params.get("AddressId")
|
|
18335
|
+
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
18336
|
+
self._Description = params.get("Description")
|
|
18337
|
+
self._ConnectionPool = params.get("ConnectionPool")
|
|
17812
18338
|
memeber_set = set(params.keys())
|
|
17813
18339
|
for name, value in vars(self).items():
|
|
17814
18340
|
property_name = name[1:]
|
|
@@ -17819,8 +18345,8 @@ class ModifyDatabaseOwnerRequest(AbstractModel):
|
|
|
17819
18345
|
|
|
17820
18346
|
|
|
17821
18347
|
|
|
17822
|
-
class
|
|
17823
|
-
r"""
|
|
18348
|
+
class ModifyDBProxyAddressResponse(AbstractModel):
|
|
18349
|
+
r"""ModifyDBProxyAddress返回参数结构体
|
|
17824
18350
|
|
|
17825
18351
|
"""
|
|
17826
18352
|
|
|
@@ -17847,30 +18373,42 @@ class ModifyDatabaseOwnerResponse(AbstractModel):
|
|
|
17847
18373
|
self._RequestId = params.get("RequestId")
|
|
17848
18374
|
|
|
17849
18375
|
|
|
17850
|
-
class
|
|
17851
|
-
r"""
|
|
18376
|
+
class ModifyDBProxyRequest(AbstractModel):
|
|
18377
|
+
r"""ModifyDBProxy请求参数结构体
|
|
17852
18378
|
|
|
17853
18379
|
"""
|
|
17854
18380
|
|
|
17855
18381
|
def __init__(self):
|
|
17856
18382
|
r"""
|
|
17857
|
-
:param _DBInstanceId:
|
|
18383
|
+
:param _DBInstanceId: <p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
17858
18384
|
:type DBInstanceId: str
|
|
17859
|
-
:param
|
|
17860
|
-
:type
|
|
17861
|
-
:param
|
|
17862
|
-
:type
|
|
17863
|
-
:param
|
|
17864
|
-
:type
|
|
18385
|
+
:param _ProxyGroupId: <p>Proxy 实例 ID,格式形如:proxy-xxxxxxxx;不传时若实例下仅有一个 Proxy 则修改该 Proxy</p>
|
|
18386
|
+
:type ProxyGroupId: str
|
|
18387
|
+
:param _Description: <p>Proxy 描述信息,长度范围 [0, 256]</p>
|
|
18388
|
+
:type Description: str
|
|
18389
|
+
:param _ProxyNodeCustom: <p>Proxy 节点变配规格列表,按可用区分组;变配时必填</p>
|
|
18390
|
+
:type ProxyNodeCustom: list of ProxyNodeCustom
|
|
18391
|
+
:param _ReloadBalance: <p>负载均衡刷新策略:auto-自动;manual-手动;默认 auto</p>
|
|
18392
|
+
:type ReloadBalance: str
|
|
18393
|
+
:param _SwitchTag: <p>变配执行时机:0-立即执行(默认),1-维护时间窗内执行,2-指定时间窗执行(需配合 SwitchStartTime/SwitchEndTime)</p>
|
|
18394
|
+
:type SwitchTag: int
|
|
18395
|
+
:param _SwitchStartTime: <p>指定时间窗执行的开始时间,格式 HH:MM:SS,仅 SwitchTag=2 时生效</p>
|
|
18396
|
+
:type SwitchStartTime: str
|
|
18397
|
+
:param _SwitchEndTime: <p>指定时间窗执行的结束时间,格式 HH:MM:SS,仅 SwitchTag=2 时生效</p>
|
|
18398
|
+
:type SwitchEndTime: str
|
|
17865
18399
|
"""
|
|
17866
18400
|
self._DBInstanceId = None
|
|
17867
|
-
self.
|
|
17868
|
-
self.
|
|
17869
|
-
self.
|
|
18401
|
+
self._ProxyGroupId = None
|
|
18402
|
+
self._Description = None
|
|
18403
|
+
self._ProxyNodeCustom = None
|
|
18404
|
+
self._ReloadBalance = None
|
|
18405
|
+
self._SwitchTag = None
|
|
18406
|
+
self._SwitchStartTime = None
|
|
18407
|
+
self._SwitchEndTime = None
|
|
17870
18408
|
|
|
17871
18409
|
@property
|
|
17872
18410
|
def DBInstanceId(self):
|
|
17873
|
-
r"""
|
|
18411
|
+
r"""<p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
17874
18412
|
:rtype: str
|
|
17875
18413
|
"""
|
|
17876
18414
|
return self._DBInstanceId
|
|
@@ -17880,44 +18418,97 @@ class ModifyMaintainTimeWindowRequest(AbstractModel):
|
|
|
17880
18418
|
self._DBInstanceId = DBInstanceId
|
|
17881
18419
|
|
|
17882
18420
|
@property
|
|
17883
|
-
def
|
|
17884
|
-
r"""
|
|
18421
|
+
def ProxyGroupId(self):
|
|
18422
|
+
r"""<p>Proxy 实例 ID,格式形如:proxy-xxxxxxxx;不传时若实例下仅有一个 Proxy 则修改该 Proxy</p>
|
|
17885
18423
|
:rtype: str
|
|
17886
18424
|
"""
|
|
17887
|
-
return self.
|
|
18425
|
+
return self._ProxyGroupId
|
|
17888
18426
|
|
|
17889
|
-
@
|
|
17890
|
-
def
|
|
17891
|
-
self.
|
|
18427
|
+
@ProxyGroupId.setter
|
|
18428
|
+
def ProxyGroupId(self, ProxyGroupId):
|
|
18429
|
+
self._ProxyGroupId = ProxyGroupId
|
|
17892
18430
|
|
|
17893
18431
|
@property
|
|
17894
|
-
def
|
|
17895
|
-
r"""
|
|
18432
|
+
def Description(self):
|
|
18433
|
+
r"""<p>Proxy 描述信息,长度范围 [0, 256]</p>
|
|
18434
|
+
:rtype: str
|
|
18435
|
+
"""
|
|
18436
|
+
return self._Description
|
|
18437
|
+
|
|
18438
|
+
@Description.setter
|
|
18439
|
+
def Description(self, Description):
|
|
18440
|
+
self._Description = Description
|
|
18441
|
+
|
|
18442
|
+
@property
|
|
18443
|
+
def ProxyNodeCustom(self):
|
|
18444
|
+
r"""<p>Proxy 节点变配规格列表,按可用区分组;变配时必填</p>
|
|
18445
|
+
:rtype: list of ProxyNodeCustom
|
|
18446
|
+
"""
|
|
18447
|
+
return self._ProxyNodeCustom
|
|
18448
|
+
|
|
18449
|
+
@ProxyNodeCustom.setter
|
|
18450
|
+
def ProxyNodeCustom(self, ProxyNodeCustom):
|
|
18451
|
+
self._ProxyNodeCustom = ProxyNodeCustom
|
|
18452
|
+
|
|
18453
|
+
@property
|
|
18454
|
+
def ReloadBalance(self):
|
|
18455
|
+
r"""<p>负载均衡刷新策略:auto-自动;manual-手动;默认 auto</p>
|
|
18456
|
+
:rtype: str
|
|
18457
|
+
"""
|
|
18458
|
+
return self._ReloadBalance
|
|
18459
|
+
|
|
18460
|
+
@ReloadBalance.setter
|
|
18461
|
+
def ReloadBalance(self, ReloadBalance):
|
|
18462
|
+
self._ReloadBalance = ReloadBalance
|
|
18463
|
+
|
|
18464
|
+
@property
|
|
18465
|
+
def SwitchTag(self):
|
|
18466
|
+
r"""<p>变配执行时机:0-立即执行(默认),1-维护时间窗内执行,2-指定时间窗执行(需配合 SwitchStartTime/SwitchEndTime)</p>
|
|
17896
18467
|
:rtype: int
|
|
17897
18468
|
"""
|
|
17898
|
-
return self.
|
|
18469
|
+
return self._SwitchTag
|
|
17899
18470
|
|
|
17900
|
-
@
|
|
17901
|
-
def
|
|
17902
|
-
self.
|
|
18471
|
+
@SwitchTag.setter
|
|
18472
|
+
def SwitchTag(self, SwitchTag):
|
|
18473
|
+
self._SwitchTag = SwitchTag
|
|
17903
18474
|
|
|
17904
18475
|
@property
|
|
17905
|
-
def
|
|
17906
|
-
r"""
|
|
17907
|
-
:rtype:
|
|
18476
|
+
def SwitchStartTime(self):
|
|
18477
|
+
r"""<p>指定时间窗执行的开始时间,格式 HH:MM:SS,仅 SwitchTag=2 时生效</p>
|
|
18478
|
+
:rtype: str
|
|
17908
18479
|
"""
|
|
17909
|
-
return self.
|
|
18480
|
+
return self._SwitchStartTime
|
|
17910
18481
|
|
|
17911
|
-
@
|
|
17912
|
-
def
|
|
17913
|
-
self.
|
|
18482
|
+
@SwitchStartTime.setter
|
|
18483
|
+
def SwitchStartTime(self, SwitchStartTime):
|
|
18484
|
+
self._SwitchStartTime = SwitchStartTime
|
|
18485
|
+
|
|
18486
|
+
@property
|
|
18487
|
+
def SwitchEndTime(self):
|
|
18488
|
+
r"""<p>指定时间窗执行的结束时间,格式 HH:MM:SS,仅 SwitchTag=2 时生效</p>
|
|
18489
|
+
:rtype: str
|
|
18490
|
+
"""
|
|
18491
|
+
return self._SwitchEndTime
|
|
18492
|
+
|
|
18493
|
+
@SwitchEndTime.setter
|
|
18494
|
+
def SwitchEndTime(self, SwitchEndTime):
|
|
18495
|
+
self._SwitchEndTime = SwitchEndTime
|
|
17914
18496
|
|
|
17915
18497
|
|
|
17916
18498
|
def _deserialize(self, params):
|
|
17917
18499
|
self._DBInstanceId = params.get("DBInstanceId")
|
|
17918
|
-
self.
|
|
17919
|
-
self.
|
|
17920
|
-
|
|
18500
|
+
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
18501
|
+
self._Description = params.get("Description")
|
|
18502
|
+
if params.get("ProxyNodeCustom") is not None:
|
|
18503
|
+
self._ProxyNodeCustom = []
|
|
18504
|
+
for item in params.get("ProxyNodeCustom"):
|
|
18505
|
+
obj = ProxyNodeCustom()
|
|
18506
|
+
obj._deserialize(item)
|
|
18507
|
+
self._ProxyNodeCustom.append(obj)
|
|
18508
|
+
self._ReloadBalance = params.get("ReloadBalance")
|
|
18509
|
+
self._SwitchTag = params.get("SwitchTag")
|
|
18510
|
+
self._SwitchStartTime = params.get("SwitchStartTime")
|
|
18511
|
+
self._SwitchEndTime = params.get("SwitchEndTime")
|
|
17921
18512
|
memeber_set = set(params.keys())
|
|
17922
18513
|
for name, value in vars(self).items():
|
|
17923
18514
|
property_name = name[1:]
|
|
@@ -17928,18 +18519,32 @@ class ModifyMaintainTimeWindowRequest(AbstractModel):
|
|
|
17928
18519
|
|
|
17929
18520
|
|
|
17930
18521
|
|
|
17931
|
-
class
|
|
17932
|
-
r"""
|
|
18522
|
+
class ModifyDBProxyResponse(AbstractModel):
|
|
18523
|
+
r"""ModifyDBProxy返回参数结构体
|
|
17933
18524
|
|
|
17934
18525
|
"""
|
|
17935
18526
|
|
|
17936
18527
|
def __init__(self):
|
|
17937
18528
|
r"""
|
|
18529
|
+
:param _DealName: <p>订单号,仅变配(节点规格/数量变更)下单成功时返回;仅修改 Description 时不下单,本字段为空。</p>
|
|
18530
|
+
:type DealName: str
|
|
17938
18531
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
17939
18532
|
:type RequestId: str
|
|
17940
18533
|
"""
|
|
18534
|
+
self._DealName = None
|
|
17941
18535
|
self._RequestId = None
|
|
17942
18536
|
|
|
18537
|
+
@property
|
|
18538
|
+
def DealName(self):
|
|
18539
|
+
r"""<p>订单号,仅变配(节点规格/数量变更)下单成功时返回;仅修改 Description 时不下单,本字段为空。</p>
|
|
18540
|
+
:rtype: str
|
|
18541
|
+
"""
|
|
18542
|
+
return self._DealName
|
|
18543
|
+
|
|
18544
|
+
@DealName.setter
|
|
18545
|
+
def DealName(self, DealName):
|
|
18546
|
+
self._DealName = DealName
|
|
18547
|
+
|
|
17943
18548
|
@property
|
|
17944
18549
|
def RequestId(self):
|
|
17945
18550
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -17953,39 +18558,243 @@ class ModifyMaintainTimeWindowResponse(AbstractModel):
|
|
|
17953
18558
|
|
|
17954
18559
|
|
|
17955
18560
|
def _deserialize(self, params):
|
|
18561
|
+
self._DealName = params.get("DealName")
|
|
17956
18562
|
self._RequestId = params.get("RequestId")
|
|
17957
18563
|
|
|
17958
18564
|
|
|
17959
|
-
class
|
|
17960
|
-
r"""
|
|
18565
|
+
class ModifyDatabaseOwnerRequest(AbstractModel):
|
|
18566
|
+
r"""ModifyDatabaseOwner请求参数结构体
|
|
17961
18567
|
|
|
17962
18568
|
"""
|
|
17963
18569
|
|
|
17964
18570
|
def __init__(self):
|
|
17965
18571
|
r"""
|
|
17966
|
-
:param
|
|
17967
|
-
:type
|
|
17968
|
-
:param
|
|
17969
|
-
:type
|
|
17970
|
-
:param
|
|
17971
|
-
:type
|
|
17972
|
-
:param _ModifyParamEntrySet: 需要修改或添加的参数集合,注:同一参数不能同时出现在修改添加集合和删除集合中
|
|
17973
|
-
:type ModifyParamEntrySet: list of ParamEntry
|
|
17974
|
-
:param _DeleteParamSet: 需要从模板中删除的参数集合,注:同一参数不能同时出现在修改添加集合和删除集合中
|
|
17975
|
-
:type DeleteParamSet: list of str
|
|
18572
|
+
:param _DBInstanceId: 实例ID。可通过[DescribeDBInstances](https://cloud.tencent.com/document/api/409/16773)接口获取
|
|
18573
|
+
:type DBInstanceId: str
|
|
18574
|
+
:param _DatabaseName: 数据库名称。可通过[DescribeDatabases](https://cloud.tencent.com/document/api/409/43353)接口获取
|
|
18575
|
+
:type DatabaseName: str
|
|
18576
|
+
:param _DatabaseOwner: 数据库新所有者。可通过[DescribeAccounts](https://cloud.tencent.com/document/api/409/18109)接口获取
|
|
18577
|
+
:type DatabaseOwner: str
|
|
17976
18578
|
"""
|
|
17977
|
-
self.
|
|
17978
|
-
self.
|
|
17979
|
-
self.
|
|
17980
|
-
self._ModifyParamEntrySet = None
|
|
17981
|
-
self._DeleteParamSet = None
|
|
18579
|
+
self._DBInstanceId = None
|
|
18580
|
+
self._DatabaseName = None
|
|
18581
|
+
self._DatabaseOwner = None
|
|
17982
18582
|
|
|
17983
18583
|
@property
|
|
17984
|
-
def
|
|
17985
|
-
r"""
|
|
18584
|
+
def DBInstanceId(self):
|
|
18585
|
+
r"""实例ID。可通过[DescribeDBInstances](https://cloud.tencent.com/document/api/409/16773)接口获取
|
|
17986
18586
|
:rtype: str
|
|
17987
18587
|
"""
|
|
17988
|
-
return self.
|
|
18588
|
+
return self._DBInstanceId
|
|
18589
|
+
|
|
18590
|
+
@DBInstanceId.setter
|
|
18591
|
+
def DBInstanceId(self, DBInstanceId):
|
|
18592
|
+
self._DBInstanceId = DBInstanceId
|
|
18593
|
+
|
|
18594
|
+
@property
|
|
18595
|
+
def DatabaseName(self):
|
|
18596
|
+
r"""数据库名称。可通过[DescribeDatabases](https://cloud.tencent.com/document/api/409/43353)接口获取
|
|
18597
|
+
:rtype: str
|
|
18598
|
+
"""
|
|
18599
|
+
return self._DatabaseName
|
|
18600
|
+
|
|
18601
|
+
@DatabaseName.setter
|
|
18602
|
+
def DatabaseName(self, DatabaseName):
|
|
18603
|
+
self._DatabaseName = DatabaseName
|
|
18604
|
+
|
|
18605
|
+
@property
|
|
18606
|
+
def DatabaseOwner(self):
|
|
18607
|
+
r"""数据库新所有者。可通过[DescribeAccounts](https://cloud.tencent.com/document/api/409/18109)接口获取
|
|
18608
|
+
:rtype: str
|
|
18609
|
+
"""
|
|
18610
|
+
return self._DatabaseOwner
|
|
18611
|
+
|
|
18612
|
+
@DatabaseOwner.setter
|
|
18613
|
+
def DatabaseOwner(self, DatabaseOwner):
|
|
18614
|
+
self._DatabaseOwner = DatabaseOwner
|
|
18615
|
+
|
|
18616
|
+
|
|
18617
|
+
def _deserialize(self, params):
|
|
18618
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
18619
|
+
self._DatabaseName = params.get("DatabaseName")
|
|
18620
|
+
self._DatabaseOwner = params.get("DatabaseOwner")
|
|
18621
|
+
memeber_set = set(params.keys())
|
|
18622
|
+
for name, value in vars(self).items():
|
|
18623
|
+
property_name = name[1:]
|
|
18624
|
+
if property_name in memeber_set:
|
|
18625
|
+
memeber_set.remove(property_name)
|
|
18626
|
+
if len(memeber_set) > 0:
|
|
18627
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18628
|
+
|
|
18629
|
+
|
|
18630
|
+
|
|
18631
|
+
class ModifyDatabaseOwnerResponse(AbstractModel):
|
|
18632
|
+
r"""ModifyDatabaseOwner返回参数结构体
|
|
18633
|
+
|
|
18634
|
+
"""
|
|
18635
|
+
|
|
18636
|
+
def __init__(self):
|
|
18637
|
+
r"""
|
|
18638
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18639
|
+
:type RequestId: str
|
|
18640
|
+
"""
|
|
18641
|
+
self._RequestId = None
|
|
18642
|
+
|
|
18643
|
+
@property
|
|
18644
|
+
def RequestId(self):
|
|
18645
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18646
|
+
:rtype: str
|
|
18647
|
+
"""
|
|
18648
|
+
return self._RequestId
|
|
18649
|
+
|
|
18650
|
+
@RequestId.setter
|
|
18651
|
+
def RequestId(self, RequestId):
|
|
18652
|
+
self._RequestId = RequestId
|
|
18653
|
+
|
|
18654
|
+
|
|
18655
|
+
def _deserialize(self, params):
|
|
18656
|
+
self._RequestId = params.get("RequestId")
|
|
18657
|
+
|
|
18658
|
+
|
|
18659
|
+
class ModifyMaintainTimeWindowRequest(AbstractModel):
|
|
18660
|
+
r"""ModifyMaintainTimeWindow请求参数结构体
|
|
18661
|
+
|
|
18662
|
+
"""
|
|
18663
|
+
|
|
18664
|
+
def __init__(self):
|
|
18665
|
+
r"""
|
|
18666
|
+
:param _DBInstanceId: 实例ID。可通过[DescribeDBInstances](https://cloud.tencent.com/document/api/409/16773)接口获取
|
|
18667
|
+
:type DBInstanceId: str
|
|
18668
|
+
:param _MaintainStartTime: 维护开始时间。时区为东八区(UTC+8)
|
|
18669
|
+
:type MaintainStartTime: str
|
|
18670
|
+
:param _MaintainDuration: 维护持续时间。单位:小时。取值范围:[1,4]
|
|
18671
|
+
:type MaintainDuration: int
|
|
18672
|
+
:param _MaintainWeekDays: 维护周期
|
|
18673
|
+
:type MaintainWeekDays: list of str
|
|
18674
|
+
"""
|
|
18675
|
+
self._DBInstanceId = None
|
|
18676
|
+
self._MaintainStartTime = None
|
|
18677
|
+
self._MaintainDuration = None
|
|
18678
|
+
self._MaintainWeekDays = None
|
|
18679
|
+
|
|
18680
|
+
@property
|
|
18681
|
+
def DBInstanceId(self):
|
|
18682
|
+
r"""实例ID。可通过[DescribeDBInstances](https://cloud.tencent.com/document/api/409/16773)接口获取
|
|
18683
|
+
:rtype: str
|
|
18684
|
+
"""
|
|
18685
|
+
return self._DBInstanceId
|
|
18686
|
+
|
|
18687
|
+
@DBInstanceId.setter
|
|
18688
|
+
def DBInstanceId(self, DBInstanceId):
|
|
18689
|
+
self._DBInstanceId = DBInstanceId
|
|
18690
|
+
|
|
18691
|
+
@property
|
|
18692
|
+
def MaintainStartTime(self):
|
|
18693
|
+
r"""维护开始时间。时区为东八区(UTC+8)
|
|
18694
|
+
:rtype: str
|
|
18695
|
+
"""
|
|
18696
|
+
return self._MaintainStartTime
|
|
18697
|
+
|
|
18698
|
+
@MaintainStartTime.setter
|
|
18699
|
+
def MaintainStartTime(self, MaintainStartTime):
|
|
18700
|
+
self._MaintainStartTime = MaintainStartTime
|
|
18701
|
+
|
|
18702
|
+
@property
|
|
18703
|
+
def MaintainDuration(self):
|
|
18704
|
+
r"""维护持续时间。单位:小时。取值范围:[1,4]
|
|
18705
|
+
:rtype: int
|
|
18706
|
+
"""
|
|
18707
|
+
return self._MaintainDuration
|
|
18708
|
+
|
|
18709
|
+
@MaintainDuration.setter
|
|
18710
|
+
def MaintainDuration(self, MaintainDuration):
|
|
18711
|
+
self._MaintainDuration = MaintainDuration
|
|
18712
|
+
|
|
18713
|
+
@property
|
|
18714
|
+
def MaintainWeekDays(self):
|
|
18715
|
+
r"""维护周期
|
|
18716
|
+
:rtype: list of str
|
|
18717
|
+
"""
|
|
18718
|
+
return self._MaintainWeekDays
|
|
18719
|
+
|
|
18720
|
+
@MaintainWeekDays.setter
|
|
18721
|
+
def MaintainWeekDays(self, MaintainWeekDays):
|
|
18722
|
+
self._MaintainWeekDays = MaintainWeekDays
|
|
18723
|
+
|
|
18724
|
+
|
|
18725
|
+
def _deserialize(self, params):
|
|
18726
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
18727
|
+
self._MaintainStartTime = params.get("MaintainStartTime")
|
|
18728
|
+
self._MaintainDuration = params.get("MaintainDuration")
|
|
18729
|
+
self._MaintainWeekDays = params.get("MaintainWeekDays")
|
|
18730
|
+
memeber_set = set(params.keys())
|
|
18731
|
+
for name, value in vars(self).items():
|
|
18732
|
+
property_name = name[1:]
|
|
18733
|
+
if property_name in memeber_set:
|
|
18734
|
+
memeber_set.remove(property_name)
|
|
18735
|
+
if len(memeber_set) > 0:
|
|
18736
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18737
|
+
|
|
18738
|
+
|
|
18739
|
+
|
|
18740
|
+
class ModifyMaintainTimeWindowResponse(AbstractModel):
|
|
18741
|
+
r"""ModifyMaintainTimeWindow返回参数结构体
|
|
18742
|
+
|
|
18743
|
+
"""
|
|
18744
|
+
|
|
18745
|
+
def __init__(self):
|
|
18746
|
+
r"""
|
|
18747
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18748
|
+
:type RequestId: str
|
|
18749
|
+
"""
|
|
18750
|
+
self._RequestId = None
|
|
18751
|
+
|
|
18752
|
+
@property
|
|
18753
|
+
def RequestId(self):
|
|
18754
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18755
|
+
:rtype: str
|
|
18756
|
+
"""
|
|
18757
|
+
return self._RequestId
|
|
18758
|
+
|
|
18759
|
+
@RequestId.setter
|
|
18760
|
+
def RequestId(self, RequestId):
|
|
18761
|
+
self._RequestId = RequestId
|
|
18762
|
+
|
|
18763
|
+
|
|
18764
|
+
def _deserialize(self, params):
|
|
18765
|
+
self._RequestId = params.get("RequestId")
|
|
18766
|
+
|
|
18767
|
+
|
|
18768
|
+
class ModifyParameterTemplateRequest(AbstractModel):
|
|
18769
|
+
r"""ModifyParameterTemplate请求参数结构体
|
|
18770
|
+
|
|
18771
|
+
"""
|
|
18772
|
+
|
|
18773
|
+
def __init__(self):
|
|
18774
|
+
r"""
|
|
18775
|
+
:param _TemplateId: 参数模板ID,用于唯一确认参数模板,不可修改。可通过[DescribeParameterTemplates](https://cloud.tencent.com/document/api/409/84067)接口获取
|
|
18776
|
+
:type TemplateId: str
|
|
18777
|
+
:param _TemplateName: 参数模板名称,长度为1~60个字符,仅支持数字,英文大小写字母、中文以及特殊字符_-./()()[]+=::@ 注:若该字段为空 ,则保持原参数模板名称
|
|
18778
|
+
:type TemplateName: str
|
|
18779
|
+
:param _TemplateDescription: 参数模板描述,长度为0~60个字符,仅支持数字,英文大小写字母、中文以及特殊字符_-./()()[]+=::@ 注:若不传入该参数,则保持原参数模板描述
|
|
18780
|
+
:type TemplateDescription: str
|
|
18781
|
+
:param _ModifyParamEntrySet: 需要修改或添加的参数集合,注:同一参数不能同时出现在修改添加集合和删除集合中
|
|
18782
|
+
:type ModifyParamEntrySet: list of ParamEntry
|
|
18783
|
+
:param _DeleteParamSet: 需要从模板中删除的参数集合,注:同一参数不能同时出现在修改添加集合和删除集合中
|
|
18784
|
+
:type DeleteParamSet: list of str
|
|
18785
|
+
"""
|
|
18786
|
+
self._TemplateId = None
|
|
18787
|
+
self._TemplateName = None
|
|
18788
|
+
self._TemplateDescription = None
|
|
18789
|
+
self._ModifyParamEntrySet = None
|
|
18790
|
+
self._DeleteParamSet = None
|
|
18791
|
+
|
|
18792
|
+
@property
|
|
18793
|
+
def TemplateId(self):
|
|
18794
|
+
r"""参数模板ID,用于唯一确认参数模板,不可修改。可通过[DescribeParameterTemplates](https://cloud.tencent.com/document/api/409/84067)接口获取
|
|
18795
|
+
:rtype: str
|
|
18796
|
+
"""
|
|
18797
|
+
return self._TemplateId
|
|
17989
18798
|
|
|
17990
18799
|
@TemplateId.setter
|
|
17991
18800
|
def TemplateId(self, TemplateId):
|
|
@@ -19903,45 +20712,726 @@ class PolicyRule(AbstractModel):
|
|
|
19903
20712
|
|
|
19904
20713
|
|
|
19905
20714
|
|
|
19906
|
-
class
|
|
19907
|
-
r"""
|
|
20715
|
+
class ProxyAddress(AbstractModel):
|
|
20716
|
+
r"""Proxy 接入地址信息,包含 VIP/VPort、读写分离与连接池相关配置以及对应路由列表。
|
|
19908
20717
|
|
|
19909
20718
|
"""
|
|
19910
20719
|
|
|
19911
20720
|
def __init__(self):
|
|
19912
20721
|
r"""
|
|
19913
|
-
:param
|
|
19914
|
-
:type
|
|
19915
|
-
:param
|
|
19916
|
-
:type
|
|
19917
|
-
:param
|
|
19918
|
-
:type
|
|
19919
|
-
:param
|
|
19920
|
-
:type
|
|
19921
|
-
:param
|
|
19922
|
-
:type
|
|
19923
|
-
:param
|
|
19924
|
-
:type
|
|
19925
|
-
:param
|
|
19926
|
-
|
|
19927
|
-
:
|
|
19928
|
-
:
|
|
19929
|
-
|
|
19930
|
-
:type
|
|
19931
|
-
|
|
19932
|
-
|
|
19933
|
-
|
|
19934
|
-
|
|
19935
|
-
|
|
19936
|
-
|
|
19937
|
-
|
|
19938
|
-
|
|
19939
|
-
|
|
20722
|
+
:param _AddressId: <p>Proxy 接入地址 ID</p>
|
|
20723
|
+
:type AddressId: str
|
|
20724
|
+
:param _Vip: <p>Proxy 接入地址 IP</p>
|
|
20725
|
+
:type Vip: str
|
|
20726
|
+
:param _Vport: <p>Proxy 接入地址端口</p>
|
|
20727
|
+
:type Vport: int
|
|
20728
|
+
:param _VpcId: <p>VPC ID</p>
|
|
20729
|
+
:type VpcId: str
|
|
20730
|
+
:param _SubnetId: <p>子网 ID</p>
|
|
20731
|
+
:type SubnetId: str
|
|
20732
|
+
:param _Description: <p>接入地址描述</p>
|
|
20733
|
+
:type Description: str
|
|
20734
|
+
:param _ConnectionPool: <p>是否开启连接池:0-未开启,1-开启</p>
|
|
20735
|
+
:type ConnectionPool: bool
|
|
20736
|
+
:param _Routes: <p>路由列表</p>
|
|
20737
|
+
:type Routes: list of ProxyRoute
|
|
20738
|
+
:param _ConnectionPoolLimit: <p>连接池大小</p>
|
|
20739
|
+
:type ConnectionPoolLimit: int
|
|
20740
|
+
"""
|
|
20741
|
+
self._AddressId = None
|
|
20742
|
+
self._Vip = None
|
|
20743
|
+
self._Vport = None
|
|
20744
|
+
self._VpcId = None
|
|
20745
|
+
self._SubnetId = None
|
|
20746
|
+
self._Description = None
|
|
20747
|
+
self._ConnectionPool = None
|
|
20748
|
+
self._Routes = None
|
|
20749
|
+
self._ConnectionPoolLimit = None
|
|
20750
|
+
|
|
20751
|
+
@property
|
|
20752
|
+
def AddressId(self):
|
|
20753
|
+
r"""<p>Proxy 接入地址 ID</p>
|
|
20754
|
+
:rtype: str
|
|
19940
20755
|
"""
|
|
19941
|
-
self.
|
|
19942
|
-
|
|
19943
|
-
|
|
19944
|
-
|
|
20756
|
+
return self._AddressId
|
|
20757
|
+
|
|
20758
|
+
@AddressId.setter
|
|
20759
|
+
def AddressId(self, AddressId):
|
|
20760
|
+
self._AddressId = AddressId
|
|
20761
|
+
|
|
20762
|
+
@property
|
|
20763
|
+
def Vip(self):
|
|
20764
|
+
r"""<p>Proxy 接入地址 IP</p>
|
|
20765
|
+
:rtype: str
|
|
20766
|
+
"""
|
|
20767
|
+
return self._Vip
|
|
20768
|
+
|
|
20769
|
+
@Vip.setter
|
|
20770
|
+
def Vip(self, Vip):
|
|
20771
|
+
self._Vip = Vip
|
|
20772
|
+
|
|
20773
|
+
@property
|
|
20774
|
+
def Vport(self):
|
|
20775
|
+
r"""<p>Proxy 接入地址端口</p>
|
|
20776
|
+
:rtype: int
|
|
20777
|
+
"""
|
|
20778
|
+
return self._Vport
|
|
20779
|
+
|
|
20780
|
+
@Vport.setter
|
|
20781
|
+
def Vport(self, Vport):
|
|
20782
|
+
self._Vport = Vport
|
|
20783
|
+
|
|
20784
|
+
@property
|
|
20785
|
+
def VpcId(self):
|
|
20786
|
+
r"""<p>VPC ID</p>
|
|
20787
|
+
:rtype: str
|
|
20788
|
+
"""
|
|
20789
|
+
return self._VpcId
|
|
20790
|
+
|
|
20791
|
+
@VpcId.setter
|
|
20792
|
+
def VpcId(self, VpcId):
|
|
20793
|
+
self._VpcId = VpcId
|
|
20794
|
+
|
|
20795
|
+
@property
|
|
20796
|
+
def SubnetId(self):
|
|
20797
|
+
r"""<p>子网 ID</p>
|
|
20798
|
+
:rtype: str
|
|
20799
|
+
"""
|
|
20800
|
+
return self._SubnetId
|
|
20801
|
+
|
|
20802
|
+
@SubnetId.setter
|
|
20803
|
+
def SubnetId(self, SubnetId):
|
|
20804
|
+
self._SubnetId = SubnetId
|
|
20805
|
+
|
|
20806
|
+
@property
|
|
20807
|
+
def Description(self):
|
|
20808
|
+
r"""<p>接入地址描述</p>
|
|
20809
|
+
:rtype: str
|
|
20810
|
+
"""
|
|
20811
|
+
return self._Description
|
|
20812
|
+
|
|
20813
|
+
@Description.setter
|
|
20814
|
+
def Description(self, Description):
|
|
20815
|
+
self._Description = Description
|
|
20816
|
+
|
|
20817
|
+
@property
|
|
20818
|
+
def ConnectionPool(self):
|
|
20819
|
+
r"""<p>是否开启连接池:0-未开启,1-开启</p>
|
|
20820
|
+
:rtype: bool
|
|
20821
|
+
"""
|
|
20822
|
+
return self._ConnectionPool
|
|
20823
|
+
|
|
20824
|
+
@ConnectionPool.setter
|
|
20825
|
+
def ConnectionPool(self, ConnectionPool):
|
|
20826
|
+
self._ConnectionPool = ConnectionPool
|
|
20827
|
+
|
|
20828
|
+
@property
|
|
20829
|
+
def Routes(self):
|
|
20830
|
+
r"""<p>路由列表</p>
|
|
20831
|
+
:rtype: list of ProxyRoute
|
|
20832
|
+
"""
|
|
20833
|
+
return self._Routes
|
|
20834
|
+
|
|
20835
|
+
@Routes.setter
|
|
20836
|
+
def Routes(self, Routes):
|
|
20837
|
+
self._Routes = Routes
|
|
20838
|
+
|
|
20839
|
+
@property
|
|
20840
|
+
def ConnectionPoolLimit(self):
|
|
20841
|
+
r"""<p>连接池大小</p>
|
|
20842
|
+
:rtype: int
|
|
20843
|
+
"""
|
|
20844
|
+
return self._ConnectionPoolLimit
|
|
20845
|
+
|
|
20846
|
+
@ConnectionPoolLimit.setter
|
|
20847
|
+
def ConnectionPoolLimit(self, ConnectionPoolLimit):
|
|
20848
|
+
self._ConnectionPoolLimit = ConnectionPoolLimit
|
|
20849
|
+
|
|
20850
|
+
|
|
20851
|
+
def _deserialize(self, params):
|
|
20852
|
+
self._AddressId = params.get("AddressId")
|
|
20853
|
+
self._Vip = params.get("Vip")
|
|
20854
|
+
self._Vport = params.get("Vport")
|
|
20855
|
+
self._VpcId = params.get("VpcId")
|
|
20856
|
+
self._SubnetId = params.get("SubnetId")
|
|
20857
|
+
self._Description = params.get("Description")
|
|
20858
|
+
self._ConnectionPool = params.get("ConnectionPool")
|
|
20859
|
+
if params.get("Routes") is not None:
|
|
20860
|
+
self._Routes = []
|
|
20861
|
+
for item in params.get("Routes"):
|
|
20862
|
+
obj = ProxyRoute()
|
|
20863
|
+
obj._deserialize(item)
|
|
20864
|
+
self._Routes.append(obj)
|
|
20865
|
+
self._ConnectionPoolLimit = params.get("ConnectionPoolLimit")
|
|
20866
|
+
memeber_set = set(params.keys())
|
|
20867
|
+
for name, value in vars(self).items():
|
|
20868
|
+
property_name = name[1:]
|
|
20869
|
+
if property_name in memeber_set:
|
|
20870
|
+
memeber_set.remove(property_name)
|
|
20871
|
+
if len(memeber_set) > 0:
|
|
20872
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20873
|
+
|
|
20874
|
+
|
|
20875
|
+
|
|
20876
|
+
class ProxyGroupInfo(AbstractModel):
|
|
20877
|
+
r"""Proxy 实例(组)详细信息,包含基础信息、节点列表、接入地址列表。
|
|
20878
|
+
|
|
20879
|
+
"""
|
|
20880
|
+
|
|
20881
|
+
def __init__(self):
|
|
20882
|
+
r"""
|
|
20883
|
+
:param _ProxyGroupId: <p>Proxy 实例 ID,格式形如:proxygroup-xxxxxxxx</p>
|
|
20884
|
+
:type ProxyGroupId: str
|
|
20885
|
+
:param _Status: <p>Proxy 状态:running/isolated/offline 等</p>
|
|
20886
|
+
:type Status: str
|
|
20887
|
+
:param _TaskStatus: <p>Proxy 任务状态,无任务时为空</p>
|
|
20888
|
+
:type TaskStatus: str
|
|
20889
|
+
:param _Description: <p>Proxy 描述</p>
|
|
20890
|
+
:type Description: str
|
|
20891
|
+
:param _ProxyVersion: <p>Proxy 内核版本号</p>
|
|
20892
|
+
:type ProxyVersion: str
|
|
20893
|
+
:param _ConnectionPoolLimit: <p>连接池阈值(连接数)</p>
|
|
20894
|
+
:type ConnectionPoolLimit: int
|
|
20895
|
+
:param _ProxyNodeSet: <p>Proxy 节点列表</p>
|
|
20896
|
+
:type ProxyNodeSet: list of ProxyNode
|
|
20897
|
+
:param _ProxyAddressSet: <p>Proxy 接入地址列表</p>
|
|
20898
|
+
:type ProxyAddressSet: list of ProxyAddress
|
|
20899
|
+
:param _CreateTime: <p>创建时间,格式:YYYY-MM-DD HH:MM:SS</p>
|
|
20900
|
+
:type CreateTime: str
|
|
20901
|
+
"""
|
|
20902
|
+
self._ProxyGroupId = None
|
|
20903
|
+
self._Status = None
|
|
20904
|
+
self._TaskStatus = None
|
|
20905
|
+
self._Description = None
|
|
20906
|
+
self._ProxyVersion = None
|
|
20907
|
+
self._ConnectionPoolLimit = None
|
|
20908
|
+
self._ProxyNodeSet = None
|
|
20909
|
+
self._ProxyAddressSet = None
|
|
20910
|
+
self._CreateTime = None
|
|
20911
|
+
|
|
20912
|
+
@property
|
|
20913
|
+
def ProxyGroupId(self):
|
|
20914
|
+
r"""<p>Proxy 实例 ID,格式形如:proxygroup-xxxxxxxx</p>
|
|
20915
|
+
:rtype: str
|
|
20916
|
+
"""
|
|
20917
|
+
return self._ProxyGroupId
|
|
20918
|
+
|
|
20919
|
+
@ProxyGroupId.setter
|
|
20920
|
+
def ProxyGroupId(self, ProxyGroupId):
|
|
20921
|
+
self._ProxyGroupId = ProxyGroupId
|
|
20922
|
+
|
|
20923
|
+
@property
|
|
20924
|
+
def Status(self):
|
|
20925
|
+
r"""<p>Proxy 状态:running/isolated/offline 等</p>
|
|
20926
|
+
:rtype: str
|
|
20927
|
+
"""
|
|
20928
|
+
return self._Status
|
|
20929
|
+
|
|
20930
|
+
@Status.setter
|
|
20931
|
+
def Status(self, Status):
|
|
20932
|
+
self._Status = Status
|
|
20933
|
+
|
|
20934
|
+
@property
|
|
20935
|
+
def TaskStatus(self):
|
|
20936
|
+
r"""<p>Proxy 任务状态,无任务时为空</p>
|
|
20937
|
+
:rtype: str
|
|
20938
|
+
"""
|
|
20939
|
+
return self._TaskStatus
|
|
20940
|
+
|
|
20941
|
+
@TaskStatus.setter
|
|
20942
|
+
def TaskStatus(self, TaskStatus):
|
|
20943
|
+
self._TaskStatus = TaskStatus
|
|
20944
|
+
|
|
20945
|
+
@property
|
|
20946
|
+
def Description(self):
|
|
20947
|
+
r"""<p>Proxy 描述</p>
|
|
20948
|
+
:rtype: str
|
|
20949
|
+
"""
|
|
20950
|
+
return self._Description
|
|
20951
|
+
|
|
20952
|
+
@Description.setter
|
|
20953
|
+
def Description(self, Description):
|
|
20954
|
+
self._Description = Description
|
|
20955
|
+
|
|
20956
|
+
@property
|
|
20957
|
+
def ProxyVersion(self):
|
|
20958
|
+
r"""<p>Proxy 内核版本号</p>
|
|
20959
|
+
:rtype: str
|
|
20960
|
+
"""
|
|
20961
|
+
return self._ProxyVersion
|
|
20962
|
+
|
|
20963
|
+
@ProxyVersion.setter
|
|
20964
|
+
def ProxyVersion(self, ProxyVersion):
|
|
20965
|
+
self._ProxyVersion = ProxyVersion
|
|
20966
|
+
|
|
20967
|
+
@property
|
|
20968
|
+
def ConnectionPoolLimit(self):
|
|
20969
|
+
r"""<p>连接池阈值(连接数)</p>
|
|
20970
|
+
:rtype: int
|
|
20971
|
+
"""
|
|
20972
|
+
return self._ConnectionPoolLimit
|
|
20973
|
+
|
|
20974
|
+
@ConnectionPoolLimit.setter
|
|
20975
|
+
def ConnectionPoolLimit(self, ConnectionPoolLimit):
|
|
20976
|
+
self._ConnectionPoolLimit = ConnectionPoolLimit
|
|
20977
|
+
|
|
20978
|
+
@property
|
|
20979
|
+
def ProxyNodeSet(self):
|
|
20980
|
+
r"""<p>Proxy 节点列表</p>
|
|
20981
|
+
:rtype: list of ProxyNode
|
|
20982
|
+
"""
|
|
20983
|
+
return self._ProxyNodeSet
|
|
20984
|
+
|
|
20985
|
+
@ProxyNodeSet.setter
|
|
20986
|
+
def ProxyNodeSet(self, ProxyNodeSet):
|
|
20987
|
+
self._ProxyNodeSet = ProxyNodeSet
|
|
20988
|
+
|
|
20989
|
+
@property
|
|
20990
|
+
def ProxyAddressSet(self):
|
|
20991
|
+
r"""<p>Proxy 接入地址列表</p>
|
|
20992
|
+
:rtype: list of ProxyAddress
|
|
20993
|
+
"""
|
|
20994
|
+
return self._ProxyAddressSet
|
|
20995
|
+
|
|
20996
|
+
@ProxyAddressSet.setter
|
|
20997
|
+
def ProxyAddressSet(self, ProxyAddressSet):
|
|
20998
|
+
self._ProxyAddressSet = ProxyAddressSet
|
|
20999
|
+
|
|
21000
|
+
@property
|
|
21001
|
+
def CreateTime(self):
|
|
21002
|
+
r"""<p>创建时间,格式:YYYY-MM-DD HH:MM:SS</p>
|
|
21003
|
+
:rtype: str
|
|
21004
|
+
"""
|
|
21005
|
+
return self._CreateTime
|
|
21006
|
+
|
|
21007
|
+
@CreateTime.setter
|
|
21008
|
+
def CreateTime(self, CreateTime):
|
|
21009
|
+
self._CreateTime = CreateTime
|
|
21010
|
+
|
|
21011
|
+
|
|
21012
|
+
def _deserialize(self, params):
|
|
21013
|
+
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
21014
|
+
self._Status = params.get("Status")
|
|
21015
|
+
self._TaskStatus = params.get("TaskStatus")
|
|
21016
|
+
self._Description = params.get("Description")
|
|
21017
|
+
self._ProxyVersion = params.get("ProxyVersion")
|
|
21018
|
+
self._ConnectionPoolLimit = params.get("ConnectionPoolLimit")
|
|
21019
|
+
if params.get("ProxyNodeSet") is not None:
|
|
21020
|
+
self._ProxyNodeSet = []
|
|
21021
|
+
for item in params.get("ProxyNodeSet"):
|
|
21022
|
+
obj = ProxyNode()
|
|
21023
|
+
obj._deserialize(item)
|
|
21024
|
+
self._ProxyNodeSet.append(obj)
|
|
21025
|
+
if params.get("ProxyAddressSet") is not None:
|
|
21026
|
+
self._ProxyAddressSet = []
|
|
21027
|
+
for item in params.get("ProxyAddressSet"):
|
|
21028
|
+
obj = ProxyAddress()
|
|
21029
|
+
obj._deserialize(item)
|
|
21030
|
+
self._ProxyAddressSet.append(obj)
|
|
21031
|
+
self._CreateTime = params.get("CreateTime")
|
|
21032
|
+
memeber_set = set(params.keys())
|
|
21033
|
+
for name, value in vars(self).items():
|
|
21034
|
+
property_name = name[1:]
|
|
21035
|
+
if property_name in memeber_set:
|
|
21036
|
+
memeber_set.remove(property_name)
|
|
21037
|
+
if len(memeber_set) > 0:
|
|
21038
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21039
|
+
|
|
21040
|
+
|
|
21041
|
+
|
|
21042
|
+
class ProxyNode(AbstractModel):
|
|
21043
|
+
r"""Proxy 节点信息。
|
|
21044
|
+
|
|
21045
|
+
"""
|
|
21046
|
+
|
|
21047
|
+
def __init__(self):
|
|
21048
|
+
r"""
|
|
21049
|
+
:param _ProxyNodeId: <p>Proxy 节点 ID</p>
|
|
21050
|
+
:type ProxyNodeId: str
|
|
21051
|
+
:param _Zone: <p>Proxy 节点所在可用区</p>
|
|
21052
|
+
:type Zone: str
|
|
21053
|
+
:param _Cpu: <p>节点 CPU 核数(核)</p>
|
|
21054
|
+
:type Cpu: int
|
|
21055
|
+
:param _Mem: <p>节点内存大小(MB)</p><p>单位:MB</p>
|
|
21056
|
+
:type Mem: int
|
|
21057
|
+
:param _Status: <p>节点状态:running/isolated/abnormal 等</p>
|
|
21058
|
+
:type Status: str
|
|
21059
|
+
:param _Connection: <p>节点当前连接数</p>
|
|
21060
|
+
:type Connection: int
|
|
21061
|
+
"""
|
|
21062
|
+
self._ProxyNodeId = None
|
|
21063
|
+
self._Zone = None
|
|
21064
|
+
self._Cpu = None
|
|
21065
|
+
self._Mem = None
|
|
21066
|
+
self._Status = None
|
|
21067
|
+
self._Connection = None
|
|
21068
|
+
|
|
21069
|
+
@property
|
|
21070
|
+
def ProxyNodeId(self):
|
|
21071
|
+
r"""<p>Proxy 节点 ID</p>
|
|
21072
|
+
:rtype: str
|
|
21073
|
+
"""
|
|
21074
|
+
return self._ProxyNodeId
|
|
21075
|
+
|
|
21076
|
+
@ProxyNodeId.setter
|
|
21077
|
+
def ProxyNodeId(self, ProxyNodeId):
|
|
21078
|
+
self._ProxyNodeId = ProxyNodeId
|
|
21079
|
+
|
|
21080
|
+
@property
|
|
21081
|
+
def Zone(self):
|
|
21082
|
+
r"""<p>Proxy 节点所在可用区</p>
|
|
21083
|
+
:rtype: str
|
|
21084
|
+
"""
|
|
21085
|
+
return self._Zone
|
|
21086
|
+
|
|
21087
|
+
@Zone.setter
|
|
21088
|
+
def Zone(self, Zone):
|
|
21089
|
+
self._Zone = Zone
|
|
21090
|
+
|
|
21091
|
+
@property
|
|
21092
|
+
def Cpu(self):
|
|
21093
|
+
r"""<p>节点 CPU 核数(核)</p>
|
|
21094
|
+
:rtype: int
|
|
21095
|
+
"""
|
|
21096
|
+
return self._Cpu
|
|
21097
|
+
|
|
21098
|
+
@Cpu.setter
|
|
21099
|
+
def Cpu(self, Cpu):
|
|
21100
|
+
self._Cpu = Cpu
|
|
21101
|
+
|
|
21102
|
+
@property
|
|
21103
|
+
def Mem(self):
|
|
21104
|
+
r"""<p>节点内存大小(MB)</p><p>单位:MB</p>
|
|
21105
|
+
:rtype: int
|
|
21106
|
+
"""
|
|
21107
|
+
return self._Mem
|
|
21108
|
+
|
|
21109
|
+
@Mem.setter
|
|
21110
|
+
def Mem(self, Mem):
|
|
21111
|
+
self._Mem = Mem
|
|
21112
|
+
|
|
21113
|
+
@property
|
|
21114
|
+
def Status(self):
|
|
21115
|
+
r"""<p>节点状态:running/isolated/abnormal 等</p>
|
|
21116
|
+
:rtype: str
|
|
21117
|
+
"""
|
|
21118
|
+
return self._Status
|
|
21119
|
+
|
|
21120
|
+
@Status.setter
|
|
21121
|
+
def Status(self, Status):
|
|
21122
|
+
self._Status = Status
|
|
21123
|
+
|
|
21124
|
+
@property
|
|
21125
|
+
def Connection(self):
|
|
21126
|
+
r"""<p>节点当前连接数</p>
|
|
21127
|
+
:rtype: int
|
|
21128
|
+
"""
|
|
21129
|
+
return self._Connection
|
|
21130
|
+
|
|
21131
|
+
@Connection.setter
|
|
21132
|
+
def Connection(self, Connection):
|
|
21133
|
+
self._Connection = Connection
|
|
21134
|
+
|
|
21135
|
+
|
|
21136
|
+
def _deserialize(self, params):
|
|
21137
|
+
self._ProxyNodeId = params.get("ProxyNodeId")
|
|
21138
|
+
self._Zone = params.get("Zone")
|
|
21139
|
+
self._Cpu = params.get("Cpu")
|
|
21140
|
+
self._Mem = params.get("Mem")
|
|
21141
|
+
self._Status = params.get("Status")
|
|
21142
|
+
self._Connection = params.get("Connection")
|
|
21143
|
+
memeber_set = set(params.keys())
|
|
21144
|
+
for name, value in vars(self).items():
|
|
21145
|
+
property_name = name[1:]
|
|
21146
|
+
if property_name in memeber_set:
|
|
21147
|
+
memeber_set.remove(property_name)
|
|
21148
|
+
if len(memeber_set) > 0:
|
|
21149
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21150
|
+
|
|
21151
|
+
|
|
21152
|
+
|
|
21153
|
+
class ProxyNodeCustom(AbstractModel):
|
|
21154
|
+
r"""Proxy 节点自定义规格信息,每个 Zone 对应一组节点配置。
|
|
21155
|
+
|
|
21156
|
+
"""
|
|
21157
|
+
|
|
21158
|
+
def __init__(self):
|
|
21159
|
+
r"""
|
|
21160
|
+
:param _NodeCount: <p>该可用区下的 Proxy 节点数量</p><p>取值范围:[1, 16]</p>
|
|
21161
|
+
:type NodeCount: int
|
|
21162
|
+
:param _Zone: <p>Proxy 节点所在可用区</p>
|
|
21163
|
+
:type Zone: str
|
|
21164
|
+
:param _Cpu: <p>Proxy 节点 CPU 核数(核)</p>
|
|
21165
|
+
:type Cpu: int
|
|
21166
|
+
:param _Mem: <p>Proxy 节点内存大小(MB)</p><p>单位:MB</p>
|
|
21167
|
+
:type Mem: int
|
|
21168
|
+
"""
|
|
21169
|
+
self._NodeCount = None
|
|
21170
|
+
self._Zone = None
|
|
21171
|
+
self._Cpu = None
|
|
21172
|
+
self._Mem = None
|
|
21173
|
+
|
|
21174
|
+
@property
|
|
21175
|
+
def NodeCount(self):
|
|
21176
|
+
r"""<p>该可用区下的 Proxy 节点数量</p><p>取值范围:[1, 16]</p>
|
|
21177
|
+
:rtype: int
|
|
21178
|
+
"""
|
|
21179
|
+
return self._NodeCount
|
|
21180
|
+
|
|
21181
|
+
@NodeCount.setter
|
|
21182
|
+
def NodeCount(self, NodeCount):
|
|
21183
|
+
self._NodeCount = NodeCount
|
|
21184
|
+
|
|
21185
|
+
@property
|
|
21186
|
+
def Zone(self):
|
|
21187
|
+
r"""<p>Proxy 节点所在可用区</p>
|
|
21188
|
+
:rtype: str
|
|
21189
|
+
"""
|
|
21190
|
+
return self._Zone
|
|
21191
|
+
|
|
21192
|
+
@Zone.setter
|
|
21193
|
+
def Zone(self, Zone):
|
|
21194
|
+
self._Zone = Zone
|
|
21195
|
+
|
|
21196
|
+
@property
|
|
21197
|
+
def Cpu(self):
|
|
21198
|
+
r"""<p>Proxy 节点 CPU 核数(核)</p>
|
|
21199
|
+
:rtype: int
|
|
21200
|
+
"""
|
|
21201
|
+
return self._Cpu
|
|
21202
|
+
|
|
21203
|
+
@Cpu.setter
|
|
21204
|
+
def Cpu(self, Cpu):
|
|
21205
|
+
self._Cpu = Cpu
|
|
21206
|
+
|
|
21207
|
+
@property
|
|
21208
|
+
def Mem(self):
|
|
21209
|
+
r"""<p>Proxy 节点内存大小(MB)</p><p>单位:MB</p>
|
|
21210
|
+
:rtype: int
|
|
21211
|
+
"""
|
|
21212
|
+
return self._Mem
|
|
21213
|
+
|
|
21214
|
+
@Mem.setter
|
|
21215
|
+
def Mem(self, Mem):
|
|
21216
|
+
self._Mem = Mem
|
|
21217
|
+
|
|
21218
|
+
|
|
21219
|
+
def _deserialize(self, params):
|
|
21220
|
+
self._NodeCount = params.get("NodeCount")
|
|
21221
|
+
self._Zone = params.get("Zone")
|
|
21222
|
+
self._Cpu = params.get("Cpu")
|
|
21223
|
+
self._Mem = params.get("Mem")
|
|
21224
|
+
memeber_set = set(params.keys())
|
|
21225
|
+
for name, value in vars(self).items():
|
|
21226
|
+
property_name = name[1:]
|
|
21227
|
+
if property_name in memeber_set:
|
|
21228
|
+
memeber_set.remove(property_name)
|
|
21229
|
+
if len(memeber_set) > 0:
|
|
21230
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21231
|
+
|
|
21232
|
+
|
|
21233
|
+
|
|
21234
|
+
class ProxyRoute(AbstractModel):
|
|
21235
|
+
r"""Proxy 路由信息,描述某个 Proxy 接入地址下到具体 PG 节点的路由规则。
|
|
21236
|
+
|
|
21237
|
+
"""
|
|
21238
|
+
|
|
21239
|
+
def __init__(self):
|
|
21240
|
+
r"""
|
|
21241
|
+
:param _NodeId: <p>路由指向的 PG 节点 ID(实例或只读节点 ID)</p>
|
|
21242
|
+
:type NodeId: str
|
|
21243
|
+
:param _Role: <p>节点角色:master/slave/readonly</p>
|
|
21244
|
+
:type Role: str
|
|
21245
|
+
:param _Weight: <p>路由权重,取值范围 [0, 100]</p>
|
|
21246
|
+
:type Weight: int
|
|
21247
|
+
:param _Status: <p>路由状态:available/unavailable</p>
|
|
21248
|
+
:type Status: str
|
|
21249
|
+
"""
|
|
21250
|
+
self._NodeId = None
|
|
21251
|
+
self._Role = None
|
|
21252
|
+
self._Weight = None
|
|
21253
|
+
self._Status = None
|
|
21254
|
+
|
|
21255
|
+
@property
|
|
21256
|
+
def NodeId(self):
|
|
21257
|
+
r"""<p>路由指向的 PG 节点 ID(实例或只读节点 ID)</p>
|
|
21258
|
+
:rtype: str
|
|
21259
|
+
"""
|
|
21260
|
+
return self._NodeId
|
|
21261
|
+
|
|
21262
|
+
@NodeId.setter
|
|
21263
|
+
def NodeId(self, NodeId):
|
|
21264
|
+
self._NodeId = NodeId
|
|
21265
|
+
|
|
21266
|
+
@property
|
|
21267
|
+
def Role(self):
|
|
21268
|
+
r"""<p>节点角色:master/slave/readonly</p>
|
|
21269
|
+
:rtype: str
|
|
21270
|
+
"""
|
|
21271
|
+
return self._Role
|
|
21272
|
+
|
|
21273
|
+
@Role.setter
|
|
21274
|
+
def Role(self, Role):
|
|
21275
|
+
self._Role = Role
|
|
21276
|
+
|
|
21277
|
+
@property
|
|
21278
|
+
def Weight(self):
|
|
21279
|
+
r"""<p>路由权重,取值范围 [0, 100]</p>
|
|
21280
|
+
:rtype: int
|
|
21281
|
+
"""
|
|
21282
|
+
return self._Weight
|
|
21283
|
+
|
|
21284
|
+
@Weight.setter
|
|
21285
|
+
def Weight(self, Weight):
|
|
21286
|
+
self._Weight = Weight
|
|
21287
|
+
|
|
21288
|
+
@property
|
|
21289
|
+
def Status(self):
|
|
21290
|
+
r"""<p>路由状态:available/unavailable</p>
|
|
21291
|
+
:rtype: str
|
|
21292
|
+
"""
|
|
21293
|
+
return self._Status
|
|
21294
|
+
|
|
21295
|
+
@Status.setter
|
|
21296
|
+
def Status(self, Status):
|
|
21297
|
+
self._Status = Status
|
|
21298
|
+
|
|
21299
|
+
|
|
21300
|
+
def _deserialize(self, params):
|
|
21301
|
+
self._NodeId = params.get("NodeId")
|
|
21302
|
+
self._Role = params.get("Role")
|
|
21303
|
+
self._Weight = params.get("Weight")
|
|
21304
|
+
self._Status = params.get("Status")
|
|
21305
|
+
memeber_set = set(params.keys())
|
|
21306
|
+
for name, value in vars(self).items():
|
|
21307
|
+
property_name = name[1:]
|
|
21308
|
+
if property_name in memeber_set:
|
|
21309
|
+
memeber_set.remove(property_name)
|
|
21310
|
+
if len(memeber_set) > 0:
|
|
21311
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21312
|
+
|
|
21313
|
+
|
|
21314
|
+
|
|
21315
|
+
class ProxySpecItem(AbstractModel):
|
|
21316
|
+
r"""Proxy可售规格信息
|
|
21317
|
+
|
|
21318
|
+
"""
|
|
21319
|
+
|
|
21320
|
+
def __init__(self):
|
|
21321
|
+
r"""
|
|
21322
|
+
:param _Cpu: <p>CPU 核数</p><p>单位:核</p>
|
|
21323
|
+
:type Cpu: int
|
|
21324
|
+
:param _Memory: <p>内存大小</p><p>单位:MB</p>
|
|
21325
|
+
:type Memory: int
|
|
21326
|
+
:param _MinNodeNum: <p>最小节点数</p>
|
|
21327
|
+
:type MinNodeNum: int
|
|
21328
|
+
:param _MaxNodeNum: <p>最大节点数</p>
|
|
21329
|
+
:type MaxNodeNum: int
|
|
21330
|
+
"""
|
|
21331
|
+
self._Cpu = None
|
|
21332
|
+
self._Memory = None
|
|
21333
|
+
self._MinNodeNum = None
|
|
21334
|
+
self._MaxNodeNum = None
|
|
21335
|
+
|
|
21336
|
+
@property
|
|
21337
|
+
def Cpu(self):
|
|
21338
|
+
r"""<p>CPU 核数</p><p>单位:核</p>
|
|
21339
|
+
:rtype: int
|
|
21340
|
+
"""
|
|
21341
|
+
return self._Cpu
|
|
21342
|
+
|
|
21343
|
+
@Cpu.setter
|
|
21344
|
+
def Cpu(self, Cpu):
|
|
21345
|
+
self._Cpu = Cpu
|
|
21346
|
+
|
|
21347
|
+
@property
|
|
21348
|
+
def Memory(self):
|
|
21349
|
+
r"""<p>内存大小</p><p>单位:MB</p>
|
|
21350
|
+
:rtype: int
|
|
21351
|
+
"""
|
|
21352
|
+
return self._Memory
|
|
21353
|
+
|
|
21354
|
+
@Memory.setter
|
|
21355
|
+
def Memory(self, Memory):
|
|
21356
|
+
self._Memory = Memory
|
|
21357
|
+
|
|
21358
|
+
@property
|
|
21359
|
+
def MinNodeNum(self):
|
|
21360
|
+
r"""<p>最小节点数</p>
|
|
21361
|
+
:rtype: int
|
|
21362
|
+
"""
|
|
21363
|
+
return self._MinNodeNum
|
|
21364
|
+
|
|
21365
|
+
@MinNodeNum.setter
|
|
21366
|
+
def MinNodeNum(self, MinNodeNum):
|
|
21367
|
+
self._MinNodeNum = MinNodeNum
|
|
21368
|
+
|
|
21369
|
+
@property
|
|
21370
|
+
def MaxNodeNum(self):
|
|
21371
|
+
r"""<p>最大节点数</p>
|
|
21372
|
+
:rtype: int
|
|
21373
|
+
"""
|
|
21374
|
+
return self._MaxNodeNum
|
|
21375
|
+
|
|
21376
|
+
@MaxNodeNum.setter
|
|
21377
|
+
def MaxNodeNum(self, MaxNodeNum):
|
|
21378
|
+
self._MaxNodeNum = MaxNodeNum
|
|
21379
|
+
|
|
21380
|
+
|
|
21381
|
+
def _deserialize(self, params):
|
|
21382
|
+
self._Cpu = params.get("Cpu")
|
|
21383
|
+
self._Memory = params.get("Memory")
|
|
21384
|
+
self._MinNodeNum = params.get("MinNodeNum")
|
|
21385
|
+
self._MaxNodeNum = params.get("MaxNodeNum")
|
|
21386
|
+
memeber_set = set(params.keys())
|
|
21387
|
+
for name, value in vars(self).items():
|
|
21388
|
+
property_name = name[1:]
|
|
21389
|
+
if property_name in memeber_set:
|
|
21390
|
+
memeber_set.remove(property_name)
|
|
21391
|
+
if len(memeber_set) > 0:
|
|
21392
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21393
|
+
|
|
21394
|
+
|
|
21395
|
+
|
|
21396
|
+
class RawSlowQuery(AbstractModel):
|
|
21397
|
+
r"""慢SQL查询接口返回 慢SQL列表详情
|
|
21398
|
+
|
|
21399
|
+
"""
|
|
21400
|
+
|
|
21401
|
+
def __init__(self):
|
|
21402
|
+
r"""
|
|
21403
|
+
:param _RawQuery: <p>慢SQL 语句</p>
|
|
21404
|
+
:type RawQuery: str
|
|
21405
|
+
:param _DatabaseName: <p>慢SQL 查询的数据库</p>
|
|
21406
|
+
:type DatabaseName: str
|
|
21407
|
+
:param _Duration: <p>慢SQL执行 耗时</p>
|
|
21408
|
+
:type Duration: float
|
|
21409
|
+
:param _ClientAddr: <p>执行慢SQL的客户端</p>
|
|
21410
|
+
:type ClientAddr: str
|
|
21411
|
+
:param _UserName: <p>执行慢SQL的用户名</p>
|
|
21412
|
+
:type UserName: str
|
|
21413
|
+
:param _SessionStartTime: <p>慢SQL执行的开始时间</p>
|
|
21414
|
+
:type SessionStartTime: str
|
|
21415
|
+
:param _ProcessId: <p>执行慢SQL的进程ID</p>
|
|
21416
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
21417
|
+
:type ProcessId: int
|
|
21418
|
+
:param _SessionId: <p>执行慢SQL的会话ID</p>
|
|
21419
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
21420
|
+
:type SessionId: str
|
|
21421
|
+
:param _VirtualTransactionId: <p>执行慢SQL的事务ID</p>
|
|
21422
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
21423
|
+
:type VirtualTransactionId: str
|
|
21424
|
+
:param _SqlStateCode: <p>执行慢SQL的状态码</p>
|
|
21425
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
21426
|
+
:type SqlStateCode: str
|
|
21427
|
+
:param _ApplicationName: <p>执行慢SQL的客户端名称</p>
|
|
21428
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
21429
|
+
:type ApplicationName: str
|
|
21430
|
+
"""
|
|
21431
|
+
self._RawQuery = None
|
|
21432
|
+
self._DatabaseName = None
|
|
21433
|
+
self._Duration = None
|
|
21434
|
+
self._ClientAddr = None
|
|
19945
21435
|
self._UserName = None
|
|
19946
21436
|
self._SessionStartTime = None
|
|
19947
21437
|
self._ProcessId = None
|
|
@@ -20646,6 +22136,100 @@ class RegionInfo(AbstractModel):
|
|
|
20646
22136
|
|
|
20647
22137
|
|
|
20648
22138
|
|
|
22139
|
+
class ReloadBalanceDBProxyNodeRequest(AbstractModel):
|
|
22140
|
+
r"""ReloadBalanceDBProxyNode请求参数结构体
|
|
22141
|
+
|
|
22142
|
+
"""
|
|
22143
|
+
|
|
22144
|
+
def __init__(self):
|
|
22145
|
+
r"""
|
|
22146
|
+
:param _DBInstanceId: <p>实例ID</p>
|
|
22147
|
+
:type DBInstanceId: str
|
|
22148
|
+
:param _ProxyGroupId: <p>Proxy代理组ID(不传则默认操作该实例下唯一的代理)</p>
|
|
22149
|
+
:type ProxyGroupId: str
|
|
22150
|
+
:param _AddressId: <p>Proxy地址ID。传入时校验归属,实际重平衡为代理组维度</p>
|
|
22151
|
+
:type AddressId: str
|
|
22152
|
+
"""
|
|
22153
|
+
self._DBInstanceId = None
|
|
22154
|
+
self._ProxyGroupId = None
|
|
22155
|
+
self._AddressId = None
|
|
22156
|
+
|
|
22157
|
+
@property
|
|
22158
|
+
def DBInstanceId(self):
|
|
22159
|
+
r"""<p>实例ID</p>
|
|
22160
|
+
:rtype: str
|
|
22161
|
+
"""
|
|
22162
|
+
return self._DBInstanceId
|
|
22163
|
+
|
|
22164
|
+
@DBInstanceId.setter
|
|
22165
|
+
def DBInstanceId(self, DBInstanceId):
|
|
22166
|
+
self._DBInstanceId = DBInstanceId
|
|
22167
|
+
|
|
22168
|
+
@property
|
|
22169
|
+
def ProxyGroupId(self):
|
|
22170
|
+
r"""<p>Proxy代理组ID(不传则默认操作该实例下唯一的代理)</p>
|
|
22171
|
+
:rtype: str
|
|
22172
|
+
"""
|
|
22173
|
+
return self._ProxyGroupId
|
|
22174
|
+
|
|
22175
|
+
@ProxyGroupId.setter
|
|
22176
|
+
def ProxyGroupId(self, ProxyGroupId):
|
|
22177
|
+
self._ProxyGroupId = ProxyGroupId
|
|
22178
|
+
|
|
22179
|
+
@property
|
|
22180
|
+
def AddressId(self):
|
|
22181
|
+
r"""<p>Proxy地址ID。传入时校验归属,实际重平衡为代理组维度</p>
|
|
22182
|
+
:rtype: str
|
|
22183
|
+
"""
|
|
22184
|
+
return self._AddressId
|
|
22185
|
+
|
|
22186
|
+
@AddressId.setter
|
|
22187
|
+
def AddressId(self, AddressId):
|
|
22188
|
+
self._AddressId = AddressId
|
|
22189
|
+
|
|
22190
|
+
|
|
22191
|
+
def _deserialize(self, params):
|
|
22192
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
22193
|
+
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
22194
|
+
self._AddressId = params.get("AddressId")
|
|
22195
|
+
memeber_set = set(params.keys())
|
|
22196
|
+
for name, value in vars(self).items():
|
|
22197
|
+
property_name = name[1:]
|
|
22198
|
+
if property_name in memeber_set:
|
|
22199
|
+
memeber_set.remove(property_name)
|
|
22200
|
+
if len(memeber_set) > 0:
|
|
22201
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
22202
|
+
|
|
22203
|
+
|
|
22204
|
+
|
|
22205
|
+
class ReloadBalanceDBProxyNodeResponse(AbstractModel):
|
|
22206
|
+
r"""ReloadBalanceDBProxyNode返回参数结构体
|
|
22207
|
+
|
|
22208
|
+
"""
|
|
22209
|
+
|
|
22210
|
+
def __init__(self):
|
|
22211
|
+
r"""
|
|
22212
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
22213
|
+
:type RequestId: str
|
|
22214
|
+
"""
|
|
22215
|
+
self._RequestId = None
|
|
22216
|
+
|
|
22217
|
+
@property
|
|
22218
|
+
def RequestId(self):
|
|
22219
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
22220
|
+
:rtype: str
|
|
22221
|
+
"""
|
|
22222
|
+
return self._RequestId
|
|
22223
|
+
|
|
22224
|
+
@RequestId.setter
|
|
22225
|
+
def RequestId(self, RequestId):
|
|
22226
|
+
self._RequestId = RequestId
|
|
22227
|
+
|
|
22228
|
+
|
|
22229
|
+
def _deserialize(self, params):
|
|
22230
|
+
self._RequestId = params.get("RequestId")
|
|
22231
|
+
|
|
22232
|
+
|
|
20649
22233
|
class RemoveDBInstanceFromReadOnlyGroupRequest(AbstractModel):
|
|
20650
22234
|
r"""RemoveDBInstanceFromReadOnlyGroup请求参数结构体
|
|
20651
22235
|
|