tencentcloud-sdk-python-cvm 3.0.1341__tar.gz → 3.0.1343__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/setup.py +1 -1
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/tencentcloud/cvm/v20170312/cvm_client.py +23 -0
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/tencentcloud/cvm/v20170312/models.py +211 -4
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/tencentcloud_sdk_python_cvm.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-cvm-3.0.1343/tencentcloud_sdk_python_cvm.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cvm-3.0.1341/tencentcloud_sdk_python_cvm.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/README.rst +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/tencentcloud/cvm/__init__.py +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/tencentcloud/cvm/v20170312/__init__.py +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/tencentcloud/cvm/v20170312/errorcodes.py +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/tencentcloud_sdk_python_cvm.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/tencentcloud_sdk_python_cvm.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1341 → tencentcloud-sdk-python-cvm-3.0.1343}/tencentcloud_sdk_python_cvm.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-cvm',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1343"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Cvm SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -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
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1343
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1341
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|