tencentcloud-sdk-python-cvm 3.1.152__tar.gz → 3.1.156__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.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/setup.py +1 -1
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/tencentcloud/cvm/v20170312/models.py +208 -0
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/tencentcloud_sdk_python_cvm.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cvm-3.1.156/tencentcloud_sdk_python_cvm.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cvm-3.1.152/tencentcloud_sdk_python_cvm.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/README.rst +0 -0
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/tencentcloud/cvm/__init__.py +0 -0
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/tencentcloud/cvm/v20170312/__init__.py +0 -0
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/tencentcloud/cvm/v20170312/cvm_client.py +0 -0
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/tencentcloud/cvm/v20170312/cvm_client_async.py +0 -0
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/tencentcloud/cvm/v20170312/errorcodes.py +0 -0
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/tencentcloud_sdk_python_cvm.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/tencentcloud_sdk_python_cvm.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cvm-3.1.152 → tencentcloud_sdk_python_cvm-3.1.156}/tencentcloud_sdk_python_cvm.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cvm
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.156
|
|
4
4
|
Summary: Tencent Cloud Cvm SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.156
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -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.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.156,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cvm SDK for Python',
|
|
@@ -2871,6 +2871,8 @@ class CreateLaunchTemplateRequest(AbstractModel):
|
|
|
2871
2871
|
:type Metadata: :class:`tencentcloud.cvm.v20170312.models.Metadata`
|
|
2872
2872
|
:param _TemplateDataModifyAction: <p>只允许传递 Update 和 Replace 参数,在模板使用自定义 Metadata 且在 RunInstances 也传递 Metadata 时生效。默认采用 Replace。</p><ul><li>Update:设模板 t含本参数值为Update、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k1:v1, k2:v3] </li><li>Replace:模板 t含本参数值为Replace、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k2:v3]<br><strong>注:内测中</strong>。</li></ul>
|
|
2873
2873
|
:type TemplateDataModifyAction: str
|
|
2874
|
+
:param _NetworkInterfaces: <p>多网卡参数信息。 此功能仅部分地区灰度开放,如需使用<a href="https://console.cloud.tencent.com/workorder/category">请提交工单咨询</a></p>
|
|
2875
|
+
:type NetworkInterfaces: list of NetworkInterfaces
|
|
2874
2876
|
"""
|
|
2875
2877
|
self._LaunchTemplateName = None
|
|
2876
2878
|
self._Placement = None
|
|
@@ -2903,6 +2905,7 @@ class CreateLaunchTemplateRequest(AbstractModel):
|
|
|
2903
2905
|
self._LaunchTemplateTagSpecification = None
|
|
2904
2906
|
self._Metadata = None
|
|
2905
2907
|
self._TemplateDataModifyAction = None
|
|
2908
|
+
self._NetworkInterfaces = None
|
|
2906
2909
|
|
|
2907
2910
|
@property
|
|
2908
2911
|
def LaunchTemplateName(self):
|
|
@@ -3245,6 +3248,17 @@ class CreateLaunchTemplateRequest(AbstractModel):
|
|
|
3245
3248
|
def TemplateDataModifyAction(self, TemplateDataModifyAction):
|
|
3246
3249
|
self._TemplateDataModifyAction = TemplateDataModifyAction
|
|
3247
3250
|
|
|
3251
|
+
@property
|
|
3252
|
+
def NetworkInterfaces(self):
|
|
3253
|
+
r"""<p>多网卡参数信息。 此功能仅部分地区灰度开放,如需使用<a href="https://console.cloud.tencent.com/workorder/category">请提交工单咨询</a></p>
|
|
3254
|
+
:rtype: list of NetworkInterfaces
|
|
3255
|
+
"""
|
|
3256
|
+
return self._NetworkInterfaces
|
|
3257
|
+
|
|
3258
|
+
@NetworkInterfaces.setter
|
|
3259
|
+
def NetworkInterfaces(self, NetworkInterfaces):
|
|
3260
|
+
self._NetworkInterfaces = NetworkInterfaces
|
|
3261
|
+
|
|
3248
3262
|
|
|
3249
3263
|
def _deserialize(self, params):
|
|
3250
3264
|
self._LaunchTemplateName = params.get("LaunchTemplateName")
|
|
@@ -3313,6 +3327,12 @@ class CreateLaunchTemplateRequest(AbstractModel):
|
|
|
3313
3327
|
self._Metadata = Metadata()
|
|
3314
3328
|
self._Metadata._deserialize(params.get("Metadata"))
|
|
3315
3329
|
self._TemplateDataModifyAction = params.get("TemplateDataModifyAction")
|
|
3330
|
+
if params.get("NetworkInterfaces") is not None:
|
|
3331
|
+
self._NetworkInterfaces = []
|
|
3332
|
+
for item in params.get("NetworkInterfaces"):
|
|
3333
|
+
obj = NetworkInterfaces()
|
|
3334
|
+
obj._deserialize(item)
|
|
3335
|
+
self._NetworkInterfaces.append(obj)
|
|
3316
3336
|
memeber_set = set(params.keys())
|
|
3317
3337
|
for name, value in vars(self).items():
|
|
3318
3338
|
property_name = name[1:]
|
|
@@ -3435,6 +3455,8 @@ class CreateLaunchTemplateVersionRequest(AbstractModel):
|
|
|
3435
3455
|
:type Metadata: :class:`tencentcloud.cvm.v20170312.models.Metadata`
|
|
3436
3456
|
:param _TemplateDataModifyAction: <p>只允许传递 Update 和 Replace 参数,在模板使用自定义 Metadata 且在 RunInstances 也传递 Metadata 时生效。默认采用 Replace。</p><ul><li>Update:设模板 t含本参数值为Update、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k1:v1, k2:v3] </li><li>Replace:模板 t含本参数值为Replace、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k2:v3]<br><strong>注:内测中</strong>。</li></ul>
|
|
3437
3457
|
:type TemplateDataModifyAction: str
|
|
3458
|
+
:param _NetworkInterfaces: <p>多网卡参数信息。 此功能仅部分地区灰度开放,如需使用<a href="https://console.cloud.tencent.com/workorder/category">请提交工单咨询</a></p>
|
|
3459
|
+
:type NetworkInterfaces: list of NetworkInterfaces
|
|
3438
3460
|
"""
|
|
3439
3461
|
self._Placement = None
|
|
3440
3462
|
self._LaunchTemplateId = None
|
|
@@ -3467,6 +3489,7 @@ class CreateLaunchTemplateVersionRequest(AbstractModel):
|
|
|
3467
3489
|
self._EnableJumboFrame = None
|
|
3468
3490
|
self._Metadata = None
|
|
3469
3491
|
self._TemplateDataModifyAction = None
|
|
3492
|
+
self._NetworkInterfaces = None
|
|
3470
3493
|
|
|
3471
3494
|
@property
|
|
3472
3495
|
def Placement(self):
|
|
@@ -3809,6 +3832,17 @@ class CreateLaunchTemplateVersionRequest(AbstractModel):
|
|
|
3809
3832
|
def TemplateDataModifyAction(self, TemplateDataModifyAction):
|
|
3810
3833
|
self._TemplateDataModifyAction = TemplateDataModifyAction
|
|
3811
3834
|
|
|
3835
|
+
@property
|
|
3836
|
+
def NetworkInterfaces(self):
|
|
3837
|
+
r"""<p>多网卡参数信息。 此功能仅部分地区灰度开放,如需使用<a href="https://console.cloud.tencent.com/workorder/category">请提交工单咨询</a></p>
|
|
3838
|
+
:rtype: list of NetworkInterfaces
|
|
3839
|
+
"""
|
|
3840
|
+
return self._NetworkInterfaces
|
|
3841
|
+
|
|
3842
|
+
@NetworkInterfaces.setter
|
|
3843
|
+
def NetworkInterfaces(self, NetworkInterfaces):
|
|
3844
|
+
self._NetworkInterfaces = NetworkInterfaces
|
|
3845
|
+
|
|
3812
3846
|
|
|
3813
3847
|
def _deserialize(self, params):
|
|
3814
3848
|
if params.get("Placement") is not None:
|
|
@@ -3872,6 +3906,12 @@ class CreateLaunchTemplateVersionRequest(AbstractModel):
|
|
|
3872
3906
|
self._Metadata = Metadata()
|
|
3873
3907
|
self._Metadata._deserialize(params.get("Metadata"))
|
|
3874
3908
|
self._TemplateDataModifyAction = params.get("TemplateDataModifyAction")
|
|
3909
|
+
if params.get("NetworkInterfaces") is not None:
|
|
3910
|
+
self._NetworkInterfaces = []
|
|
3911
|
+
for item in params.get("NetworkInterfaces"):
|
|
3912
|
+
obj = NetworkInterfaces()
|
|
3913
|
+
obj._deserialize(item)
|
|
3914
|
+
self._NetworkInterfaces.append(obj)
|
|
3875
3915
|
memeber_set = set(params.keys())
|
|
3876
3916
|
for name, value in vars(self).items():
|
|
3877
3917
|
property_name = name[1:]
|
|
@@ -12643,6 +12683,8 @@ class InquiryPriceRunInstancesRequest(AbstractModel):
|
|
|
12643
12683
|
:type CpuTopology: :class:`tencentcloud.cvm.v20170312.models.CpuTopology`
|
|
12644
12684
|
:param _LaunchTemplate: <p>实例启动模板。</p>
|
|
12645
12685
|
:type LaunchTemplate: :class:`tencentcloud.cvm.v20170312.models.LaunchTemplate`
|
|
12686
|
+
:param _NetworkInterfaces: <p>多网卡参数信息。 此功能仅部分地区灰度开放,如需使用<a href="https://console.cloud.tencent.com/workorder/category">请提交工单咨询</a></p>
|
|
12687
|
+
:type NetworkInterfaces: list of NetworkInterfaces
|
|
12646
12688
|
"""
|
|
12647
12689
|
self._Placement = None
|
|
12648
12690
|
self._ImageId = None
|
|
@@ -12666,6 +12708,7 @@ class InquiryPriceRunInstancesRequest(AbstractModel):
|
|
|
12666
12708
|
self._HpcClusterId = None
|
|
12667
12709
|
self._CpuTopology = None
|
|
12668
12710
|
self._LaunchTemplate = None
|
|
12711
|
+
self._NetworkInterfaces = None
|
|
12669
12712
|
|
|
12670
12713
|
@property
|
|
12671
12714
|
def Placement(self):
|
|
@@ -12909,6 +12952,17 @@ class InquiryPriceRunInstancesRequest(AbstractModel):
|
|
|
12909
12952
|
def LaunchTemplate(self, LaunchTemplate):
|
|
12910
12953
|
self._LaunchTemplate = LaunchTemplate
|
|
12911
12954
|
|
|
12955
|
+
@property
|
|
12956
|
+
def NetworkInterfaces(self):
|
|
12957
|
+
r"""<p>多网卡参数信息。 此功能仅部分地区灰度开放,如需使用<a href="https://console.cloud.tencent.com/workorder/category">请提交工单咨询</a></p>
|
|
12958
|
+
:rtype: list of NetworkInterfaces
|
|
12959
|
+
"""
|
|
12960
|
+
return self._NetworkInterfaces
|
|
12961
|
+
|
|
12962
|
+
@NetworkInterfaces.setter
|
|
12963
|
+
def NetworkInterfaces(self, NetworkInterfaces):
|
|
12964
|
+
self._NetworkInterfaces = NetworkInterfaces
|
|
12965
|
+
|
|
12912
12966
|
|
|
12913
12967
|
def _deserialize(self, params):
|
|
12914
12968
|
if params.get("Placement") is not None:
|
|
@@ -12965,6 +13019,12 @@ class InquiryPriceRunInstancesRequest(AbstractModel):
|
|
|
12965
13019
|
if params.get("LaunchTemplate") is not None:
|
|
12966
13020
|
self._LaunchTemplate = LaunchTemplate()
|
|
12967
13021
|
self._LaunchTemplate._deserialize(params.get("LaunchTemplate"))
|
|
13022
|
+
if params.get("NetworkInterfaces") is not None:
|
|
13023
|
+
self._NetworkInterfaces = []
|
|
13024
|
+
for item in params.get("NetworkInterfaces"):
|
|
13025
|
+
obj = NetworkInterfaces()
|
|
13026
|
+
obj._deserialize(item)
|
|
13027
|
+
self._NetworkInterfaces.append(obj)
|
|
12968
13028
|
memeber_set = set(params.keys())
|
|
12969
13029
|
for name, value in vars(self).items():
|
|
12970
13030
|
property_name = name[1:]
|
|
@@ -18289,6 +18349,134 @@ class ModifyLaunchTemplateDefaultVersionResponse(AbstractModel):
|
|
|
18289
18349
|
self._RequestId = params.get("RequestId")
|
|
18290
18350
|
|
|
18291
18351
|
|
|
18352
|
+
class NetworkInterfaces(AbstractModel):
|
|
18353
|
+
r"""创建实例时的网卡配置信息,包含主网卡和辅助网卡的VPC、子网、IP分配等网络参数。
|
|
18354
|
+
|
|
18355
|
+
此功能仅部分地区灰度开放,如需使用[请提交工单咨询](https://console.cloud.tencent.com/workorder/category)
|
|
18356
|
+
|
|
18357
|
+
"""
|
|
18358
|
+
|
|
18359
|
+
def __init__(self):
|
|
18360
|
+
r"""
|
|
18361
|
+
:param _InterfaceType: <p>表示是主网卡还是辅助网卡。注意:枚举值要全部大写;<strong>NetworkInterfaces数组中必须要有PRIMARY</strong>,且PRIMARY只能存在一个,SECONDARY可以存在多个。</p><p>枚举值:</p><ul><li>PRIMARY: 主网卡</li><li>SECONDARY: 辅助网卡</li></ul>
|
|
18362
|
+
:type InterfaceType: str
|
|
18363
|
+
:param _VpcId: <p>私有网络ID,形如<code>vpc-xxx</code>。有效的VpcId可通过登录<a href="https://console.cloud.tencent.com/vpc/vpc?rid=1">控制台</a>查询;也可以调用接口 <a href="https://cloud.tencent.com/document/product/215/15778">DescribeVpcs</a> ,从接口返回中的<code>VpcId</code>字段获取。若在创建子机时VpcId与SubnetId同时传入<code>DEFAULT</code>,则强制使用默认vpc网络。</p>
|
|
18364
|
+
:type VpcId: str
|
|
18365
|
+
:param _SubnetId: <p>私有网络子网ID,形如<code>subnet-xxx</code>。有效的私有网络子网ID可通过登录<a href="https://console.cloud.tencent.com/vpc/subnet?rid=1">控制台</a>查询;也可以调用接口 <a href="https://cloud.tencent.com/document/product/215/15784">DescribeSubnets</a> ,从接口返回中的<code>SubnetId</code>字段获取。若在创建子机时SubnetId与VpcId同时传入<code>DEFAULT</code>,则强制使用默认vpc网络。</p>
|
|
18366
|
+
:type SubnetId: str
|
|
18367
|
+
:param _PrivateIpv4AddressCount: <p>此字段是必填字段,表示每张网卡自动分配私有网卡IP个数。注意:不允许客户同时指定ip且动态分配ip。</p><p>取值范围:[1, 50]</p>
|
|
18368
|
+
:type PrivateIpv4AddressCount: int
|
|
18369
|
+
:param _NetworkInterfaceId: <p>指定存量的网卡ID用于绑定。只对辅助网卡生效,主网卡的生成采用既有流程。注:客户手动指定已有弹性网卡时,相关接口InstanceCount必须为1。主网卡不支持指定。</p>
|
|
18370
|
+
:type NetworkInterfaceId: str
|
|
18371
|
+
:param _SecurityGroupIds: <p>实例所属安全组。该参数可以通过调用 <a href="https://cloud.tencent.com/document/api/215/15808">DescribeSecurityGroups</a> 的返回值中的 <code>SecurityGroupId</code> 字段来获取。若不指定该参数,则绑定指定项目下的默认安全组,如默认安全组不存在则将自动创建。</p><p>每个用户在每个地域每个项目下最多可设置50个安全组。</p>
|
|
18372
|
+
:type SecurityGroupIds: list of str
|
|
18373
|
+
:param _DeleteWithInstance: <p>是否随CVM删除绑定的弹性网卡,参数只对辅助网卡生效。默认保留辅助网卡兼容当前线上行为。该参数放置在主网卡上不生效,主网卡会随着CVM一同销毁。</p><p>默认值:<code>false</code></p>
|
|
18374
|
+
:type DeleteWithInstance: bool
|
|
18375
|
+
"""
|
|
18376
|
+
self._InterfaceType = None
|
|
18377
|
+
self._VpcId = None
|
|
18378
|
+
self._SubnetId = None
|
|
18379
|
+
self._PrivateIpv4AddressCount = None
|
|
18380
|
+
self._NetworkInterfaceId = None
|
|
18381
|
+
self._SecurityGroupIds = None
|
|
18382
|
+
self._DeleteWithInstance = None
|
|
18383
|
+
|
|
18384
|
+
@property
|
|
18385
|
+
def InterfaceType(self):
|
|
18386
|
+
r"""<p>表示是主网卡还是辅助网卡。注意:枚举值要全部大写;<strong>NetworkInterfaces数组中必须要有PRIMARY</strong>,且PRIMARY只能存在一个,SECONDARY可以存在多个。</p><p>枚举值:</p><ul><li>PRIMARY: 主网卡</li><li>SECONDARY: 辅助网卡</li></ul>
|
|
18387
|
+
:rtype: str
|
|
18388
|
+
"""
|
|
18389
|
+
return self._InterfaceType
|
|
18390
|
+
|
|
18391
|
+
@InterfaceType.setter
|
|
18392
|
+
def InterfaceType(self, InterfaceType):
|
|
18393
|
+
self._InterfaceType = InterfaceType
|
|
18394
|
+
|
|
18395
|
+
@property
|
|
18396
|
+
def VpcId(self):
|
|
18397
|
+
r"""<p>私有网络ID,形如<code>vpc-xxx</code>。有效的VpcId可通过登录<a href="https://console.cloud.tencent.com/vpc/vpc?rid=1">控制台</a>查询;也可以调用接口 <a href="https://cloud.tencent.com/document/product/215/15778">DescribeVpcs</a> ,从接口返回中的<code>VpcId</code>字段获取。若在创建子机时VpcId与SubnetId同时传入<code>DEFAULT</code>,则强制使用默认vpc网络。</p>
|
|
18398
|
+
:rtype: str
|
|
18399
|
+
"""
|
|
18400
|
+
return self._VpcId
|
|
18401
|
+
|
|
18402
|
+
@VpcId.setter
|
|
18403
|
+
def VpcId(self, VpcId):
|
|
18404
|
+
self._VpcId = VpcId
|
|
18405
|
+
|
|
18406
|
+
@property
|
|
18407
|
+
def SubnetId(self):
|
|
18408
|
+
r"""<p>私有网络子网ID,形如<code>subnet-xxx</code>。有效的私有网络子网ID可通过登录<a href="https://console.cloud.tencent.com/vpc/subnet?rid=1">控制台</a>查询;也可以调用接口 <a href="https://cloud.tencent.com/document/product/215/15784">DescribeSubnets</a> ,从接口返回中的<code>SubnetId</code>字段获取。若在创建子机时SubnetId与VpcId同时传入<code>DEFAULT</code>,则强制使用默认vpc网络。</p>
|
|
18409
|
+
:rtype: str
|
|
18410
|
+
"""
|
|
18411
|
+
return self._SubnetId
|
|
18412
|
+
|
|
18413
|
+
@SubnetId.setter
|
|
18414
|
+
def SubnetId(self, SubnetId):
|
|
18415
|
+
self._SubnetId = SubnetId
|
|
18416
|
+
|
|
18417
|
+
@property
|
|
18418
|
+
def PrivateIpv4AddressCount(self):
|
|
18419
|
+
r"""<p>此字段是必填字段,表示每张网卡自动分配私有网卡IP个数。注意:不允许客户同时指定ip且动态分配ip。</p><p>取值范围:[1, 50]</p>
|
|
18420
|
+
:rtype: int
|
|
18421
|
+
"""
|
|
18422
|
+
return self._PrivateIpv4AddressCount
|
|
18423
|
+
|
|
18424
|
+
@PrivateIpv4AddressCount.setter
|
|
18425
|
+
def PrivateIpv4AddressCount(self, PrivateIpv4AddressCount):
|
|
18426
|
+
self._PrivateIpv4AddressCount = PrivateIpv4AddressCount
|
|
18427
|
+
|
|
18428
|
+
@property
|
|
18429
|
+
def NetworkInterfaceId(self):
|
|
18430
|
+
r"""<p>指定存量的网卡ID用于绑定。只对辅助网卡生效,主网卡的生成采用既有流程。注:客户手动指定已有弹性网卡时,相关接口InstanceCount必须为1。主网卡不支持指定。</p>
|
|
18431
|
+
:rtype: str
|
|
18432
|
+
"""
|
|
18433
|
+
return self._NetworkInterfaceId
|
|
18434
|
+
|
|
18435
|
+
@NetworkInterfaceId.setter
|
|
18436
|
+
def NetworkInterfaceId(self, NetworkInterfaceId):
|
|
18437
|
+
self._NetworkInterfaceId = NetworkInterfaceId
|
|
18438
|
+
|
|
18439
|
+
@property
|
|
18440
|
+
def SecurityGroupIds(self):
|
|
18441
|
+
r"""<p>实例所属安全组。该参数可以通过调用 <a href="https://cloud.tencent.com/document/api/215/15808">DescribeSecurityGroups</a> 的返回值中的 <code>SecurityGroupId</code> 字段来获取。若不指定该参数,则绑定指定项目下的默认安全组,如默认安全组不存在则将自动创建。</p><p>每个用户在每个地域每个项目下最多可设置50个安全组。</p>
|
|
18442
|
+
:rtype: list of str
|
|
18443
|
+
"""
|
|
18444
|
+
return self._SecurityGroupIds
|
|
18445
|
+
|
|
18446
|
+
@SecurityGroupIds.setter
|
|
18447
|
+
def SecurityGroupIds(self, SecurityGroupIds):
|
|
18448
|
+
self._SecurityGroupIds = SecurityGroupIds
|
|
18449
|
+
|
|
18450
|
+
@property
|
|
18451
|
+
def DeleteWithInstance(self):
|
|
18452
|
+
r"""<p>是否随CVM删除绑定的弹性网卡,参数只对辅助网卡生效。默认保留辅助网卡兼容当前线上行为。该参数放置在主网卡上不生效,主网卡会随着CVM一同销毁。</p><p>默认值:<code>false</code></p>
|
|
18453
|
+
:rtype: bool
|
|
18454
|
+
"""
|
|
18455
|
+
return self._DeleteWithInstance
|
|
18456
|
+
|
|
18457
|
+
@DeleteWithInstance.setter
|
|
18458
|
+
def DeleteWithInstance(self, DeleteWithInstance):
|
|
18459
|
+
self._DeleteWithInstance = DeleteWithInstance
|
|
18460
|
+
|
|
18461
|
+
|
|
18462
|
+
def _deserialize(self, params):
|
|
18463
|
+
self._InterfaceType = params.get("InterfaceType")
|
|
18464
|
+
self._VpcId = params.get("VpcId")
|
|
18465
|
+
self._SubnetId = params.get("SubnetId")
|
|
18466
|
+
self._PrivateIpv4AddressCount = params.get("PrivateIpv4AddressCount")
|
|
18467
|
+
self._NetworkInterfaceId = params.get("NetworkInterfaceId")
|
|
18468
|
+
self._SecurityGroupIds = params.get("SecurityGroupIds")
|
|
18469
|
+
self._DeleteWithInstance = params.get("DeleteWithInstance")
|
|
18470
|
+
memeber_set = set(params.keys())
|
|
18471
|
+
for name, value in vars(self).items():
|
|
18472
|
+
property_name = name[1:]
|
|
18473
|
+
if property_name in memeber_set:
|
|
18474
|
+
memeber_set.remove(property_name)
|
|
18475
|
+
if len(memeber_set) > 0:
|
|
18476
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18477
|
+
|
|
18478
|
+
|
|
18479
|
+
|
|
18292
18480
|
class OperationCountLimit(AbstractModel):
|
|
18293
18481
|
r"""描述了单台实例操作次数限制
|
|
18294
18482
|
|
|
@@ -21454,6 +21642,8 @@ class RunInstancesRequest(AbstractModel):
|
|
|
21454
21642
|
:type DisableApiTermination: bool
|
|
21455
21643
|
:param _EnableJumboFrame: <p>实例是否开启巨型帧,取值范围:<br><li/> true:表示实例开启巨型帧,只有支持巨型帧的机型可设置为true。<br><li/>false:表示实例关闭巨型帧,只有支持巨型帧的机型可设置为false。<br> 支持巨型帧的实例规格: <a href="https://cloud.tencent.com/document/product/213/11518">实例规格</a></p>
|
|
21456
21644
|
:type EnableJumboFrame: bool
|
|
21645
|
+
:param _NetworkInterfaces: <p>多网卡参数信息。 此功能仅部分地区灰度开放,如需使用<a href="https://console.cloud.tencent.com/workorder/category">请提交工单咨询</a></p>
|
|
21646
|
+
:type NetworkInterfaces: list of NetworkInterfaces
|
|
21457
21647
|
"""
|
|
21458
21648
|
self._InstanceChargeType = None
|
|
21459
21649
|
self._InstanceChargePrepaid = None
|
|
@@ -21488,6 +21678,7 @@ class RunInstancesRequest(AbstractModel):
|
|
|
21488
21678
|
self._PartitionNumber = None
|
|
21489
21679
|
self._DisableApiTermination = None
|
|
21490
21680
|
self._EnableJumboFrame = None
|
|
21681
|
+
self._NetworkInterfaces = None
|
|
21491
21682
|
|
|
21492
21683
|
@property
|
|
21493
21684
|
def InstanceChargeType(self):
|
|
@@ -21852,6 +22043,17 @@ class RunInstancesRequest(AbstractModel):
|
|
|
21852
22043
|
def EnableJumboFrame(self, EnableJumboFrame):
|
|
21853
22044
|
self._EnableJumboFrame = EnableJumboFrame
|
|
21854
22045
|
|
|
22046
|
+
@property
|
|
22047
|
+
def NetworkInterfaces(self):
|
|
22048
|
+
r"""<p>多网卡参数信息。 此功能仅部分地区灰度开放,如需使用<a href="https://console.cloud.tencent.com/workorder/category">请提交工单咨询</a></p>
|
|
22049
|
+
:rtype: list of NetworkInterfaces
|
|
22050
|
+
"""
|
|
22051
|
+
return self._NetworkInterfaces
|
|
22052
|
+
|
|
22053
|
+
@NetworkInterfaces.setter
|
|
22054
|
+
def NetworkInterfaces(self, NetworkInterfaces):
|
|
22055
|
+
self._NetworkInterfaces = NetworkInterfaces
|
|
22056
|
+
|
|
21855
22057
|
|
|
21856
22058
|
def _deserialize(self, params):
|
|
21857
22059
|
self._InstanceChargeType = params.get("InstanceChargeType")
|
|
@@ -21921,6 +22123,12 @@ class RunInstancesRequest(AbstractModel):
|
|
|
21921
22123
|
self._PartitionNumber = params.get("PartitionNumber")
|
|
21922
22124
|
self._DisableApiTermination = params.get("DisableApiTermination")
|
|
21923
22125
|
self._EnableJumboFrame = params.get("EnableJumboFrame")
|
|
22126
|
+
if params.get("NetworkInterfaces") is not None:
|
|
22127
|
+
self._NetworkInterfaces = []
|
|
22128
|
+
for item in params.get("NetworkInterfaces"):
|
|
22129
|
+
obj = NetworkInterfaces()
|
|
22130
|
+
obj._deserialize(item)
|
|
22131
|
+
self._NetworkInterfaces.append(obj)
|
|
21924
22132
|
memeber_set = set(params.keys())
|
|
21925
22133
|
for name, value in vars(self).items():
|
|
21926
22134
|
property_name = name[1:]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cvm
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.156
|
|
4
4
|
Summary: Tencent Cloud Cvm SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.156
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.156
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.152
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|