tencentcloud-sdk-python-postgres 3.1.134__py2.py3-none-any.whl → 3.1.152__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 +1745 -135
- 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.152.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_postgres-3.1.152.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.152.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_postgres-3.1.134.dist-info → tencentcloud_sdk_python_postgres-3.1.152.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
|
|
|
@@ -4321,7 +4510,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
4321
4510
|
:type ActivityId: int
|
|
4322
4511
|
:param _ReadOnlyGroupId: <p>只读组ID。</p>
|
|
4323
4512
|
:type ReadOnlyGroupId: str
|
|
4324
|
-
:param _TagList: <p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p>
|
|
4513
|
+
:param _TagList: <p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p><p>当前字段未完整支持多个tag形式,不推荐使用,建议使用新字段Tags</p>
|
|
4325
4514
|
:type TagList: :class:`tencentcloud.postgres.v20170312.models.Tag`
|
|
4326
4515
|
:param _SecurityGroupIds: <p>实例所属安全组,该参数可以通过调用 <a href="https://cloud.tencent.com/document/api/215/15808">DescribeSecurityGroups</a> 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。</p>
|
|
4327
4516
|
:type SecurityGroupIds: list of str
|
|
@@ -4335,6 +4524,8 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
4335
4524
|
:type DedicatedClusterId: str
|
|
4336
4525
|
:param _DeletionProtection: <p>实例是否开启删除保护: true-开启删除保护;false-关闭删除保护。</p>
|
|
4337
4526
|
:type DeletionProtection: bool
|
|
4527
|
+
:param _Tags: <p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p>
|
|
4528
|
+
:type Tags: list of Tag
|
|
4338
4529
|
"""
|
|
4339
4530
|
self._Zone = None
|
|
4340
4531
|
self._MasterDBInstanceId = None
|
|
@@ -4358,6 +4549,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
4358
4549
|
self._DBVersion = None
|
|
4359
4550
|
self._DedicatedClusterId = None
|
|
4360
4551
|
self._DeletionProtection = None
|
|
4552
|
+
self._Tags = None
|
|
4361
4553
|
|
|
4362
4554
|
@property
|
|
4363
4555
|
def Zone(self):
|
|
@@ -4526,7 +4718,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
4526
4718
|
|
|
4527
4719
|
@property
|
|
4528
4720
|
def TagList(self):
|
|
4529
|
-
r"""<p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p>
|
|
4721
|
+
r"""<p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p><p>当前字段未完整支持多个tag形式,不推荐使用,建议使用新字段Tags</p>
|
|
4530
4722
|
:rtype: :class:`tencentcloud.postgres.v20170312.models.Tag`
|
|
4531
4723
|
"""
|
|
4532
4724
|
return self._TagList
|
|
@@ -4605,6 +4797,17 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
4605
4797
|
def DeletionProtection(self, DeletionProtection):
|
|
4606
4798
|
self._DeletionProtection = DeletionProtection
|
|
4607
4799
|
|
|
4800
|
+
@property
|
|
4801
|
+
def Tags(self):
|
|
4802
|
+
r"""<p>实例需要绑定的Tag信息,默认为空;可以通过调用 <a href="https://cloud.tencent.com/document/api/651/35316">DescribeTags</a> 返回值中的 Tags 字段来获取。</p>
|
|
4803
|
+
:rtype: list of Tag
|
|
4804
|
+
"""
|
|
4805
|
+
return self._Tags
|
|
4806
|
+
|
|
4807
|
+
@Tags.setter
|
|
4808
|
+
def Tags(self, Tags):
|
|
4809
|
+
self._Tags = Tags
|
|
4810
|
+
|
|
4608
4811
|
|
|
4609
4812
|
def _deserialize(self, params):
|
|
4610
4813
|
self._Zone = params.get("Zone")
|
|
@@ -4631,6 +4834,12 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
|
|
|
4631
4834
|
self._DBVersion = params.get("DBVersion")
|
|
4632
4835
|
self._DedicatedClusterId = params.get("DedicatedClusterId")
|
|
4633
4836
|
self._DeletionProtection = params.get("DeletionProtection")
|
|
4837
|
+
if params.get("Tags") is not None:
|
|
4838
|
+
self._Tags = []
|
|
4839
|
+
for item in params.get("Tags"):
|
|
4840
|
+
obj = Tag()
|
|
4841
|
+
obj._deserialize(item)
|
|
4842
|
+
self._Tags.append(obj)
|
|
4634
4843
|
memeber_set = set(params.keys())
|
|
4635
4844
|
for name, value in vars(self).items():
|
|
4636
4845
|
property_name = name[1:]
|
|
@@ -10825,32 +11034,47 @@ class DescribeDBInstancesResponse(AbstractModel):
|
|
|
10825
11034
|
self._RequestId = params.get("RequestId")
|
|
10826
11035
|
|
|
10827
11036
|
|
|
10828
|
-
class
|
|
10829
|
-
r"""
|
|
11037
|
+
class DescribeDBProxyRequest(AbstractModel):
|
|
11038
|
+
r"""DescribeDBProxy请求参数结构体
|
|
10830
11039
|
|
|
10831
11040
|
"""
|
|
10832
11041
|
|
|
10833
11042
|
def __init__(self):
|
|
10834
11043
|
r"""
|
|
10835
|
-
:param
|
|
10836
|
-
:type
|
|
11044
|
+
:param _DBInstanceId: <p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
11045
|
+
:type DBInstanceId: str
|
|
11046
|
+
:param _ProxyGroupId: <p>Proxy 实例 ID,格式形如:proxy-xxxxxxxx;不传则查询该实例下全部 Proxy</p>
|
|
11047
|
+
:type ProxyGroupId: str
|
|
10837
11048
|
"""
|
|
10838
|
-
self.
|
|
11049
|
+
self._DBInstanceId = None
|
|
11050
|
+
self._ProxyGroupId = None
|
|
10839
11051
|
|
|
10840
11052
|
@property
|
|
10841
|
-
def
|
|
10842
|
-
r"""<p
|
|
11053
|
+
def DBInstanceId(self):
|
|
11054
|
+
r"""<p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
10843
11055
|
:rtype: str
|
|
10844
11056
|
"""
|
|
10845
|
-
return self.
|
|
11057
|
+
return self._DBInstanceId
|
|
10846
11058
|
|
|
10847
|
-
@
|
|
10848
|
-
def
|
|
10849
|
-
self.
|
|
11059
|
+
@DBInstanceId.setter
|
|
11060
|
+
def DBInstanceId(self, DBInstanceId):
|
|
11061
|
+
self._DBInstanceId = DBInstanceId
|
|
11062
|
+
|
|
11063
|
+
@property
|
|
11064
|
+
def ProxyGroupId(self):
|
|
11065
|
+
r"""<p>Proxy 实例 ID,格式形如:proxy-xxxxxxxx;不传则查询该实例下全部 Proxy</p>
|
|
11066
|
+
:rtype: str
|
|
11067
|
+
"""
|
|
11068
|
+
return self._ProxyGroupId
|
|
11069
|
+
|
|
11070
|
+
@ProxyGroupId.setter
|
|
11071
|
+
def ProxyGroupId(self, ProxyGroupId):
|
|
11072
|
+
self._ProxyGroupId = ProxyGroupId
|
|
10850
11073
|
|
|
10851
11074
|
|
|
10852
11075
|
def _deserialize(self, params):
|
|
10853
|
-
self.
|
|
11076
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
11077
|
+
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
10854
11078
|
memeber_set = set(params.keys())
|
|
10855
11079
|
for name, value in vars(self).items():
|
|
10856
11080
|
property_name = name[1:]
|
|
@@ -10861,31 +11085,45 @@ class DescribeDBVersionsRequest(AbstractModel):
|
|
|
10861
11085
|
|
|
10862
11086
|
|
|
10863
11087
|
|
|
10864
|
-
class
|
|
10865
|
-
r"""
|
|
11088
|
+
class DescribeDBProxyResponse(AbstractModel):
|
|
11089
|
+
r"""DescribeDBProxy返回参数结构体
|
|
10866
11090
|
|
|
10867
11091
|
"""
|
|
10868
11092
|
|
|
10869
11093
|
def __init__(self):
|
|
10870
11094
|
r"""
|
|
10871
|
-
:param
|
|
10872
|
-
:type
|
|
11095
|
+
:param _Count: <p>Proxy 实例数量。</p>
|
|
11096
|
+
:type Count: int
|
|
11097
|
+
:param _ProxyInfos: <p>Proxy 实例详情列表。</p>
|
|
11098
|
+
:type ProxyInfos: list of ProxyGroupInfo
|
|
10873
11099
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10874
11100
|
:type RequestId: str
|
|
10875
11101
|
"""
|
|
10876
|
-
self.
|
|
11102
|
+
self._Count = None
|
|
11103
|
+
self._ProxyInfos = None
|
|
10877
11104
|
self._RequestId = None
|
|
10878
11105
|
|
|
10879
11106
|
@property
|
|
10880
|
-
def
|
|
10881
|
-
r"""<p
|
|
10882
|
-
:rtype:
|
|
11107
|
+
def Count(self):
|
|
11108
|
+
r"""<p>Proxy 实例数量。</p>
|
|
11109
|
+
:rtype: int
|
|
10883
11110
|
"""
|
|
10884
|
-
return self.
|
|
11111
|
+
return self._Count
|
|
10885
11112
|
|
|
10886
|
-
@
|
|
10887
|
-
def
|
|
10888
|
-
self.
|
|
11113
|
+
@Count.setter
|
|
11114
|
+
def Count(self, Count):
|
|
11115
|
+
self._Count = Count
|
|
11116
|
+
|
|
11117
|
+
@property
|
|
11118
|
+
def ProxyInfos(self):
|
|
11119
|
+
r"""<p>Proxy 实例详情列表。</p>
|
|
11120
|
+
:rtype: list of ProxyGroupInfo
|
|
11121
|
+
"""
|
|
11122
|
+
return self._ProxyInfos
|
|
11123
|
+
|
|
11124
|
+
@ProxyInfos.setter
|
|
11125
|
+
def ProxyInfos(self, ProxyInfos):
|
|
11126
|
+
self._ProxyInfos = ProxyInfos
|
|
10889
11127
|
|
|
10890
11128
|
@property
|
|
10891
11129
|
def RequestId(self):
|
|
@@ -10900,42 +11138,31 @@ class DescribeDBVersionsResponse(AbstractModel):
|
|
|
10900
11138
|
|
|
10901
11139
|
|
|
10902
11140
|
def _deserialize(self, params):
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
11141
|
+
self._Count = params.get("Count")
|
|
11142
|
+
if params.get("ProxyInfos") is not None:
|
|
11143
|
+
self._ProxyInfos = []
|
|
11144
|
+
for item in params.get("ProxyInfos"):
|
|
11145
|
+
obj = ProxyGroupInfo()
|
|
10907
11146
|
obj._deserialize(item)
|
|
10908
|
-
self.
|
|
11147
|
+
self._ProxyInfos.append(obj)
|
|
10909
11148
|
self._RequestId = params.get("RequestId")
|
|
10910
11149
|
|
|
10911
11150
|
|
|
10912
|
-
class
|
|
10913
|
-
r"""
|
|
11151
|
+
class DescribeDBProxySpecsRequest(AbstractModel):
|
|
11152
|
+
r"""DescribeDBProxySpecs请求参数结构体
|
|
10914
11153
|
|
|
10915
11154
|
"""
|
|
10916
11155
|
|
|
10917
11156
|
def __init__(self):
|
|
10918
11157
|
r"""
|
|
10919
|
-
:param _DBInstanceId:
|
|
11158
|
+
:param _DBInstanceId: <p>实例ID。传入时返回该实例的 Proxy 支持情况和可用区</p>
|
|
10920
11159
|
: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
11160
|
"""
|
|
10930
11161
|
self._DBInstanceId = None
|
|
10931
|
-
self._StartTime = None
|
|
10932
|
-
self._EndTime = None
|
|
10933
|
-
self._Offset = None
|
|
10934
|
-
self._Limit = None
|
|
10935
11162
|
|
|
10936
11163
|
@property
|
|
10937
11164
|
def DBInstanceId(self):
|
|
10938
|
-
r"""
|
|
11165
|
+
r"""<p>实例ID。传入时返回该实例的 Proxy 支持情况和可用区</p>
|
|
10939
11166
|
:rtype: str
|
|
10940
11167
|
"""
|
|
10941
11168
|
return self._DBInstanceId
|
|
@@ -10944,38 +11171,248 @@ class DescribeDBXlogsRequest(AbstractModel):
|
|
|
10944
11171
|
def DBInstanceId(self, DBInstanceId):
|
|
10945
11172
|
self._DBInstanceId = DBInstanceId
|
|
10946
11173
|
|
|
10947
|
-
@property
|
|
10948
|
-
def StartTime(self):
|
|
10949
|
-
r"""查询开始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前
|
|
10950
|
-
:rtype: str
|
|
10951
|
-
"""
|
|
10952
|
-
return self._StartTime
|
|
10953
11174
|
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
11175
|
+
def _deserialize(self, params):
|
|
11176
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
11177
|
+
memeber_set = set(params.keys())
|
|
11178
|
+
for name, value in vars(self).items():
|
|
11179
|
+
property_name = name[1:]
|
|
11180
|
+
if property_name in memeber_set:
|
|
11181
|
+
memeber_set.remove(property_name)
|
|
11182
|
+
if len(memeber_set) > 0:
|
|
11183
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11184
|
+
|
|
11185
|
+
|
|
11186
|
+
|
|
11187
|
+
class DescribeDBProxySpecsResponse(AbstractModel):
|
|
11188
|
+
r"""DescribeDBProxySpecs返回参数结构体
|
|
11189
|
+
|
|
11190
|
+
"""
|
|
11191
|
+
|
|
11192
|
+
def __init__(self):
|
|
11193
|
+
r"""
|
|
11194
|
+
:param _SpecSet: <p>规格列表</p>
|
|
11195
|
+
:type SpecSet: list of ProxySpecItem
|
|
11196
|
+
:param _SupportProxy: <p>该实例是否支持开通 Proxy(仅传 DBInstanceId 时返回)</p>
|
|
11197
|
+
:type SupportProxy: bool
|
|
11198
|
+
:param _AvailableZones: <p>可部署可用区列表(仅传 DBInstanceId 时返回)</p>
|
|
11199
|
+
:type AvailableZones: list of str
|
|
11200
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11201
|
+
:type RequestId: str
|
|
11202
|
+
"""
|
|
11203
|
+
self._SpecSet = None
|
|
11204
|
+
self._SupportProxy = None
|
|
11205
|
+
self._AvailableZones = None
|
|
11206
|
+
self._RequestId = None
|
|
10957
11207
|
|
|
10958
11208
|
@property
|
|
10959
|
-
def
|
|
10960
|
-
r"""
|
|
10961
|
-
:rtype:
|
|
11209
|
+
def SpecSet(self):
|
|
11210
|
+
r"""<p>规格列表</p>
|
|
11211
|
+
:rtype: list of ProxySpecItem
|
|
10962
11212
|
"""
|
|
10963
|
-
return self.
|
|
11213
|
+
return self._SpecSet
|
|
10964
11214
|
|
|
10965
|
-
@
|
|
10966
|
-
def
|
|
10967
|
-
self.
|
|
11215
|
+
@SpecSet.setter
|
|
11216
|
+
def SpecSet(self, SpecSet):
|
|
11217
|
+
self._SpecSet = SpecSet
|
|
10968
11218
|
|
|
10969
11219
|
@property
|
|
10970
|
-
def
|
|
10971
|
-
r"""
|
|
10972
|
-
:rtype:
|
|
11220
|
+
def SupportProxy(self):
|
|
11221
|
+
r"""<p>该实例是否支持开通 Proxy(仅传 DBInstanceId 时返回)</p>
|
|
11222
|
+
:rtype: bool
|
|
10973
11223
|
"""
|
|
10974
|
-
return self.
|
|
11224
|
+
return self._SupportProxy
|
|
10975
11225
|
|
|
10976
|
-
@
|
|
10977
|
-
def
|
|
10978
|
-
self.
|
|
11226
|
+
@SupportProxy.setter
|
|
11227
|
+
def SupportProxy(self, SupportProxy):
|
|
11228
|
+
self._SupportProxy = SupportProxy
|
|
11229
|
+
|
|
11230
|
+
@property
|
|
11231
|
+
def AvailableZones(self):
|
|
11232
|
+
r"""<p>可部署可用区列表(仅传 DBInstanceId 时返回)</p>
|
|
11233
|
+
:rtype: list of str
|
|
11234
|
+
"""
|
|
11235
|
+
return self._AvailableZones
|
|
11236
|
+
|
|
11237
|
+
@AvailableZones.setter
|
|
11238
|
+
def AvailableZones(self, AvailableZones):
|
|
11239
|
+
self._AvailableZones = AvailableZones
|
|
11240
|
+
|
|
11241
|
+
@property
|
|
11242
|
+
def RequestId(self):
|
|
11243
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11244
|
+
:rtype: str
|
|
11245
|
+
"""
|
|
11246
|
+
return self._RequestId
|
|
11247
|
+
|
|
11248
|
+
@RequestId.setter
|
|
11249
|
+
def RequestId(self, RequestId):
|
|
11250
|
+
self._RequestId = RequestId
|
|
11251
|
+
|
|
11252
|
+
|
|
11253
|
+
def _deserialize(self, params):
|
|
11254
|
+
if params.get("SpecSet") is not None:
|
|
11255
|
+
self._SpecSet = []
|
|
11256
|
+
for item in params.get("SpecSet"):
|
|
11257
|
+
obj = ProxySpecItem()
|
|
11258
|
+
obj._deserialize(item)
|
|
11259
|
+
self._SpecSet.append(obj)
|
|
11260
|
+
self._SupportProxy = params.get("SupportProxy")
|
|
11261
|
+
self._AvailableZones = params.get("AvailableZones")
|
|
11262
|
+
self._RequestId = params.get("RequestId")
|
|
11263
|
+
|
|
11264
|
+
|
|
11265
|
+
class DescribeDBVersionsRequest(AbstractModel):
|
|
11266
|
+
r"""DescribeDBVersions请求参数结构体
|
|
11267
|
+
|
|
11268
|
+
"""
|
|
11269
|
+
|
|
11270
|
+
def __init__(self):
|
|
11271
|
+
r"""
|
|
11272
|
+
: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>
|
|
11273
|
+
:type StorageType: str
|
|
11274
|
+
"""
|
|
11275
|
+
self._StorageType = None
|
|
11276
|
+
|
|
11277
|
+
@property
|
|
11278
|
+
def StorageType(self):
|
|
11279
|
+
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>
|
|
11280
|
+
:rtype: str
|
|
11281
|
+
"""
|
|
11282
|
+
return self._StorageType
|
|
11283
|
+
|
|
11284
|
+
@StorageType.setter
|
|
11285
|
+
def StorageType(self, StorageType):
|
|
11286
|
+
self._StorageType = StorageType
|
|
11287
|
+
|
|
11288
|
+
|
|
11289
|
+
def _deserialize(self, params):
|
|
11290
|
+
self._StorageType = params.get("StorageType")
|
|
11291
|
+
memeber_set = set(params.keys())
|
|
11292
|
+
for name, value in vars(self).items():
|
|
11293
|
+
property_name = name[1:]
|
|
11294
|
+
if property_name in memeber_set:
|
|
11295
|
+
memeber_set.remove(property_name)
|
|
11296
|
+
if len(memeber_set) > 0:
|
|
11297
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11298
|
+
|
|
11299
|
+
|
|
11300
|
+
|
|
11301
|
+
class DescribeDBVersionsResponse(AbstractModel):
|
|
11302
|
+
r"""DescribeDBVersions返回参数结构体
|
|
11303
|
+
|
|
11304
|
+
"""
|
|
11305
|
+
|
|
11306
|
+
def __init__(self):
|
|
11307
|
+
r"""
|
|
11308
|
+
:param _VersionSet: <p>数据库版本号信息列表</p>
|
|
11309
|
+
:type VersionSet: list of Version
|
|
11310
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11311
|
+
:type RequestId: str
|
|
11312
|
+
"""
|
|
11313
|
+
self._VersionSet = None
|
|
11314
|
+
self._RequestId = None
|
|
11315
|
+
|
|
11316
|
+
@property
|
|
11317
|
+
def VersionSet(self):
|
|
11318
|
+
r"""<p>数据库版本号信息列表</p>
|
|
11319
|
+
:rtype: list of Version
|
|
11320
|
+
"""
|
|
11321
|
+
return self._VersionSet
|
|
11322
|
+
|
|
11323
|
+
@VersionSet.setter
|
|
11324
|
+
def VersionSet(self, VersionSet):
|
|
11325
|
+
self._VersionSet = VersionSet
|
|
11326
|
+
|
|
11327
|
+
@property
|
|
11328
|
+
def RequestId(self):
|
|
11329
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11330
|
+
:rtype: str
|
|
11331
|
+
"""
|
|
11332
|
+
return self._RequestId
|
|
11333
|
+
|
|
11334
|
+
@RequestId.setter
|
|
11335
|
+
def RequestId(self, RequestId):
|
|
11336
|
+
self._RequestId = RequestId
|
|
11337
|
+
|
|
11338
|
+
|
|
11339
|
+
def _deserialize(self, params):
|
|
11340
|
+
if params.get("VersionSet") is not None:
|
|
11341
|
+
self._VersionSet = []
|
|
11342
|
+
for item in params.get("VersionSet"):
|
|
11343
|
+
obj = Version()
|
|
11344
|
+
obj._deserialize(item)
|
|
11345
|
+
self._VersionSet.append(obj)
|
|
11346
|
+
self._RequestId = params.get("RequestId")
|
|
11347
|
+
|
|
11348
|
+
|
|
11349
|
+
class DescribeDBXlogsRequest(AbstractModel):
|
|
11350
|
+
r"""DescribeDBXlogs请求参数结构体
|
|
11351
|
+
|
|
11352
|
+
"""
|
|
11353
|
+
|
|
11354
|
+
def __init__(self):
|
|
11355
|
+
r"""
|
|
11356
|
+
:param _DBInstanceId: 实例ID,形如postgres-4wdeb0zv。
|
|
11357
|
+
:type DBInstanceId: str
|
|
11358
|
+
:param _StartTime: 查询开始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前
|
|
11359
|
+
:type StartTime: str
|
|
11360
|
+
:param _EndTime: 查询结束时间,形如2018-06-10 17:06:38
|
|
11361
|
+
:type EndTime: str
|
|
11362
|
+
:param _Offset: 分页返回,表示返回第几页的条目。从第0页开始计数。
|
|
11363
|
+
:type Offset: int
|
|
11364
|
+
:param _Limit: 分页返回,表示每页有多少条目。取值为1-100。
|
|
11365
|
+
:type Limit: int
|
|
11366
|
+
"""
|
|
11367
|
+
self._DBInstanceId = None
|
|
11368
|
+
self._StartTime = None
|
|
11369
|
+
self._EndTime = None
|
|
11370
|
+
self._Offset = None
|
|
11371
|
+
self._Limit = None
|
|
11372
|
+
|
|
11373
|
+
@property
|
|
11374
|
+
def DBInstanceId(self):
|
|
11375
|
+
r"""实例ID,形如postgres-4wdeb0zv。
|
|
11376
|
+
:rtype: str
|
|
11377
|
+
"""
|
|
11378
|
+
return self._DBInstanceId
|
|
11379
|
+
|
|
11380
|
+
@DBInstanceId.setter
|
|
11381
|
+
def DBInstanceId(self, DBInstanceId):
|
|
11382
|
+
self._DBInstanceId = DBInstanceId
|
|
11383
|
+
|
|
11384
|
+
@property
|
|
11385
|
+
def StartTime(self):
|
|
11386
|
+
r"""查询开始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前
|
|
11387
|
+
:rtype: str
|
|
11388
|
+
"""
|
|
11389
|
+
return self._StartTime
|
|
11390
|
+
|
|
11391
|
+
@StartTime.setter
|
|
11392
|
+
def StartTime(self, StartTime):
|
|
11393
|
+
self._StartTime = StartTime
|
|
11394
|
+
|
|
11395
|
+
@property
|
|
11396
|
+
def EndTime(self):
|
|
11397
|
+
r"""查询结束时间,形如2018-06-10 17:06:38
|
|
11398
|
+
:rtype: str
|
|
11399
|
+
"""
|
|
11400
|
+
return self._EndTime
|
|
11401
|
+
|
|
11402
|
+
@EndTime.setter
|
|
11403
|
+
def EndTime(self, EndTime):
|
|
11404
|
+
self._EndTime = EndTime
|
|
11405
|
+
|
|
11406
|
+
@property
|
|
11407
|
+
def Offset(self):
|
|
11408
|
+
r"""分页返回,表示返回第几页的条目。从第0页开始计数。
|
|
11409
|
+
:rtype: int
|
|
11410
|
+
"""
|
|
11411
|
+
return self._Offset
|
|
11412
|
+
|
|
11413
|
+
@Offset.setter
|
|
11414
|
+
def Offset(self, Offset):
|
|
11415
|
+
self._Offset = Offset
|
|
10979
11416
|
|
|
10980
11417
|
@property
|
|
10981
11418
|
def Limit(self):
|
|
@@ -13345,21 +13782,21 @@ class DescribeTasksRequest(AbstractModel):
|
|
|
13345
13782
|
|
|
13346
13783
|
def __init__(self):
|
|
13347
13784
|
r"""
|
|
13348
|
-
:param _TaskId:
|
|
13785
|
+
:param _TaskId: <p>按照任务ID进行查询。其余云API中返回的FlowId和TaskId等价。</p>
|
|
13349
13786
|
:type TaskId: int
|
|
13350
|
-
:param _DBInstanceId:
|
|
13787
|
+
:param _DBInstanceId: <p>按照数据库实例ID进行查询。</p>
|
|
13351
13788
|
:type DBInstanceId: str
|
|
13352
|
-
:param _MinStartTime:
|
|
13789
|
+
:param _MinStartTime: <p>任务的最早开始时间,形如2024-08-23 00:00:00,默认只展示180天内的数据。</p>
|
|
13353
13790
|
:type MinStartTime: str
|
|
13354
|
-
:param _MaxStartTime:
|
|
13791
|
+
:param _MaxStartTime: <p>任务的最晚开始时间,形如2024-08-23 00:00:00,默认为当前时间。</p>
|
|
13355
13792
|
:type MaxStartTime: str
|
|
13356
|
-
:param _Limit:
|
|
13793
|
+
:param _Limit: <p>每页显示数量,取值范围为1-100,默认为返回20条。</p>
|
|
13357
13794
|
:type Limit: int
|
|
13358
|
-
:param _Offset:
|
|
13795
|
+
:param _Offset: <p>数据偏移量,从0开始。</p>
|
|
13359
13796
|
:type Offset: int
|
|
13360
|
-
:param _OrderBy:
|
|
13797
|
+
:param _OrderBy: <p>排序字段,支持StartTime,EndTime,默认为StartTime。</p>
|
|
13361
13798
|
:type OrderBy: str
|
|
13362
|
-
:param _OrderByType:
|
|
13799
|
+
:param _OrderByType: <p>排序方式,包括升序:asc,降序:desc,默认为desc。</p>
|
|
13363
13800
|
:type OrderByType: str
|
|
13364
13801
|
"""
|
|
13365
13802
|
self._TaskId = None
|
|
@@ -13373,7 +13810,7 @@ class DescribeTasksRequest(AbstractModel):
|
|
|
13373
13810
|
|
|
13374
13811
|
@property
|
|
13375
13812
|
def TaskId(self):
|
|
13376
|
-
r"""
|
|
13813
|
+
r"""<p>按照任务ID进行查询。其余云API中返回的FlowId和TaskId等价。</p>
|
|
13377
13814
|
:rtype: int
|
|
13378
13815
|
"""
|
|
13379
13816
|
return self._TaskId
|
|
@@ -13384,7 +13821,7 @@ class DescribeTasksRequest(AbstractModel):
|
|
|
13384
13821
|
|
|
13385
13822
|
@property
|
|
13386
13823
|
def DBInstanceId(self):
|
|
13387
|
-
r"""
|
|
13824
|
+
r"""<p>按照数据库实例ID进行查询。</p>
|
|
13388
13825
|
:rtype: str
|
|
13389
13826
|
"""
|
|
13390
13827
|
return self._DBInstanceId
|
|
@@ -13395,7 +13832,7 @@ class DescribeTasksRequest(AbstractModel):
|
|
|
13395
13832
|
|
|
13396
13833
|
@property
|
|
13397
13834
|
def MinStartTime(self):
|
|
13398
|
-
r"""
|
|
13835
|
+
r"""<p>任务的最早开始时间,形如2024-08-23 00:00:00,默认只展示180天内的数据。</p>
|
|
13399
13836
|
:rtype: str
|
|
13400
13837
|
"""
|
|
13401
13838
|
return self._MinStartTime
|
|
@@ -13406,7 +13843,7 @@ class DescribeTasksRequest(AbstractModel):
|
|
|
13406
13843
|
|
|
13407
13844
|
@property
|
|
13408
13845
|
def MaxStartTime(self):
|
|
13409
|
-
r"""
|
|
13846
|
+
r"""<p>任务的最晚开始时间,形如2024-08-23 00:00:00,默认为当前时间。</p>
|
|
13410
13847
|
:rtype: str
|
|
13411
13848
|
"""
|
|
13412
13849
|
return self._MaxStartTime
|
|
@@ -13417,7 +13854,7 @@ class DescribeTasksRequest(AbstractModel):
|
|
|
13417
13854
|
|
|
13418
13855
|
@property
|
|
13419
13856
|
def Limit(self):
|
|
13420
|
-
r"""
|
|
13857
|
+
r"""<p>每页显示数量,取值范围为1-100,默认为返回20条。</p>
|
|
13421
13858
|
:rtype: int
|
|
13422
13859
|
"""
|
|
13423
13860
|
return self._Limit
|
|
@@ -13428,7 +13865,7 @@ class DescribeTasksRequest(AbstractModel):
|
|
|
13428
13865
|
|
|
13429
13866
|
@property
|
|
13430
13867
|
def Offset(self):
|
|
13431
|
-
r"""
|
|
13868
|
+
r"""<p>数据偏移量,从0开始。</p>
|
|
13432
13869
|
:rtype: int
|
|
13433
13870
|
"""
|
|
13434
13871
|
return self._Offset
|
|
@@ -13439,7 +13876,7 @@ class DescribeTasksRequest(AbstractModel):
|
|
|
13439
13876
|
|
|
13440
13877
|
@property
|
|
13441
13878
|
def OrderBy(self):
|
|
13442
|
-
r"""
|
|
13879
|
+
r"""<p>排序字段,支持StartTime,EndTime,默认为StartTime。</p>
|
|
13443
13880
|
:rtype: str
|
|
13444
13881
|
"""
|
|
13445
13882
|
return self._OrderBy
|
|
@@ -13450,7 +13887,7 @@ class DescribeTasksRequest(AbstractModel):
|
|
|
13450
13887
|
|
|
13451
13888
|
@property
|
|
13452
13889
|
def OrderByType(self):
|
|
13453
|
-
r"""
|
|
13890
|
+
r"""<p>排序方式,包括升序:asc,降序:desc,默认为desc。</p>
|
|
13454
13891
|
:rtype: str
|
|
13455
13892
|
"""
|
|
13456
13893
|
return self._OrderByType
|
|
@@ -13486,9 +13923,9 @@ class DescribeTasksResponse(AbstractModel):
|
|
|
13486
13923
|
|
|
13487
13924
|
def __init__(self):
|
|
13488
13925
|
r"""
|
|
13489
|
-
:param _TotalCount:
|
|
13926
|
+
:param _TotalCount: <p>查询到的任务数量</p>
|
|
13490
13927
|
:type TotalCount: int
|
|
13491
|
-
:param _TaskSet:
|
|
13928
|
+
:param _TaskSet: <p>任务信息列表</p>
|
|
13492
13929
|
:type TaskSet: list of TaskSet
|
|
13493
13930
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
13494
13931
|
:type RequestId: str
|
|
@@ -13499,7 +13936,7 @@ class DescribeTasksResponse(AbstractModel):
|
|
|
13499
13936
|
|
|
13500
13937
|
@property
|
|
13501
13938
|
def TotalCount(self):
|
|
13502
|
-
r"""
|
|
13939
|
+
r"""<p>查询到的任务数量</p>
|
|
13503
13940
|
:rtype: int
|
|
13504
13941
|
"""
|
|
13505
13942
|
return self._TotalCount
|
|
@@ -13510,7 +13947,7 @@ class DescribeTasksResponse(AbstractModel):
|
|
|
13510
13947
|
|
|
13511
13948
|
@property
|
|
13512
13949
|
def TaskSet(self):
|
|
13513
|
-
r"""
|
|
13950
|
+
r"""<p>任务信息列表</p>
|
|
13514
13951
|
:rtype: list of TaskSet
|
|
13515
13952
|
"""
|
|
13516
13953
|
return self._TaskSet
|
|
@@ -13705,6 +14142,85 @@ class DestroyDBInstanceResponse(AbstractModel):
|
|
|
13705
14142
|
self._RequestId = params.get("RequestId")
|
|
13706
14143
|
|
|
13707
14144
|
|
|
14145
|
+
class DestroyDBProxyRequest(AbstractModel):
|
|
14146
|
+
r"""DestroyDBProxy请求参数结构体
|
|
14147
|
+
|
|
14148
|
+
"""
|
|
14149
|
+
|
|
14150
|
+
def __init__(self):
|
|
14151
|
+
r"""
|
|
14152
|
+
:param _DBInstanceId: <p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
14153
|
+
:type DBInstanceId: str
|
|
14154
|
+
:param _ProxyGroupId: <p>Proxy 实例 ID,格式形如:proxy-xxxxxxxx;不传时若实例下仅有一个 Proxy 则销毁该 Proxy,存在多个 Proxy 必须显式传入</p>
|
|
14155
|
+
:type ProxyGroupId: str
|
|
14156
|
+
"""
|
|
14157
|
+
self._DBInstanceId = None
|
|
14158
|
+
self._ProxyGroupId = None
|
|
14159
|
+
|
|
14160
|
+
@property
|
|
14161
|
+
def DBInstanceId(self):
|
|
14162
|
+
r"""<p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
14163
|
+
:rtype: str
|
|
14164
|
+
"""
|
|
14165
|
+
return self._DBInstanceId
|
|
14166
|
+
|
|
14167
|
+
@DBInstanceId.setter
|
|
14168
|
+
def DBInstanceId(self, DBInstanceId):
|
|
14169
|
+
self._DBInstanceId = DBInstanceId
|
|
14170
|
+
|
|
14171
|
+
@property
|
|
14172
|
+
def ProxyGroupId(self):
|
|
14173
|
+
r"""<p>Proxy 实例 ID,格式形如:proxy-xxxxxxxx;不传时若实例下仅有一个 Proxy 则销毁该 Proxy,存在多个 Proxy 必须显式传入</p>
|
|
14174
|
+
:rtype: str
|
|
14175
|
+
"""
|
|
14176
|
+
return self._ProxyGroupId
|
|
14177
|
+
|
|
14178
|
+
@ProxyGroupId.setter
|
|
14179
|
+
def ProxyGroupId(self, ProxyGroupId):
|
|
14180
|
+
self._ProxyGroupId = ProxyGroupId
|
|
14181
|
+
|
|
14182
|
+
|
|
14183
|
+
def _deserialize(self, params):
|
|
14184
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
14185
|
+
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
14186
|
+
memeber_set = set(params.keys())
|
|
14187
|
+
for name, value in vars(self).items():
|
|
14188
|
+
property_name = name[1:]
|
|
14189
|
+
if property_name in memeber_set:
|
|
14190
|
+
memeber_set.remove(property_name)
|
|
14191
|
+
if len(memeber_set) > 0:
|
|
14192
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14193
|
+
|
|
14194
|
+
|
|
14195
|
+
|
|
14196
|
+
class DestroyDBProxyResponse(AbstractModel):
|
|
14197
|
+
r"""DestroyDBProxy返回参数结构体
|
|
14198
|
+
|
|
14199
|
+
"""
|
|
14200
|
+
|
|
14201
|
+
def __init__(self):
|
|
14202
|
+
r"""
|
|
14203
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14204
|
+
:type RequestId: str
|
|
14205
|
+
"""
|
|
14206
|
+
self._RequestId = None
|
|
14207
|
+
|
|
14208
|
+
@property
|
|
14209
|
+
def RequestId(self):
|
|
14210
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14211
|
+
:rtype: str
|
|
14212
|
+
"""
|
|
14213
|
+
return self._RequestId
|
|
14214
|
+
|
|
14215
|
+
@RequestId.setter
|
|
14216
|
+
def RequestId(self, RequestId):
|
|
14217
|
+
self._RequestId = RequestId
|
|
14218
|
+
|
|
14219
|
+
|
|
14220
|
+
def _deserialize(self, params):
|
|
14221
|
+
self._RequestId = params.get("RequestId")
|
|
14222
|
+
|
|
14223
|
+
|
|
13708
14224
|
class Detail(AbstractModel):
|
|
13709
14225
|
r"""慢SQL 统计分析接口返回详情
|
|
13710
14226
|
|
|
@@ -17423,33 +17939,28 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
|
17423
17939
|
|
|
17424
17940
|
def __init__(self):
|
|
17425
17941
|
r"""
|
|
17426
|
-
:param _DBInstanceId:
|
|
17942
|
+
:param _DBInstanceId: <p>实例ID,形如:postgres-6bwgamo3。可通过<a href="https://cloud.tencent.com/document/api/409/16773">DescribeDBInstances</a>接口获取</p>
|
|
17427
17943
|
:type DBInstanceId: str
|
|
17428
|
-
:param _Memory:
|
|
17944
|
+
:param _Memory: <p>修改后的实例内存大小,单位GB。</p>
|
|
17429
17945
|
:type Memory: int
|
|
17430
|
-
:param _Storage:
|
|
17946
|
+
:param _Storage: <p>修改后的实例磁盘大小,单位GB。该参数的设置步长为10。</p>
|
|
17431
17947
|
:type Storage: int
|
|
17432
|
-
:param _AutoVoucher:
|
|
17433
|
-
<li>0:否</li>
|
|
17434
|
-
<li>1:是</li>
|
|
17435
|
-
默认值:0
|
|
17948
|
+
:param _AutoVoucher: <p>是否自动使用代金券:</p><li>0:否</li><li>1:是</li>默认值:0
|
|
17436
17949
|
:type AutoVoucher: int
|
|
17437
|
-
:param _VoucherIds:
|
|
17950
|
+
:param _VoucherIds: <p>代金券ID列表,目前仅支持指定一张代金券。</p>
|
|
17438
17951
|
:type VoucherIds: list of str
|
|
17439
|
-
:param _ActivityId:
|
|
17952
|
+
:param _ActivityId: <p>活动ID。</p>
|
|
17440
17953
|
:type ActivityId: int
|
|
17441
|
-
:param _SwitchTag:
|
|
17442
|
-
<li>0:立即切换 </li>
|
|
17443
|
-
<li>1:指定时间切换</li>
|
|
17444
|
-
<li>2:维护时间窗口内</li>切换
|
|
17445
|
-
默认值:0
|
|
17954
|
+
:param _SwitchTag: <p>指定实例配置完成变更后的切换时间。</p><li>0:立即切换 </li><li>1:指定时间切换</li><li>2:维护时间窗口内</li>切换默认值:0
|
|
17446
17955
|
:type SwitchTag: int
|
|
17447
|
-
:param _SwitchStartTime:
|
|
17956
|
+
:param _SwitchStartTime: <p>切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。</p>
|
|
17448
17957
|
:type SwitchStartTime: str
|
|
17449
|
-
:param _SwitchEndTime:
|
|
17958
|
+
:param _SwitchEndTime: <p>切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。</p>
|
|
17450
17959
|
:type SwitchEndTime: str
|
|
17451
|
-
:param _Cpu:
|
|
17960
|
+
:param _Cpu: <p>修改后的实例CPU大小,单位Core。不填写该参数时,默认根据Memory确定Cpu大小。如Memory为2,支持的规格有1核2GB,则不传入Cpu时,Cpu默认为1。</p>
|
|
17452
17961
|
:type Cpu: int
|
|
17962
|
+
:param _SyncModifyParams: <p>变配时同步修改的参数列表</p>
|
|
17963
|
+
:type SyncModifyParams: list of ParamEntry
|
|
17453
17964
|
"""
|
|
17454
17965
|
self._DBInstanceId = None
|
|
17455
17966
|
self._Memory = None
|
|
@@ -17461,10 +17972,11 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
|
17461
17972
|
self._SwitchStartTime = None
|
|
17462
17973
|
self._SwitchEndTime = None
|
|
17463
17974
|
self._Cpu = None
|
|
17975
|
+
self._SyncModifyParams = None
|
|
17464
17976
|
|
|
17465
17977
|
@property
|
|
17466
17978
|
def DBInstanceId(self):
|
|
17467
|
-
r"""
|
|
17979
|
+
r"""<p>实例ID,形如:postgres-6bwgamo3。可通过<a href="https://cloud.tencent.com/document/api/409/16773">DescribeDBInstances</a>接口获取</p>
|
|
17468
17980
|
:rtype: str
|
|
17469
17981
|
"""
|
|
17470
17982
|
return self._DBInstanceId
|
|
@@ -17475,7 +17987,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
|
17475
17987
|
|
|
17476
17988
|
@property
|
|
17477
17989
|
def Memory(self):
|
|
17478
|
-
r"""
|
|
17990
|
+
r"""<p>修改后的实例内存大小,单位GB。</p>
|
|
17479
17991
|
:rtype: int
|
|
17480
17992
|
"""
|
|
17481
17993
|
return self._Memory
|
|
@@ -17486,7 +17998,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
|
17486
17998
|
|
|
17487
17999
|
@property
|
|
17488
18000
|
def Storage(self):
|
|
17489
|
-
r"""
|
|
18001
|
+
r"""<p>修改后的实例磁盘大小,单位GB。该参数的设置步长为10。</p>
|
|
17490
18002
|
:rtype: int
|
|
17491
18003
|
"""
|
|
17492
18004
|
return self._Storage
|
|
@@ -17497,10 +18009,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
|
17497
18009
|
|
|
17498
18010
|
@property
|
|
17499
18011
|
def AutoVoucher(self):
|
|
17500
|
-
r"""
|
|
17501
|
-
<li>0:否</li>
|
|
17502
|
-
<li>1:是</li>
|
|
17503
|
-
默认值:0
|
|
18012
|
+
r"""<p>是否自动使用代金券:</p><li>0:否</li><li>1:是</li>默认值:0
|
|
17504
18013
|
:rtype: int
|
|
17505
18014
|
"""
|
|
17506
18015
|
return self._AutoVoucher
|
|
@@ -17511,7 +18020,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
|
17511
18020
|
|
|
17512
18021
|
@property
|
|
17513
18022
|
def VoucherIds(self):
|
|
17514
|
-
r"""
|
|
18023
|
+
r"""<p>代金券ID列表,目前仅支持指定一张代金券。</p>
|
|
17515
18024
|
:rtype: list of str
|
|
17516
18025
|
"""
|
|
17517
18026
|
return self._VoucherIds
|
|
@@ -17522,7 +18031,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
|
17522
18031
|
|
|
17523
18032
|
@property
|
|
17524
18033
|
def ActivityId(self):
|
|
17525
|
-
r"""
|
|
18034
|
+
r"""<p>活动ID。</p>
|
|
17526
18035
|
:rtype: int
|
|
17527
18036
|
"""
|
|
17528
18037
|
return self._ActivityId
|
|
@@ -17533,11 +18042,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
|
17533
18042
|
|
|
17534
18043
|
@property
|
|
17535
18044
|
def SwitchTag(self):
|
|
17536
|
-
r"""
|
|
17537
|
-
<li>0:立即切换 </li>
|
|
17538
|
-
<li>1:指定时间切换</li>
|
|
17539
|
-
<li>2:维护时间窗口内</li>切换
|
|
17540
|
-
默认值:0
|
|
18045
|
+
r"""<p>指定实例配置完成变更后的切换时间。</p><li>0:立即切换 </li><li>1:指定时间切换</li><li>2:维护时间窗口内</li>切换默认值:0
|
|
17541
18046
|
:rtype: int
|
|
17542
18047
|
"""
|
|
17543
18048
|
return self._SwitchTag
|
|
@@ -17548,7 +18053,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
|
17548
18053
|
|
|
17549
18054
|
@property
|
|
17550
18055
|
def SwitchStartTime(self):
|
|
17551
|
-
r"""
|
|
18056
|
+
r"""<p>切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。</p>
|
|
17552
18057
|
:rtype: str
|
|
17553
18058
|
"""
|
|
17554
18059
|
return self._SwitchStartTime
|
|
@@ -17559,7 +18064,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
|
17559
18064
|
|
|
17560
18065
|
@property
|
|
17561
18066
|
def SwitchEndTime(self):
|
|
17562
|
-
r"""
|
|
18067
|
+
r"""<p>切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。</p>
|
|
17563
18068
|
:rtype: str
|
|
17564
18069
|
"""
|
|
17565
18070
|
return self._SwitchEndTime
|
|
@@ -17570,7 +18075,7 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
|
17570
18075
|
|
|
17571
18076
|
@property
|
|
17572
18077
|
def Cpu(self):
|
|
17573
|
-
r"""
|
|
18078
|
+
r"""<p>修改后的实例CPU大小,单位Core。不填写该参数时,默认根据Memory确定Cpu大小。如Memory为2,支持的规格有1核2GB,则不传入Cpu时,Cpu默认为1。</p>
|
|
17574
18079
|
:rtype: int
|
|
17575
18080
|
"""
|
|
17576
18081
|
return self._Cpu
|
|
@@ -17579,6 +18084,17 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
|
17579
18084
|
def Cpu(self, Cpu):
|
|
17580
18085
|
self._Cpu = Cpu
|
|
17581
18086
|
|
|
18087
|
+
@property
|
|
18088
|
+
def SyncModifyParams(self):
|
|
18089
|
+
r"""<p>变配时同步修改的参数列表</p>
|
|
18090
|
+
:rtype: list of ParamEntry
|
|
18091
|
+
"""
|
|
18092
|
+
return self._SyncModifyParams
|
|
18093
|
+
|
|
18094
|
+
@SyncModifyParams.setter
|
|
18095
|
+
def SyncModifyParams(self, SyncModifyParams):
|
|
18096
|
+
self._SyncModifyParams = SyncModifyParams
|
|
18097
|
+
|
|
17582
18098
|
|
|
17583
18099
|
def _deserialize(self, params):
|
|
17584
18100
|
self._DBInstanceId = params.get("DBInstanceId")
|
|
@@ -17591,6 +18107,12 @@ class ModifyDBInstanceSpecRequest(AbstractModel):
|
|
|
17591
18107
|
self._SwitchStartTime = params.get("SwitchStartTime")
|
|
17592
18108
|
self._SwitchEndTime = params.get("SwitchEndTime")
|
|
17593
18109
|
self._Cpu = params.get("Cpu")
|
|
18110
|
+
if params.get("SyncModifyParams") is not None:
|
|
18111
|
+
self._SyncModifyParams = []
|
|
18112
|
+
for item in params.get("SyncModifyParams"):
|
|
18113
|
+
obj = ParamEntry()
|
|
18114
|
+
obj._deserialize(item)
|
|
18115
|
+
self._SyncModifyParams.append(obj)
|
|
17594
18116
|
memeber_set = set(params.keys())
|
|
17595
18117
|
for name, value in vars(self).items():
|
|
17596
18118
|
property_name = name[1:]
|
|
@@ -17608,9 +18130,9 @@ class ModifyDBInstanceSpecResponse(AbstractModel):
|
|
|
17608
18130
|
|
|
17609
18131
|
def __init__(self):
|
|
17610
18132
|
r"""
|
|
17611
|
-
:param _DealName:
|
|
18133
|
+
:param _DealName: <p>订单号。</p>
|
|
17612
18134
|
:type DealName: str
|
|
17613
|
-
:param _BillId:
|
|
18135
|
+
:param _BillId: <p>冻结流水号。</p>
|
|
17614
18136
|
:type BillId: str
|
|
17615
18137
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
17616
18138
|
:type RequestId: str
|
|
@@ -17621,7 +18143,7 @@ class ModifyDBInstanceSpecResponse(AbstractModel):
|
|
|
17621
18143
|
|
|
17622
18144
|
@property
|
|
17623
18145
|
def DealName(self):
|
|
17624
|
-
r"""
|
|
18146
|
+
r"""<p>订单号。</p>
|
|
17625
18147
|
:rtype: str
|
|
17626
18148
|
"""
|
|
17627
18149
|
return self._DealName
|
|
@@ -17632,7 +18154,7 @@ class ModifyDBInstanceSpecResponse(AbstractModel):
|
|
|
17632
18154
|
|
|
17633
18155
|
@property
|
|
17634
18156
|
def BillId(self):
|
|
17635
|
-
r"""
|
|
18157
|
+
r"""<p>冻结流水号。</p>
|
|
17636
18158
|
:rtype: str
|
|
17637
18159
|
"""
|
|
17638
18160
|
return self._BillId
|
|
@@ -17753,6 +18275,319 @@ class ModifyDBInstancesProjectResponse(AbstractModel):
|
|
|
17753
18275
|
self._RequestId = params.get("RequestId")
|
|
17754
18276
|
|
|
17755
18277
|
|
|
18278
|
+
class ModifyDBProxyAddressRequest(AbstractModel):
|
|
18279
|
+
r"""ModifyDBProxyAddress请求参数结构体
|
|
18280
|
+
|
|
18281
|
+
"""
|
|
18282
|
+
|
|
18283
|
+
def __init__(self):
|
|
18284
|
+
r"""
|
|
18285
|
+
:param _DBInstanceId: <p>实例ID</p>
|
|
18286
|
+
:type DBInstanceId: str
|
|
18287
|
+
:param _AddressId: <p>Proxy地址ID</p>
|
|
18288
|
+
:type AddressId: str
|
|
18289
|
+
:param _ProxyGroupId: <p>Proxy代理组 ID(不传则默认操作该实例下唯一的代理)</p>
|
|
18290
|
+
:type ProxyGroupId: str
|
|
18291
|
+
:param _Description: <p>地址描述/备注(最多 256 字符)</p>
|
|
18292
|
+
:type Description: str
|
|
18293
|
+
:param _ConnectionPool: <p>连接池开关</p><p>枚举值:</p><ul><li>true: 开启</li><li>false: 关闭</li></ul>
|
|
18294
|
+
:type ConnectionPool: bool
|
|
18295
|
+
"""
|
|
18296
|
+
self._DBInstanceId = None
|
|
18297
|
+
self._AddressId = None
|
|
18298
|
+
self._ProxyGroupId = None
|
|
18299
|
+
self._Description = None
|
|
18300
|
+
self._ConnectionPool = None
|
|
18301
|
+
|
|
18302
|
+
@property
|
|
18303
|
+
def DBInstanceId(self):
|
|
18304
|
+
r"""<p>实例ID</p>
|
|
18305
|
+
:rtype: str
|
|
18306
|
+
"""
|
|
18307
|
+
return self._DBInstanceId
|
|
18308
|
+
|
|
18309
|
+
@DBInstanceId.setter
|
|
18310
|
+
def DBInstanceId(self, DBInstanceId):
|
|
18311
|
+
self._DBInstanceId = DBInstanceId
|
|
18312
|
+
|
|
18313
|
+
@property
|
|
18314
|
+
def AddressId(self):
|
|
18315
|
+
r"""<p>Proxy地址ID</p>
|
|
18316
|
+
:rtype: str
|
|
18317
|
+
"""
|
|
18318
|
+
return self._AddressId
|
|
18319
|
+
|
|
18320
|
+
@AddressId.setter
|
|
18321
|
+
def AddressId(self, AddressId):
|
|
18322
|
+
self._AddressId = AddressId
|
|
18323
|
+
|
|
18324
|
+
@property
|
|
18325
|
+
def ProxyGroupId(self):
|
|
18326
|
+
r"""<p>Proxy代理组 ID(不传则默认操作该实例下唯一的代理)</p>
|
|
18327
|
+
:rtype: str
|
|
18328
|
+
"""
|
|
18329
|
+
return self._ProxyGroupId
|
|
18330
|
+
|
|
18331
|
+
@ProxyGroupId.setter
|
|
18332
|
+
def ProxyGroupId(self, ProxyGroupId):
|
|
18333
|
+
self._ProxyGroupId = ProxyGroupId
|
|
18334
|
+
|
|
18335
|
+
@property
|
|
18336
|
+
def Description(self):
|
|
18337
|
+
r"""<p>地址描述/备注(最多 256 字符)</p>
|
|
18338
|
+
:rtype: str
|
|
18339
|
+
"""
|
|
18340
|
+
return self._Description
|
|
18341
|
+
|
|
18342
|
+
@Description.setter
|
|
18343
|
+
def Description(self, Description):
|
|
18344
|
+
self._Description = Description
|
|
18345
|
+
|
|
18346
|
+
@property
|
|
18347
|
+
def ConnectionPool(self):
|
|
18348
|
+
r"""<p>连接池开关</p><p>枚举值:</p><ul><li>true: 开启</li><li>false: 关闭</li></ul>
|
|
18349
|
+
:rtype: bool
|
|
18350
|
+
"""
|
|
18351
|
+
return self._ConnectionPool
|
|
18352
|
+
|
|
18353
|
+
@ConnectionPool.setter
|
|
18354
|
+
def ConnectionPool(self, ConnectionPool):
|
|
18355
|
+
self._ConnectionPool = ConnectionPool
|
|
18356
|
+
|
|
18357
|
+
|
|
18358
|
+
def _deserialize(self, params):
|
|
18359
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
18360
|
+
self._AddressId = params.get("AddressId")
|
|
18361
|
+
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
18362
|
+
self._Description = params.get("Description")
|
|
18363
|
+
self._ConnectionPool = params.get("ConnectionPool")
|
|
18364
|
+
memeber_set = set(params.keys())
|
|
18365
|
+
for name, value in vars(self).items():
|
|
18366
|
+
property_name = name[1:]
|
|
18367
|
+
if property_name in memeber_set:
|
|
18368
|
+
memeber_set.remove(property_name)
|
|
18369
|
+
if len(memeber_set) > 0:
|
|
18370
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18371
|
+
|
|
18372
|
+
|
|
18373
|
+
|
|
18374
|
+
class ModifyDBProxyAddressResponse(AbstractModel):
|
|
18375
|
+
r"""ModifyDBProxyAddress返回参数结构体
|
|
18376
|
+
|
|
18377
|
+
"""
|
|
18378
|
+
|
|
18379
|
+
def __init__(self):
|
|
18380
|
+
r"""
|
|
18381
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18382
|
+
:type RequestId: str
|
|
18383
|
+
"""
|
|
18384
|
+
self._RequestId = None
|
|
18385
|
+
|
|
18386
|
+
@property
|
|
18387
|
+
def RequestId(self):
|
|
18388
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18389
|
+
:rtype: str
|
|
18390
|
+
"""
|
|
18391
|
+
return self._RequestId
|
|
18392
|
+
|
|
18393
|
+
@RequestId.setter
|
|
18394
|
+
def RequestId(self, RequestId):
|
|
18395
|
+
self._RequestId = RequestId
|
|
18396
|
+
|
|
18397
|
+
|
|
18398
|
+
def _deserialize(self, params):
|
|
18399
|
+
self._RequestId = params.get("RequestId")
|
|
18400
|
+
|
|
18401
|
+
|
|
18402
|
+
class ModifyDBProxyRequest(AbstractModel):
|
|
18403
|
+
r"""ModifyDBProxy请求参数结构体
|
|
18404
|
+
|
|
18405
|
+
"""
|
|
18406
|
+
|
|
18407
|
+
def __init__(self):
|
|
18408
|
+
r"""
|
|
18409
|
+
:param _DBInstanceId: <p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
18410
|
+
:type DBInstanceId: str
|
|
18411
|
+
:param _ProxyGroupId: <p>Proxy 实例 ID,格式形如:proxy-xxxxxxxx;不传时若实例下仅有一个 Proxy 则修改该 Proxy</p>
|
|
18412
|
+
:type ProxyGroupId: str
|
|
18413
|
+
:param _Description: <p>Proxy 描述信息,长度范围 [0, 256]</p>
|
|
18414
|
+
:type Description: str
|
|
18415
|
+
:param _ProxyNodeCustom: <p>Proxy 节点变配规格列表,按可用区分组;变配时必填</p>
|
|
18416
|
+
:type ProxyNodeCustom: list of ProxyNodeCustom
|
|
18417
|
+
:param _ReloadBalance: <p>负载均衡刷新策略:auto-自动;manual-手动;默认 auto</p>
|
|
18418
|
+
:type ReloadBalance: str
|
|
18419
|
+
:param _SwitchTag: <p>变配执行时机:0-立即执行(默认),1-维护时间窗内执行,2-指定时间窗执行(需配合 SwitchStartTime/SwitchEndTime)</p>
|
|
18420
|
+
:type SwitchTag: int
|
|
18421
|
+
:param _SwitchStartTime: <p>指定时间窗执行的开始时间,格式 HH:MM:SS,仅 SwitchTag=2 时生效</p>
|
|
18422
|
+
:type SwitchStartTime: str
|
|
18423
|
+
:param _SwitchEndTime: <p>指定时间窗执行的结束时间,格式 HH:MM:SS,仅 SwitchTag=2 时生效</p>
|
|
18424
|
+
:type SwitchEndTime: str
|
|
18425
|
+
"""
|
|
18426
|
+
self._DBInstanceId = None
|
|
18427
|
+
self._ProxyGroupId = None
|
|
18428
|
+
self._Description = None
|
|
18429
|
+
self._ProxyNodeCustom = None
|
|
18430
|
+
self._ReloadBalance = None
|
|
18431
|
+
self._SwitchTag = None
|
|
18432
|
+
self._SwitchStartTime = None
|
|
18433
|
+
self._SwitchEndTime = None
|
|
18434
|
+
|
|
18435
|
+
@property
|
|
18436
|
+
def DBInstanceId(self):
|
|
18437
|
+
r"""<p>实例 ID,格式形如:postgres-xxxxxxxx</p>
|
|
18438
|
+
:rtype: str
|
|
18439
|
+
"""
|
|
18440
|
+
return self._DBInstanceId
|
|
18441
|
+
|
|
18442
|
+
@DBInstanceId.setter
|
|
18443
|
+
def DBInstanceId(self, DBInstanceId):
|
|
18444
|
+
self._DBInstanceId = DBInstanceId
|
|
18445
|
+
|
|
18446
|
+
@property
|
|
18447
|
+
def ProxyGroupId(self):
|
|
18448
|
+
r"""<p>Proxy 实例 ID,格式形如:proxy-xxxxxxxx;不传时若实例下仅有一个 Proxy 则修改该 Proxy</p>
|
|
18449
|
+
:rtype: str
|
|
18450
|
+
"""
|
|
18451
|
+
return self._ProxyGroupId
|
|
18452
|
+
|
|
18453
|
+
@ProxyGroupId.setter
|
|
18454
|
+
def ProxyGroupId(self, ProxyGroupId):
|
|
18455
|
+
self._ProxyGroupId = ProxyGroupId
|
|
18456
|
+
|
|
18457
|
+
@property
|
|
18458
|
+
def Description(self):
|
|
18459
|
+
r"""<p>Proxy 描述信息,长度范围 [0, 256]</p>
|
|
18460
|
+
:rtype: str
|
|
18461
|
+
"""
|
|
18462
|
+
return self._Description
|
|
18463
|
+
|
|
18464
|
+
@Description.setter
|
|
18465
|
+
def Description(self, Description):
|
|
18466
|
+
self._Description = Description
|
|
18467
|
+
|
|
18468
|
+
@property
|
|
18469
|
+
def ProxyNodeCustom(self):
|
|
18470
|
+
r"""<p>Proxy 节点变配规格列表,按可用区分组;变配时必填</p>
|
|
18471
|
+
:rtype: list of ProxyNodeCustom
|
|
18472
|
+
"""
|
|
18473
|
+
return self._ProxyNodeCustom
|
|
18474
|
+
|
|
18475
|
+
@ProxyNodeCustom.setter
|
|
18476
|
+
def ProxyNodeCustom(self, ProxyNodeCustom):
|
|
18477
|
+
self._ProxyNodeCustom = ProxyNodeCustom
|
|
18478
|
+
|
|
18479
|
+
@property
|
|
18480
|
+
def ReloadBalance(self):
|
|
18481
|
+
r"""<p>负载均衡刷新策略:auto-自动;manual-手动;默认 auto</p>
|
|
18482
|
+
:rtype: str
|
|
18483
|
+
"""
|
|
18484
|
+
return self._ReloadBalance
|
|
18485
|
+
|
|
18486
|
+
@ReloadBalance.setter
|
|
18487
|
+
def ReloadBalance(self, ReloadBalance):
|
|
18488
|
+
self._ReloadBalance = ReloadBalance
|
|
18489
|
+
|
|
18490
|
+
@property
|
|
18491
|
+
def SwitchTag(self):
|
|
18492
|
+
r"""<p>变配执行时机:0-立即执行(默认),1-维护时间窗内执行,2-指定时间窗执行(需配合 SwitchStartTime/SwitchEndTime)</p>
|
|
18493
|
+
:rtype: int
|
|
18494
|
+
"""
|
|
18495
|
+
return self._SwitchTag
|
|
18496
|
+
|
|
18497
|
+
@SwitchTag.setter
|
|
18498
|
+
def SwitchTag(self, SwitchTag):
|
|
18499
|
+
self._SwitchTag = SwitchTag
|
|
18500
|
+
|
|
18501
|
+
@property
|
|
18502
|
+
def SwitchStartTime(self):
|
|
18503
|
+
r"""<p>指定时间窗执行的开始时间,格式 HH:MM:SS,仅 SwitchTag=2 时生效</p>
|
|
18504
|
+
:rtype: str
|
|
18505
|
+
"""
|
|
18506
|
+
return self._SwitchStartTime
|
|
18507
|
+
|
|
18508
|
+
@SwitchStartTime.setter
|
|
18509
|
+
def SwitchStartTime(self, SwitchStartTime):
|
|
18510
|
+
self._SwitchStartTime = SwitchStartTime
|
|
18511
|
+
|
|
18512
|
+
@property
|
|
18513
|
+
def SwitchEndTime(self):
|
|
18514
|
+
r"""<p>指定时间窗执行的结束时间,格式 HH:MM:SS,仅 SwitchTag=2 时生效</p>
|
|
18515
|
+
:rtype: str
|
|
18516
|
+
"""
|
|
18517
|
+
return self._SwitchEndTime
|
|
18518
|
+
|
|
18519
|
+
@SwitchEndTime.setter
|
|
18520
|
+
def SwitchEndTime(self, SwitchEndTime):
|
|
18521
|
+
self._SwitchEndTime = SwitchEndTime
|
|
18522
|
+
|
|
18523
|
+
|
|
18524
|
+
def _deserialize(self, params):
|
|
18525
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
18526
|
+
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
18527
|
+
self._Description = params.get("Description")
|
|
18528
|
+
if params.get("ProxyNodeCustom") is not None:
|
|
18529
|
+
self._ProxyNodeCustom = []
|
|
18530
|
+
for item in params.get("ProxyNodeCustom"):
|
|
18531
|
+
obj = ProxyNodeCustom()
|
|
18532
|
+
obj._deserialize(item)
|
|
18533
|
+
self._ProxyNodeCustom.append(obj)
|
|
18534
|
+
self._ReloadBalance = params.get("ReloadBalance")
|
|
18535
|
+
self._SwitchTag = params.get("SwitchTag")
|
|
18536
|
+
self._SwitchStartTime = params.get("SwitchStartTime")
|
|
18537
|
+
self._SwitchEndTime = params.get("SwitchEndTime")
|
|
18538
|
+
memeber_set = set(params.keys())
|
|
18539
|
+
for name, value in vars(self).items():
|
|
18540
|
+
property_name = name[1:]
|
|
18541
|
+
if property_name in memeber_set:
|
|
18542
|
+
memeber_set.remove(property_name)
|
|
18543
|
+
if len(memeber_set) > 0:
|
|
18544
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18545
|
+
|
|
18546
|
+
|
|
18547
|
+
|
|
18548
|
+
class ModifyDBProxyResponse(AbstractModel):
|
|
18549
|
+
r"""ModifyDBProxy返回参数结构体
|
|
18550
|
+
|
|
18551
|
+
"""
|
|
18552
|
+
|
|
18553
|
+
def __init__(self):
|
|
18554
|
+
r"""
|
|
18555
|
+
:param _DealName: <p>订单号,仅变配(节点规格/数量变更)下单成功时返回;仅修改 Description 时不下单,本字段为空。</p>
|
|
18556
|
+
:type DealName: str
|
|
18557
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18558
|
+
:type RequestId: str
|
|
18559
|
+
"""
|
|
18560
|
+
self._DealName = None
|
|
18561
|
+
self._RequestId = None
|
|
18562
|
+
|
|
18563
|
+
@property
|
|
18564
|
+
def DealName(self):
|
|
18565
|
+
r"""<p>订单号,仅变配(节点规格/数量变更)下单成功时返回;仅修改 Description 时不下单,本字段为空。</p>
|
|
18566
|
+
:rtype: str
|
|
18567
|
+
"""
|
|
18568
|
+
return self._DealName
|
|
18569
|
+
|
|
18570
|
+
@DealName.setter
|
|
18571
|
+
def DealName(self, DealName):
|
|
18572
|
+
self._DealName = DealName
|
|
18573
|
+
|
|
18574
|
+
@property
|
|
18575
|
+
def RequestId(self):
|
|
18576
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18577
|
+
:rtype: str
|
|
18578
|
+
"""
|
|
18579
|
+
return self._RequestId
|
|
18580
|
+
|
|
18581
|
+
@RequestId.setter
|
|
18582
|
+
def RequestId(self, RequestId):
|
|
18583
|
+
self._RequestId = RequestId
|
|
18584
|
+
|
|
18585
|
+
|
|
18586
|
+
def _deserialize(self, params):
|
|
18587
|
+
self._DealName = params.get("DealName")
|
|
18588
|
+
self._RequestId = params.get("RequestId")
|
|
18589
|
+
|
|
18590
|
+
|
|
17756
18591
|
class ModifyDatabaseOwnerRequest(AbstractModel):
|
|
17757
18592
|
r"""ModifyDatabaseOwner请求参数结构体
|
|
17758
18593
|
|
|
@@ -19903,18 +20738,699 @@ class PolicyRule(AbstractModel):
|
|
|
19903
20738
|
|
|
19904
20739
|
|
|
19905
20740
|
|
|
19906
|
-
class
|
|
19907
|
-
r"""
|
|
20741
|
+
class ProxyAddress(AbstractModel):
|
|
20742
|
+
r"""Proxy 接入地址信息,包含 VIP/VPort、读写分离与连接池相关配置以及对应路由列表。
|
|
19908
20743
|
|
|
19909
20744
|
"""
|
|
19910
20745
|
|
|
19911
20746
|
def __init__(self):
|
|
19912
20747
|
r"""
|
|
19913
|
-
:param
|
|
19914
|
-
:type
|
|
19915
|
-
:param
|
|
19916
|
-
:type
|
|
19917
|
-
:param
|
|
20748
|
+
:param _AddressId: <p>Proxy 接入地址 ID</p>
|
|
20749
|
+
:type AddressId: str
|
|
20750
|
+
:param _Vip: <p>Proxy 接入地址 IP</p>
|
|
20751
|
+
:type Vip: str
|
|
20752
|
+
:param _Vport: <p>Proxy 接入地址端口</p>
|
|
20753
|
+
:type Vport: int
|
|
20754
|
+
:param _VpcId: <p>VPC ID</p>
|
|
20755
|
+
:type VpcId: str
|
|
20756
|
+
:param _SubnetId: <p>子网 ID</p>
|
|
20757
|
+
:type SubnetId: str
|
|
20758
|
+
:param _Description: <p>接入地址描述</p>
|
|
20759
|
+
:type Description: str
|
|
20760
|
+
:param _ConnectionPool: <p>是否开启连接池:0-未开启,1-开启</p>
|
|
20761
|
+
:type ConnectionPool: bool
|
|
20762
|
+
:param _Routes: <p>路由列表</p>
|
|
20763
|
+
:type Routes: list of ProxyRoute
|
|
20764
|
+
:param _ConnectionPoolLimit: <p>连接池大小</p>
|
|
20765
|
+
:type ConnectionPoolLimit: int
|
|
20766
|
+
"""
|
|
20767
|
+
self._AddressId = None
|
|
20768
|
+
self._Vip = None
|
|
20769
|
+
self._Vport = None
|
|
20770
|
+
self._VpcId = None
|
|
20771
|
+
self._SubnetId = None
|
|
20772
|
+
self._Description = None
|
|
20773
|
+
self._ConnectionPool = None
|
|
20774
|
+
self._Routes = None
|
|
20775
|
+
self._ConnectionPoolLimit = None
|
|
20776
|
+
|
|
20777
|
+
@property
|
|
20778
|
+
def AddressId(self):
|
|
20779
|
+
r"""<p>Proxy 接入地址 ID</p>
|
|
20780
|
+
:rtype: str
|
|
20781
|
+
"""
|
|
20782
|
+
return self._AddressId
|
|
20783
|
+
|
|
20784
|
+
@AddressId.setter
|
|
20785
|
+
def AddressId(self, AddressId):
|
|
20786
|
+
self._AddressId = AddressId
|
|
20787
|
+
|
|
20788
|
+
@property
|
|
20789
|
+
def Vip(self):
|
|
20790
|
+
r"""<p>Proxy 接入地址 IP</p>
|
|
20791
|
+
:rtype: str
|
|
20792
|
+
"""
|
|
20793
|
+
return self._Vip
|
|
20794
|
+
|
|
20795
|
+
@Vip.setter
|
|
20796
|
+
def Vip(self, Vip):
|
|
20797
|
+
self._Vip = Vip
|
|
20798
|
+
|
|
20799
|
+
@property
|
|
20800
|
+
def Vport(self):
|
|
20801
|
+
r"""<p>Proxy 接入地址端口</p>
|
|
20802
|
+
:rtype: int
|
|
20803
|
+
"""
|
|
20804
|
+
return self._Vport
|
|
20805
|
+
|
|
20806
|
+
@Vport.setter
|
|
20807
|
+
def Vport(self, Vport):
|
|
20808
|
+
self._Vport = Vport
|
|
20809
|
+
|
|
20810
|
+
@property
|
|
20811
|
+
def VpcId(self):
|
|
20812
|
+
r"""<p>VPC ID</p>
|
|
20813
|
+
:rtype: str
|
|
20814
|
+
"""
|
|
20815
|
+
return self._VpcId
|
|
20816
|
+
|
|
20817
|
+
@VpcId.setter
|
|
20818
|
+
def VpcId(self, VpcId):
|
|
20819
|
+
self._VpcId = VpcId
|
|
20820
|
+
|
|
20821
|
+
@property
|
|
20822
|
+
def SubnetId(self):
|
|
20823
|
+
r"""<p>子网 ID</p>
|
|
20824
|
+
:rtype: str
|
|
20825
|
+
"""
|
|
20826
|
+
return self._SubnetId
|
|
20827
|
+
|
|
20828
|
+
@SubnetId.setter
|
|
20829
|
+
def SubnetId(self, SubnetId):
|
|
20830
|
+
self._SubnetId = SubnetId
|
|
20831
|
+
|
|
20832
|
+
@property
|
|
20833
|
+
def Description(self):
|
|
20834
|
+
r"""<p>接入地址描述</p>
|
|
20835
|
+
:rtype: str
|
|
20836
|
+
"""
|
|
20837
|
+
return self._Description
|
|
20838
|
+
|
|
20839
|
+
@Description.setter
|
|
20840
|
+
def Description(self, Description):
|
|
20841
|
+
self._Description = Description
|
|
20842
|
+
|
|
20843
|
+
@property
|
|
20844
|
+
def ConnectionPool(self):
|
|
20845
|
+
r"""<p>是否开启连接池:0-未开启,1-开启</p>
|
|
20846
|
+
:rtype: bool
|
|
20847
|
+
"""
|
|
20848
|
+
return self._ConnectionPool
|
|
20849
|
+
|
|
20850
|
+
@ConnectionPool.setter
|
|
20851
|
+
def ConnectionPool(self, ConnectionPool):
|
|
20852
|
+
self._ConnectionPool = ConnectionPool
|
|
20853
|
+
|
|
20854
|
+
@property
|
|
20855
|
+
def Routes(self):
|
|
20856
|
+
r"""<p>路由列表</p>
|
|
20857
|
+
:rtype: list of ProxyRoute
|
|
20858
|
+
"""
|
|
20859
|
+
return self._Routes
|
|
20860
|
+
|
|
20861
|
+
@Routes.setter
|
|
20862
|
+
def Routes(self, Routes):
|
|
20863
|
+
self._Routes = Routes
|
|
20864
|
+
|
|
20865
|
+
@property
|
|
20866
|
+
def ConnectionPoolLimit(self):
|
|
20867
|
+
r"""<p>连接池大小</p>
|
|
20868
|
+
:rtype: int
|
|
20869
|
+
"""
|
|
20870
|
+
return self._ConnectionPoolLimit
|
|
20871
|
+
|
|
20872
|
+
@ConnectionPoolLimit.setter
|
|
20873
|
+
def ConnectionPoolLimit(self, ConnectionPoolLimit):
|
|
20874
|
+
self._ConnectionPoolLimit = ConnectionPoolLimit
|
|
20875
|
+
|
|
20876
|
+
|
|
20877
|
+
def _deserialize(self, params):
|
|
20878
|
+
self._AddressId = params.get("AddressId")
|
|
20879
|
+
self._Vip = params.get("Vip")
|
|
20880
|
+
self._Vport = params.get("Vport")
|
|
20881
|
+
self._VpcId = params.get("VpcId")
|
|
20882
|
+
self._SubnetId = params.get("SubnetId")
|
|
20883
|
+
self._Description = params.get("Description")
|
|
20884
|
+
self._ConnectionPool = params.get("ConnectionPool")
|
|
20885
|
+
if params.get("Routes") is not None:
|
|
20886
|
+
self._Routes = []
|
|
20887
|
+
for item in params.get("Routes"):
|
|
20888
|
+
obj = ProxyRoute()
|
|
20889
|
+
obj._deserialize(item)
|
|
20890
|
+
self._Routes.append(obj)
|
|
20891
|
+
self._ConnectionPoolLimit = params.get("ConnectionPoolLimit")
|
|
20892
|
+
memeber_set = set(params.keys())
|
|
20893
|
+
for name, value in vars(self).items():
|
|
20894
|
+
property_name = name[1:]
|
|
20895
|
+
if property_name in memeber_set:
|
|
20896
|
+
memeber_set.remove(property_name)
|
|
20897
|
+
if len(memeber_set) > 0:
|
|
20898
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20899
|
+
|
|
20900
|
+
|
|
20901
|
+
|
|
20902
|
+
class ProxyGroupInfo(AbstractModel):
|
|
20903
|
+
r"""Proxy 实例(组)详细信息,包含基础信息、节点列表、接入地址列表。
|
|
20904
|
+
|
|
20905
|
+
"""
|
|
20906
|
+
|
|
20907
|
+
def __init__(self):
|
|
20908
|
+
r"""
|
|
20909
|
+
:param _ProxyGroupId: <p>Proxy 实例 ID,格式形如:proxygroup-xxxxxxxx</p>
|
|
20910
|
+
:type ProxyGroupId: str
|
|
20911
|
+
:param _Status: <p>Proxy 状态:running/isolated/offline 等</p>
|
|
20912
|
+
:type Status: str
|
|
20913
|
+
:param _TaskStatus: <p>Proxy 任务状态,无任务时为空</p>
|
|
20914
|
+
:type TaskStatus: str
|
|
20915
|
+
:param _Description: <p>Proxy 描述</p>
|
|
20916
|
+
:type Description: str
|
|
20917
|
+
:param _ProxyVersion: <p>Proxy 内核版本号</p>
|
|
20918
|
+
:type ProxyVersion: str
|
|
20919
|
+
:param _ConnectionPoolLimit: <p>连接池阈值(连接数)</p>
|
|
20920
|
+
:type ConnectionPoolLimit: int
|
|
20921
|
+
:param _ProxyNodeSet: <p>Proxy 节点列表</p>
|
|
20922
|
+
:type ProxyNodeSet: list of ProxyNode
|
|
20923
|
+
:param _ProxyAddressSet: <p>Proxy 接入地址列表</p>
|
|
20924
|
+
:type ProxyAddressSet: list of ProxyAddress
|
|
20925
|
+
:param _CreateTime: <p>创建时间,格式:YYYY-MM-DD HH:MM:SS</p>
|
|
20926
|
+
:type CreateTime: str
|
|
20927
|
+
"""
|
|
20928
|
+
self._ProxyGroupId = None
|
|
20929
|
+
self._Status = None
|
|
20930
|
+
self._TaskStatus = None
|
|
20931
|
+
self._Description = None
|
|
20932
|
+
self._ProxyVersion = None
|
|
20933
|
+
self._ConnectionPoolLimit = None
|
|
20934
|
+
self._ProxyNodeSet = None
|
|
20935
|
+
self._ProxyAddressSet = None
|
|
20936
|
+
self._CreateTime = None
|
|
20937
|
+
|
|
20938
|
+
@property
|
|
20939
|
+
def ProxyGroupId(self):
|
|
20940
|
+
r"""<p>Proxy 实例 ID,格式形如:proxygroup-xxxxxxxx</p>
|
|
20941
|
+
:rtype: str
|
|
20942
|
+
"""
|
|
20943
|
+
return self._ProxyGroupId
|
|
20944
|
+
|
|
20945
|
+
@ProxyGroupId.setter
|
|
20946
|
+
def ProxyGroupId(self, ProxyGroupId):
|
|
20947
|
+
self._ProxyGroupId = ProxyGroupId
|
|
20948
|
+
|
|
20949
|
+
@property
|
|
20950
|
+
def Status(self):
|
|
20951
|
+
r"""<p>Proxy 状态:running/isolated/offline 等</p>
|
|
20952
|
+
:rtype: str
|
|
20953
|
+
"""
|
|
20954
|
+
return self._Status
|
|
20955
|
+
|
|
20956
|
+
@Status.setter
|
|
20957
|
+
def Status(self, Status):
|
|
20958
|
+
self._Status = Status
|
|
20959
|
+
|
|
20960
|
+
@property
|
|
20961
|
+
def TaskStatus(self):
|
|
20962
|
+
r"""<p>Proxy 任务状态,无任务时为空</p>
|
|
20963
|
+
:rtype: str
|
|
20964
|
+
"""
|
|
20965
|
+
return self._TaskStatus
|
|
20966
|
+
|
|
20967
|
+
@TaskStatus.setter
|
|
20968
|
+
def TaskStatus(self, TaskStatus):
|
|
20969
|
+
self._TaskStatus = TaskStatus
|
|
20970
|
+
|
|
20971
|
+
@property
|
|
20972
|
+
def Description(self):
|
|
20973
|
+
r"""<p>Proxy 描述</p>
|
|
20974
|
+
:rtype: str
|
|
20975
|
+
"""
|
|
20976
|
+
return self._Description
|
|
20977
|
+
|
|
20978
|
+
@Description.setter
|
|
20979
|
+
def Description(self, Description):
|
|
20980
|
+
self._Description = Description
|
|
20981
|
+
|
|
20982
|
+
@property
|
|
20983
|
+
def ProxyVersion(self):
|
|
20984
|
+
r"""<p>Proxy 内核版本号</p>
|
|
20985
|
+
:rtype: str
|
|
20986
|
+
"""
|
|
20987
|
+
return self._ProxyVersion
|
|
20988
|
+
|
|
20989
|
+
@ProxyVersion.setter
|
|
20990
|
+
def ProxyVersion(self, ProxyVersion):
|
|
20991
|
+
self._ProxyVersion = ProxyVersion
|
|
20992
|
+
|
|
20993
|
+
@property
|
|
20994
|
+
def ConnectionPoolLimit(self):
|
|
20995
|
+
r"""<p>连接池阈值(连接数)</p>
|
|
20996
|
+
:rtype: int
|
|
20997
|
+
"""
|
|
20998
|
+
return self._ConnectionPoolLimit
|
|
20999
|
+
|
|
21000
|
+
@ConnectionPoolLimit.setter
|
|
21001
|
+
def ConnectionPoolLimit(self, ConnectionPoolLimit):
|
|
21002
|
+
self._ConnectionPoolLimit = ConnectionPoolLimit
|
|
21003
|
+
|
|
21004
|
+
@property
|
|
21005
|
+
def ProxyNodeSet(self):
|
|
21006
|
+
r"""<p>Proxy 节点列表</p>
|
|
21007
|
+
:rtype: list of ProxyNode
|
|
21008
|
+
"""
|
|
21009
|
+
return self._ProxyNodeSet
|
|
21010
|
+
|
|
21011
|
+
@ProxyNodeSet.setter
|
|
21012
|
+
def ProxyNodeSet(self, ProxyNodeSet):
|
|
21013
|
+
self._ProxyNodeSet = ProxyNodeSet
|
|
21014
|
+
|
|
21015
|
+
@property
|
|
21016
|
+
def ProxyAddressSet(self):
|
|
21017
|
+
r"""<p>Proxy 接入地址列表</p>
|
|
21018
|
+
:rtype: list of ProxyAddress
|
|
21019
|
+
"""
|
|
21020
|
+
return self._ProxyAddressSet
|
|
21021
|
+
|
|
21022
|
+
@ProxyAddressSet.setter
|
|
21023
|
+
def ProxyAddressSet(self, ProxyAddressSet):
|
|
21024
|
+
self._ProxyAddressSet = ProxyAddressSet
|
|
21025
|
+
|
|
21026
|
+
@property
|
|
21027
|
+
def CreateTime(self):
|
|
21028
|
+
r"""<p>创建时间,格式:YYYY-MM-DD HH:MM:SS</p>
|
|
21029
|
+
:rtype: str
|
|
21030
|
+
"""
|
|
21031
|
+
return self._CreateTime
|
|
21032
|
+
|
|
21033
|
+
@CreateTime.setter
|
|
21034
|
+
def CreateTime(self, CreateTime):
|
|
21035
|
+
self._CreateTime = CreateTime
|
|
21036
|
+
|
|
21037
|
+
|
|
21038
|
+
def _deserialize(self, params):
|
|
21039
|
+
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
21040
|
+
self._Status = params.get("Status")
|
|
21041
|
+
self._TaskStatus = params.get("TaskStatus")
|
|
21042
|
+
self._Description = params.get("Description")
|
|
21043
|
+
self._ProxyVersion = params.get("ProxyVersion")
|
|
21044
|
+
self._ConnectionPoolLimit = params.get("ConnectionPoolLimit")
|
|
21045
|
+
if params.get("ProxyNodeSet") is not None:
|
|
21046
|
+
self._ProxyNodeSet = []
|
|
21047
|
+
for item in params.get("ProxyNodeSet"):
|
|
21048
|
+
obj = ProxyNode()
|
|
21049
|
+
obj._deserialize(item)
|
|
21050
|
+
self._ProxyNodeSet.append(obj)
|
|
21051
|
+
if params.get("ProxyAddressSet") is not None:
|
|
21052
|
+
self._ProxyAddressSet = []
|
|
21053
|
+
for item in params.get("ProxyAddressSet"):
|
|
21054
|
+
obj = ProxyAddress()
|
|
21055
|
+
obj._deserialize(item)
|
|
21056
|
+
self._ProxyAddressSet.append(obj)
|
|
21057
|
+
self._CreateTime = params.get("CreateTime")
|
|
21058
|
+
memeber_set = set(params.keys())
|
|
21059
|
+
for name, value in vars(self).items():
|
|
21060
|
+
property_name = name[1:]
|
|
21061
|
+
if property_name in memeber_set:
|
|
21062
|
+
memeber_set.remove(property_name)
|
|
21063
|
+
if len(memeber_set) > 0:
|
|
21064
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21065
|
+
|
|
21066
|
+
|
|
21067
|
+
|
|
21068
|
+
class ProxyNode(AbstractModel):
|
|
21069
|
+
r"""Proxy 节点信息。
|
|
21070
|
+
|
|
21071
|
+
"""
|
|
21072
|
+
|
|
21073
|
+
def __init__(self):
|
|
21074
|
+
r"""
|
|
21075
|
+
:param _ProxyNodeId: <p>Proxy 节点 ID</p>
|
|
21076
|
+
:type ProxyNodeId: str
|
|
21077
|
+
:param _Zone: <p>Proxy 节点所在可用区</p>
|
|
21078
|
+
:type Zone: str
|
|
21079
|
+
:param _Cpu: <p>节点 CPU 核数(核)</p>
|
|
21080
|
+
:type Cpu: int
|
|
21081
|
+
:param _Mem: <p>节点内存大小(MB)</p><p>单位:MB</p>
|
|
21082
|
+
:type Mem: int
|
|
21083
|
+
:param _Status: <p>节点状态:running/isolated/abnormal 等</p>
|
|
21084
|
+
:type Status: str
|
|
21085
|
+
:param _Connection: <p>节点当前连接数</p>
|
|
21086
|
+
:type Connection: int
|
|
21087
|
+
"""
|
|
21088
|
+
self._ProxyNodeId = None
|
|
21089
|
+
self._Zone = None
|
|
21090
|
+
self._Cpu = None
|
|
21091
|
+
self._Mem = None
|
|
21092
|
+
self._Status = None
|
|
21093
|
+
self._Connection = None
|
|
21094
|
+
|
|
21095
|
+
@property
|
|
21096
|
+
def ProxyNodeId(self):
|
|
21097
|
+
r"""<p>Proxy 节点 ID</p>
|
|
21098
|
+
:rtype: str
|
|
21099
|
+
"""
|
|
21100
|
+
return self._ProxyNodeId
|
|
21101
|
+
|
|
21102
|
+
@ProxyNodeId.setter
|
|
21103
|
+
def ProxyNodeId(self, ProxyNodeId):
|
|
21104
|
+
self._ProxyNodeId = ProxyNodeId
|
|
21105
|
+
|
|
21106
|
+
@property
|
|
21107
|
+
def Zone(self):
|
|
21108
|
+
r"""<p>Proxy 节点所在可用区</p>
|
|
21109
|
+
:rtype: str
|
|
21110
|
+
"""
|
|
21111
|
+
return self._Zone
|
|
21112
|
+
|
|
21113
|
+
@Zone.setter
|
|
21114
|
+
def Zone(self, Zone):
|
|
21115
|
+
self._Zone = Zone
|
|
21116
|
+
|
|
21117
|
+
@property
|
|
21118
|
+
def Cpu(self):
|
|
21119
|
+
r"""<p>节点 CPU 核数(核)</p>
|
|
21120
|
+
:rtype: int
|
|
21121
|
+
"""
|
|
21122
|
+
return self._Cpu
|
|
21123
|
+
|
|
21124
|
+
@Cpu.setter
|
|
21125
|
+
def Cpu(self, Cpu):
|
|
21126
|
+
self._Cpu = Cpu
|
|
21127
|
+
|
|
21128
|
+
@property
|
|
21129
|
+
def Mem(self):
|
|
21130
|
+
r"""<p>节点内存大小(MB)</p><p>单位:MB</p>
|
|
21131
|
+
:rtype: int
|
|
21132
|
+
"""
|
|
21133
|
+
return self._Mem
|
|
21134
|
+
|
|
21135
|
+
@Mem.setter
|
|
21136
|
+
def Mem(self, Mem):
|
|
21137
|
+
self._Mem = Mem
|
|
21138
|
+
|
|
21139
|
+
@property
|
|
21140
|
+
def Status(self):
|
|
21141
|
+
r"""<p>节点状态:running/isolated/abnormal 等</p>
|
|
21142
|
+
:rtype: str
|
|
21143
|
+
"""
|
|
21144
|
+
return self._Status
|
|
21145
|
+
|
|
21146
|
+
@Status.setter
|
|
21147
|
+
def Status(self, Status):
|
|
21148
|
+
self._Status = Status
|
|
21149
|
+
|
|
21150
|
+
@property
|
|
21151
|
+
def Connection(self):
|
|
21152
|
+
r"""<p>节点当前连接数</p>
|
|
21153
|
+
:rtype: int
|
|
21154
|
+
"""
|
|
21155
|
+
return self._Connection
|
|
21156
|
+
|
|
21157
|
+
@Connection.setter
|
|
21158
|
+
def Connection(self, Connection):
|
|
21159
|
+
self._Connection = Connection
|
|
21160
|
+
|
|
21161
|
+
|
|
21162
|
+
def _deserialize(self, params):
|
|
21163
|
+
self._ProxyNodeId = params.get("ProxyNodeId")
|
|
21164
|
+
self._Zone = params.get("Zone")
|
|
21165
|
+
self._Cpu = params.get("Cpu")
|
|
21166
|
+
self._Mem = params.get("Mem")
|
|
21167
|
+
self._Status = params.get("Status")
|
|
21168
|
+
self._Connection = params.get("Connection")
|
|
21169
|
+
memeber_set = set(params.keys())
|
|
21170
|
+
for name, value in vars(self).items():
|
|
21171
|
+
property_name = name[1:]
|
|
21172
|
+
if property_name in memeber_set:
|
|
21173
|
+
memeber_set.remove(property_name)
|
|
21174
|
+
if len(memeber_set) > 0:
|
|
21175
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21176
|
+
|
|
21177
|
+
|
|
21178
|
+
|
|
21179
|
+
class ProxyNodeCustom(AbstractModel):
|
|
21180
|
+
r"""Proxy 节点自定义规格信息,每个 Zone 对应一组节点配置。
|
|
21181
|
+
|
|
21182
|
+
"""
|
|
21183
|
+
|
|
21184
|
+
def __init__(self):
|
|
21185
|
+
r"""
|
|
21186
|
+
:param _NodeCount: <p>该可用区下的 Proxy 节点数量</p><p>取值范围:[1, 16]</p>
|
|
21187
|
+
:type NodeCount: int
|
|
21188
|
+
:param _Zone: <p>Proxy 节点所在可用区</p>
|
|
21189
|
+
:type Zone: str
|
|
21190
|
+
:param _Cpu: <p>Proxy 节点 CPU 核数(核)</p>
|
|
21191
|
+
:type Cpu: int
|
|
21192
|
+
:param _Mem: <p>Proxy 节点内存大小(MB)</p><p>单位:MB</p>
|
|
21193
|
+
:type Mem: int
|
|
21194
|
+
"""
|
|
21195
|
+
self._NodeCount = None
|
|
21196
|
+
self._Zone = None
|
|
21197
|
+
self._Cpu = None
|
|
21198
|
+
self._Mem = None
|
|
21199
|
+
|
|
21200
|
+
@property
|
|
21201
|
+
def NodeCount(self):
|
|
21202
|
+
r"""<p>该可用区下的 Proxy 节点数量</p><p>取值范围:[1, 16]</p>
|
|
21203
|
+
:rtype: int
|
|
21204
|
+
"""
|
|
21205
|
+
return self._NodeCount
|
|
21206
|
+
|
|
21207
|
+
@NodeCount.setter
|
|
21208
|
+
def NodeCount(self, NodeCount):
|
|
21209
|
+
self._NodeCount = NodeCount
|
|
21210
|
+
|
|
21211
|
+
@property
|
|
21212
|
+
def Zone(self):
|
|
21213
|
+
r"""<p>Proxy 节点所在可用区</p>
|
|
21214
|
+
:rtype: str
|
|
21215
|
+
"""
|
|
21216
|
+
return self._Zone
|
|
21217
|
+
|
|
21218
|
+
@Zone.setter
|
|
21219
|
+
def Zone(self, Zone):
|
|
21220
|
+
self._Zone = Zone
|
|
21221
|
+
|
|
21222
|
+
@property
|
|
21223
|
+
def Cpu(self):
|
|
21224
|
+
r"""<p>Proxy 节点 CPU 核数(核)</p>
|
|
21225
|
+
:rtype: int
|
|
21226
|
+
"""
|
|
21227
|
+
return self._Cpu
|
|
21228
|
+
|
|
21229
|
+
@Cpu.setter
|
|
21230
|
+
def Cpu(self, Cpu):
|
|
21231
|
+
self._Cpu = Cpu
|
|
21232
|
+
|
|
21233
|
+
@property
|
|
21234
|
+
def Mem(self):
|
|
21235
|
+
r"""<p>Proxy 节点内存大小(MB)</p><p>单位:MB</p>
|
|
21236
|
+
:rtype: int
|
|
21237
|
+
"""
|
|
21238
|
+
return self._Mem
|
|
21239
|
+
|
|
21240
|
+
@Mem.setter
|
|
21241
|
+
def Mem(self, Mem):
|
|
21242
|
+
self._Mem = Mem
|
|
21243
|
+
|
|
21244
|
+
|
|
21245
|
+
def _deserialize(self, params):
|
|
21246
|
+
self._NodeCount = params.get("NodeCount")
|
|
21247
|
+
self._Zone = params.get("Zone")
|
|
21248
|
+
self._Cpu = params.get("Cpu")
|
|
21249
|
+
self._Mem = params.get("Mem")
|
|
21250
|
+
memeber_set = set(params.keys())
|
|
21251
|
+
for name, value in vars(self).items():
|
|
21252
|
+
property_name = name[1:]
|
|
21253
|
+
if property_name in memeber_set:
|
|
21254
|
+
memeber_set.remove(property_name)
|
|
21255
|
+
if len(memeber_set) > 0:
|
|
21256
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21257
|
+
|
|
21258
|
+
|
|
21259
|
+
|
|
21260
|
+
class ProxyRoute(AbstractModel):
|
|
21261
|
+
r"""Proxy 路由信息,描述某个 Proxy 接入地址下到具体 PG 节点的路由规则。
|
|
21262
|
+
|
|
21263
|
+
"""
|
|
21264
|
+
|
|
21265
|
+
def __init__(self):
|
|
21266
|
+
r"""
|
|
21267
|
+
:param _NodeId: <p>路由指向的 PG 节点 ID(实例或只读节点 ID)</p>
|
|
21268
|
+
:type NodeId: str
|
|
21269
|
+
:param _Role: <p>节点角色:master/slave/readonly</p>
|
|
21270
|
+
:type Role: str
|
|
21271
|
+
:param _Weight: <p>路由权重,取值范围 [0, 100]</p>
|
|
21272
|
+
:type Weight: int
|
|
21273
|
+
:param _Status: <p>路由状态:available/unavailable</p>
|
|
21274
|
+
:type Status: str
|
|
21275
|
+
"""
|
|
21276
|
+
self._NodeId = None
|
|
21277
|
+
self._Role = None
|
|
21278
|
+
self._Weight = None
|
|
21279
|
+
self._Status = None
|
|
21280
|
+
|
|
21281
|
+
@property
|
|
21282
|
+
def NodeId(self):
|
|
21283
|
+
r"""<p>路由指向的 PG 节点 ID(实例或只读节点 ID)</p>
|
|
21284
|
+
:rtype: str
|
|
21285
|
+
"""
|
|
21286
|
+
return self._NodeId
|
|
21287
|
+
|
|
21288
|
+
@NodeId.setter
|
|
21289
|
+
def NodeId(self, NodeId):
|
|
21290
|
+
self._NodeId = NodeId
|
|
21291
|
+
|
|
21292
|
+
@property
|
|
21293
|
+
def Role(self):
|
|
21294
|
+
r"""<p>节点角色:master/slave/readonly</p>
|
|
21295
|
+
:rtype: str
|
|
21296
|
+
"""
|
|
21297
|
+
return self._Role
|
|
21298
|
+
|
|
21299
|
+
@Role.setter
|
|
21300
|
+
def Role(self, Role):
|
|
21301
|
+
self._Role = Role
|
|
21302
|
+
|
|
21303
|
+
@property
|
|
21304
|
+
def Weight(self):
|
|
21305
|
+
r"""<p>路由权重,取值范围 [0, 100]</p>
|
|
21306
|
+
:rtype: int
|
|
21307
|
+
"""
|
|
21308
|
+
return self._Weight
|
|
21309
|
+
|
|
21310
|
+
@Weight.setter
|
|
21311
|
+
def Weight(self, Weight):
|
|
21312
|
+
self._Weight = Weight
|
|
21313
|
+
|
|
21314
|
+
@property
|
|
21315
|
+
def Status(self):
|
|
21316
|
+
r"""<p>路由状态:available/unavailable</p>
|
|
21317
|
+
:rtype: str
|
|
21318
|
+
"""
|
|
21319
|
+
return self._Status
|
|
21320
|
+
|
|
21321
|
+
@Status.setter
|
|
21322
|
+
def Status(self, Status):
|
|
21323
|
+
self._Status = Status
|
|
21324
|
+
|
|
21325
|
+
|
|
21326
|
+
def _deserialize(self, params):
|
|
21327
|
+
self._NodeId = params.get("NodeId")
|
|
21328
|
+
self._Role = params.get("Role")
|
|
21329
|
+
self._Weight = params.get("Weight")
|
|
21330
|
+
self._Status = params.get("Status")
|
|
21331
|
+
memeber_set = set(params.keys())
|
|
21332
|
+
for name, value in vars(self).items():
|
|
21333
|
+
property_name = name[1:]
|
|
21334
|
+
if property_name in memeber_set:
|
|
21335
|
+
memeber_set.remove(property_name)
|
|
21336
|
+
if len(memeber_set) > 0:
|
|
21337
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21338
|
+
|
|
21339
|
+
|
|
21340
|
+
|
|
21341
|
+
class ProxySpecItem(AbstractModel):
|
|
21342
|
+
r"""Proxy可售规格信息
|
|
21343
|
+
|
|
21344
|
+
"""
|
|
21345
|
+
|
|
21346
|
+
def __init__(self):
|
|
21347
|
+
r"""
|
|
21348
|
+
:param _Cpu: <p>CPU 核数</p><p>单位:核</p>
|
|
21349
|
+
:type Cpu: int
|
|
21350
|
+
:param _Memory: <p>内存大小</p><p>单位:MB</p>
|
|
21351
|
+
:type Memory: int
|
|
21352
|
+
:param _MinNodeNum: <p>最小节点数</p>
|
|
21353
|
+
:type MinNodeNum: int
|
|
21354
|
+
:param _MaxNodeNum: <p>最大节点数</p>
|
|
21355
|
+
:type MaxNodeNum: int
|
|
21356
|
+
"""
|
|
21357
|
+
self._Cpu = None
|
|
21358
|
+
self._Memory = None
|
|
21359
|
+
self._MinNodeNum = None
|
|
21360
|
+
self._MaxNodeNum = None
|
|
21361
|
+
|
|
21362
|
+
@property
|
|
21363
|
+
def Cpu(self):
|
|
21364
|
+
r"""<p>CPU 核数</p><p>单位:核</p>
|
|
21365
|
+
:rtype: int
|
|
21366
|
+
"""
|
|
21367
|
+
return self._Cpu
|
|
21368
|
+
|
|
21369
|
+
@Cpu.setter
|
|
21370
|
+
def Cpu(self, Cpu):
|
|
21371
|
+
self._Cpu = Cpu
|
|
21372
|
+
|
|
21373
|
+
@property
|
|
21374
|
+
def Memory(self):
|
|
21375
|
+
r"""<p>内存大小</p><p>单位:MB</p>
|
|
21376
|
+
:rtype: int
|
|
21377
|
+
"""
|
|
21378
|
+
return self._Memory
|
|
21379
|
+
|
|
21380
|
+
@Memory.setter
|
|
21381
|
+
def Memory(self, Memory):
|
|
21382
|
+
self._Memory = Memory
|
|
21383
|
+
|
|
21384
|
+
@property
|
|
21385
|
+
def MinNodeNum(self):
|
|
21386
|
+
r"""<p>最小节点数</p>
|
|
21387
|
+
:rtype: int
|
|
21388
|
+
"""
|
|
21389
|
+
return self._MinNodeNum
|
|
21390
|
+
|
|
21391
|
+
@MinNodeNum.setter
|
|
21392
|
+
def MinNodeNum(self, MinNodeNum):
|
|
21393
|
+
self._MinNodeNum = MinNodeNum
|
|
21394
|
+
|
|
21395
|
+
@property
|
|
21396
|
+
def MaxNodeNum(self):
|
|
21397
|
+
r"""<p>最大节点数</p>
|
|
21398
|
+
:rtype: int
|
|
21399
|
+
"""
|
|
21400
|
+
return self._MaxNodeNum
|
|
21401
|
+
|
|
21402
|
+
@MaxNodeNum.setter
|
|
21403
|
+
def MaxNodeNum(self, MaxNodeNum):
|
|
21404
|
+
self._MaxNodeNum = MaxNodeNum
|
|
21405
|
+
|
|
21406
|
+
|
|
21407
|
+
def _deserialize(self, params):
|
|
21408
|
+
self._Cpu = params.get("Cpu")
|
|
21409
|
+
self._Memory = params.get("Memory")
|
|
21410
|
+
self._MinNodeNum = params.get("MinNodeNum")
|
|
21411
|
+
self._MaxNodeNum = params.get("MaxNodeNum")
|
|
21412
|
+
memeber_set = set(params.keys())
|
|
21413
|
+
for name, value in vars(self).items():
|
|
21414
|
+
property_name = name[1:]
|
|
21415
|
+
if property_name in memeber_set:
|
|
21416
|
+
memeber_set.remove(property_name)
|
|
21417
|
+
if len(memeber_set) > 0:
|
|
21418
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21419
|
+
|
|
21420
|
+
|
|
21421
|
+
|
|
21422
|
+
class RawSlowQuery(AbstractModel):
|
|
21423
|
+
r"""慢SQL查询接口返回 慢SQL列表详情
|
|
21424
|
+
|
|
21425
|
+
"""
|
|
21426
|
+
|
|
21427
|
+
def __init__(self):
|
|
21428
|
+
r"""
|
|
21429
|
+
:param _RawQuery: <p>慢SQL 语句</p>
|
|
21430
|
+
:type RawQuery: str
|
|
21431
|
+
:param _DatabaseName: <p>慢SQL 查询的数据库</p>
|
|
21432
|
+
:type DatabaseName: str
|
|
21433
|
+
:param _Duration: <p>慢SQL执行 耗时</p>
|
|
19918
21434
|
:type Duration: float
|
|
19919
21435
|
:param _ClientAddr: <p>执行慢SQL的客户端</p>
|
|
19920
21436
|
:type ClientAddr: str
|
|
@@ -20646,6 +22162,100 @@ class RegionInfo(AbstractModel):
|
|
|
20646
22162
|
|
|
20647
22163
|
|
|
20648
22164
|
|
|
22165
|
+
class ReloadBalanceDBProxyNodeRequest(AbstractModel):
|
|
22166
|
+
r"""ReloadBalanceDBProxyNode请求参数结构体
|
|
22167
|
+
|
|
22168
|
+
"""
|
|
22169
|
+
|
|
22170
|
+
def __init__(self):
|
|
22171
|
+
r"""
|
|
22172
|
+
:param _DBInstanceId: <p>实例ID</p>
|
|
22173
|
+
:type DBInstanceId: str
|
|
22174
|
+
:param _ProxyGroupId: <p>Proxy代理组ID(不传则默认操作该实例下唯一的代理)</p>
|
|
22175
|
+
:type ProxyGroupId: str
|
|
22176
|
+
:param _AddressId: <p>Proxy地址ID。传入时校验归属,实际重平衡为代理组维度</p>
|
|
22177
|
+
:type AddressId: str
|
|
22178
|
+
"""
|
|
22179
|
+
self._DBInstanceId = None
|
|
22180
|
+
self._ProxyGroupId = None
|
|
22181
|
+
self._AddressId = None
|
|
22182
|
+
|
|
22183
|
+
@property
|
|
22184
|
+
def DBInstanceId(self):
|
|
22185
|
+
r"""<p>实例ID</p>
|
|
22186
|
+
:rtype: str
|
|
22187
|
+
"""
|
|
22188
|
+
return self._DBInstanceId
|
|
22189
|
+
|
|
22190
|
+
@DBInstanceId.setter
|
|
22191
|
+
def DBInstanceId(self, DBInstanceId):
|
|
22192
|
+
self._DBInstanceId = DBInstanceId
|
|
22193
|
+
|
|
22194
|
+
@property
|
|
22195
|
+
def ProxyGroupId(self):
|
|
22196
|
+
r"""<p>Proxy代理组ID(不传则默认操作该实例下唯一的代理)</p>
|
|
22197
|
+
:rtype: str
|
|
22198
|
+
"""
|
|
22199
|
+
return self._ProxyGroupId
|
|
22200
|
+
|
|
22201
|
+
@ProxyGroupId.setter
|
|
22202
|
+
def ProxyGroupId(self, ProxyGroupId):
|
|
22203
|
+
self._ProxyGroupId = ProxyGroupId
|
|
22204
|
+
|
|
22205
|
+
@property
|
|
22206
|
+
def AddressId(self):
|
|
22207
|
+
r"""<p>Proxy地址ID。传入时校验归属,实际重平衡为代理组维度</p>
|
|
22208
|
+
:rtype: str
|
|
22209
|
+
"""
|
|
22210
|
+
return self._AddressId
|
|
22211
|
+
|
|
22212
|
+
@AddressId.setter
|
|
22213
|
+
def AddressId(self, AddressId):
|
|
22214
|
+
self._AddressId = AddressId
|
|
22215
|
+
|
|
22216
|
+
|
|
22217
|
+
def _deserialize(self, params):
|
|
22218
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
22219
|
+
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
22220
|
+
self._AddressId = params.get("AddressId")
|
|
22221
|
+
memeber_set = set(params.keys())
|
|
22222
|
+
for name, value in vars(self).items():
|
|
22223
|
+
property_name = name[1:]
|
|
22224
|
+
if property_name in memeber_set:
|
|
22225
|
+
memeber_set.remove(property_name)
|
|
22226
|
+
if len(memeber_set) > 0:
|
|
22227
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
22228
|
+
|
|
22229
|
+
|
|
22230
|
+
|
|
22231
|
+
class ReloadBalanceDBProxyNodeResponse(AbstractModel):
|
|
22232
|
+
r"""ReloadBalanceDBProxyNode返回参数结构体
|
|
22233
|
+
|
|
22234
|
+
"""
|
|
22235
|
+
|
|
22236
|
+
def __init__(self):
|
|
22237
|
+
r"""
|
|
22238
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
22239
|
+
:type RequestId: str
|
|
22240
|
+
"""
|
|
22241
|
+
self._RequestId = None
|
|
22242
|
+
|
|
22243
|
+
@property
|
|
22244
|
+
def RequestId(self):
|
|
22245
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
22246
|
+
:rtype: str
|
|
22247
|
+
"""
|
|
22248
|
+
return self._RequestId
|
|
22249
|
+
|
|
22250
|
+
@RequestId.setter
|
|
22251
|
+
def RequestId(self, RequestId):
|
|
22252
|
+
self._RequestId = RequestId
|
|
22253
|
+
|
|
22254
|
+
|
|
22255
|
+
def _deserialize(self, params):
|
|
22256
|
+
self._RequestId = params.get("RequestId")
|
|
22257
|
+
|
|
22258
|
+
|
|
20649
22259
|
class RemoveDBInstanceFromReadOnlyGroupRequest(AbstractModel):
|
|
20650
22260
|
r"""RemoveDBInstanceFromReadOnlyGroup请求参数结构体
|
|
20651
22261
|
|