tencentcloud-sdk-python-cvm 3.0.1245__tar.gz → 3.0.1258__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.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cvm-3.0.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/setup.py +1 -1
- {tencentcloud-sdk-python-cvm-3.0.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cvm-3.0.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/tencentcloud/cvm/v20170312/cvm_client.py +1 -1
- {tencentcloud-sdk-python-cvm-3.0.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/tencentcloud/cvm/v20170312/errorcodes.py +9 -0
- {tencentcloud-sdk-python-cvm-3.0.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/tencentcloud/cvm/v20170312/models.py +90 -1
- {tencentcloud-sdk-python-cvm-3.0.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/tencentcloud_sdk_python_cvm.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-cvm-3.0.1258/tencentcloud_sdk_python_cvm.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cvm-3.0.1245/tencentcloud_sdk_python_cvm.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cvm-3.0.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/README.rst +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/tencentcloud/cvm/__init__.py +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/tencentcloud/cvm/v20170312/__init__.py +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/tencentcloud_sdk_python_cvm.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/tencentcloud_sdk_python_cvm.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cvm-3.0.1245 → tencentcloud-sdk-python-cvm-3.0.1258}/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.1258"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Cvm SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -1387,7 +1387,7 @@ class CvmClient(AbstractClient):
|
|
|
1387
1387
|
|
|
1388
1388
|
|
|
1389
1389
|
def ImportImage(self, request):
|
|
1390
|
-
"""本接口(ImportImage)用于导入镜像,导入后的镜像可用于创建实例。目前支持
|
|
1390
|
+
"""本接口(ImportImage)用于导入镜像,导入后的镜像可用于创建实例。目前支持RAW、VHD、QCOW2、VMDK镜像格式。
|
|
1391
1391
|
|
|
1392
1392
|
:param request: Request instance for ImportImage.
|
|
1393
1393
|
:type request: :class:`tencentcloud.cvm.v20170312.models.ImportImageRequest`
|
|
@@ -281,6 +281,9 @@ INVALIDPARAMETER_INVALIDINSTANCENOTSUPPORTED = 'InvalidParameter.InvalidInstance
|
|
|
281
281
|
# 指定的私有网络ip格式不正确。
|
|
282
282
|
INVALIDPARAMETER_INVALIDIPFORMAT = 'InvalidParameter.InvalidIpFormat'
|
|
283
283
|
|
|
284
|
+
# 指定的 KMS 密钥 ID 非法。
|
|
285
|
+
INVALIDPARAMETER_INVALIDKMSKEYID = 'InvalidParameter.InvalidKmsKeyId'
|
|
286
|
+
|
|
284
287
|
# 不能同时指定ImageIds和Filters。
|
|
285
288
|
INVALIDPARAMETER_INVALIDPARAMETERCOEXISTIMAGEIDSFILTERS = 'InvalidParameter.InvalidParameterCoexistImageIdsFilters'
|
|
286
289
|
|
|
@@ -401,6 +404,9 @@ INVALIDPARAMETERVALUE_IPADDRESSMALFORMED = 'InvalidParameterValue.IPAddressMalfo
|
|
|
401
404
|
# ipv6地址无效
|
|
402
405
|
INVALIDPARAMETERVALUE_IPV6ADDRESSMALFORMED = 'InvalidParameterValue.IPv6AddressMalformed'
|
|
403
406
|
|
|
407
|
+
# ISO文件必须强制导入
|
|
408
|
+
INVALIDPARAMETERVALUE_ISOMUSTIMPORTBYFORCE = 'InvalidParameterValue.ISOMustImportByForce'
|
|
409
|
+
|
|
404
410
|
# HostName参数值不合法
|
|
405
411
|
INVALIDPARAMETERVALUE_ILLEGALHOSTNAME = 'InvalidParameterValue.IllegalHostName'
|
|
406
412
|
|
|
@@ -1112,6 +1118,9 @@ UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGING = 'UnsupportedOperation.StoppedMode
|
|
|
1112
1118
|
# 不支持关机不收费机器做同类型变配操作。
|
|
1113
1119
|
UNSUPPORTEDOPERATION_STOPPEDMODESTOPCHARGINGSAMEFAMILY = 'UnsupportedOperation.StoppedModeStopChargingSameFamily'
|
|
1114
1120
|
|
|
1121
|
+
# 指定的镜像不支持转为加密自定义镜像。
|
|
1122
|
+
UNSUPPORTEDOPERATION_SYNCENCRYPTIMAGENOTSUPPORT = 'UnsupportedOperation.SyncEncryptImageNotSupport'
|
|
1123
|
+
|
|
1115
1124
|
# 请求不支持该类型系统盘。
|
|
1116
1125
|
UNSUPPORTEDOPERATION_SYSTEMDISKTYPE = 'UnsupportedOperation.SystemDiskType'
|
|
1117
1126
|
|
|
@@ -8569,6 +8569,39 @@ class ImageQuota(AbstractModel):
|
|
|
8569
8569
|
|
|
8570
8570
|
|
|
8571
8571
|
|
|
8572
|
+
class ImportImageDataDisk(AbstractModel):
|
|
8573
|
+
"""导入镜像的数据盘信息
|
|
8574
|
+
|
|
8575
|
+
"""
|
|
8576
|
+
|
|
8577
|
+
def __init__(self):
|
|
8578
|
+
r"""
|
|
8579
|
+
:param _ImageUrl: 数据盘镜像 COS 链接
|
|
8580
|
+
:type ImageUrl: str
|
|
8581
|
+
"""
|
|
8582
|
+
self._ImageUrl = None
|
|
8583
|
+
|
|
8584
|
+
@property
|
|
8585
|
+
def ImageUrl(self):
|
|
8586
|
+
return self._ImageUrl
|
|
8587
|
+
|
|
8588
|
+
@ImageUrl.setter
|
|
8589
|
+
def ImageUrl(self, ImageUrl):
|
|
8590
|
+
self._ImageUrl = ImageUrl
|
|
8591
|
+
|
|
8592
|
+
|
|
8593
|
+
def _deserialize(self, params):
|
|
8594
|
+
self._ImageUrl = params.get("ImageUrl")
|
|
8595
|
+
memeber_set = set(params.keys())
|
|
8596
|
+
for name, value in vars(self).items():
|
|
8597
|
+
property_name = name[1:]
|
|
8598
|
+
if property_name in memeber_set:
|
|
8599
|
+
memeber_set.remove(property_name)
|
|
8600
|
+
if len(memeber_set) > 0:
|
|
8601
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8602
|
+
|
|
8603
|
+
|
|
8604
|
+
|
|
8572
8605
|
class ImportImageRequest(AbstractModel):
|
|
8573
8606
|
"""ImportImage请求参数结构体
|
|
8574
8607
|
|
|
@@ -8601,6 +8634,10 @@ BYOL: 自带许可(Bring Your Own License)
|
|
|
8601
8634
|
:type LicenseType: str
|
|
8602
8635
|
:param _BootMode: 启动模式
|
|
8603
8636
|
:type BootMode: str
|
|
8637
|
+
:param _ImageFamily: 镜像族
|
|
8638
|
+
:type ImageFamily: str
|
|
8639
|
+
:param _ImportImageDataDiskList: 导入的数据盘列表
|
|
8640
|
+
:type ImportImageDataDiskList: list of ImportImageDataDisk
|
|
8604
8641
|
"""
|
|
8605
8642
|
self._Architecture = None
|
|
8606
8643
|
self._OsType = None
|
|
@@ -8613,6 +8650,8 @@ BYOL: 自带许可(Bring Your Own License)
|
|
|
8613
8650
|
self._TagSpecification = None
|
|
8614
8651
|
self._LicenseType = None
|
|
8615
8652
|
self._BootMode = None
|
|
8653
|
+
self._ImageFamily = None
|
|
8654
|
+
self._ImportImageDataDiskList = None
|
|
8616
8655
|
|
|
8617
8656
|
@property
|
|
8618
8657
|
def Architecture(self):
|
|
@@ -8702,6 +8741,22 @@ BYOL: 自带许可(Bring Your Own License)
|
|
|
8702
8741
|
def BootMode(self, BootMode):
|
|
8703
8742
|
self._BootMode = BootMode
|
|
8704
8743
|
|
|
8744
|
+
@property
|
|
8745
|
+
def ImageFamily(self):
|
|
8746
|
+
return self._ImageFamily
|
|
8747
|
+
|
|
8748
|
+
@ImageFamily.setter
|
|
8749
|
+
def ImageFamily(self, ImageFamily):
|
|
8750
|
+
self._ImageFamily = ImageFamily
|
|
8751
|
+
|
|
8752
|
+
@property
|
|
8753
|
+
def ImportImageDataDiskList(self):
|
|
8754
|
+
return self._ImportImageDataDiskList
|
|
8755
|
+
|
|
8756
|
+
@ImportImageDataDiskList.setter
|
|
8757
|
+
def ImportImageDataDiskList(self, ImportImageDataDiskList):
|
|
8758
|
+
self._ImportImageDataDiskList = ImportImageDataDiskList
|
|
8759
|
+
|
|
8705
8760
|
|
|
8706
8761
|
def _deserialize(self, params):
|
|
8707
8762
|
self._Architecture = params.get("Architecture")
|
|
@@ -8720,6 +8775,13 @@ BYOL: 自带许可(Bring Your Own License)
|
|
|
8720
8775
|
self._TagSpecification.append(obj)
|
|
8721
8776
|
self._LicenseType = params.get("LicenseType")
|
|
8722
8777
|
self._BootMode = params.get("BootMode")
|
|
8778
|
+
self._ImageFamily = params.get("ImageFamily")
|
|
8779
|
+
if params.get("ImportImageDataDiskList") is not None:
|
|
8780
|
+
self._ImportImageDataDiskList = []
|
|
8781
|
+
for item in params.get("ImportImageDataDiskList"):
|
|
8782
|
+
obj = ImportImageDataDisk()
|
|
8783
|
+
obj._deserialize(item)
|
|
8784
|
+
self._ImportImageDataDiskList.append(obj)
|
|
8723
8785
|
memeber_set = set(params.keys())
|
|
8724
8786
|
for name, value in vars(self).items():
|
|
8725
8787
|
property_name = name[1:]
|
|
@@ -18140,12 +18202,22 @@ class SyncImagesRequest(AbstractModel):
|
|
|
18140
18202
|
:param _ImageSetRequired: 是否需要返回目的地域的镜像ID。
|
|
18141
18203
|
默认值: false
|
|
18142
18204
|
:type ImageSetRequired: bool
|
|
18205
|
+
:param _Encrypt: 是否复制为加密自定义镜像。
|
|
18206
|
+
默认值为 false。
|
|
18207
|
+
复制加密自定义镜像仅支持同地域。
|
|
18208
|
+
:type Encrypt: bool
|
|
18209
|
+
:param _KmsKeyId: 加密自定义镜像使用的 KMS 密钥 ID。
|
|
18210
|
+
仅当复制加密镜像时,即 Encrypt 为 true 时,此参数有效;
|
|
18211
|
+
不指定 KmsKeyId,默认使用 CBS 云产品 KMS 密钥。
|
|
18212
|
+
:type KmsKeyId: str
|
|
18143
18213
|
"""
|
|
18144
18214
|
self._ImageIds = None
|
|
18145
18215
|
self._DestinationRegions = None
|
|
18146
18216
|
self._DryRun = None
|
|
18147
18217
|
self._ImageName = None
|
|
18148
18218
|
self._ImageSetRequired = None
|
|
18219
|
+
self._Encrypt = None
|
|
18220
|
+
self._KmsKeyId = None
|
|
18149
18221
|
|
|
18150
18222
|
@property
|
|
18151
18223
|
def ImageIds(self):
|
|
@@ -18187,6 +18259,22 @@ class SyncImagesRequest(AbstractModel):
|
|
|
18187
18259
|
def ImageSetRequired(self, ImageSetRequired):
|
|
18188
18260
|
self._ImageSetRequired = ImageSetRequired
|
|
18189
18261
|
|
|
18262
|
+
@property
|
|
18263
|
+
def Encrypt(self):
|
|
18264
|
+
return self._Encrypt
|
|
18265
|
+
|
|
18266
|
+
@Encrypt.setter
|
|
18267
|
+
def Encrypt(self, Encrypt):
|
|
18268
|
+
self._Encrypt = Encrypt
|
|
18269
|
+
|
|
18270
|
+
@property
|
|
18271
|
+
def KmsKeyId(self):
|
|
18272
|
+
return self._KmsKeyId
|
|
18273
|
+
|
|
18274
|
+
@KmsKeyId.setter
|
|
18275
|
+
def KmsKeyId(self, KmsKeyId):
|
|
18276
|
+
self._KmsKeyId = KmsKeyId
|
|
18277
|
+
|
|
18190
18278
|
|
|
18191
18279
|
def _deserialize(self, params):
|
|
18192
18280
|
self._ImageIds = params.get("ImageIds")
|
|
@@ -18194,6 +18282,8 @@ class SyncImagesRequest(AbstractModel):
|
|
|
18194
18282
|
self._DryRun = params.get("DryRun")
|
|
18195
18283
|
self._ImageName = params.get("ImageName")
|
|
18196
18284
|
self._ImageSetRequired = params.get("ImageSetRequired")
|
|
18285
|
+
self._Encrypt = params.get("Encrypt")
|
|
18286
|
+
self._KmsKeyId = params.get("KmsKeyId")
|
|
18197
18287
|
memeber_set = set(params.keys())
|
|
18198
18288
|
for name, value in vars(self).items():
|
|
18199
18289
|
property_name = name[1:]
|
|
@@ -18656,7 +18746,6 @@ class ZoneInfo(AbstractModel):
|
|
|
18656
18746
|
<li> ap-shanghai-8 </li>
|
|
18657
18747
|
<li> ap-mumbai-1 </li>
|
|
18658
18748
|
<li> ap-mumbai-2 </li>
|
|
18659
|
-
<li> eu-moscow-1 </li>
|
|
18660
18749
|
<li> ap-beijing-1(售罄)</li>
|
|
18661
18750
|
<li> ap-beijing-2 </li>
|
|
18662
18751
|
<li> ap-beijing-3 </li>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1258
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1245
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|