tencentcloud-sdk-python-intl-en 3.0.1273__py2.py3-none-any.whl → 3.0.1275__py2.py3-none-any.whl

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.
@@ -1504,6 +1504,30 @@ class CvmClient(AbstractClient):
1504
1504
  raise TencentCloudSDKException(type(e).__name__, str(e))
1505
1505
 
1506
1506
 
1507
+ def ModifyInstancesDisasterRecoverGroup(self, request):
1508
+ """This API is used to adjust the placement group of an instance.
1509
+ * Currently only basic networks or Virtual Private Cloud (VPC) instances are supported.
1510
+
1511
+ :param request: Request instance for ModifyInstancesDisasterRecoverGroup.
1512
+ :type request: :class:`tencentcloud.cvm.v20170312.models.ModifyInstancesDisasterRecoverGroupRequest`
1513
+ :rtype: :class:`tencentcloud.cvm.v20170312.models.ModifyInstancesDisasterRecoverGroupResponse`
1514
+
1515
+ """
1516
+ try:
1517
+ params = request._serialize()
1518
+ headers = request.headers
1519
+ body = self.call("ModifyInstancesDisasterRecoverGroup", params, headers=headers)
1520
+ response = json.loads(body)
1521
+ model = models.ModifyInstancesDisasterRecoverGroupResponse()
1522
+ model._deserialize(response["Response"])
1523
+ return model
1524
+ except Exception as e:
1525
+ if isinstance(e, TencentCloudSDKException):
1526
+ raise
1527
+ else:
1528
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1529
+
1530
+
1507
1531
  def ModifyInstancesProject(self, request):
