tencentcloud-sdk-python 3.0.1340__py2.py3-none-any.whl → 3.0.1342__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/autoscaling/v20180419/autoscaling_client.py +26 -0
- tencentcloud/autoscaling/v20180419/models.py +94 -0
- tencentcloud/billing/v20180709/models.py +0 -246
- tencentcloud/captcha/v20190722/models.py +6 -24
- tencentcloud/cdc/v20201214/models.py +29 -86
- tencentcloud/cdwch/v20200915/models.py +124 -0
- tencentcloud/cdz/v20221123/models.py +0 -8
- tencentcloud/cfs/v20190719/errorcodes.py +3 -0
- tencentcloud/cvm/v20170312/cvm_client.py +23 -0
- tencentcloud/cvm/v20170312/models.py +211 -4
- tencentcloud/cwp/v20180228/models.py +99 -24
- tencentcloud/cynosdb/v20190107/models.py +0 -290
- tencentcloud/dbbrain/v20210527/models.py +15 -0
- tencentcloud/domain/v20180808/models.py +30 -24
- tencentcloud/ess/v20201111/models.py +69 -2
- tencentcloud/essbasic/v20210526/models.py +73 -6
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +25 -0
- tencentcloud/hunyuan/v20230901/models.py +629 -21
- tencentcloud/lcic/v20220817/models.py +4 -4
- tencentcloud/lighthouse/v20200324/lighthouse_client.py +12 -3
- tencentcloud/lighthouse/v20200324/models.py +139 -39
- tencentcloud/lke/v20231130/lke_client.py +2 -2
- tencentcloud/lke/v20231130/models.py +6 -6
- tencentcloud/mariadb/v20170312/models.py +0 -24
- tencentcloud/mongodb/v20190725/models.py +6 -6
- tencentcloud/ocr/v20181119/models.py +82 -0
- tencentcloud/redis/v20180412/models.py +8 -8
- tencentcloud/ses/v20201002/models.py +2 -4
- tencentcloud/ssl/v20191205/models.py +7 -319
- tencentcloud/tat/v20201028/models.py +10 -8
- tencentcloud/tcb/v20180608/models.py +0 -230
- tencentcloud/tchd/v20230306/models.py +168 -0
- tencentcloud/tchd/v20230306/tchd_client.py +24 -0
- tencentcloud/tdmq/v20200217/models.py +17 -198
- tencentcloud/teo/v20220901/models.py +227 -1
- tencentcloud/teo/v20220901/teo_client.py +8 -4
- tencentcloud/trocket/v20230308/models.py +109 -0
- tencentcloud/trocket/v20230308/trocket_client.py +23 -0
- tencentcloud/trro/v20220325/models.py +140 -0
- tencentcloud/trro/v20220325/trro_client.py +25 -0
- tencentcloud/vpc/v20170312/errorcodes.py +9 -0
- tencentcloud/waf/v20180125/models.py +398 -0
- tencentcloud/waf/v20180125/waf_client.py +69 -0
- tencentcloud/wedata/v20210820/models.py +133 -254
- {tencentcloud_sdk_python-3.0.1340.dist-info → tencentcloud_sdk_python-3.0.1342.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1340.dist-info → tencentcloud_sdk_python-3.0.1342.dist-info}/RECORD +50 -50
- {tencentcloud_sdk_python-3.0.1340.dist-info → tencentcloud_sdk_python-3.0.1342.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1340.dist-info → tencentcloud_sdk_python-3.0.1342.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1340.dist-info → tencentcloud_sdk_python-3.0.1342.dist-info}/top_level.txt +0 -0
@@ -1089,6 +1089,8 @@ SpecName从DescribeSpec接口中返回的CommonSpec.Name(ZK节点)获取
|
|
1089
1089
|
:type CommonSpec: :class:`tencentcloud.cdwch.v20200915.models.NodeSpec`
|
1090
1090
|
:param _TagItems: 标签列表
|
1091
1091
|
:type TagItems: list of Tag
|
1092
|
+
:param _SecondaryZoneInfo: 副可用去信息
|
1093
|
+
:type SecondaryZoneInfo: list of SecondaryZoneInfo
|
1092
1094
|
"""
|
1093
1095
|
self._Zone = None
|
1094
1096
|
self._HaFlag = None
|
@@ -1105,6 +1107,7 @@ SpecName从DescribeSpec接口中返回的CommonSpec.Name(ZK节点)获取
|
|
1105
1107
|
self._HAZk = None
|
1106
1108
|
self._CommonSpec = None
|
1107
1109
|
self._TagItems = None
|
1110
|
+
self._SecondaryZoneInfo = None
|
1108
1111
|
|
1109
1112
|
@property
|
1110
1113
|
def Zone(self):
|
@@ -1277,6 +1280,17 @@ SpecName从DescribeSpec接口中返回的CommonSpec.Name(ZK节点)获取
|
|
1277
1280
|
def TagItems(self, TagItems):
|
1278
1281
|
self._TagItems = TagItems
|
1279
1282
|
|
1283
|
+
@property
|
1284
|
+
def SecondaryZoneInfo(self):
|
1285
|
+
"""副可用去信息
|
1286
|
+
:rtype: list of SecondaryZoneInfo
|
1287
|
+
"""
|
1288
|
+
return self._SecondaryZoneInfo
|
1289
|
+
|
1290
|
+
@SecondaryZoneInfo.setter
|
1291
|
+
def SecondaryZoneInfo(self, SecondaryZoneInfo):
|
1292
|
+
self._SecondaryZoneInfo = SecondaryZoneInfo
|
1293
|
+
|
1280
1294
|
|
1281
1295
|
def _deserialize(self, params):
|
1282
1296
|
self._Zone = params.get("Zone")
|
@@ -1307,6 +1321,12 @@ SpecName从DescribeSpec接口中返回的CommonSpec.Name(ZK节点)获取
|
|
1307
1321
|
obj = Tag()
|
1308
1322
|
obj._deserialize(item)
|
1309
1323
|
self._TagItems.append(obj)
|
1324
|
+
if params.get("SecondaryZoneInfo") is not None:
|
1325
|
+
self._SecondaryZoneInfo = []
|
1326
|
+
for item in params.get("SecondaryZoneInfo"):
|
1327
|
+
obj = SecondaryZoneInfo()
|
1328
|
+
obj._deserialize(item)
|
1329
|
+
self._SecondaryZoneInfo.append(obj)
|
1310
1330
|
memeber_set = set(params.keys())
|
1311
1331
|
for name, value in vars(self).items():
|
1312
1332
|
property_name = name[1:]
|
@@ -3094,6 +3114,8 @@ class DescribeInstancesNewRequest(AbstractModel):
|
|
3094
3114
|
:type SearchTags: list of SearchTags
|
3095
3115
|
:param _IsSimple: 信息详细与否
|
3096
3116
|
:type IsSimple: bool
|
3117
|
+
:param _Vips: vip列表
|
3118
|
+
:type Vips: list of str
|
3097
3119
|
"""
|
3098
3120
|
self._SearchInstanceId = None
|
3099
3121
|
self._SearchInstanceName = None
|
@@ -3101,6 +3123,7 @@ class DescribeInstancesNewRequest(AbstractModel):
|
|
3101
3123
|
self._Limit = None
|
3102
3124
|
self._SearchTags = None
|
3103
3125
|
self._IsSimple = None
|
3126
|
+
self._Vips = None
|
3104
3127
|
|
3105
3128
|
@property
|
3106
3129
|
def SearchInstanceId(self):
|
@@ -3168,6 +3191,17 @@ class DescribeInstancesNewRequest(AbstractModel):
|
|
3168
3191
|
def IsSimple(self, IsSimple):
|
3169
3192
|
self._IsSimple = IsSimple
|
3170
3193
|
|
3194
|
+
@property
|
3195
|
+
def Vips(self):
|
3196
|
+
"""vip列表
|
3197
|
+
:rtype: list of str
|
3198
|
+
"""
|
3199
|
+
return self._Vips
|
3200
|
+
|
3201
|
+
@Vips.setter
|
3202
|
+
def Vips(self, Vips):
|
3203
|
+
self._Vips = Vips
|
3204
|
+
|
3171
3205
|
|
3172
3206
|
def _deserialize(self, params):
|
3173
3207
|
self._SearchInstanceId = params.get("SearchInstanceId")
|
@@ -3181,6 +3215,7 @@ class DescribeInstancesNewRequest(AbstractModel):
|
|
3181
3215
|
obj._deserialize(item)
|
3182
3216
|
self._SearchTags.append(obj)
|
3183
3217
|
self._IsSimple = params.get("IsSimple")
|
3218
|
+
self._Vips = params.get("Vips")
|
3184
3219
|
memeber_set = set(params.keys())
|
3185
3220
|
for name, value in vars(self).items():
|
3186
3221
|
property_name = name[1:]
|
@@ -7423,6 +7458,95 @@ class SearchTags(AbstractModel):
|
|
7423
7458
|
|
7424
7459
|
|
7425
7460
|
|
7461
|
+
class SecondaryZoneInfo(AbstractModel):
|
7462
|
+
"""副可用区详情
|
7463
|
+
|
7464
|
+
"""
|
7465
|
+
|
7466
|
+
def __init__(self):
|
7467
|
+
r"""
|
7468
|
+
:param _SecondaryZone: 副可用区
|
7469
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
7470
|
+
:type SecondaryZone: str
|
7471
|
+
:param _SecondarySubnet: 可用区可用的子网id
|
7472
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
7473
|
+
:type SecondarySubnet: str
|
7474
|
+
:param _UserIpNum: 可用区可用的子网可用ip的数量
|
7475
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
7476
|
+
:type UserIpNum: str
|
7477
|
+
:param _SecondaryUserSubnetIPNum: 可用区可用的子网可用ip的数量
|
7478
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
7479
|
+
:type SecondaryUserSubnetIPNum: int
|
7480
|
+
"""
|
7481
|
+
self._SecondaryZone = None
|
7482
|
+
self._SecondarySubnet = None
|
7483
|
+
self._UserIpNum = None
|
7484
|
+
self._SecondaryUserSubnetIPNum = None
|
7485
|
+
|
7486
|
+
@property
|
7487
|
+
def SecondaryZone(self):
|
7488
|
+
"""副可用区
|
7489
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
7490
|
+
:rtype: str
|
7491
|
+
"""
|
7492
|
+
return self._SecondaryZone
|
7493
|
+
|
7494
|
+
@SecondaryZone.setter
|
7495
|
+
def SecondaryZone(self, SecondaryZone):
|
7496
|
+
self._SecondaryZone = SecondaryZone
|
7497
|
+
|
7498
|
+
@property
|
7499
|
+
def SecondarySubnet(self):
|
7500
|
+
"""可用区可用的子网id
|
7501
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
7502
|
+
:rtype: str
|
7503
|
+
"""
|
7504
|
+
return self._SecondarySubnet
|
7505
|
+
|
7506
|
+
@SecondarySubnet.setter
|
7507
|
+
def SecondarySubnet(self, SecondarySubnet):
|
7508
|
+
self._SecondarySubnet = SecondarySubnet
|
7509
|
+
|
7510
|
+
@property
|
7511
|
+
def UserIpNum(self):
|
7512
|
+
"""可用区可用的子网可用ip的数量
|
7513
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
7514
|
+
:rtype: str
|
7515
|
+
"""
|
7516
|
+
return self._UserIpNum
|
7517
|
+
|
7518
|
+
@UserIpNum.setter
|
7519
|
+
def UserIpNum(self, UserIpNum):
|
7520
|
+
self._UserIpNum = UserIpNum
|
7521
|
+
|
7522
|
+
@property
|
7523
|
+
def SecondaryUserSubnetIPNum(self):
|
7524
|
+
"""可用区可用的子网可用ip的数量
|
7525
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
7526
|
+
:rtype: int
|
7527
|
+
"""
|
7528
|
+
return self._SecondaryUserSubnetIPNum
|
7529
|
+
|
7530
|
+
@SecondaryUserSubnetIPNum.setter
|
7531
|
+
def SecondaryUserSubnetIPNum(self, SecondaryUserSubnetIPNum):
|
7532
|
+
self._SecondaryUserSubnetIPNum = SecondaryUserSubnetIPNum
|
7533
|
+
|
7534
|
+
|
7535
|
+
def _deserialize(self, params):
|
7536
|
+
self._SecondaryZone = params.get("SecondaryZone")
|
7537
|
+
self._SecondarySubnet = params.get("SecondarySubnet")
|
7538
|
+
self._UserIpNum = params.get("UserIpNum")
|
7539
|
+
self._SecondaryUserSubnetIPNum = params.get("SecondaryUserSubnetIPNum")
|
7540
|
+
memeber_set = set(params.keys())
|
7541
|
+
for name, value in vars(self).items():
|
7542
|
+
property_name = name[1:]
|
7543
|
+
if property_name in memeber_set:
|
7544
|
+
memeber_set.remove(property_name)
|
7545
|
+
if len(memeber_set) > 0:
|
7546
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7547
|
+
|
7548
|
+
|
7549
|
+
|
7426
7550
|
class ServiceInfo(AbstractModel):
|
7427
7551
|
"""服务详细信息描述。
|
7428
7552
|
|
@@ -503,10 +503,8 @@ class DescribeCloudDedicatedZoneResourceSummaryResponse(AbstractModel):
|
|
503
503
|
def __init__(self):
|
504
504
|
r"""
|
505
505
|
:param _ResourceSummarySet: 资源水位详情
|
506
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
507
506
|
:type ResourceSummarySet: list of CloudDedicatedZoneResourceSummaryInfo
|
508
507
|
:param _ExtraInfo: 资源水位扩展信息
|
509
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
510
508
|
:type ExtraInfo: :class:`tencentcloud.cdz.v20221123.models.ExtraInfo`
|
511
509
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
512
510
|
:type RequestId: str
|
@@ -518,7 +516,6 @@ class DescribeCloudDedicatedZoneResourceSummaryResponse(AbstractModel):
|
|
518
516
|
@property
|
519
517
|
def ResourceSummarySet(self):
|
520
518
|
"""资源水位详情
|
521
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
522
519
|
:rtype: list of CloudDedicatedZoneResourceSummaryInfo
|
523
520
|
"""
|
524
521
|
return self._ResourceSummarySet
|
@@ -530,7 +527,6 @@ class DescribeCloudDedicatedZoneResourceSummaryResponse(AbstractModel):
|
|
530
527
|
@property
|
531
528
|
def ExtraInfo(self):
|
532
529
|
"""资源水位扩展信息
|
533
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
534
530
|
:rtype: :class:`tencentcloud.cdz.v20221123.models.ExtraInfo`
|
535
531
|
"""
|
536
532
|
return self._ExtraInfo
|
@@ -572,10 +568,8 @@ class ExtraInfo(AbstractModel):
|
|
572
568
|
def __init__(self):
|
573
569
|
r"""
|
574
570
|
:param _ThisMondayLocalDate: 专属可用区当地时间本周一日期
|
575
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
576
571
|
:type ThisMondayLocalDate: str
|
577
572
|
:param _LastMondayLocalDate: 专属可用区当地时间上周一日期
|
578
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
579
573
|
:type LastMondayLocalDate: str
|
580
574
|
"""
|
581
575
|
self._ThisMondayLocalDate = None
|
@@ -584,7 +578,6 @@ class ExtraInfo(AbstractModel):
|
|
584
578
|
@property
|
585
579
|
def ThisMondayLocalDate(self):
|
586
580
|
"""专属可用区当地时间本周一日期
|
587
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
588
581
|
:rtype: str
|
589
582
|
"""
|
590
583
|
return self._ThisMondayLocalDate
|
@@ -596,7 +589,6 @@ class ExtraInfo(AbstractModel):
|
|
596
589
|
@property
|
597
590
|
def LastMondayLocalDate(self):
|
598
591
|
"""专属可用区当地时间上周一日期
|
599
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
600
592
|
:rtype: str
|
601
593
|
"""
|
602
594
|
return self._LastMondayLocalDate
|
@@ -149,6 +149,9 @@ INVALIDPARAMETERVALUE_INVALIDFSSIZELIMIT = 'InvalidParameterValue.InvalidFsSizeL
|
|
149
149
|
# 无效的文件系统状态。
|
150
150
|
INVALIDPARAMETERVALUE_INVALIDFSSTATUS = 'InvalidParameterValue.InvalidFsStatus'
|
151
151
|
|
152
|
+
# MetaType 值无效
|
153
|
+
INVALIDPARAMETERVALUE_INVALIDMETATYPE = 'InvalidParameterValue.InvalidMetaType'
|
154
|
+
|
152
155
|
# 错误的挂载点IP。
|
153
156
|
INVALIDPARAMETERVALUE_INVALIDMOUNTTARGETIP = 'InvalidParameterValue.InvalidMountTargetIp'
|
154
157
|
|
@@ -933,6 +933,29 @@ class CvmClient(AbstractClient):
|
|
933
933
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
934
934
|
|
935
935
|
|
936
|
+
def DescribeInstancesAttributes(self, request):
|
937
|
+
"""获取指定实例的属性,目前支持查询实例自定义数据User-Data。
|
938
|
+
|
939
|
+
:param request: Request instance for DescribeInstancesAttributes.
|
940
|
+
:type request: :class:`tencentcloud.cvm.v20170312.models.DescribeInstancesAttributesRequest`
|
941
|
+
:rtype: :class:`tencentcloud.cvm.v20170312.models.DescribeInstancesAttributesResponse`
|
942
|
+
|
943
|
+
"""
|
944
|
+
try:
|
945
|
+
params = request._serialize()
|
946
|
+
headers = request.headers
|
947
|
+
body = self.call("DescribeInstancesAttributes", params, headers=headers)
|
948
|
+
response = json.loads(body)
|
949
|
+
model = models.DescribeInstancesAttributesResponse()
|
950
|
+
model._deserialize(response["Response"])
|
951
|
+
return model
|
952
|
+
except Exception as e:
|
953
|
+
if isinstance(e, TencentCloudSDKException):
|
954
|
+
raise
|
955
|
+
else:
|
956
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
957
|
+
|
958
|
+
|
936
959
|
def DescribeInstancesModification(self, request):
|
937
960
|
"""本接口 (DescribeInstancesModification) 用于查询指定实例支持调整的机型配置。
|
938
961
|
|
@@ -666,6 +666,42 @@ class AssociateSecurityGroupsResponse(AbstractModel):
|
|
666
666
|
self._RequestId = params.get("RequestId")
|
667
667
|
|
668
668
|
|
669
|
+
class Attribute(AbstractModel):
|
670
|
+
"""属性信息
|
671
|
+
|
672
|
+
"""
|
673
|
+
|
674
|
+
def __init__(self):
|
675
|
+
r"""
|
676
|
+
:param _UserData: 实例的自定义数据。
|
677
|
+
:type UserData: str
|
678
|
+
"""
|
679
|
+
self._UserData = None
|
680
|
+
|
681
|
+
@property
|
682
|
+
def UserData(self):
|
683
|
+
"""实例的自定义数据。
|
684
|
+
:rtype: str
|
685
|
+
"""
|
686
|
+
return self._UserData
|
687
|
+
|
688
|
+
@UserData.setter
|
689
|
+
def UserData(self, UserData):
|
690
|
+
self._UserData = UserData
|
691
|
+
|
692
|
+
|
693
|
+
def _deserialize(self, params):
|
694
|
+
self._UserData = params.get("UserData")
|
695
|
+
memeber_set = set(params.keys())
|
696
|
+
for name, value in vars(self).items():
|
697
|
+
property_name = name[1:]
|
698
|
+
if property_name in memeber_set:
|
699
|
+
memeber_set.remove(property_name)
|
700
|
+
if len(memeber_set) > 0:
|
701
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
702
|
+
|
703
|
+
|
704
|
+
|
669
705
|
class ChargePrepaid(AbstractModel):
|
670
706
|
"""描述预付费模式,即包年包月相关参数。包括购买时长和自动续费逻辑等。
|
671
707
|
|
@@ -6446,6 +6482,107 @@ class DescribeInstancesActionTimerResponse(AbstractModel):
|
|
6446
6482
|
self._RequestId = params.get("RequestId")
|
6447
6483
|
|
6448
6484
|
|
6485
|
+
class DescribeInstancesAttributesRequest(AbstractModel):
|
6486
|
+
"""DescribeInstancesAttributes请求参数结构体
|
6487
|
+
|
6488
|
+
"""
|
6489
|
+
|
6490
|
+
def __init__(self):
|
6491
|
+
r"""
|
6492
|
+
:param _Attributes: 需要获取的实例属性。可选值:
|
6493
|
+
UserData: 实例自定义数据
|
6494
|
+
:type Attributes: list of str
|
6495
|
+
:param _InstanceIds: 实例ID列表
|
6496
|
+
:type InstanceIds: list of str
|
6497
|
+
"""
|
6498
|
+
self._Attributes = None
|
6499
|
+
self._InstanceIds = None
|
6500
|
+
|
6501
|
+
@property
|
6502
|
+
def Attributes(self):
|
6503
|
+
"""需要获取的实例属性。可选值:
|
6504
|
+
UserData: 实例自定义数据
|
6505
|
+
:rtype: list of str
|
6506
|
+
"""
|
6507
|
+
return self._Attributes
|
6508
|
+
|
6509
|
+
@Attributes.setter
|
6510
|
+
def Attributes(self, Attributes):
|
6511
|
+
self._Attributes = Attributes
|
6512
|
+
|
6513
|
+
@property
|
6514
|
+
def InstanceIds(self):
|
6515
|
+
"""实例ID列表
|
6516
|
+
:rtype: list of str
|
6517
|
+
"""
|
6518
|
+
return self._InstanceIds
|
6519
|
+
|
6520
|
+
@InstanceIds.setter
|
6521
|
+
def InstanceIds(self, InstanceIds):
|
6522
|
+
self._InstanceIds = InstanceIds
|
6523
|
+
|
6524
|
+
|
6525
|
+
def _deserialize(self, params):
|
6526
|
+
self._Attributes = params.get("Attributes")
|
6527
|
+
self._InstanceIds = params.get("InstanceIds")
|
6528
|
+
memeber_set = set(params.keys())
|
6529
|
+
for name, value in vars(self).items():
|
6530
|
+
property_name = name[1:]
|
6531
|
+
if property_name in memeber_set:
|
6532
|
+
memeber_set.remove(property_name)
|
6533
|
+
if len(memeber_set) > 0:
|
6534
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
6535
|
+
|
6536
|
+
|
6537
|
+
|
6538
|
+
class DescribeInstancesAttributesResponse(AbstractModel):
|
6539
|
+
"""DescribeInstancesAttributes返回参数结构体
|
6540
|
+
|
6541
|
+
"""
|
6542
|
+
|
6543
|
+
def __init__(self):
|
6544
|
+
r"""
|
6545
|
+
:param _InstanceSet: 指定的实例属性列表
|
6546
|
+
:type InstanceSet: list of InstanceAttribute
|
6547
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6548
|
+
:type RequestId: str
|
6549
|
+
"""
|
6550
|
+
self._InstanceSet = None
|
6551
|
+
self._RequestId = None
|
6552
|
+
|
6553
|
+
@property
|
6554
|
+
def InstanceSet(self):
|
6555
|
+
"""指定的实例属性列表
|
6556
|
+
:rtype: list of InstanceAttribute
|
6557
|
+
"""
|
6558
|
+
return self._InstanceSet
|
6559
|
+
|
6560
|
+
@InstanceSet.setter
|
6561
|
+
def InstanceSet(self, InstanceSet):
|
6562
|
+
self._InstanceSet = InstanceSet
|
6563
|
+
|
6564
|
+
@property
|
6565
|
+
def RequestId(self):
|
6566
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6567
|
+
:rtype: str
|
6568
|
+
"""
|
6569
|
+
return self._RequestId
|
6570
|
+
|
6571
|
+
@RequestId.setter
|
6572
|
+
def RequestId(self, RequestId):
|
6573
|
+
self._RequestId = RequestId
|
6574
|
+
|
6575
|
+
|
6576
|
+
def _deserialize(self, params):
|
6577
|
+
if params.get("InstanceSet") is not None:
|
6578
|
+
self._InstanceSet = []
|
6579
|
+
for item in params.get("InstanceSet"):
|
6580
|
+
obj = InstanceAttribute()
|
6581
|
+
obj._deserialize(item)
|
6582
|
+
self._InstanceSet.append(obj)
|
6583
|
+
self._RequestId = params.get("RequestId")
|
6584
|
+
|
6585
|
+
|
6449
6586
|
class DescribeInstancesModificationRequest(AbstractModel):
|
6450
6587
|
"""DescribeInstancesModification请求参数结构体
|
6451
6588
|
|
@@ -8213,7 +8350,6 @@ class DescribeTaskInfoResponse(AbstractModel):
|
|
8213
8350
|
:param _TotalCount: 查询返回的维修任务总数量。
|
8214
8351
|
:type TotalCount: int
|
8215
8352
|
:param _RepairTaskInfoSet: 查询返回的维修任务列表。
|
8216
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
8217
8353
|
:type RepairTaskInfoSet: list of RepairTaskInfo
|
8218
8354
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8219
8355
|
:type RequestId: str
|
@@ -8236,7 +8372,6 @@ class DescribeTaskInfoResponse(AbstractModel):
|
|
8236
8372
|
@property
|
8237
8373
|
def RepairTaskInfoSet(self):
|
8238
8374
|
"""查询返回的维修任务列表。
|
8239
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
8240
8375
|
:rtype: list of RepairTaskInfo
|
8241
8376
|
"""
|
8242
8377
|
return self._RepairTaskInfoSet
|
@@ -8952,13 +9087,16 @@ class EnterRescueModeRequest(AbstractModel):
|
|
8952
9087
|
:type Password: str
|
8953
9088
|
:param _Username: 救援模式下系统用户名
|
8954
9089
|
:type Username: str
|
8955
|
-
:param _ForceStop:
|
9090
|
+
:param _ForceStop: 是否强制关机。本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。
|
8956
9091
|
:type ForceStop: bool
|
9092
|
+
:param _StopType: 实例的关闭模式。取值范围:<br><li>SOFT_FIRST:表示在正常关闭失败后进行强制关闭</li><br><li>HARD:直接强制关闭</li><br><li>SOFT:仅软关机</li><br>默认取值:SOFT。
|
9093
|
+
:type StopType: str
|
8957
9094
|
"""
|
8958
9095
|
self._InstanceId = None
|
8959
9096
|
self._Password = None
|
8960
9097
|
self._Username = None
|
8961
9098
|
self._ForceStop = None
|
9099
|
+
self._StopType = None
|
8962
9100
|
|
8963
9101
|
@property
|
8964
9102
|
def InstanceId(self):
|
@@ -8995,21 +9133,37 @@ class EnterRescueModeRequest(AbstractModel):
|
|
8995
9133
|
|
8996
9134
|
@property
|
8997
9135
|
def ForceStop(self):
|
8998
|
-
""
|
9136
|
+
warnings.warn("parameter `ForceStop` is deprecated", DeprecationWarning)
|
9137
|
+
|
9138
|
+
"""是否强制关机。本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。
|
8999
9139
|
:rtype: bool
|
9000
9140
|
"""
|
9001
9141
|
return self._ForceStop
|
9002
9142
|
|
9003
9143
|
@ForceStop.setter
|
9004
9144
|
def ForceStop(self, ForceStop):
|
9145
|
+
warnings.warn("parameter `ForceStop` is deprecated", DeprecationWarning)
|
9146
|
+
|
9005
9147
|
self._ForceStop = ForceStop
|
9006
9148
|
|
9149
|
+
@property
|
9150
|
+
def StopType(self):
|
9151
|
+
"""实例的关闭模式。取值范围:<br><li>SOFT_FIRST:表示在正常关闭失败后进行强制关闭</li><br><li>HARD:直接强制关闭</li><br><li>SOFT:仅软关机</li><br>默认取值:SOFT。
|
9152
|
+
:rtype: str
|
9153
|
+
"""
|
9154
|
+
return self._StopType
|
9155
|
+
|
9156
|
+
@StopType.setter
|
9157
|
+
def StopType(self, StopType):
|
9158
|
+
self._StopType = StopType
|
9159
|
+
|
9007
9160
|
|
9008
9161
|
def _deserialize(self, params):
|
9009
9162
|
self._InstanceId = params.get("InstanceId")
|
9010
9163
|
self._Password = params.get("Password")
|
9011
9164
|
self._Username = params.get("Username")
|
9012
9165
|
self._ForceStop = params.get("ForceStop")
|
9166
|
+
self._StopType = params.get("StopType")
|
9013
9167
|
memeber_set = set(params.keys())
|
9014
9168
|
for name, value in vars(self).items():
|
9015
9169
|
property_name = name[1:]
|
@@ -13297,6 +13451,59 @@ class Instance(AbstractModel):
|
|
13297
13451
|
|
13298
13452
|
|
13299
13453
|
|
13454
|
+
class InstanceAttribute(AbstractModel):
|
13455
|
+
"""实例属性
|
13456
|
+
|
13457
|
+
"""
|
13458
|
+
|
13459
|
+
def __init__(self):
|
13460
|
+
r"""
|
13461
|
+
:param _InstanceId: 实例 ID。
|
13462
|
+
:type InstanceId: str
|
13463
|
+
:param _Attributes: 实例属性信息。
|
13464
|
+
:type Attributes: :class:`tencentcloud.cvm.v20170312.models.Attribute`
|
13465
|
+
"""
|
13466
|
+
self._InstanceId = None
|
13467
|
+
self._Attributes = None
|
13468
|
+
|
13469
|
+
@property
|
13470
|
+
def InstanceId(self):
|
13471
|
+
"""实例 ID。
|
13472
|
+
:rtype: str
|
13473
|
+
"""
|
13474
|
+
return self._InstanceId
|
13475
|
+
|
13476
|
+
@InstanceId.setter
|
13477
|
+
def InstanceId(self, InstanceId):
|
13478
|
+
self._InstanceId = InstanceId
|
13479
|
+
|
13480
|
+
@property
|
13481
|
+
def Attributes(self):
|
13482
|
+
"""实例属性信息。
|
13483
|
+
:rtype: :class:`tencentcloud.cvm.v20170312.models.Attribute`
|
13484
|
+
"""
|
13485
|
+
return self._Attributes
|
13486
|
+
|
13487
|
+
@Attributes.setter
|
13488
|
+
def Attributes(self, Attributes):
|
13489
|
+
self._Attributes = Attributes
|
13490
|
+
|
13491
|
+
|
13492
|
+
def _deserialize(self, params):
|
13493
|
+
self._InstanceId = params.get("InstanceId")
|
13494
|
+
if params.get("Attributes") is not None:
|
13495
|
+
self._Attributes = Attribute()
|
13496
|
+
self._Attributes._deserialize(params.get("Attributes"))
|
13497
|
+
memeber_set = set(params.keys())
|
13498
|
+
for name, value in vars(self).items():
|
13499
|
+
property_name = name[1:]
|
13500
|
+
if property_name in memeber_set:
|
13501
|
+
memeber_set.remove(property_name)
|
13502
|
+
if len(memeber_set) > 0:
|
13503
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
13504
|
+
|
13505
|
+
|
13506
|
+
|
13300
13507
|
class InstanceChargePrepaid(AbstractModel):
|
13301
13508
|
"""描述了实例的计费模式
|
13302
13509
|
|