tencentcloud-sdk-python-cvm 3.0.1241__tar.gz → 3.0.1250__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.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cvm-3.0.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/setup.py +1 -1
- {tencentcloud-sdk-python-cvm-3.0.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cvm-3.0.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/tencentcloud/cvm/v20170312/cvm_client.py +24 -1
- {tencentcloud-sdk-python-cvm-3.0.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/tencentcloud/cvm/v20170312/errorcodes.py +7 -1
- {tencentcloud-sdk-python-cvm-3.0.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/tencentcloud/cvm/v20170312/models.py +200 -4
- {tencentcloud-sdk-python-cvm-3.0.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/tencentcloud_sdk_python_cvm.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-cvm-3.0.1250/tencentcloud_sdk_python_cvm.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cvm-3.0.1241/tencentcloud_sdk_python_cvm.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cvm-3.0.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/README.rst +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/tencentcloud/cvm/__init__.py +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/tencentcloud/cvm/v20170312/__init__.py +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/tencentcloud_sdk_python_cvm.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/tencentcloud_sdk_python_cvm.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1241 → tencentcloud-sdk-python-cvm-3.0.1250}/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.1250"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Cvm SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -653,6 +653,29 @@ class CvmClient(AbstractClient):
|
|
|
653
653
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
654
654
|
|
|
655
655
|
|
|
656
|
+
def DescribeImageFromFamily(self, request):
|
|
657
|
+
"""本接口(DescribeImageFromFamily) 用于查看镜像族内可用镜像信息。
|
|
658
|
+
|
|
659
|
+
:param request: Request instance for DescribeImageFromFamily.
|
|
660
|
+
:type request: :class:`tencentcloud.cvm.v20170312.models.DescribeImageFromFamilyRequest`
|
|
661
|
+
:rtype: :class:`tencentcloud.cvm.v20170312.models.DescribeImageFromFamilyResponse`
|
|
662
|
+
|
|
663
|
+
"""
|
|
664
|
+
try:
|
|
665
|
+
params = request._serialize()
|
|
666
|
+
headers = request.headers
|
|
667
|
+
body = self.call("DescribeImageFromFamily", params, headers=headers)
|
|
668
|
+
response = json.loads(body)
|
|
669
|
+
model = models.DescribeImageFromFamilyResponse()
|
|
670
|
+
model._deserialize(response["Response"])
|
|
671
|
+
return model
|
|
672
|
+
except Exception as e:
|
|
673
|
+
if isinstance(e, TencentCloudSDKException):
|
|
674
|
+
raise
|
|
675
|
+
else:
|
|
676
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
677
|
+
|
|
678
|
+
|
|
656
679
|
def DescribeImageQuota(self, request):
|
|
657
680
|
"""本接口(DescribeImageQuota)用于查询用户账号的镜像配额。
|
|
658
681
|
|
|
@@ -1364,7 +1387,7 @@ class CvmClient(AbstractClient):
|
|
|
1364
1387
|
|
|
1365
1388
|
|
|
1366
1389
|
def ImportImage(self, request):
|
|
1367
|
-
"""本接口(ImportImage)用于导入镜像,导入后的镜像可用于创建实例。目前支持
|
|
1390
|
+
"""本接口(ImportImage)用于导入镜像,导入后的镜像可用于创建实例。目前支持RAW、VHD、QCOW2、VMDK镜像格式。
|
|
1368
1391
|
|
|
1369
1392
|
:param request: Request instance for ImportImage.
|
|
1370
1393
|
:type request: :class:`tencentcloud.cvm.v20170312.models.ImportImageRequest`
|
|
@@ -401,6 +401,9 @@ INVALIDPARAMETERVALUE_IPADDRESSMALFORMED = 'InvalidParameterValue.IPAddressMalfo
|
|
|
401
401
|
# ipv6地址无效
|
|
402
402
|
INVALIDPARAMETERVALUE_IPV6ADDRESSMALFORMED = 'InvalidParameterValue.IPv6AddressMalformed'
|
|
403
403
|
|
|
404
|
+
# ISO文件必须强制导入
|
|
405
|
+
INVALIDPARAMETERVALUE_ISOMUSTIMPORTBYFORCE = 'InvalidParameterValue.ISOMustImportByForce'
|
|
406
|
+
|
|
404
407
|
# HostName参数值不合法
|
|
405
408
|
INVALIDPARAMETERVALUE_ILLEGALHOSTNAME = 'InvalidParameterValue.IllegalHostName'
|
|
406
409
|
|
|
@@ -443,6 +446,9 @@ INVALIDPARAMETERVALUE_INVALIDFILENAMEPREFIXLIST = 'InvalidParameterValue.Invalid
|
|
|
443
446
|
# 不支持转为非GPU或其他类型GPU实例。
|
|
444
447
|
INVALIDPARAMETERVALUE_INVALIDGPUFAMILYCHANGE = 'InvalidParameterValue.InvalidGPUFamilyChange'
|
|
445
448
|
|
|
449
|
+
# 错误格式的镜像族名称
|
|
450
|
+
INVALIDPARAMETERVALUE_INVALIDIMAGEFAMILY = 'InvalidParameterValue.InvalidImageFamily'
|
|
451
|
+
|
|
446
452
|
# 镜像ID不支持指定的实例机型。
|
|
447
453
|
INVALIDPARAMETERVALUE_INVALIDIMAGEFORGIVENINSTANCETYPE = 'InvalidParameterValue.InvalidImageForGivenInstanceType'
|
|
448
454
|
|
|
@@ -518,7 +524,7 @@ INVALIDPARAMETERVALUE_KEYPAIRNOTSUPPORTED = 'InvalidParameterValue.KeyPairNotSup
|
|
|
518
524
|
# 不支持删除默认启动模板版本。
|
|
519
525
|
INVALIDPARAMETERVALUE_LAUNCHTEMPLATEDEFAULTVERSION = 'InvalidParameterValue.LaunchTemplateDefaultVersion'
|
|
520
526
|
|
|
521
|
-
# 实例启动模板ID
|
|
527
|
+
# 实例启动模板ID格式错误,请提供规范的实例启动模板ID,类似lt-xxxxxxxx,字母x代表小写字符或者数字。
|
|
522
528
|
INVALIDPARAMETERVALUE_LAUNCHTEMPLATEIDMALFORMED = 'InvalidParameterValue.LaunchTemplateIdMalformed'
|
|
523
529
|
|
|
524
530
|
# 实例启动模板ID不存在。
|
|
@@ -1620,7 +1620,7 @@ class CreateImageRequest(AbstractModel):
|
|
|
1620
1620
|
:param _ImageDescription: 镜像描述
|
|
1621
1621
|
:type ImageDescription: str
|
|
1622
1622
|
:param _ForcePoweroff: 是否执行强制关机以制作镜像。
|
|
1623
|
-
取值范围:<br><li>true
|
|
1623
|
+
取值范围:<br><li>true:表示关机之后制作镜像</li><br><li>false:表示开机状态制作镜像</li><br><br>默认取值:false。<br><br>开机状态制作镜像,可能导致部分数据未备份,影响数据安全。
|
|
1624
1624
|
:type ForcePoweroff: str
|
|
1625
1625
|
:param _Sysprep: 创建Windows镜像时是否启用Sysprep。
|
|
1626
1626
|
取值范围:true或false,传true表示启用Sysprep,传false表示不启用,默认取值为false。
|
|
@@ -1635,6 +1635,8 @@ class CreateImageRequest(AbstractModel):
|
|
|
1635
1635
|
:type DryRun: bool
|
|
1636
1636
|
:param _TagSpecification: 标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。
|
|
1637
1637
|
:type TagSpecification: list of TagSpecification
|
|
1638
|
+
:param _ImageFamily: 镜像族
|
|
1639
|
+
:type ImageFamily: str
|
|
1638
1640
|
"""
|
|
1639
1641
|
self._ImageName = None
|
|
1640
1642
|
self._InstanceId = None
|
|
@@ -1645,6 +1647,7 @@ class CreateImageRequest(AbstractModel):
|
|
|
1645
1647
|
self._SnapshotIds = None
|
|
1646
1648
|
self._DryRun = None
|
|
1647
1649
|
self._TagSpecification = None
|
|
1650
|
+
self._ImageFamily = None
|
|
1648
1651
|
|
|
1649
1652
|
@property
|
|
1650
1653
|
def ImageName(self):
|
|
@@ -1718,6 +1721,14 @@ class CreateImageRequest(AbstractModel):
|
|
|
1718
1721
|
def TagSpecification(self, TagSpecification):
|
|
1719
1722
|
self._TagSpecification = TagSpecification
|
|
1720
1723
|
|
|
1724
|
+
@property
|
|
1725
|
+
def ImageFamily(self):
|
|
1726
|
+
return self._ImageFamily
|
|
1727
|
+
|
|
1728
|
+
@ImageFamily.setter
|
|
1729
|
+
def ImageFamily(self, ImageFamily):
|
|
1730
|
+
self._ImageFamily = ImageFamily
|
|
1731
|
+
|
|
1721
1732
|
|
|
1722
1733
|
def _deserialize(self, params):
|
|
1723
1734
|
self._ImageName = params.get("ImageName")
|
|
@@ -1734,6 +1745,7 @@ class CreateImageRequest(AbstractModel):
|
|
|
1734
1745
|
obj = TagSpecification()
|
|
1735
1746
|
obj._deserialize(item)
|
|
1736
1747
|
self._TagSpecification.append(obj)
|
|
1748
|
+
self._ImageFamily = params.get("ImageFamily")
|
|
1737
1749
|
memeber_set = set(params.keys())
|
|
1738
1750
|
for name, value in vars(self).items():
|
|
1739
1751
|
property_name = name[1:]
|
|
@@ -4170,6 +4182,79 @@ class DescribeHpcClustersResponse(AbstractModel):
|
|
|
4170
4182
|
self._RequestId = params.get("RequestId")
|
|
4171
4183
|
|
|
4172
4184
|
|
|
4185
|
+
class DescribeImageFromFamilyRequest(AbstractModel):
|
|
4186
|
+
"""DescribeImageFromFamily请求参数结构体
|
|
4187
|
+
|
|
4188
|
+
"""
|
|
4189
|
+
|
|
4190
|
+
def __init__(self):
|
|
4191
|
+
r"""
|
|
4192
|
+
:param _ImageFamily: 镜像族
|
|
4193
|
+
:type ImageFamily: str
|
|
4194
|
+
"""
|
|
4195
|
+
self._ImageFamily = None
|
|
4196
|
+
|
|
4197
|
+
@property
|
|
4198
|
+
def ImageFamily(self):
|
|
4199
|
+
return self._ImageFamily
|
|
4200
|
+
|
|
4201
|
+
@ImageFamily.setter
|
|
4202
|
+
def ImageFamily(self, ImageFamily):
|
|
4203
|
+
self._ImageFamily = ImageFamily
|
|
4204
|
+
|
|
4205
|
+
|
|
4206
|
+
def _deserialize(self, params):
|
|
4207
|
+
self._ImageFamily = params.get("ImageFamily")
|
|
4208
|
+
memeber_set = set(params.keys())
|
|
4209
|
+
for name, value in vars(self).items():
|
|
4210
|
+
property_name = name[1:]
|
|
4211
|
+
if property_name in memeber_set:
|
|
4212
|
+
memeber_set.remove(property_name)
|
|
4213
|
+
if len(memeber_set) > 0:
|
|
4214
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4215
|
+
|
|
4216
|
+
|
|
4217
|
+
|
|
4218
|
+
class DescribeImageFromFamilyResponse(AbstractModel):
|
|
4219
|
+
"""DescribeImageFromFamily返回参数结构体
|
|
4220
|
+
|
|
4221
|
+
"""
|
|
4222
|
+
|
|
4223
|
+
def __init__(self):
|
|
4224
|
+
r"""
|
|
4225
|
+
:param _Image: 镜像信息,没有可用镜像是返回为空
|
|
4226
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4227
|
+
:type Image: :class:`tencentcloud.cvm.v20170312.models.Image`
|
|
4228
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4229
|
+
:type RequestId: str
|
|
4230
|
+
"""
|
|
4231
|
+
self._Image = None
|
|
4232
|
+
self._RequestId = None
|
|
4233
|
+
|
|
4234
|
+
@property
|
|
4235
|
+
def Image(self):
|
|
4236
|
+
return self._Image
|
|
4237
|
+
|
|
4238
|
+
@Image.setter
|
|
4239
|
+
def Image(self, Image):
|
|
4240
|
+
self._Image = Image
|
|
4241
|
+
|
|
4242
|
+
@property
|
|
4243
|
+
def RequestId(self):
|
|
4244
|
+
return self._RequestId
|
|
4245
|
+
|
|
4246
|
+
@RequestId.setter
|
|
4247
|
+
def RequestId(self, RequestId):
|
|
4248
|
+
self._RequestId = RequestId
|
|
4249
|
+
|
|
4250
|
+
|
|
4251
|
+
def _deserialize(self, params):
|
|
4252
|
+
if params.get("Image") is not None:
|
|
4253
|
+
self._Image = Image()
|
|
4254
|
+
self._Image._deserialize(params.get("Image"))
|
|
4255
|
+
self._RequestId = params.get("RequestId")
|
|
4256
|
+
|
|
4257
|
+
|
|
4173
4258
|
class DescribeImageQuotaRequest(AbstractModel):
|
|
4174
4259
|
"""DescribeImageQuota请求参数结构体
|
|
4175
4260
|
|
|
@@ -8173,6 +8258,11 @@ IMPORTFAILED-导入失败
|
|
|
8173
8258
|
:type Tags: list of Tag
|
|
8174
8259
|
:param _LicenseType: 镜像许可类型
|
|
8175
8260
|
:type LicenseType: str
|
|
8261
|
+
:param _ImageFamily: 镜像族
|
|
8262
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8263
|
+
:type ImageFamily: str
|
|
8264
|
+
:param _ImageDeprecated: 镜像是否废弃
|
|
8265
|
+
:type ImageDeprecated: bool
|
|
8176
8266
|
"""
|
|
8177
8267
|
self._ImageId = None
|
|
8178
8268
|
self._OsName = None
|
|
@@ -8191,6 +8281,8 @@ IMPORTFAILED-导入失败
|
|
|
8191
8281
|
self._SnapshotSet = None
|
|
8192
8282
|
self._Tags = None
|
|
8193
8283
|
self._LicenseType = None
|
|
8284
|
+
self._ImageFamily = None
|
|
8285
|
+
self._ImageDeprecated = None
|
|
8194
8286
|
|
|
8195
8287
|
@property
|
|
8196
8288
|
def ImageId(self):
|
|
@@ -8328,6 +8420,22 @@ IMPORTFAILED-导入失败
|
|
|
8328
8420
|
def LicenseType(self, LicenseType):
|
|
8329
8421
|
self._LicenseType = LicenseType
|
|
8330
8422
|
|
|
8423
|
+
@property
|
|
8424
|
+
def ImageFamily(self):
|
|
8425
|
+
return self._ImageFamily
|
|
8426
|
+
|
|
8427
|
+
@ImageFamily.setter
|
|
8428
|
+
def ImageFamily(self, ImageFamily):
|
|
8429
|
+
self._ImageFamily = ImageFamily
|
|
8430
|
+
|
|
8431
|
+
@property
|
|
8432
|
+
def ImageDeprecated(self):
|
|
8433
|
+
return self._ImageDeprecated
|
|
8434
|
+
|
|
8435
|
+
@ImageDeprecated.setter
|
|
8436
|
+
def ImageDeprecated(self, ImageDeprecated):
|
|
8437
|
+
self._ImageDeprecated = ImageDeprecated
|
|
8438
|
+
|
|
8331
8439
|
|
|
8332
8440
|
def _deserialize(self, params):
|
|
8333
8441
|
self._ImageId = params.get("ImageId")
|
|
@@ -8357,6 +8465,8 @@ IMPORTFAILED-导入失败
|
|
|
8357
8465
|
obj._deserialize(item)
|
|
8358
8466
|
self._Tags.append(obj)
|
|
8359
8467
|
self._LicenseType = params.get("LicenseType")
|
|
8468
|
+
self._ImageFamily = params.get("ImageFamily")
|
|
8469
|
+
self._ImageDeprecated = params.get("ImageDeprecated")
|
|
8360
8470
|
memeber_set = set(params.keys())
|
|
8361
8471
|
for name, value in vars(self).items():
|
|
8362
8472
|
property_name = name[1:]
|
|
@@ -8491,6 +8601,8 @@ BYOL: 自带许可(Bring Your Own License)
|
|
|
8491
8601
|
:type LicenseType: str
|
|
8492
8602
|
:param _BootMode: 启动模式
|
|
8493
8603
|
:type BootMode: str
|
|
8604
|
+
:param _ImageFamily: 镜像族
|
|
8605
|
+
:type ImageFamily: str
|
|
8494
8606
|
"""
|
|
8495
8607
|
self._Architecture = None
|
|
8496
8608
|
self._OsType = None
|
|
@@ -8503,6 +8615,7 @@ BYOL: 自带许可(Bring Your Own License)
|
|
|
8503
8615
|
self._TagSpecification = None
|
|
8504
8616
|
self._LicenseType = None
|
|
8505
8617
|
self._BootMode = None
|
|
8618
|
+
self._ImageFamily = None
|
|
8506
8619
|
|
|
8507
8620
|
@property
|
|
8508
8621
|
def Architecture(self):
|
|
@@ -8592,6 +8705,14 @@ BYOL: 自带许可(Bring Your Own License)
|
|
|
8592
8705
|
def BootMode(self, BootMode):
|
|
8593
8706
|
self._BootMode = BootMode
|
|
8594
8707
|
|
|
8708
|
+
@property
|
|
8709
|
+
def ImageFamily(self):
|
|
8710
|
+
return self._ImageFamily
|
|
8711
|
+
|
|
8712
|
+
@ImageFamily.setter
|
|
8713
|
+
def ImageFamily(self, ImageFamily):
|
|
8714
|
+
self._ImageFamily = ImageFamily
|
|
8715
|
+
|
|
8595
8716
|
|
|
8596
8717
|
def _deserialize(self, params):
|
|
8597
8718
|
self._Architecture = params.get("Architecture")
|
|
@@ -8610,6 +8731,7 @@ BYOL: 自带许可(Bring Your Own License)
|
|
|
8610
8731
|
self._TagSpecification.append(obj)
|
|
8611
8732
|
self._LicenseType = params.get("LicenseType")
|
|
8612
8733
|
self._BootMode = params.get("BootMode")
|
|
8734
|
+
self._ImageFamily = params.get("ImageFamily")
|
|
8613
8735
|
memeber_set = set(params.keys())
|
|
8614
8736
|
for name, value in vars(self).items():
|
|
8615
8737
|
property_name = name[1:]
|
|
@@ -9083,7 +9205,7 @@ class InquiryPriceRenewHostsRequest(AbstractModel):
|
|
|
9083
9205
|
:type HostIds: list of str
|
|
9084
9206
|
:param _HostChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。
|
|
9085
9207
|
:type HostChargePrepaid: :class:`tencentcloud.cvm.v20170312.models.ChargePrepaid`
|
|
9086
|
-
:param _DryRun:
|
|
9208
|
+
:param _DryRun: 是否只预检此次请求。true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。如果检查不通过,则返回对应错误码;如果检查通过,则返回RequestId.false(默认):发送正常请求,通过检查后直接创建实例
|
|
9087
9209
|
:type DryRun: bool
|
|
9088
9210
|
"""
|
|
9089
9211
|
self._HostIds = None
|
|
@@ -12713,13 +12835,13 @@ class LoginSettings(AbstractModel):
|
|
|
12713
12835
|
|
|
12714
12836
|
def __init__(self):
|
|
12715
12837
|
r"""
|
|
12716
|
-
:param _Password: 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<
|
|
12838
|
+
:param _Password: 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。</li><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。</li>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
|
|
12717
12839
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12718
12840
|
:type Password: str
|
|
12719
12841
|
:param _KeyIds: 密钥ID列表。关联密钥后,就可以通过对应的私钥来访问实例;KeyId可通过接口[DescribeKeyPairs](https://cloud.tencent.com/document/api/213/15699)获取,密钥与密码不能同时指定,同时Windows操作系统不支持指定密钥。
|
|
12720
12842
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12721
12843
|
:type KeyIds: list of str
|
|
12722
|
-
:param _KeepImageLogin: 保持镜像的原始设置。该参数与Password或KeyIds.N不能同时指定。只有使用自定义镜像、共享镜像或外部导入镜像创建实例时才能指定该参数为
|
|
12844
|
+
:param _KeepImageLogin: 保持镜像的原始设置。该参数与Password或KeyIds.N不能同时指定。只有使用自定义镜像、共享镜像或外部导入镜像创建实例时才能指定该参数为true。取值范围:<li>true:表示保持镜像的登录设置</li><li>false:表示不保持镜像的登录设置</li>默认取值:false。
|
|
12723
12845
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12724
12846
|
:type KeepImageLogin: str
|
|
12725
12847
|
"""
|
|
@@ -13143,10 +13265,16 @@ class ModifyImageAttributeRequest(AbstractModel):
|
|
|
13143
13265
|
:type ImageName: str
|
|
13144
13266
|
:param _ImageDescription: 设置新的镜像描述;必须满足下列限制: <li> 不得超过 256 个字符。</li>
|
|
13145
13267
|
:type ImageDescription: str
|
|
13268
|
+
:param _ImageFamily: 设置镜像族;
|
|
13269
|
+
:type ImageFamily: str
|
|
13270
|
+
:param _ImageDeprecated: 设置镜像是否废弃;
|
|
13271
|
+
:type ImageDeprecated: bool
|
|
13146
13272
|
"""
|
|
13147
13273
|
self._ImageId = None
|
|
13148
13274
|
self._ImageName = None
|
|
13149
13275
|
self._ImageDescription = None
|
|
13276
|
+
self._ImageFamily = None
|
|
13277
|
+
self._ImageDeprecated = None
|
|
13150
13278
|
|
|
13151
13279
|
@property
|
|
13152
13280
|
def ImageId(self):
|
|
@@ -13172,11 +13300,29 @@ class ModifyImageAttributeRequest(AbstractModel):
|
|
|
13172
13300
|
def ImageDescription(self, ImageDescription):
|
|
13173
13301
|
self._ImageDescription = ImageDescription
|
|
13174
13302
|
|
|
13303
|
+
@property
|
|
13304
|
+
def ImageFamily(self):
|
|
13305
|
+
return self._ImageFamily
|
|
13306
|
+
|
|
13307
|
+
@ImageFamily.setter
|
|
13308
|
+
def ImageFamily(self, ImageFamily):
|
|
13309
|
+
self._ImageFamily = ImageFamily
|
|
13310
|
+
|
|
13311
|
+
@property
|
|
13312
|
+
def ImageDeprecated(self):
|
|
13313
|
+
return self._ImageDeprecated
|
|
13314
|
+
|
|
13315
|
+
@ImageDeprecated.setter
|
|
13316
|
+
def ImageDeprecated(self, ImageDeprecated):
|
|
13317
|
+
self._ImageDeprecated = ImageDeprecated
|
|
13318
|
+
|
|
13175
13319
|
|
|
13176
13320
|
def _deserialize(self, params):
|
|
13177
13321
|
self._ImageId = params.get("ImageId")
|
|
13178
13322
|
self._ImageName = params.get("ImageName")
|
|
13179
13323
|
self._ImageDescription = params.get("ImageDescription")
|
|
13324
|
+
self._ImageFamily = params.get("ImageFamily")
|
|
13325
|
+
self._ImageDeprecated = params.get("ImageDeprecated")
|
|
13180
13326
|
memeber_set = set(params.keys())
|
|
13181
13327
|
for name, value in vars(self).items():
|
|
13182
13328
|
property_name = name[1:]
|
|
@@ -15695,11 +15841,19 @@ class ReservedInstancePrice(AbstractModel):
|
|
|
15695
15841
|
:type OriginalUsagePrice: float
|
|
15696
15842
|
:param _DiscountUsagePrice: 后续合计费用的折扣价,单位:元/小时
|
|
15697
15843
|
:type DiscountUsagePrice: float
|
|
15844
|
+
:param _FixedPriceDiscount: 预支费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
|
|
15845
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15846
|
+
:type FixedPriceDiscount: float
|
|
15847
|
+
:param _UsagePriceDiscount: 后续费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
|
|
15848
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15849
|
+
:type UsagePriceDiscount: float
|
|
15698
15850
|
"""
|
|
15699
15851
|
self._OriginalFixedPrice = None
|
|
15700
15852
|
self._DiscountFixedPrice = None
|
|
15701
15853
|
self._OriginalUsagePrice = None
|
|
15702
15854
|
self._DiscountUsagePrice = None
|
|
15855
|
+
self._FixedPriceDiscount = None
|
|
15856
|
+
self._UsagePriceDiscount = None
|
|
15703
15857
|
|
|
15704
15858
|
@property
|
|
15705
15859
|
def OriginalFixedPrice(self):
|
|
@@ -15733,12 +15887,30 @@ class ReservedInstancePrice(AbstractModel):
|
|
|
15733
15887
|
def DiscountUsagePrice(self, DiscountUsagePrice):
|
|
15734
15888
|
self._DiscountUsagePrice = DiscountUsagePrice
|
|
15735
15889
|
|
|
15890
|
+
@property
|
|
15891
|
+
def FixedPriceDiscount(self):
|
|
15892
|
+
return self._FixedPriceDiscount
|
|
15893
|
+
|
|
15894
|
+
@FixedPriceDiscount.setter
|
|
15895
|
+
def FixedPriceDiscount(self, FixedPriceDiscount):
|
|
15896
|
+
self._FixedPriceDiscount = FixedPriceDiscount
|
|
15897
|
+
|
|
15898
|
+
@property
|
|
15899
|
+
def UsagePriceDiscount(self):
|
|
15900
|
+
return self._UsagePriceDiscount
|
|
15901
|
+
|
|
15902
|
+
@UsagePriceDiscount.setter
|
|
15903
|
+
def UsagePriceDiscount(self, UsagePriceDiscount):
|
|
15904
|
+
self._UsagePriceDiscount = UsagePriceDiscount
|
|
15905
|
+
|
|
15736
15906
|
|
|
15737
15907
|
def _deserialize(self, params):
|
|
15738
15908
|
self._OriginalFixedPrice = params.get("OriginalFixedPrice")
|
|
15739
15909
|
self._DiscountFixedPrice = params.get("DiscountFixedPrice")
|
|
15740
15910
|
self._OriginalUsagePrice = params.get("OriginalUsagePrice")
|
|
15741
15911
|
self._DiscountUsagePrice = params.get("DiscountUsagePrice")
|
|
15912
|
+
self._FixedPriceDiscount = params.get("FixedPriceDiscount")
|
|
15913
|
+
self._UsagePriceDiscount = params.get("UsagePriceDiscount")
|
|
15742
15914
|
memeber_set = set(params.keys())
|
|
15743
15915
|
for name, value in vars(self).items():
|
|
15744
15916
|
property_name = name[1:]
|
|
@@ -15772,6 +15944,10 @@ class ReservedInstancePriceItem(AbstractModel):
|
|
|
15772
15944
|
:param _ProductDescription: 预留实例计费的平台描述(即操作系统)。形如:Linux。
|
|
15773
15945
|
返回项: Linux 。
|
|
15774
15946
|
:type ProductDescription: str
|
|
15947
|
+
:param _DiscountUsagePrice: 预支合计费用,单位:元。
|
|
15948
|
+
:type DiscountUsagePrice: float
|
|
15949
|
+
:param _DiscountFixedPrice: 后续合计费用的折扣价,单位:元/小时
|
|
15950
|
+
:type DiscountFixedPrice: float
|
|
15775
15951
|
"""
|
|
15776
15952
|
self._OfferingType = None
|
|
15777
15953
|
self._FixedPrice = None
|
|
@@ -15780,6 +15956,8 @@ class ReservedInstancePriceItem(AbstractModel):
|
|
|
15780
15956
|
self._Zone = None
|
|
15781
15957
|
self._Duration = None
|
|
15782
15958
|
self._ProductDescription = None
|
|
15959
|
+
self._DiscountUsagePrice = None
|
|
15960
|
+
self._DiscountFixedPrice = None
|
|
15783
15961
|
|
|
15784
15962
|
@property
|
|
15785
15963
|
def OfferingType(self):
|
|
@@ -15837,6 +16015,22 @@ class ReservedInstancePriceItem(AbstractModel):
|
|
|
15837
16015
|
def ProductDescription(self, ProductDescription):
|
|
15838
16016
|
self._ProductDescription = ProductDescription
|
|
15839
16017
|
|
|
16018
|
+
@property
|
|
16019
|
+
def DiscountUsagePrice(self):
|
|
16020
|
+
return self._DiscountUsagePrice
|
|
16021
|
+
|
|
16022
|
+
@DiscountUsagePrice.setter
|
|
16023
|
+
def DiscountUsagePrice(self, DiscountUsagePrice):
|
|
16024
|
+
self._DiscountUsagePrice = DiscountUsagePrice
|
|
16025
|
+
|
|
16026
|
+
@property
|
|
16027
|
+
def DiscountFixedPrice(self):
|
|
16028
|
+
return self._DiscountFixedPrice
|
|
16029
|
+
|
|
16030
|
+
@DiscountFixedPrice.setter
|
|
16031
|
+
def DiscountFixedPrice(self, DiscountFixedPrice):
|
|
16032
|
+
self._DiscountFixedPrice = DiscountFixedPrice
|
|
16033
|
+
|
|
15840
16034
|
|
|
15841
16035
|
def _deserialize(self, params):
|
|
15842
16036
|
self._OfferingType = params.get("OfferingType")
|
|
@@ -15846,6 +16040,8 @@ class ReservedInstancePriceItem(AbstractModel):
|
|
|
15846
16040
|
self._Zone = params.get("Zone")
|
|
15847
16041
|
self._Duration = params.get("Duration")
|
|
15848
16042
|
self._ProductDescription = params.get("ProductDescription")
|
|
16043
|
+
self._DiscountUsagePrice = params.get("DiscountUsagePrice")
|
|
16044
|
+
self._DiscountFixedPrice = params.get("DiscountFixedPrice")
|
|
15849
16045
|
memeber_set = set(params.keys())
|
|
15850
16046
|
for name, value in vars(self).items():
|
|
15851
16047
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1250
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1241
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|