tencentcloud-sdk-python 3.1.70__py2.py3-none-any.whl → 3.1.72__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ccc/v20200210/models.py +90 -0
- tencentcloud/cvm/v20170312/cvm_client.py +23 -0
- tencentcloud/cvm/v20170312/cvm_client_async.py +18 -0
- tencentcloud/cvm/v20170312/errorcodes.py +6 -0
- tencentcloud/cvm/v20170312/models.py +79 -0
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +23 -0
- tencentcloud/cynosdb/v20190107/cynosdb_client_async.py +18 -0
- tencentcloud/cynosdb/v20190107/errorcodes.py +3 -0
- tencentcloud/cynosdb/v20190107/models.py +196 -50
- tencentcloud/dlc/v20210125/models.py +39 -24
- tencentcloud/emr/v20190103/models.py +375 -564
- tencentcloud/ess/v20201111/models.py +10 -14
- tencentcloud/faceid/v20180301/models.py +8 -8
- tencentcloud/ga2/v20250115/errorcodes.py +192 -0
- tencentcloud/ga2/v20250115/ga2_client.py +460 -0
- tencentcloud/ga2/v20250115/ga2_client_async.py +360 -0
- tencentcloud/ga2/v20250115/models.py +5611 -126
- tencentcloud/live/v20180801/models.py +31 -26
- tencentcloud/lke/v20231130/models.py +59 -80
- tencentcloud/monitor/v20230616/models.py +125 -16
- tencentcloud/mps/v20190612/errorcodes.py +36 -0
- tencentcloud/mps/v20190612/models.py +14285 -5666
- tencentcloud/mps/v20190612/mps_client.py +943 -0
- tencentcloud/mps/v20190612/mps_client_async.py +738 -0
- tencentcloud/omics/v20221128/models.py +1454 -107
- tencentcloud/omics/v20221128/omics_client.py +69 -0
- tencentcloud/omics/v20221128/omics_client_async.py +54 -0
- tencentcloud/redis/v20180412/models.py +225 -160
- tencentcloud/redis/v20180412/redis_client.py +23 -0
- tencentcloud/redis/v20180412/redis_client_async.py +18 -0
- tencentcloud/smh/v20210712/errorcodes.py +3 -69
- tencentcloud/smh/v20210712/models.py +999 -2334
- tencentcloud/smh/v20210712/smh_client.py +0 -115
- tencentcloud/smh/v20210712/smh_client_async.py +0 -90
- tencentcloud/tcb/v20180608/models.py +0 -173
- tencentcloud/tcb/v20180608/tcb_client.py +0 -46
- tencentcloud/tcb/v20180608/tcb_client_async.py +0 -36
- tencentcloud/tcss/v20201101/models.py +297 -144
- tencentcloud/teo/v20220901/errorcodes.py +36 -0
- tencentcloud/teo/v20220901/models.py +1997 -207
- tencentcloud/teo/v20220901/teo_client.py +230 -0
- tencentcloud/teo/v20220901/teo_client_async.py +180 -0
- tencentcloud/tke/v20180525/errorcodes.py +3 -0
- tencentcloud/tke/v20180525/models.py +1126 -269
- tencentcloud/tke/v20180525/tke_client.py +46 -0
- tencentcloud/tke/v20180525/tke_client_async.py +36 -0
- tencentcloud/tsf/v20180326/models.py +16 -18
- tencentcloud/vod/v20180717/models.py +57 -12
- tencentcloud/waf/v20180125/models.py +0 -316
- tencentcloud/waf/v20180125/waf_client.py +0 -23
- tencentcloud/waf/v20180125/waf_client_async.py +0 -18
- {tencentcloud_sdk_python-3.1.70.dist-info → tencentcloud_sdk_python-3.1.72.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.1.70.dist-info → tencentcloud_sdk_python-3.1.72.dist-info}/RECORD +57 -57
- {tencentcloud_sdk_python-3.1.70.dist-info → tencentcloud_sdk_python-3.1.72.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.1.70.dist-info → tencentcloud_sdk_python-3.1.72.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.1.70.dist-info → tencentcloud_sdk_python-3.1.72.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -5675,6 +5675,12 @@ class CreateOwnNumberApplyRequest(AbstractModel):
|
|
|
5675
5675
|
:type MobileNddPrefix: str
|
|
5676
5676
|
:param _LocalNumberTrimAC: 同市固话去掉区号
|
|
5677
5677
|
:type LocalNumberTrimAC: bool
|
|
5678
|
+
:param _CalleeFormatPassthrough: 被叫格式透传 (完成透传用户输入,不做处理)
|
|
5679
|
+
:type CalleeFormatPassthrough: bool
|
|
5680
|
+
:param _CallerFormatPassthrough: 主叫格式透传 (完成透传用户输入,不做处理)
|
|
5681
|
+
:type CallerFormatPassthrough: bool
|
|
5682
|
+
:param _InternationalNumberPrefix: 国际长途前缀码
|
|
5683
|
+
:type InternationalNumberPrefix: str
|
|
5678
5684
|
"""
|
|
5679
5685
|
self._SdkAppId = None
|
|
5680
5686
|
self._SipTrunkId = None
|
|
@@ -5682,6 +5688,9 @@ class CreateOwnNumberApplyRequest(AbstractModel):
|
|
|
5682
5688
|
self._Prefix = None
|
|
5683
5689
|
self._MobileNddPrefix = None
|
|
5684
5690
|
self._LocalNumberTrimAC = None
|
|
5691
|
+
self._CalleeFormatPassthrough = None
|
|
5692
|
+
self._CallerFormatPassthrough = None
|
|
5693
|
+
self._InternationalNumberPrefix = None
|
|
5685
5694
|
|
|
5686
5695
|
@property
|
|
5687
5696
|
def SdkAppId(self):
|
|
@@ -5749,6 +5758,39 @@ class CreateOwnNumberApplyRequest(AbstractModel):
|
|
|
5749
5758
|
def LocalNumberTrimAC(self, LocalNumberTrimAC):
|
|
5750
5759
|
self._LocalNumberTrimAC = LocalNumberTrimAC
|
|
5751
5760
|
|
|
5761
|
+
@property
|
|
5762
|
+
def CalleeFormatPassthrough(self):
|
|
5763
|
+
r"""被叫格式透传 (完成透传用户输入,不做处理)
|
|
5764
|
+
:rtype: bool
|
|
5765
|
+
"""
|
|
5766
|
+
return self._CalleeFormatPassthrough
|
|
5767
|
+
|
|
5768
|
+
@CalleeFormatPassthrough.setter
|
|
5769
|
+
def CalleeFormatPassthrough(self, CalleeFormatPassthrough):
|
|
5770
|
+
self._CalleeFormatPassthrough = CalleeFormatPassthrough
|
|
5771
|
+
|
|
5772
|
+
@property
|
|
5773
|
+
def CallerFormatPassthrough(self):
|
|
5774
|
+
r"""主叫格式透传 (完成透传用户输入,不做处理)
|
|
5775
|
+
:rtype: bool
|
|
5776
|
+
"""
|
|
5777
|
+
return self._CallerFormatPassthrough
|
|
5778
|
+
|
|
5779
|
+
@CallerFormatPassthrough.setter
|
|
5780
|
+
def CallerFormatPassthrough(self, CallerFormatPassthrough):
|
|
5781
|
+
self._CallerFormatPassthrough = CallerFormatPassthrough
|
|
5782
|
+
|
|
5783
|
+
@property
|
|
5784
|
+
def InternationalNumberPrefix(self):
|
|
5785
|
+
r"""国际长途前缀码
|
|
5786
|
+
:rtype: str
|
|
5787
|
+
"""
|
|
5788
|
+
return self._InternationalNumberPrefix
|
|
5789
|
+
|
|
5790
|
+
@InternationalNumberPrefix.setter
|
|
5791
|
+
def InternationalNumberPrefix(self, InternationalNumberPrefix):
|
|
5792
|
+
self._InternationalNumberPrefix = InternationalNumberPrefix
|
|
5793
|
+
|
|
5752
5794
|
|
|
5753
5795
|
def _deserialize(self, params):
|
|
5754
5796
|
self._SdkAppId = params.get("SdkAppId")
|
|
@@ -5762,6 +5804,9 @@ class CreateOwnNumberApplyRequest(AbstractModel):
|
|
|
5762
5804
|
self._Prefix = params.get("Prefix")
|
|
5763
5805
|
self._MobileNddPrefix = params.get("MobileNddPrefix")
|
|
5764
5806
|
self._LocalNumberTrimAC = params.get("LocalNumberTrimAC")
|
|
5807
|
+
self._CalleeFormatPassthrough = params.get("CalleeFormatPassthrough")
|
|
5808
|
+
self._CallerFormatPassthrough = params.get("CallerFormatPassthrough")
|
|
5809
|
+
self._InternationalNumberPrefix = params.get("InternationalNumberPrefix")
|
|
5765
5810
|
memeber_set = set(params.keys())
|
|
5766
5811
|
for name, value in vars(self).items():
|
|
5767
5812
|
property_name = name[1:]
|
|
@@ -14755,6 +14800,12 @@ class ModifyOwnNumberApplyRequest(AbstractModel):
|
|
|
14755
14800
|
:type MobileNddPrefix: str
|
|
14756
14801
|
:param _LocalNumberTrimAC: 同市固话去掉区号
|
|
14757
14802
|
:type LocalNumberTrimAC: bool
|
|
14803
|
+
:param _CalleeFormatPassthrough: 被叫格式透传 (完成透传用户输入,不做处理)
|
|
14804
|
+
:type CalleeFormatPassthrough: bool
|
|
14805
|
+
:param _CallerFormatPassthrough: 主叫格式透传 (完成透传用户输入,不做处理)
|
|
14806
|
+
:type CallerFormatPassthrough: bool
|
|
14807
|
+
:param _InternationalNumberPrefix: 国际长途前缀码
|
|
14808
|
+
:type InternationalNumberPrefix: str
|
|
14758
14809
|
"""
|
|
14759
14810
|
self._SdkAppId = None
|
|
14760
14811
|
self._DetailList = None
|
|
@@ -14762,6 +14813,9 @@ class ModifyOwnNumberApplyRequest(AbstractModel):
|
|
|
14762
14813
|
self._Prefix = None
|
|
14763
14814
|
self._MobileNddPrefix = None
|
|
14764
14815
|
self._LocalNumberTrimAC = None
|
|
14816
|
+
self._CalleeFormatPassthrough = None
|
|
14817
|
+
self._CallerFormatPassthrough = None
|
|
14818
|
+
self._InternationalNumberPrefix = None
|
|
14765
14819
|
|
|
14766
14820
|
@property
|
|
14767
14821
|
def SdkAppId(self):
|
|
@@ -14829,6 +14883,39 @@ class ModifyOwnNumberApplyRequest(AbstractModel):
|
|
|
14829
14883
|
def LocalNumberTrimAC(self, LocalNumberTrimAC):
|
|
14830
14884
|
self._LocalNumberTrimAC = LocalNumberTrimAC
|
|
14831
14885
|
|
|
14886
|
+
@property
|
|
14887
|
+
def CalleeFormatPassthrough(self):
|
|
14888
|
+
r"""被叫格式透传 (完成透传用户输入,不做处理)
|
|
14889
|
+
:rtype: bool
|
|
14890
|
+
"""
|
|
14891
|
+
return self._CalleeFormatPassthrough
|
|
14892
|
+
|
|
14893
|
+
@CalleeFormatPassthrough.setter
|
|
14894
|
+
def CalleeFormatPassthrough(self, CalleeFormatPassthrough):
|
|
14895
|
+
self._CalleeFormatPassthrough = CalleeFormatPassthrough
|
|
14896
|
+
|
|
14897
|
+
@property
|
|
14898
|
+
def CallerFormatPassthrough(self):
|
|
14899
|
+
r"""主叫格式透传 (完成透传用户输入,不做处理)
|
|
14900
|
+
:rtype: bool
|
|
14901
|
+
"""
|
|
14902
|
+
return self._CallerFormatPassthrough
|
|
14903
|
+
|
|
14904
|
+
@CallerFormatPassthrough.setter
|
|
14905
|
+
def CallerFormatPassthrough(self, CallerFormatPassthrough):
|
|
14906
|
+
self._CallerFormatPassthrough = CallerFormatPassthrough
|
|
14907
|
+
|
|
14908
|
+
@property
|
|
14909
|
+
def InternationalNumberPrefix(self):
|
|
14910
|
+
r"""国际长途前缀码
|
|
14911
|
+
:rtype: str
|
|
14912
|
+
"""
|
|
14913
|
+
return self._InternationalNumberPrefix
|
|
14914
|
+
|
|
14915
|
+
@InternationalNumberPrefix.setter
|
|
14916
|
+
def InternationalNumberPrefix(self, InternationalNumberPrefix):
|
|
14917
|
+
self._InternationalNumberPrefix = InternationalNumberPrefix
|
|
14918
|
+
|
|
14832
14919
|
|
|
14833
14920
|
def _deserialize(self, params):
|
|
14834
14921
|
self._SdkAppId = params.get("SdkAppId")
|
|
@@ -14842,6 +14929,9 @@ class ModifyOwnNumberApplyRequest(AbstractModel):
|
|
|
14842
14929
|
self._Prefix = params.get("Prefix")
|
|
14843
14930
|
self._MobileNddPrefix = params.get("MobileNddPrefix")
|
|
14844
14931
|
self._LocalNumberTrimAC = params.get("LocalNumberTrimAC")
|
|
14932
|
+
self._CalleeFormatPassthrough = params.get("CalleeFormatPassthrough")
|
|
14933
|
+
self._CallerFormatPassthrough = params.get("CallerFormatPassthrough")
|
|
14934
|
+
self._InternationalNumberPrefix = params.get("InternationalNumberPrefix")
|
|
14845
14935
|
memeber_set = set(params.keys())
|
|
14846
14936
|
for name, value in vars(self).items():
|
|
14847
14937
|
property_name = name[1:]
|
|
@@ -422,6 +422,29 @@ class CvmClient(AbstractClient):
|
|
|
422
422
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
423
423
|
|
|
424
424
|
|
|
425
|
+
def DeleteInstancesDisasterRecoverGroups(self, request):
|
|
426
|
+
r"""本接口 (DeleteInstancesDisasterRecoverGroups) 用于将云服务器实例从指定的置放群组中批量移除。
|
|
427
|
+
|
|
428
|
+
:param request: Request instance for DeleteInstancesDisasterRecoverGroups.
|
|
429
|
+
:type request: :class:`tencentcloud.cvm.v20170312.models.DeleteInstancesDisasterRecoverGroupsRequest`
|
|
430
|
+
:rtype: :class:`tencentcloud.cvm.v20170312.models.DeleteInstancesDisasterRecoverGroupsResponse`
|
|
431
|
+
|
|
432
|
+
"""
|
|
433
|
+
try:
|
|
434
|
+
params = request._serialize()
|
|
435
|
+
headers = request.headers
|
|
436
|
+
body = self.call("DeleteInstancesDisasterRecoverGroups", params, headers=headers)
|
|
437
|
+
response = json.loads(body)
|
|
438
|
+
model = models.DeleteInstancesDisasterRecoverGroupsResponse()
|
|
439
|
+
model._deserialize(response["Response"])
|
|
440
|
+
return model
|
|
441
|
+
except Exception as e:
|
|
442
|
+
if isinstance(e, TencentCloudSDKException):
|
|
443
|
+
raise
|
|
444
|
+
else:
|
|
445
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
446
|
+
|
|
447
|
+
|
|
425
448
|
def DeleteKeyPairs(self, request):
|
|
426
449
|
r"""本接口 (DeleteKeyPairs) 用于删除已在腾讯云托管的密钥对。
|
|
427
450
|
|
|
@@ -341,6 +341,24 @@ class CvmClient(AbstractClient):
|
|
|
341
341
|
|
|
342
342
|
return await self.call_and_deserialize(**kwargs)
|
|
343
343
|
|
|
344
|
+
async def DeleteInstancesDisasterRecoverGroups(
|
|
345
|
+
self,
|
|
346
|
+
request: models.DeleteInstancesDisasterRecoverGroupsRequest,
|
|
347
|
+
opts: Dict = None,
|
|
348
|
+
) -> models.DeleteInstancesDisasterRecoverGroupsResponse:
|
|
349
|
+
"""
|
|
350
|
+
本接口 (DeleteInstancesDisasterRecoverGroups) 用于将云服务器实例从指定的置放群组中批量移除。
|
|
351
|
+
"""
|
|
352
|
+
|
|
353
|
+
kwargs = {}
|
|
354
|
+
kwargs["action"] = "DeleteInstancesDisasterRecoverGroups"
|
|
355
|
+
kwargs["params"] = request._serialize()
|
|
356
|
+
kwargs["resp_cls"] = models.DeleteInstancesDisasterRecoverGroupsResponse
|
|
357
|
+
kwargs["headers"] = request.headers
|
|
358
|
+
kwargs["opts"] = opts or {}
|
|
359
|
+
|
|
360
|
+
return await self.call_and_deserialize(**kwargs)
|
|
361
|
+
|
|
344
362
|
async def DeleteKeyPairs(
|
|
345
363
|
self,
|
|
346
364
|
request: models.DeleteKeyPairsRequest,
|
|
@@ -38,6 +38,9 @@ FAILEDOPERATION_BYOLIMAGESHAREFAILED = 'FailedOperation.BYOLImageShareFailed'
|
|
|
38
38
|
# 未找到指定的容灾组
|
|
39
39
|
FAILEDOPERATION_DISASTERRECOVERGROUPNOTFOUND = 'FailedOperation.DisasterRecoverGroupNotFound'
|
|
40
40
|
|
|
41
|
+
# 实例置放群组信息不匹配,操作失败。
|
|
42
|
+
FAILEDOPERATION_DISASTERRECOVERGROUPNOTMATCH = 'FailedOperation.DisasterRecoverGroupNotMatch'
|
|
43
|
+
|
|
41
44
|
# 获取实例的自动化助手状态失败
|
|
42
45
|
FAILEDOPERATION_GETINSTANCETATAGENTSTATUSFAILED = 'FailedOperation.GetInstanceTATAgentStatusFailed'
|
|
43
46
|
|
|
@@ -872,6 +875,9 @@ RESOURCEINSUFFICIENT_ZONESOLDOUTFORSPECIFIEDINSTANCE = 'ResourceInsufficient.Zon
|
|
|
872
875
|
# 高性能计算集群不存在。
|
|
873
876
|
RESOURCENOTFOUND_HPCCLUSTER = 'ResourceNotFound.HpcCluster'
|
|
874
877
|
|
|
878
|
+
# 实例ID未找到。
|
|
879
|
+
RESOURCENOTFOUND_INVALIDINSTANCEIDNOTFOUND = 'ResourceNotFound.InvalidInstanceIdNotFound'
|
|
880
|
+
|
|
875
881
|
# 指定的置放群组不存在。
|
|
876
882
|
RESOURCENOTFOUND_INVALIDPLACEMENTSET = 'ResourceNotFound.InvalidPlacementSet'
|
|
877
883
|
|
|
@@ -4397,6 +4397,85 @@ class DeleteInstancesActionTimerResponse(AbstractModel):
|
|
|
4397
4397
|
self._RequestId = params.get("RequestId")
|
|
4398
4398
|
|
|
4399
4399
|
|
|
4400
|
+
class DeleteInstancesDisasterRecoverGroupsRequest(AbstractModel):
|
|
4401
|
+
r"""DeleteInstancesDisasterRecoverGroups请求参数结构体
|
|
4402
|
+
|
|
4403
|
+
"""
|
|
4404
|
+
|
|
4405
|
+
def __init__(self):
|
|
4406
|
+
r"""
|
|
4407
|
+
:param _InstanceIds: 一个或多个待操作的实例ID。可通过[`DescribeInstances`](https://cloud.tencent.com/document/api/213/15728)接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
|
|
4408
|
+
:type InstanceIds: list of str
|
|
4409
|
+
:param _DisasterRecoverGroupIds: 分散置放群组ID列表,可通过[DescribeDisasterRecoverGroups](https://cloud.tencent.com/document/api/213/17810)接口获取。
|
|
4410
|
+
:type DisasterRecoverGroupIds: list of str
|
|
4411
|
+
"""
|
|
4412
|
+
self._InstanceIds = None
|
|
4413
|
+
self._DisasterRecoverGroupIds = None
|
|
4414
|
+
|
|
4415
|
+
@property
|
|
4416
|
+
def InstanceIds(self):
|
|
4417
|
+
r"""一个或多个待操作的实例ID。可通过[`DescribeInstances`](https://cloud.tencent.com/document/api/213/15728)接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
|
|
4418
|
+
:rtype: list of str
|
|
4419
|
+
"""
|
|
4420
|
+
return self._InstanceIds
|
|
4421
|
+
|
|
4422
|
+
@InstanceIds.setter
|
|
4423
|
+
def InstanceIds(self, InstanceIds):
|
|
4424
|
+
self._InstanceIds = InstanceIds
|
|
4425
|
+
|
|
4426
|
+
@property
|
|
4427
|
+
def DisasterRecoverGroupIds(self):
|
|
4428
|
+
r"""分散置放群组ID列表,可通过[DescribeDisasterRecoverGroups](https://cloud.tencent.com/document/api/213/17810)接口获取。
|
|
4429
|
+
:rtype: list of str
|
|
4430
|
+
"""
|
|
4431
|
+
return self._DisasterRecoverGroupIds
|
|
4432
|
+
|
|
4433
|
+
@DisasterRecoverGroupIds.setter
|
|
4434
|
+
def DisasterRecoverGroupIds(self, DisasterRecoverGroupIds):
|
|
4435
|
+
self._DisasterRecoverGroupIds = DisasterRecoverGroupIds
|
|
4436
|
+
|
|
4437
|
+
|
|
4438
|
+
def _deserialize(self, params):
|
|
4439
|
+
self._InstanceIds = params.get("InstanceIds")
|
|
4440
|
+
self._DisasterRecoverGroupIds = params.get("DisasterRecoverGroupIds")
|
|
4441
|
+
memeber_set = set(params.keys())
|
|
4442
|
+
for name, value in vars(self).items():
|
|
4443
|
+
property_name = name[1:]
|
|
4444
|
+
if property_name in memeber_set:
|
|
4445
|
+
memeber_set.remove(property_name)
|
|
4446
|
+
if len(memeber_set) > 0:
|
|
4447
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4448
|
+
|
|
4449
|
+
|
|
4450
|
+
|
|
4451
|
+
class DeleteInstancesDisasterRecoverGroupsResponse(AbstractModel):
|
|
4452
|
+
r"""DeleteInstancesDisasterRecoverGroups返回参数结构体
|
|
4453
|
+
|
|
4454
|
+
"""
|
|
4455
|
+
|
|
4456
|
+
def __init__(self):
|
|
4457
|
+
r"""
|
|
4458
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4459
|
+
:type RequestId: str
|
|
4460
|
+
"""
|
|
4461
|
+
self._RequestId = None
|
|
4462
|
+
|
|
4463
|
+
@property
|
|
4464
|
+
def RequestId(self):
|
|
4465
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4466
|
+
:rtype: str
|
|
4467
|
+
"""
|
|
4468
|
+
return self._RequestId
|
|
4469
|
+
|
|
4470
|
+
@RequestId.setter
|
|
4471
|
+
def RequestId(self, RequestId):
|
|
4472
|
+
self._RequestId = RequestId
|
|
4473
|
+
|
|
4474
|
+
|
|
4475
|
+
def _deserialize(self, params):
|
|
4476
|
+
self._RequestId = params.get("RequestId")
|
|
4477
|
+
|
|
4478
|
+
|
|
4400
4479
|
class DeleteKeyPairsRequest(AbstractModel):
|
|
4401
4480
|
r"""DeleteKeyPairs请求参数结构体
|
|
4402
4481
|
|
|
@@ -1981,6 +1981,29 @@ class CynosdbClient(AbstractClient):
|
|
|
1981
1981
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1982
1982
|
|
|
1983
1983
|
|
|
1984
|
+
def DescribeInstanceSpecsByOperationType(self, request):
|
|
1985
|
+
r"""根据操作类型查询实例规格
|
|
1986
|
+
|
|
1987
|
+
:param request: Request instance for DescribeInstanceSpecsByOperationType.
|
|
1988
|
+
:type request: :class:`tencentcloud.cynosdb.v20190107.models.DescribeInstanceSpecsByOperationTypeRequest`
|
|
1989
|
+
:rtype: :class:`tencentcloud.cynosdb.v20190107.models.DescribeInstanceSpecsByOperationTypeResponse`
|
|
1990
|
+
|
|
1991
|
+
"""
|
|
1992
|
+
try:
|
|
1993
|
+
params = request._serialize()
|
|
1994
|
+
headers = request.headers
|
|
1995
|
+
body = self.call("DescribeInstanceSpecsByOperationType", params, headers=headers)
|
|
1996
|
+
response = json.loads(body)
|
|
1997
|
+
model = models.DescribeInstanceSpecsByOperationTypeResponse()
|
|
1998
|
+
model._deserialize(response["Response"])
|
|
1999
|
+
return model
|
|
2000
|
+
except Exception as e:
|
|
2001
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2002
|
+
raise
|
|
2003
|
+
else:
|
|
2004
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2005
|
+
|
|
2006
|
+
|
|
1984
2007
|
def DescribeInstances(self, request):
|
|
1985
2008
|
r"""本接口(DescribeInstances)用于查询实例列表。
|
|
1986
2009
|
|
|
@@ -1555,6 +1555,24 @@ class CynosdbClient(AbstractClient):
|
|
|
1555
1555
|
|
|
1556
1556
|
return await self.call_and_deserialize(**kwargs)
|
|
1557
1557
|
|
|
1558
|
+
async def DescribeInstanceSpecsByOperationType(
|
|
1559
|
+
self,
|
|
1560
|
+
request: models.DescribeInstanceSpecsByOperationTypeRequest,
|
|
1561
|
+
opts: Dict = None,
|
|
1562
|
+
) -> models.DescribeInstanceSpecsByOperationTypeResponse:
|
|
1563
|
+
"""
|
|
1564
|
+
根据操作类型查询实例规格
|
|
1565
|
+
"""
|
|
1566
|
+
|
|
1567
|
+
kwargs = {}
|
|
1568
|
+
kwargs["action"] = "DescribeInstanceSpecsByOperationType"
|
|
1569
|
+
kwargs["params"] = request._serialize()
|
|
1570
|
+
kwargs["resp_cls"] = models.DescribeInstanceSpecsByOperationTypeResponse
|
|
1571
|
+
kwargs["headers"] = request.headers
|
|
1572
|
+
kwargs["opts"] = opts or {}
|
|
1573
|
+
|
|
1574
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1575
|
+
|
|
1558
1576
|
async def DescribeInstances(
|
|
1559
1577
|
self,
|
|
1560
1578
|
request: models.DescribeInstancesRequest,
|
|
@@ -302,6 +302,9 @@ OPERATIONDENIED_CLUSTERTASKCONFLICTERROR = 'OperationDenied.ClusterTaskConflictE
|
|
|
302
302
|
# 创建任务失败。{{1}}
|
|
303
303
|
OPERATIONDENIED_CREATETASKANDFLOWERROR = 'OperationDenied.CreateTaskAndFlowError'
|
|
304
304
|
|
|
305
|
+
# 实例内核版本不支持{{1}}
|
|
306
|
+
OPERATIONDENIED_CYNOSDBVERSIONNOTSUPPORTERROR = 'OperationDenied.CynosdbVersionNotSupportError'
|
|
307
|
+
|
|
305
308
|
# 新存储架构多可用区部署功能暂未开放
|
|
306
309
|
OPERATIONDENIED_DISABLENEWSTORAGEMULTIZONEDEPLOYMENTERROR = 'OperationDenied.DisableNewStorageMultiZoneDeploymentError'
|
|
307
310
|
|