1508
1532
  """This API is used to change the project to which an instance is assigned.
1509
1533
 
@@ -29,6 +29,9 @@ FAILEDOPERATION_ACCOUNTALREADYEXISTS = 'FailedOperation.AccountAlreadyExists'
29
29
  # You cannot share images with yourself.
30
30
  FAILEDOPERATION_ACCOUNTISYOURSELF = 'FailedOperation.AccountIsYourSelf'
31
31
 
32
+ # The instance `ins-xxxxxxx` is already in the instance placement group `dgroup-xxxxxx`.
33
+ FAILEDOPERATION_ALREADYINDISASTERRECOVERGROUP = 'FailedOperation.AlreadyInDisasterRecoverGroup'
34
+
32
35
  # BYOL images cannot be shared.
33
36
  FAILEDOPERATION_BYOLIMAGESHAREFAILED = 'FailedOperation.BYOLImageShareFailed'
34
37
 
@@ -869,6 +872,9 @@ UNSUPPORTEDOPERATION_ARMARCHITECTURE = 'UnsupportedOperation.ArmArchitecture'
869
872
  # The specified instance or network cannot use the bandwidth package.
870
873
  UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = 'UnsupportedOperation.BandwidthPackageIdNotSupported'
871
874
 
875
+ # The far end ssd disk does not support this operation.
876
+ UNSUPPORTEDOPERATION_CBSREMOTESSDNOTSUPPORT = 'UnsupportedOperation.CbsRemoteSsdNotSupport'
877
+
872
878
  # Only one snapshot can be created in 24 hours.
873
879
  UNSUPPORTEDOPERATION_DISKSNAPCREATETIMETOOOLD = 'UnsupportedOperation.DiskSnapCreateTimeTooOld'
874
880
 
@@ -13975,6 +13975,100 @@ class ModifyInstancesAttributeResponse(AbstractModel):
13975
13975
  self._RequestId = params.get("RequestId")
13976
13976
 
13977
13977
 
13978
+ class ModifyInstancesDisasterRecoverGroupRequest(AbstractModel):
13979
+ """ModifyInstancesDisasterRecoverGroup request structure.
13980
+
13981
+ """
13982
+
13983
+ def __init__(self):
13984
+ r"""
13985
+ :param _InstanceIds: One or more instance ids to be operated. you can obtain the instance ID through the `InstanceId` in the return value from the api [DescribeInstances](https://www.tencentcloud.com/zh/document/api/213/33258). the maximum number of instances per request is 100.
13986
+ :type InstanceIds: list of str
13987
+ :param _DisasterRecoverGroupId: Spread placement group ID. obtain through the api [DescribeDisasterRecoverGroups](https://www.tencentcloud.com/zh/document/api/213/33261).
13988
+ :type DisasterRecoverGroupId: str
13989
+ :param _Force: Whether to forcibly change instance hosts. value range:<br><li>true: indicates that the instance is allowed to change hosts, allowing the instance to reboot. local disk machine does not support specifying this parameter.</li><br><li>false: does not allow the instance to change hosts. instances can only be added to the placement group on the current host. this may result in a failure to change the placement group.</li><br><br>default value: false.
13990
+ :type Force: bool
13991
+ """
13992
+ self._InstanceIds = None
13993
+ self._DisasterRecoverGroupId = None
13994
+ self._Force = None
13995
+
13996
+ @property
13997
+ def InstanceIds(self):
13998
+ """One or more instance ids to be operated. you can obtain the instance ID through the `InstanceId` in the return value from the api [DescribeInstances](https://www.tencentcloud.com/zh/document/api/213/33258). the maximum number of instances per request is 100.
13999
+ :rtype: list of str
14000
+ """
14001
+ return self._InstanceIds
14002
+
14003
+ @InstanceIds.setter
14004
+ def InstanceIds(self, InstanceIds):
14005
+ self._InstanceIds = InstanceIds
14006
+
14007
+ @property
14008
+ def DisasterRecoverGroupId(self):
14009
+ """Spread placement group ID. obtain through the api [DescribeDisasterRecoverGroups](https://www.tencentcloud.com/zh/document/api/213/33261).
14010
+ :rtype: str
14011
+ """
14012
+ return self._DisasterRecoverGroupId
14013
+
14014
+ @DisasterRecoverGroupId.setter
14015
+ def DisasterRecoverGroupId(self, DisasterRecoverGroupId):
14016
+ self._DisasterRecoverGroupId = DisasterRecoverGroupId
14017
+
14018
+ @property
14019
+ def Force(self):
14020
+ """Whether to forcibly change instance hosts. value range:<br><li>true: indicates that the instance is allowed to change hosts, allowing the instance to reboot. local disk machine does not support specifying this parameter.</li><br><li>false: does not allow the instance to change hosts. instances can only be added to the placement group on the current host. this may result in a failure to change the placement group.</li><br><br>default value: false.
14021
+ :rtype: bool
14022
+ """
14023
+ return self._Force
14024
+
14025
+ @Force.setter
14026
+ def Force(self, Force):
14027
+ self._Force = Force
14028
+
14029
+
14030
+ def _deserialize(self, params):
14031
+ self._InstanceIds = params.get("InstanceIds")
14032
+ self._DisasterRecoverGroupId = params.get("DisasterRecoverGroupId")
14033
+ self._Force = params.get("Force")
14034
+ memeber_set = set(params.keys())
14035
+ for name, value in vars(self).items():
14036
+ property_name = name[1:]
14037
+ if property_name in memeber_set:
14038
+ memeber_set.remove(property_name)
14039
+ if len(memeber_set) > 0:
14040
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
14041
+
14042
+
14043
+
14044
+ class ModifyInstancesDisasterRecoverGroupResponse(AbstractModel):
14045
+ """ModifyInstancesDisasterRecoverGroup response structure.
14046
+
14047
+ """
14048
+
14049
+ def __init__(self):
14050
+ r"""
14051
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
14052
+ :type RequestId: str
14053
+ """
14054
+ self._RequestId = None
14055
+
14056
+ @property
14057
+ def RequestId(self):
14058
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
14059
+ :rtype: str
14060
+ """
14061
+ return self._RequestId
14062
+
14063
+ @RequestId.setter
14064
+ def RequestId(self, RequestId):
14065
+ self._RequestId = RequestId
14066
+
14067
+
14068
+ def _deserialize(self, params):
14069
+ self._RequestId = params.get("RequestId")
14070
+
14071
+
13978
14072
  class ModifyInstancesProjectRequest(AbstractModel):
13979
14073
  """ModifyInstancesProject request structure.
13980
14074
 
@@ -10743,6 +10743,10 @@ The default value is blink. The different action types passed in this parameter
10743
10743
  :type ActionList: str
10744
10744
  :param _LivenessRetryLimit: Control liveness retry number.The value range is 1-99.
10745
10745
  :type LivenessRetryLimit: int
10746
+ :param _LivenessTimeout: Specifies the liveness detection timeout period in seconds. value range: (0,600].
10747
+ :type LivenessTimeout: int
10748
+ :param _SelectedWarningCodes: Selects OCR alarms requiring attention. When an OCR Alarm occurs, the identity verification process will be interrupted. Default value is empty, indicating all alarms are monitored. This feature requires the parameter DisableCheckOcrWarnings=false. If the Alarm is disabled, this parameter will not be effective.
10749
+ :type SelectedWarningCodes: str
10746
10750
  """
10747
10751
  self._AutoSkipStartPage = None
10748
10752
  self._AutoSkip = None
@@ -10757,6 +10761,8 @@ The default value is blink. The different action types passed in this parameter
10757
10761
  self._AutoDowngrade = None
10758
10762
  self._ActionList = None
10759
10763
  self._LivenessRetryLimit = None
10764
+ self._LivenessTimeout = None
10765
+ self._SelectedWarningCodes = None
10760
10766
 
10761
10767
  @property
10762
10768
  def AutoSkipStartPage(self):
@@ -10930,6 +10936,28 @@ The default value is blink. The different action types passed in this parameter
10930
10936
  def LivenessRetryLimit(self, LivenessRetryLimit):
10931
10937
  self._LivenessRetryLimit = LivenessRetryLimit
10932
10938
 
10939
+ @property
10940
+ def LivenessTimeout(self):
10941
+ """Specifies the liveness detection timeout period in seconds. value range: (0,600].
10942
+ :rtype: int
10943
+ """
10944
+ return self._LivenessTimeout
10945
+
10946
+ @LivenessTimeout.setter
10947
+ def LivenessTimeout(self, LivenessTimeout):
10948
+ self._LivenessTimeout = LivenessTimeout
10949
+
10950
+ @property
10951
+ def SelectedWarningCodes(self):
10952
+ """Selects OCR alarms requiring attention. When an OCR Alarm occurs, the identity verification process will be interrupted. Default value is empty, indicating all alarms are monitored. This feature requires the parameter DisableCheckOcrWarnings=false. If the Alarm is disabled, this parameter will not be effective.
10953
+ :rtype: str
10954
+ """
10955
+ return self._SelectedWarningCodes
10956
+
10957
+ @SelectedWarningCodes.setter
10958
+ def SelectedWarningCodes(self, SelectedWarningCodes):
10959
+ self._SelectedWarningCodes = SelectedWarningCodes
10960
+
10933
10961
 
10934
10962
  def _deserialize(self, params):
10935
10963
  self._AutoSkipStartPage = params.get("AutoSkipStartPage")
@@ -10945,6 +10973,8 @@ The default value is blink. The different action types passed in this parameter
10945
10973
  self._AutoDowngrade = params.get("AutoDowngrade")
10946
10974
  self._ActionList = params.get("ActionList")
10947
10975
  self._LivenessRetryLimit = params.get("LivenessRetryLimit")
10976
+ self._LivenessTimeout = params.get("LivenessTimeout")
10977
+ self._SelectedWarningCodes = params.get("SelectedWarningCodes")
10948
10978
  memeber_set = set(params.keys())
10949
10979
  for name, value in vars(self).items():
10950
10980
  property_name = name[1:]
@@ -62,6 +62,9 @@ INTERNALERROR_ASYNCHRONOUSCALLFAILED = 'InternalError.AsynchronousCallFailed'
62
62
  # DBErr
63
63
  INTERNALERROR_DBERR = 'InternalError.DBErr'
64
64
 
65
+ # InternalError.Unknown
66
+ INTERNALERROR_UNKNOWN = 'InternalError.Unknown'
67
+
65
68
  # An internal error exists. Please contact us.
66
69
  INTERNALERROR_UNKNOWNERR = 'InternalError.UnknownErr'
67
70
 
@@ -119,6 +122,9 @@ INVALIDPARAMETER_XFFRESETPARAMETERERR = 'InvalidParameter.XFFResetParameterErr'
119
122
  # Invalid parameter value.
120
123
  INVALIDPARAMETERVALUE = 'InvalidParameterValue'
121
124
 
125
+ # InvalidRequest
126
+ INVALIDPARAMETERVALUE_INVALIDREQUEST = 'InvalidParameterValue.InvalidRequest'
127
+
122
128
  # The quota limit is exceeded.
123
129
  LIMITEXCEEDED = 'LimitExceeded'
124
130
 
@@ -146,6 +152,9 @@ RESOURCEINSUFFICIENT = 'ResourceInsufficient'
146
152
  # Resources do not exist.
147
153
  RESOURCENOTFOUND = 'ResourceNotFound'
148
154
 
155
+ # ResourceNotFound.NotFound
156
+ RESOURCENOTFOUND_NOTFOUND = 'ResourceNotFound.NotFound'
157
+
149
158
  # Resources are unavailable.
150
159
  RESOURCEUNAVAILABLE = 'ResourceUnavailable'
151
160