tencentcloud-sdk-python-cvm 3.0.1304__tar.gz → 3.0.1305__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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/setup.py +1 -1
  3. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/tencentcloud/cvm/v20170312/cvm_client.py +24 -0
  5. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/tencentcloud/cvm/v20170312/errorcodes.py +6 -0
  6. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/tencentcloud/cvm/v20170312/models.py +98 -4
  7. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/tencentcloud_sdk_python_cvm.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-cvm-3.0.1305/tencentcloud_sdk_python_cvm.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-cvm-3.0.1304/tencentcloud_sdk_python_cvm.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/README.rst +0 -0
  11. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/tencentcloud/cvm/__init__.py +0 -0
  13. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/tencentcloud/cvm/v20170312/__init__.py +0 -0
  14. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/tencentcloud_sdk_python_cvm.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/tencentcloud_sdk_python_cvm.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-cvm-3.0.1304 → tencentcloud-sdk-python-cvm-3.0.1305}/tencentcloud_sdk_python_cvm.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-cvm
3
- Version: 3.0.1304
3
+ Version: 3.0.1305
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
@@ -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.1304"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1305"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Cvm SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1304'
17
+ __version__ = '3.0.1305'
@@ -1854,6 +1854,30 @@ class CvmClient(AbstractClient):
1854
1854
  raise TencentCloudSDKException(type(e).__name__, str(e))
1855
1855
 
1856
1856
 
1857
+ def ModifyInstancesDisasterRecoverGroup(self, request):
1858
+ """本接口 (ModifyInstancesDisasterRecoverGroup) 用于调整实例所在置放群组。
1859
+ * 目前只支持基础网络或私有网络实例。
1860
+
1861
+ :param request: Request instance for ModifyInstancesDisasterRecoverGroup.
1862
+ :type request: :class:`tencentcloud.cvm.v20170312.models.ModifyInstancesDisasterRecoverGroupRequest`
1863
+ :rtype: :class:`tencentcloud.cvm.v20170312.models.ModifyInstancesDisasterRecoverGroupResponse`
1864
+
1865
+ """
1866
+ try:
1867
+ params = request._serialize()
1868
+ headers = request.headers
1869
+ body = self.call("ModifyInstancesDisasterRecoverGroup", params, headers=headers)
1870
+ response = json.loads(body)
1871
+ model = models.ModifyInstancesDisasterRecoverGroupResponse()
1872
+ model._deserialize(response["Response"])
1873
+ return model
1874
+ except Exception as e:
1875
+ if isinstance(e, TencentCloudSDKException):
1876
+ raise
1877
+ else:
1878
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1879
+
1880
+
1857
1881
  def ModifyInstancesProject(self, request):
1858
1882
  """本接口 (ModifyInstancesProject) 用于修改实例所属项目。
1859
1883
 
@@ -29,6 +29,9 @@ FAILEDOPERATION_ACCOUNTALREADYEXISTS = 'FailedOperation.AccountAlreadyExists'
29
29
  # 账号为当前用户
30
30
  FAILEDOPERATION_ACCOUNTISYOURSELF = 'FailedOperation.AccountIsYourSelf'
31
31
 
32
+ # 该实例 `ins-xxxxxxx` 已经在 `dgroup-xxxxxx` 置放群组里。
33
+ FAILEDOPERATION_ALREADYINDISASTERRECOVERGROUP = 'FailedOperation.AlreadyInDisasterRecoverGroup'
34
+
32
35
  # 自带许可镜像暂时不支持共享。
33
36
  FAILEDOPERATION_BYOLIMAGESHAREFAILED = 'FailedOperation.BYOLImageShareFailed'
34
37
 
@@ -869,6 +872,9 @@ UNSUPPORTEDOPERATION_ARMARCHITECTURE = 'UnsupportedOperation.ArmArchitecture'
869
872
  # 指定的实例付费模式或者网络付费模式不支持共享带宽包
870
873
  UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = 'UnsupportedOperation.BandwidthPackageIdNotSupported'
871
874
 
875
+ # cbs远端ssd盘不支持该操作
876
+ UNSUPPORTEDOPERATION_CBSREMOTESSDNOTSUPPORT = 'UnsupportedOperation.CbsRemoteSsdNotSupport'
877
+
872
878
  # 实例创建快照的时间距今不到24小时。
873
879
  UNSUPPORTEDOPERATION_DISKSNAPCREATETIMETOOOLD = 'UnsupportedOperation.DiskSnapCreateTimeTooOld'
874
880
 
@@ -3965,14 +3965,14 @@ class DeleteDisasterRecoverGroupsRequest(AbstractModel):
3965
3965
 
3966
3966
  def __init__(self):
3967
3967
  r"""
