tencentcloud-sdk-python-intl-en 3.0.1292__py2.py3-none-any.whl → 3.0.1294__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/mdp/v20200527/mdp_client.py +46 -0
- tencentcloud/mdp/v20200527/models.py +158 -0
- tencentcloud/mongodb/v20190725/errorcodes.py +3 -0
- tencentcloud/mongodb/v20190725/models.py +541 -0
- tencentcloud/mongodb/v20190725/mongodb_client.py +23 -0
- tencentcloud/vpc/v20170312/errorcodes.py +10 -1
- tencentcloud/vpc/v20170312/models.py +1733 -155
- tencentcloud/vpc/v20170312/vpc_client.py +276 -0
- {tencentcloud_sdk_python_intl_en-3.0.1292.dist-info → tencentcloud_sdk_python_intl_en-3.0.1294.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1292.dist-info → tencentcloud_sdk_python_intl_en-3.0.1294.dist-info}/RECORD +13 -13
- {tencentcloud_sdk_python_intl_en-3.0.1292.dist-info → tencentcloud_sdk_python_intl_en-3.0.1294.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1292.dist-info → tencentcloud_sdk_python_intl_en-3.0.1294.dist-info}/top_level.txt +0 -0
|
@@ -3230,6 +3230,215 @@ class DescribeDBInstanceNamespaceResponse(AbstractModel):
|
|
|
3230
3230
|
self._RequestId = params.get("RequestId")
|
|
3231
3231
|
|
|
3232
3232
|
|
|
3233
|
+
class DescribeDBInstanceNodePropertyRequest(AbstractModel):
|
|
3234
|
+
r"""DescribeDBInstanceNodeProperty request structure.
|
|
3235
|
+
|
|
3236
|
+
"""
|
|
3237
|
+
|
|
3238
|
+
def __init__(self):
|
|
3239
|
+
r"""
|
|
3240
|
+
:param _InstanceId: Instance ID. Log in to the [TencentDB for MongoDB console](https://console.cloud.tencent.com/mongodb), and copy the instance ID from the instance list.
|
|
3241
|
+
:type InstanceId: str
|
|
3242
|
+
:param _NodeIds: Node ID. Log in to the [TencentDB for MongoDB console](https://console.cloud.tencent.com/mongodb), go to Node Management, and copy the node ID.
|
|
3243
|
+
:type NodeIds: list of str
|
|
3244
|
+
:param _Roles: Node role. Valid values:
|
|
3245
|
+
- PRIMARY: primary node.
|
|
3246
|
+
- SECONDARY: secondary node.
|
|
3247
|
+
- READONLY: read-only node.
|
|
3248
|
+
- ARBITER: arbitration node.
|
|
3249
|
+
:type Roles: list of str
|
|
3250
|
+
:param _OnlyHidden: Whether the node is a hidden node. Default value: false.
|
|
3251
|
+
:type OnlyHidden: bool
|
|
3252
|
+
:param _Priority: Priority of the node for electing it as the new primary node. Value range: [0, 100]. A larger value indicates a higher priority.
|
|
3253
|
+
:type Priority: int
|
|
3254
|
+
:param _Votes: Node voting right.- 1: The node has the right to vote.
|
|
3255
|
+
- 0: The node does not have the right to vote.
|
|
3256
|
+
:type Votes: int
|
|
3257
|
+
:param _Tags: Node tag.
|
|
3258
|
+
:type Tags: list of NodeTag
|
|
3259
|
+
"""
|
|
3260
|
+
self._InstanceId = None
|
|
3261
|
+
self._NodeIds = None
|
|
3262
|
+
self._Roles = None
|
|
3263
|
+
self._OnlyHidden = None
|
|
3264
|
+
self._Priority = None
|
|
3265
|
+
self._Votes = None
|
|
3266
|
+
self._Tags = None
|
|
3267
|
+
|
|
3268
|
+
@property
|
|
3269
|
+
def InstanceId(self):
|
|
3270
|
+
r"""Instance ID. Log in to the [TencentDB for MongoDB console](https://console.cloud.tencent.com/mongodb), and copy the instance ID from the instance list.
|
|
3271
|
+
:rtype: str
|
|
3272
|
+
"""
|
|
3273
|
+
return self._InstanceId
|
|
3274
|
+
|
|
3275
|
+
@InstanceId.setter
|
|
3276
|
+
def InstanceId(self, InstanceId):
|
|
3277
|
+
self._InstanceId = InstanceId
|
|
3278
|
+
|
|
3279
|
+
@property
|
|
3280
|
+
def NodeIds(self):
|
|
3281
|
+
r"""Node ID. Log in to the [TencentDB for MongoDB console](https://console.cloud.tencent.com/mongodb), go to Node Management, and copy the node ID.
|
|
3282
|
+
:rtype: list of str
|
|
3283
|
+
"""
|
|
3284
|
+
return self._NodeIds
|
|
3285
|
+
|
|
3286
|
+
@NodeIds.setter
|
|
3287
|
+
def NodeIds(self, NodeIds):
|
|
3288
|
+
self._NodeIds = NodeIds
|
|
3289
|
+
|
|
3290
|
+
@property
|
|
3291
|
+
def Roles(self):
|
|
3292
|
+
r"""Node role. Valid values:
|
|
3293
|
+
- PRIMARY: primary node.
|
|
3294
|
+
- SECONDARY: secondary node.
|
|
3295
|
+
- READONLY: read-only node.
|
|
3296
|
+
- ARBITER: arbitration node.
|
|
3297
|
+
:rtype: list of str
|
|
3298
|
+
"""
|
|
3299
|
+
return self._Roles
|
|
3300
|
+
|
|
3301
|
+
@Roles.setter
|
|
3302
|
+
def Roles(self, Roles):
|
|
3303
|
+
self._Roles = Roles
|
|
3304
|
+
|
|
3305
|
+
@property
|
|
3306
|
+
def OnlyHidden(self):
|
|
3307
|
+
r"""Whether the node is a hidden node. Default value: false.
|
|
3308
|
+
:rtype: bool
|
|
3309
|
+
"""
|
|
3310
|
+
return self._OnlyHidden
|
|
3311
|
+
|
|
3312
|
+
@OnlyHidden.setter
|
|
3313
|
+
def OnlyHidden(self, OnlyHidden):
|
|
3314
|
+
self._OnlyHidden = OnlyHidden
|
|
3315
|
+
|
|
3316
|
+
@property
|
|
3317
|
+
def Priority(self):
|
|
3318
|
+
r"""Priority of the node for electing it as the new primary node. Value range: [0, 100]. A larger value indicates a higher priority.
|
|
3319
|
+
:rtype: int
|
|
3320
|
+
"""
|
|
3321
|
+
return self._Priority
|
|
3322
|
+
|
|
3323
|
+
@Priority.setter
|
|
3324
|
+
def Priority(self, Priority):
|
|
3325
|
+
self._Priority = Priority
|
|
3326
|
+
|
|
3327
|
+
@property
|
|
3328
|
+
def Votes(self):
|
|
3329
|
+
r"""Node voting right.- 1: The node has the right to vote.
|
|
3330
|
+
- 0: The node does not have the right to vote.
|
|
3331
|
+
:rtype: int
|
|
3332
|
+
"""
|
|
3333
|
+
return self._Votes
|
|
3334
|
+
|
|
3335
|
+
@Votes.setter
|
|
3336
|
+
def Votes(self, Votes):
|
|
3337
|
+
self._Votes = Votes
|
|
3338
|
+
|
|
3339
|
+
@property
|
|
3340
|
+
def Tags(self):
|
|
3341
|
+
r"""Node tag.
|
|
3342
|
+
:rtype: list of NodeTag
|
|
3343
|
+
"""
|
|
3344
|
+
return self._Tags
|
|
3345
|
+
|
|
3346
|
+
@Tags.setter
|
|
3347
|
+
def Tags(self, Tags):
|
|
3348
|
+
self._Tags = Tags
|
|
3349
|
+
|
|
3350
|
+
|
|
3351
|
+
def _deserialize(self, params):
|
|
3352
|
+
self._InstanceId = params.get("InstanceId")
|
|
3353
|
+
self._NodeIds = params.get("NodeIds")
|
|
3354
|
+
self._Roles = params.get("Roles")
|
|
3355
|
+
self._OnlyHidden = params.get("OnlyHidden")
|
|
3356
|
+
self._Priority = params.get("Priority")
|
|
3357
|
+
self._Votes = params.get("Votes")
|
|
3358
|
+
if params.get("Tags") is not None:
|
|
3359
|
+
self._Tags = []
|
|
3360
|
+
for item in params.get("Tags"):
|
|
3361
|
+
obj = NodeTag()
|
|
3362
|
+
obj._deserialize(item)
|
|
3363
|
+
self._Tags.append(obj)
|
|
3364
|
+
memeber_set = set(params.keys())
|
|
3365
|
+
for name, value in vars(self).items():
|
|
3366
|
+
property_name = name[1:]
|
|
3367
|
+
if property_name in memeber_set:
|
|
3368
|
+
memeber_set.remove(property_name)
|
|
3369
|
+
if len(memeber_set) > 0:
|
|
3370
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3371
|
+
|
|
3372
|
+
|
|
3373
|
+
|
|
3374
|
+
class DescribeDBInstanceNodePropertyResponse(AbstractModel):
|
|
3375
|
+
r"""DescribeDBInstanceNodeProperty response structure.
|
|
3376
|
+
|
|
3377
|
+
"""
|
|
3378
|
+
|
|
3379
|
+
def __init__(self):
|
|
3380
|
+
r"""
|
|
3381
|
+
:param _Mongos: Mongos node attributes.
|
|
3382
|
+
:type Mongos: list of NodeProperty
|
|
3383
|
+
:param _ReplicateSets: Replica set node information.
|
|
3384
|
+
:type ReplicateSets: list of ReplicateSetInfo
|
|
3385
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
3386
|
+
:type RequestId: str
|
|
3387
|
+
"""
|
|
3388
|
+
self._Mongos = None
|
|
3389
|
+
self._ReplicateSets = None
|
|
3390
|
+
self._RequestId = None
|
|
3391
|
+
|
|
3392
|
+
@property
|
|
3393
|
+
def Mongos(self):
|
|
3394
|
+
r"""Mongos node attributes.
|
|
3395
|
+
:rtype: list of NodeProperty
|
|
3396
|
+
"""
|
|
3397
|
+
return self._Mongos
|
|
3398
|
+
|
|
3399
|
+
@Mongos.setter
|
|
3400
|
+
def Mongos(self, Mongos):
|
|
3401
|
+
self._Mongos = Mongos
|
|
3402
|
+
|
|
3403
|
+
@property
|
|
3404
|
+
def ReplicateSets(self):
|
|
3405
|
+
r"""Replica set node information.
|
|
3406
|
+
:rtype: list of ReplicateSetInfo
|
|
3407
|
+
"""
|
|
3408
|
+
return self._ReplicateSets
|
|
3409
|
+
|
|
3410
|
+
@ReplicateSets.setter
|
|
3411
|
+
def ReplicateSets(self, ReplicateSets):
|
|
3412
|
+
self._ReplicateSets = ReplicateSets
|
|
3413
|
+
|
|
3414
|
+
@property
|
|
3415
|
+
def RequestId(self):
|
|
3416
|
+
r"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
3417
|
+
:rtype: str
|
|
3418
|
+
"""
|
|
3419
|
+
return self._RequestId
|
|
3420
|
+
|
|
3421
|
+
@RequestId.setter
|
|
3422
|
+
def RequestId(self, RequestId):
|
|
3423
|
+
self._RequestId = RequestId
|
|
3424
|
+
|
|
3425
|
+
|
|
3426
|
+
def _deserialize(self, params):
|
|
3427
|
+
if params.get("Mongos") is not None:
|
|
3428
|
+
self._Mongos = []
|
|
3429
|
+
for item in params.get("Mongos"):
|
|
3430
|
+
obj = NodeProperty()
|
|
3431
|
+
obj._deserialize(item)
|
|
3432
|
+
self._Mongos.append(obj)
|
|
3433
|
+
if params.get("ReplicateSets") is not None:
|
|
3434
|
+
self._ReplicateSets = []
|
|
3435
|
+
for item in params.get("ReplicateSets"):
|
|
3436
|
+
obj = ReplicateSetInfo()
|
|
3437
|
+
obj._deserialize(item)
|
|
3438
|
+
self._ReplicateSets.append(obj)
|
|
3439
|
+
self._RequestId = params.get("RequestId")
|
|
3440
|
+
|
|
3441
|
+
|
|
3233
3442
|
class DescribeDBInstancesRequest(AbstractModel):
|
|
3234
3443
|
r"""DescribeDBInstances request structure.
|
|
3235
3444
|
|
|
@@ -7325,6 +7534,297 @@ class ModifyNetworkAddress(AbstractModel):
|
|
|
7325
7534
|
|
|
7326
7535
|
|
|
7327
7536
|
|
|
7537
|
+
class NodeProperty(AbstractModel):
|
|
7538
|
+
r"""Node attributes.
|
|
7539
|
+
|
|
7540
|
+
"""
|
|
7541
|
+
|
|
7542
|
+
def __init__(self):
|
|
7543
|
+
r"""
|
|
7544
|
+
:param _Zone: Node AZ.
|
|
7545
|
+
:type Zone: str
|
|
7546
|
+
:param _NodeName: Node name.
|
|
7547
|
+
:type NodeName: str
|
|
7548
|
+
:param _Address: Node access address.
|
|
7549
|
+
:type Address: str
|
|
7550
|
+
:param _WanServiceAddress: Public network access address (IP address or domain name) of the node. The example value is an IP address.
|
|
7551
|
+
:type WanServiceAddress: str
|
|
7552
|
+
:param _Role: Node role.
|
|
7553
|
+
- PRIMARY: primary node.
|
|
7554
|
+
- SECONDARY: secondary node.
|
|
7555
|
+
- READONLY: read-only node.
|
|
7556
|
+
- ARBITER: arbitration node.
|
|
7557
|
+
:type Role: str
|
|
7558
|
+
:param _Hidden: Whether the node is a hidden node.
|
|
7559
|
+
- true: a hidden node.
|
|
7560
|
+
- false: not a hidden node.
|
|
7561
|
+
:type Hidden: bool
|
|
7562
|
+
:param _Status: Node status.
|
|
7563
|
+
- NORMAL: running normally.
|
|
7564
|
+
- STARTUP: starting.
|
|
7565
|
+
- STARTUP2: starting and processing the intermediate data.
|
|
7566
|
+
- RECOVERING: recovering and not available.
|
|
7567
|
+
- DOWN: offline.
|
|
7568
|
+
- UNKNOWN: unknown status.
|
|
7569
|
+
- ROLLBACK: rolling back.
|
|
7570
|
+
- REMOVED: removed.
|
|
7571
|
+
:type Status: str
|
|
7572
|
+
:param _SlaveDelay: Delay time of primary-secondary synchronization, in seconds.
|
|
7573
|
+
:type SlaveDelay: int
|
|
7574
|
+
:param _Priority: Node priority. Value range: [0, 100]. A larger value indicates a higher priority.
|
|
7575
|
+
:type Priority: int
|
|
7576
|
+
:param _Votes: Node voting right.
|
|
7577
|
+
- 1: The node has the right to vote.
|
|
7578
|
+
- 0: The node does not have the right to vote.
|
|
7579
|
+
:type Votes: int
|
|
7580
|
+
:param _Tags: Node tag.
|
|
7581
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7582
|
+
:type Tags: list of NodeTag
|
|
7583
|
+
:param _ReplicateSetId: Replica set ID.
|
|
7584
|
+
:type ReplicateSetId: str
|
|
7585
|
+
"""
|
|
7586
|
+
self._Zone = None
|
|
7587
|
+
self._NodeName = None
|
|
7588
|
+
self._Address = None
|
|
7589
|
+
self._WanServiceAddress = None
|
|
7590
|
+
self._Role = None
|
|
7591
|
+
self._Hidden = None
|
|
7592
|
+
self._Status = None
|
|
7593
|
+
self._SlaveDelay = None
|
|
7594
|
+
self._Priority = None
|
|
7595
|
+
self._Votes = None
|
|
7596
|
+
self._Tags = None
|
|
7597
|
+
self._ReplicateSetId = None
|
|
7598
|
+
|
|
7599
|
+
@property
|
|
7600
|
+
def Zone(self):
|
|
7601
|
+
r"""Node AZ.
|
|
7602
|
+
:rtype: str
|
|
7603
|
+
"""
|
|
7604
|
+
return self._Zone
|
|
7605
|
+
|
|
7606
|
+
@Zone.setter
|
|
7607
|
+
def Zone(self, Zone):
|
|
7608
|
+
self._Zone = Zone
|
|
7609
|
+
|
|
7610
|
+
@property
|
|
7611
|
+
def NodeName(self):
|
|
7612
|
+
r"""Node name.
|
|
7613
|
+
:rtype: str
|
|
7614
|
+
"""
|
|
7615
|
+
return self._NodeName
|
|
7616
|
+
|
|
7617
|
+
@NodeName.setter
|
|
7618
|
+
def NodeName(self, NodeName):
|
|
7619
|
+
self._NodeName = NodeName
|
|
7620
|
+
|
|
7621
|
+
@property
|
|
7622
|
+
def Address(self):
|
|
7623
|
+
r"""Node access address.
|
|
7624
|
+
:rtype: str
|
|
7625
|
+
"""
|
|
7626
|
+
return self._Address
|
|
7627
|
+
|
|
7628
|
+
@Address.setter
|
|
7629
|
+
def Address(self, Address):
|
|
7630
|
+
self._Address = Address
|
|
7631
|
+
|
|
7632
|
+
@property
|
|
7633
|
+
def WanServiceAddress(self):
|
|
7634
|
+
r"""Public network access address (IP address or domain name) of the node. The example value is an IP address.
|
|
7635
|
+
:rtype: str
|
|
7636
|
+
"""
|
|
7637
|
+
return self._WanServiceAddress
|
|
7638
|
+
|
|
7639
|
+
@WanServiceAddress.setter
|
|
7640
|
+
def WanServiceAddress(self, WanServiceAddress):
|
|
7641
|
+
self._WanServiceAddress = WanServiceAddress
|
|
7642
|
+
|
|
7643
|
+
@property
|
|
7644
|
+
def Role(self):
|
|
7645
|
+
r"""Node role.
|
|
7646
|
+
- PRIMARY: primary node.
|
|
7647
|
+
- SECONDARY: secondary node.
|
|
7648
|
+
- READONLY: read-only node.
|
|
7649
|
+
- ARBITER: arbitration node.
|
|
7650
|
+
:rtype: str
|
|
7651
|
+
"""
|
|
7652
|
+
return self._Role
|
|
7653
|
+
|
|
7654
|
+
@Role.setter
|
|
7655
|
+
def Role(self, Role):
|
|
7656
|
+
self._Role = Role
|
|
7657
|
+
|
|
7658
|
+
@property
|
|
7659
|
+
def Hidden(self):
|
|
7660
|
+
r"""Whether the node is a hidden node.
|
|
7661
|
+
- true: a hidden node.
|
|
7662
|
+
- false: not a hidden node.
|
|
7663
|
+
:rtype: bool
|
|
7664
|
+
"""
|
|
7665
|
+
return self._Hidden
|
|
7666
|
+
|
|
7667
|
+
@Hidden.setter
|
|
7668
|
+
def Hidden(self, Hidden):
|
|
7669
|
+
self._Hidden = Hidden
|
|
7670
|
+
|
|
7671
|
+
@property
|
|
7672
|
+
def Status(self):
|
|
7673
|
+
r"""Node status.
|
|
7674
|
+
- NORMAL: running normally.
|
|
7675
|
+
- STARTUP: starting.
|
|
7676
|
+
- STARTUP2: starting and processing the intermediate data.
|
|
7677
|
+
- RECOVERING: recovering and not available.
|
|
7678
|
+
- DOWN: offline.
|
|
7679
|
+
- UNKNOWN: unknown status.
|
|
7680
|
+
- ROLLBACK: rolling back.
|
|
7681
|
+
- REMOVED: removed.
|
|
7682
|
+
:rtype: str
|
|
7683
|
+
"""
|
|
7684
|
+
return self._Status
|
|
7685
|
+
|
|
7686
|
+
@Status.setter
|
|
7687
|
+
def Status(self, Status):
|
|
7688
|
+
self._Status = Status
|
|
7689
|
+
|
|
7690
|
+
@property
|
|
7691
|
+
def SlaveDelay(self):
|
|
7692
|
+
r"""Delay time of primary-secondary synchronization, in seconds.
|
|
7693
|
+
:rtype: int
|
|
7694
|
+
"""
|
|
7695
|
+
return self._SlaveDelay
|
|
7696
|
+
|
|
7697
|
+
@SlaveDelay.setter
|
|
7698
|
+
def SlaveDelay(self, SlaveDelay):
|
|
7699
|
+
self._SlaveDelay = SlaveDelay
|
|
7700
|
+
|
|
7701
|
+
@property
|
|
7702
|
+
def Priority(self):
|
|
7703
|
+
r"""Node priority. Value range: [0, 100]. A larger value indicates a higher priority.
|
|
7704
|
+
:rtype: int
|
|
7705
|
+
"""
|
|
7706
|
+
return self._Priority
|
|
7707
|
+
|
|
7708
|
+
@Priority.setter
|
|
7709
|
+
def Priority(self, Priority):
|
|
7710
|
+
self._Priority = Priority
|
|
7711
|
+
|
|
7712
|
+
@property
|
|
7713
|
+
def Votes(self):
|
|
7714
|
+
r"""Node voting right.
|
|
7715
|
+
- 1: The node has the right to vote.
|
|
7716
|
+
- 0: The node does not have the right to vote.
|
|
7717
|
+
:rtype: int
|
|
7718
|
+
"""
|
|
7719
|
+
return self._Votes
|
|
7720
|
+
|
|
7721
|
+
@Votes.setter
|
|
7722
|
+
def Votes(self, Votes):
|
|
7723
|
+
self._Votes = Votes
|
|
7724
|
+
|
|
7725
|
+
@property
|
|
7726
|
+
def Tags(self):
|
|
7727
|
+
r"""Node tag.
|
|
7728
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7729
|
+
:rtype: list of NodeTag
|
|
7730
|
+
"""
|
|
7731
|
+
return self._Tags
|
|
7732
|
+
|
|
7733
|
+
@Tags.setter
|
|
7734
|
+
def Tags(self, Tags):
|
|
7735
|
+
self._Tags = Tags
|
|
7736
|
+
|
|
7737
|
+
@property
|
|
7738
|
+
def ReplicateSetId(self):
|
|
7739
|
+
r"""Replica set ID.
|
|
7740
|
+
:rtype: str
|
|
7741
|
+
"""
|
|
7742
|
+
return self._ReplicateSetId
|
|
7743
|
+
|
|
7744
|
+
@ReplicateSetId.setter
|
|
7745
|
+
def ReplicateSetId(self, ReplicateSetId):
|
|
7746
|
+
self._ReplicateSetId = ReplicateSetId
|
|
7747
|
+
|
|
7748
|
+
|
|
7749
|
+
def _deserialize(self, params):
|
|
7750
|
+
self._Zone = params.get("Zone")
|
|
7751
|
+
self._NodeName = params.get("NodeName")
|
|
7752
|
+
self._Address = params.get("Address")
|
|
7753
|
+
self._WanServiceAddress = params.get("WanServiceAddress")
|
|
7754
|
+
self._Role = params.get("Role")
|
|
7755
|
+
self._Hidden = params.get("Hidden")
|
|
7756
|
+
self._Status = params.get("Status")
|
|
7757
|
+
self._SlaveDelay = params.get("SlaveDelay")
|
|
7758
|
+
self._Priority = params.get("Priority")
|
|
7759
|
+
self._Votes = params.get("Votes")
|
|
7760
|
+
if params.get("Tags") is not None:
|
|
7761
|
+
self._Tags = []
|
|
7762
|
+
for item in params.get("Tags"):
|
|
7763
|
+
obj = NodeTag()
|
|
7764
|
+
obj._deserialize(item)
|
|
7765
|
+
self._Tags.append(obj)
|
|
7766
|
+
self._ReplicateSetId = params.get("ReplicateSetId")
|
|
7767
|
+
memeber_set = set(params.keys())
|
|
7768
|
+
for name, value in vars(self).items():
|
|
7769
|
+
property_name = name[1:]
|
|
7770
|
+
if property_name in memeber_set:
|
|
7771
|
+
memeber_set.remove(property_name)
|
|
7772
|
+
if len(memeber_set) > 0:
|
|
7773
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7774
|
+
|
|
7775
|
+
|
|
7776
|
+
|
|
7777
|
+
class NodeTag(AbstractModel):
|
|
7778
|
+
r"""Node tag.
|
|
7779
|
+
|
|
7780
|
+
"""
|
|
7781
|
+
|
|
7782
|
+
def __init__(self):
|
|
7783
|
+
r"""
|
|
7784
|
+
:param _TagKey: Node tag key.
|
|
7785
|
+
:type TagKey: str
|
|
7786
|
+
:param _TagValue: Node tag value.
|
|
7787
|
+
:type TagValue: str
|
|
7788
|
+
"""
|
|
7789
|
+
self._TagKey = None
|
|
7790
|
+
self._TagValue = None
|
|
7791
|
+
|
|
7792
|
+
@property
|
|
7793
|
+
def TagKey(self):
|
|
7794
|
+
r"""Node tag key.
|
|
7795
|
+
:rtype: str
|
|
7796
|
+
"""
|
|
7797
|
+
return self._TagKey
|
|
7798
|
+
|
|
7799
|
+
@TagKey.setter
|
|
7800
|
+
def TagKey(self, TagKey):
|
|
7801
|
+
self._TagKey = TagKey
|
|
7802
|
+
|
|
7803
|
+
@property
|
|
7804
|
+
def TagValue(self):
|
|
7805
|
+
r"""Node tag value.
|
|
7806
|
+
:rtype: str
|
|
7807
|
+
"""
|
|
7808
|
+
return self._TagValue
|
|
7809
|
+
|
|
7810
|
+
@TagValue.setter
|
|
7811
|
+
def TagValue(self, TagValue):
|
|
7812
|
+
self._TagValue = TagValue
|
|
7813
|
+
|
|
7814
|
+
|
|
7815
|
+
def _deserialize(self, params):
|
|
7816
|
+
self._TagKey = params.get("TagKey")
|
|
7817
|
+
self._TagValue = params.get("TagValue")
|
|
7818
|
+
memeber_set = set(params.keys())
|
|
7819
|
+
for name, value in vars(self).items():
|
|
7820
|
+
property_name = name[1:]
|
|
7821
|
+
if property_name in memeber_set:
|
|
7822
|
+
memeber_set.remove(property_name)
|
|
7823
|
+
if len(memeber_set) > 0:
|
|
7824
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7825
|
+
|
|
7826
|
+
|
|
7827
|
+
|
|
7328
7828
|
class OfflineIsolatedDBInstanceRequest(AbstractModel):
|
|
7329
7829
|
r"""OfflineIsolatedDBInstance request structure.
|
|
7330
7830
|
|
|
@@ -7684,6 +8184,47 @@ class ReplicaSetInfo(AbstractModel):
|
|
|
7684
8184
|
|
|
7685
8185
|
|
|
7686
8186
|
|
|
8187
|
+
class ReplicateSetInfo(AbstractModel):
|
|
8188
|
+
r"""Replica set information.
|
|
8189
|
+
|
|
8190
|
+
"""
|
|
8191
|
+
|
|
8192
|
+
def __init__(self):
|
|
8193
|
+
r"""
|
|
8194
|
+
:param _Nodes: Node attributes.
|
|
8195
|
+
:type Nodes: list of NodeProperty
|
|
8196
|
+
"""
|
|
8197
|
+
self._Nodes = None
|
|
8198
|
+
|
|
8199
|
+
@property
|
|
8200
|
+
def Nodes(self):
|
|
8201
|
+
r"""Node attributes.
|
|
8202
|
+
:rtype: list of NodeProperty
|
|
8203
|
+
"""
|
|
8204
|
+
return self._Nodes
|
|
8205
|
+
|
|
8206
|
+
@Nodes.setter
|
|
8207
|
+
def Nodes(self, Nodes):
|
|
8208
|
+
self._Nodes = Nodes
|
|
8209
|
+
|
|
8210
|
+
|
|
8211
|
+
def _deserialize(self, params):
|
|
8212
|
+
if params.get("Nodes") is not None:
|
|
8213
|
+
self._Nodes = []
|
|
8214
|
+
for item in params.get("Nodes"):
|
|
8215
|
+
obj = NodeProperty()
|
|
8216
|
+
obj._deserialize(item)
|
|
8217
|
+
self._Nodes.append(obj)
|
|
8218
|
+
memeber_set = set(params.keys())
|
|
8219
|
+
for name, value in vars(self).items():
|
|
8220
|
+
property_name = name[1:]
|
|
8221
|
+
if property_name in memeber_set:
|
|
8222
|
+
memeber_set.remove(property_name)
|
|
8223
|
+
if len(memeber_set) > 0:
|
|
8224
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8225
|
+
|
|
8226
|
+
|
|
8227
|
+
|
|
7687
8228
|
class ResetDBInstancePasswordRequest(AbstractModel):
|
|
7688
8229
|
r"""ResetDBInstancePassword request structure.
|
|
7689
8230
|
|
|
@@ -279,6 +279,29 @@ class MongodbClient(AbstractClient):
|
|
|
279
279
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
280
|
|
|
281
281
|
|
|
282
|
+
def DescribeDBInstanceNodeProperty(self, request):
|
|
283
|
+
r"""This API is used to query node attributes, such as the AZ, node name, address, role, status, delay between primary and secondary nodes, priority, voting right, and tags.
|
|
284
|
+
|
|
285
|
+
:param request: Request instance for DescribeDBInstanceNodeProperty.
|
|
286
|
+
:type request: :class:`tencentcloud.mongodb.v20190725.models.DescribeDBInstanceNodePropertyRequest`
|
|
287
|
+
:rtype: :class:`tencentcloud.mongodb.v20190725.models.DescribeDBInstanceNodePropertyResponse`
|
|
288
|
+
|
|
289
|
+
"""
|
|
290
|
+
try:
|
|
291
|
+
params = request._serialize()
|
|
292
|
+
headers = request.headers
|
|
293
|
+
body = self.call("DescribeDBInstanceNodeProperty", params, headers=headers)
|
|
294
|
+
response = json.loads(body)
|
|
295
|
+
model = models.DescribeDBInstanceNodePropertyResponse()
|
|
296
|
+
model._deserialize(response["Response"])
|
|
297
|
+
return model
|
|
298
|
+
except Exception as e:
|
|
299
|
+
if isinstance(e, TencentCloudSDKException):
|
|
300
|
+
raise
|
|
301
|
+
else:
|
|
302
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
303
|
+
|
|
304
|
+
|
|
282
305
|
def DescribeDBInstances(self, request):
|
|
283
306
|
r"""This API is used to query the list of TencentDB for MongoDB instances. It supports filtering primary instances, disaster recovery instances, and read-only instances by project ID, instance ID, instance status, and other conditions.
|
|
284
307
|
|
|
@@ -281,6 +281,9 @@ INVALIDPARAMETERVALUE_MISSINGASSOCIATEENTITY = 'InvalidParameterValue.MissingAss
|
|
|
281
281
|
# A request cannot contain IP addresses with different cluster types.
|
|
282
282
|
INVALIDPARAMETERVALUE_MIXEDADDRESSIPSETTYPE = 'InvalidParameterValue.MixedAddressIpSetType'
|
|
283
283
|
|
|
284
|
+
# Missing required parameters. provide at least one.
|
|
285
|
+
INVALIDPARAMETERVALUE_MUSTHASONE = 'InvalidParameterValue.MustHasOne'
|
|
286
|
+
|
|
284
287
|
# The DNAT forwarding rule of the NAT gateway already exists.
|
|
285
288
|
INVALIDPARAMETERVALUE_NATGATEWAYDNATRULEEXISTED = 'InvalidParameterValue.NatGatewayDnatRuleExisted'
|
|
286
289
|
|
|
@@ -350,7 +353,10 @@ INVALIDPARAMETERVALUE_RESOURCENOTFOUND = 'InvalidParameterValue.ResourceNotFound
|
|
|
350
353
|
# The resource does not support this operation.
|
|
351
354
|
INVALIDPARAMETERVALUE_RESOURCENOTSUPPORT = 'InvalidParameterValue.ResourceNotSupport'
|
|
352
355
|
|
|
353
|
-
# The
|
|
356
|
+
# The routing strategy binding rule already exists.
|
|
357
|
+
INVALIDPARAMETERVALUE_ROUTEPOLICYASSOCIATIONEXISTS = 'InvalidParameterValue.RoutePolicyAssociationExists'
|
|
358
|
+
|
|
359
|
+
# The specified priority conflicts with each other or with an already existing priority.
|
|
354
360
|
INVALIDPARAMETERVALUE_ROUTEPOLICYPRIORITYCONFLICT = 'InvalidParameterValue.RoutePolicyPriorityConflict'
|
|
355
361
|
|
|
356
362
|
# Operation failed: The instance to shut down is using the current resource.
|
|
@@ -959,6 +965,9 @@ UNSUPPORTEDOPERATION_RESOURCEMISMATCH = 'UnsupportedOperation.ResourceMismatch'
|
|
|
959
965
|
# No roles available. Please confirm whether you get the authorization for the role.
|
|
960
966
|
UNSUPPORTEDOPERATION_ROLENOTFOUND = 'UnsupportedOperation.RoleNotFound'
|
|
961
967
|
|
|
968
|
+
# The routing strategy is associated with the route table and cannot be deleted.
|
|
969
|
+
UNSUPPORTEDOPERATION_ROUTEPOLICYASSOCIATION = 'UnsupportedOperation.RoutePolicyAssociation'
|
|
970
|
+
|
|
962
971
|
# The current route table deletion failed. Please check if there are any associated policies.
|
|
963
972
|
UNSUPPORTEDOPERATION_ROUTETABLECANNOTDELETE = 'UnsupportedOperation.RouteTableCanNotDelete'
|
|
964
973
|
|