3968
- :param _DisasterRecoverGroupIds: 分散置放群组ID列表,可通过[DescribeDisasterRecoverGroups](https://cloud.tencent.com/document/api/213/17810)接口获取。每次请求允许操作的分散置放群组数量上限是100
3968
+ :param _DisasterRecoverGroupIds: 分散置放群组ID列表,可通过[DescribeDisasterRecoverGroups](https://cloud.tencent.com/document/api/213/17810)接口获取。每次请求允许操作的分散置放群组数量上限是10
3969
3969
  :type DisasterRecoverGroupIds: list of str
3970
3970
  """
3971
3971
  self._DisasterRecoverGroupIds = None
3972
3972
 
3973
3973
  @property
3974
3974
  def DisasterRecoverGroupIds(self):
3975
- """分散置放群组ID列表,可通过[DescribeDisasterRecoverGroups](https://cloud.tencent.com/document/api/213/17810)接口获取。每次请求允许操作的分散置放群组数量上限是100
3975
+ """分散置放群组ID列表,可通过[DescribeDisasterRecoverGroups](https://cloud.tencent.com/document/api/213/17810)接口获取。每次请求允许操作的分散置放群组数量上限是10
3976
3976
  :rtype: list of str
3977
3977
  """
3978
3978
  return self._DisasterRecoverGroupIds
@@ -4933,7 +4933,7 @@ class DescribeDisasterRecoverGroupsRequest(AbstractModel):
4933
4933
 
4934
4934
  def __init__(self):
4935
4935
  r"""
4936
- :param _DisasterRecoverGroupIds: 分散置放群组ID列表。每次请求允许操作的分散置放群组数量上限是100
4936
+ :param _DisasterRecoverGroupIds: 分散置放群组ID列表。每次请求允许操作的分散置放群组数量上限是10
4937
4937
  :type DisasterRecoverGroupIds: list of str
4938
4938
  :param _Name: 分散置放群组名称,支持模糊匹配。
4939
4939
  :type Name: str
@@ -4949,7 +4949,7 @@ class DescribeDisasterRecoverGroupsRequest(AbstractModel):
4949
4949
 
4950
4950
  @property
4951
4951
  def DisasterRecoverGroupIds(self):
4952
- """分散置放群组ID列表。每次请求允许操作的分散置放群组数量上限是100
4952
+ """分散置放群组ID列表。每次请求允许操作的分散置放群组数量上限是10
4953
4953
  :rtype: list of str
4954
4954
  """
4955
4955
  return self._DisasterRecoverGroupIds
@@ -16352,6 +16352,100 @@ class ModifyInstancesChargeTypeResponse(AbstractModel):
16352
16352
  self._RequestId = params.get("RequestId")
16353
16353
 
16354
16354
 
16355
+ class ModifyInstancesDisasterRecoverGroupRequest(AbstractModel):
16356
+ """ModifyInstancesDisasterRecoverGroup请求参数结构体
16357
+
16358
+ """
16359
+
16360
+ def __init__(self):
16361
+ r"""
16362
+ :param _InstanceIds: 一个或多个待操作的实例ID。可通过[`DescribeInstances`](https://cloud.tencent.com/document/api/213/15728)接口返回值中的`InstanceId`获取。每次请求批量实例的上限为1
16363
+ :type InstanceIds: list of str
16364
+ :param _DisasterRecoverGroupId: 分散置放群组ID,可使用[DescribeDisasterRecoverGroups](https://cloud.tencent.com/document/api/213/17810)接口获取
16365
+ :type DisasterRecoverGroupId: str
16366
+ :param _Force: 是否强制更换实例宿主机。取值范围:<br><li>true:表示允许实例更换宿主机,允许重启实例。本地盘子机不支持指定此参数。</li><br><li>false:不允许实例更换宿主机,只在当前宿主机上加入置放群组。这可能导致更换置放群组失败。</li><br><br>默认取值:false
16367
+ :type Force: bool
16368
+ """
16369
+ self._InstanceIds = None
16370
+ self._DisasterRecoverGroupId = None
16371
+ self._Force = None
16372
+
16373
+ @property
16374
+ def InstanceIds(self):
16375
+ """一个或多个待操作的实例ID。可通过[`DescribeInstances`](https://cloud.tencent.com/document/api/213/15728)接口返回值中的`InstanceId`获取。每次请求批量实例的上限为1
16376
+ :rtype: list of str
16377
+ """
16378
+ return self._InstanceIds
16379
+
16380
+ @InstanceIds.setter
16381
+ def InstanceIds(self, InstanceIds):
16382
+ self._InstanceIds = InstanceIds
16383
+
16384
+ @property
16385
+ def DisasterRecoverGroupId(self):
16386
+ """分散置放群组ID,可使用[DescribeDisasterRecoverGroups](https://cloud.tencent.com/document/api/213/17810)接口获取
16387
+ :rtype: str
16388
+ """
16389
+ return self._DisasterRecoverGroupId
16390
+
16391
+ @DisasterRecoverGroupId.setter
16392
+ def DisasterRecoverGroupId(self, DisasterRecoverGroupId):
16393
+ self._DisasterRecoverGroupId = DisasterRecoverGroupId
16394
+
16395
+ @property
16396
+ def Force(self):
16397
+ """是否强制更换实例宿主机。取值范围:<br><li>true:表示允许实例更换宿主机,允许重启实例。本地盘子机不支持指定此参数。</li><br><li>false:不允许实例更换宿主机,只在当前宿主机上加入置放群组。这可能导致更换置放群组失败。</li><br><br>默认取值:false
16398
+ :rtype: bool
16399
+ """
16400
+ return self._Force
16401
+
16402
+ @Force.setter
16403
+ def Force(self, Force):
16404
+ self._Force = Force
16405
+
16406
+
16407
+ def _deserialize(self, params):
16408
+ self._InstanceIds = params.get("InstanceIds")
16409
+ self._DisasterRecoverGroupId = params.get("DisasterRecoverGroupId")
16410
+ self._Force = params.get("Force")
16411
+ memeber_set = set(params.keys())
16412
+ for name, value in vars(self).items():
16413
+ property_name = name[1:]
16414
+ if property_name in memeber_set:
16415
+ memeber_set.remove(property_name)
16416
+ if len(memeber_set) > 0:
16417
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
16418
+
16419
+
16420
+
16421
+ class ModifyInstancesDisasterRecoverGroupResponse(AbstractModel):
16422
+ """ModifyInstancesDisasterRecoverGroup返回参数结构体
16423
+
16424
+ """
16425
+
16426
+ def __init__(self):
16427
+ r"""
16428
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
16429
+ :type RequestId: str
16430
+ """
16431
+ self._RequestId = None
16432
+
16433
+ @property
16434
+ def RequestId(self):
16435
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
16436
+ :rtype: str
16437
+ """
16438
+ return self._RequestId
16439
+
16440
+ @RequestId.setter
16441
+ def RequestId(self, RequestId):
16442
+ self._RequestId = RequestId
16443
+
16444
+
16445
+ def _deserialize(self, params):
16446
+ self._RequestId = params.get("RequestId")
16447
+
16448
+
16355
16449
  class ModifyInstancesProjectRequest(AbstractModel):
16356
16450
  """ModifyInstancesProject请求参数结构体
16357
16451
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-cvm
3
- Version: 3.0.1304
3
+ Version: 3.0.1305
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1305
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1304