tencentcloud-sdk-python-intl-en 3.0.1207__py2.py3-none-any.whl → 3.0.1208__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/billing/v20180709/billing_client.py +69 -0
- tencentcloud/billing/v20180709/errorcodes.py +9 -0
- tencentcloud/billing/v20180709/models.py +342 -0
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +138 -0
- tencentcloud/cynosdb/v20190107/errorcodes.py +9 -0
- tencentcloud/cynosdb/v20190107/models.py +1037 -0
- tencentcloud/lke/__init__.py +0 -0
- tencentcloud/lke/v20231130/__init__.py +0 -0
- tencentcloud/lke/v20231130/errorcodes.py +54 -0
- tencentcloud/lke/v20231130/lke_client.py +1252 -0
- tencentcloud/lke/v20231130/models.py +15873 -0
- tencentcloud/ses/v20201002/models.py +432 -0
- tencentcloud/ses/v20201002/ses_client.py +92 -0
- {tencentcloud_sdk_python_intl_en-3.0.1207.dist-info → tencentcloud_sdk_python_intl_en-3.0.1208.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1207.dist-info → tencentcloud_sdk_python_intl_en-3.0.1208.dist-info}/RECORD +18 -13
- {tencentcloud_sdk_python_intl_en-3.0.1207.dist-info → tencentcloud_sdk_python_intl_en-3.0.1208.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1207.dist-info → tencentcloud_sdk_python_intl_en-3.0.1208.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -49,6 +49,29 @@ class BillingClient(AbstractClient):
|
|
|
49
49
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
def CreateAllocationUnit(self, request):
|
|
53
|
+
"""This API is used to create allocation units.
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for CreateAllocationUnit.
|
|
56
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.CreateAllocationUnitRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.CreateAllocationUnitResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("CreateAllocationUnit", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.CreateAllocationUnitResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
|
+
|
|
74
|
+
|
|
52
75
|
def DeleteAllocationTag(self, request):
|
|
53
76
|
"""u200cThis API is used to batch cancel cost allocation tags.
|
|
54
77
|
|
|
@@ -72,6 +95,29 @@ class BillingClient(AbstractClient):
|
|
|
72
95
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
96
|
|
|
74
97
|
|
|
98
|
+
def DeleteAllocationUnit(self, request):
|
|
99
|
+
"""Delete a cost allocation unit.
|
|
100
|
+
|
|
101
|
+
:param request: Request instance for DeleteAllocationUnit.
|
|
102
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.DeleteAllocationUnitRequest`
|
|
103
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.DeleteAllocationUnitResponse`
|
|
104
|
+
|
|
105
|
+
"""
|
|
106
|
+
try:
|
|
107
|
+
params = request._serialize()
|
|
108
|
+
headers = request.headers
|
|
109
|
+
body = self.call("DeleteAllocationUnit", params, headers=headers)
|
|
110
|
+
response = json.loads(body)
|
|
111
|
+
model = models.DeleteAllocationUnitResponse()
|
|
112
|
+
model._deserialize(response["Response"])
|
|
113
|
+
return model
|
|
114
|
+
except Exception as e:
|
|
115
|
+
if isinstance(e, TencentCloudSDKException):
|
|
116
|
+
raise
|
|
117
|
+
else:
|
|
118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
119
|
+
|
|
120
|
+
|
|
75
121
|
def DescribeAccountBalance(self, request):
|
|
76
122
|
"""This API is used to check the Tencent Cloud account balance.
|
|
77
123
|
|
|
@@ -667,6 +713,29 @@ class BillingClient(AbstractClient):
|
|
|
667
713
|
model = models.DescribeVoucherUsageDetailsResponse()
|
|
668
714
|
model._deserialize(response["Response"])
|
|
669
715
|
return model
|
|
716
|
+
except Exception as e:
|
|
717
|
+
if isinstance(e, TencentCloudSDKException):
|
|
718
|
+
raise
|
|
719
|
+
else:
|
|
720
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
def ModifyAllocationUnit(self, request):
|
|
724
|
+
"""This API is used to modify cost allocation unit information.
|
|
725
|
+
|
|
726
|
+
:param request: Request instance for ModifyAllocationUnit.
|
|
727
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.ModifyAllocationUnitRequest`
|
|
728
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.ModifyAllocationUnitResponse`
|
|
729
|
+
|
|
730
|
+
"""
|
|
731
|
+
try:
|
|
732
|
+
params = request._serialize()
|
|
733
|
+
headers = request.headers
|
|
734
|
+
body = self.call("ModifyAllocationUnit", params, headers=headers)
|
|
735
|
+
response = json.loads(body)
|
|
736
|
+
model = models.ModifyAllocationUnitResponse()
|
|
737
|
+
model._deserialize(response["Response"])
|
|
738
|
+
return model
|
|
670
739
|
except Exception as e:
|
|
671
740
|
if isinstance(e, TencentCloudSDKException):
|
|
672
741
|
raise
|
|
@@ -23,6 +23,9 @@ FAILEDOPERATION = 'FailedOperation'
|
|
|
23
23
|
# Invalid App ID.
|
|
24
24
|
FAILEDOPERATION_INVALIDAPPID = 'FailedOperation.InvalidAppId'
|
|
25
25
|
|
|
26
|
+
# The quantity exceeds the maximum limit.
|
|
27
|
+
FAILEDOPERATION_NUMLIMITERROR = 'FailedOperation.NumLimitError'
|
|
28
|
+
|
|
26
29
|
# Payment failed. Please contact Tencent Cloud to resolve this issue.
|
|
27
30
|
FAILEDOPERATION_PAYPRICEERROR = 'FailedOperation.PayPriceError'
|
|
28
31
|
|
|
@@ -38,6 +41,9 @@ FAILEDOPERATION_TAGKEYNOTEXIST = 'FailedOperation.TagKeyNotExist'
|
|
|
38
41
|
# Internal error.
|
|
39
42
|
INTERNALERROR = 'InternalError'
|
|
40
43
|
|
|
44
|
+
# Database operation failed.
|
|
45
|
+
INTERNALERROR_DBOPERATERROR = 'InternalError.DbOperatError'
|
|
46
|
+
|
|
41
47
|
# Gateway error.
|
|
42
48
|
INTERNALERROR_GATEWAYERROR = 'InternalError.GatewayError'
|
|
43
49
|
|
|
@@ -56,6 +62,9 @@ INVALIDPARAMETER_INVALIDPARAMETER = 'InvalidParameter.InvalidParameter'
|
|
|
56
62
|
# Invalid parameter value.
|
|
57
63
|
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
58
64
|
|
|
65
|
+
# Operation denied.
|
|
66
|
+
OPERATIONDENIED = 'OperationDenied'
|
|
67
|
+
|
|
59
68
|
# The account does not have CAM permission.
|
|
60
69
|
UNAUTHORIZEDOPERATION_CAMNOAUTH = 'UnauthorizedOperation.CamNoAuth'
|
|
61
70
|
|
|
@@ -6896,6 +6896,130 @@ class CreateAllocationTagResponse(AbstractModel):
|
|
|
6896
6896
|
self._RequestId = params.get("RequestId")
|
|
6897
6897
|
|
|
6898
6898
|
|
|
6899
|
+
class CreateAllocationUnitRequest(AbstractModel):
|
|
6900
|
+
"""CreateAllocationUnit request structure.
|
|
6901
|
+
|
|
6902
|
+
"""
|
|
6903
|
+
|
|
6904
|
+
def __init__(self):
|
|
6905
|
+
r"""
|
|
6906
|
+
:param _ParentId: New cost allocation unit parent node ID.
|
|
6907
|
+
:type ParentId: int
|
|
6908
|
+
:param _Name: Specifies the name of a newly-added cost allocation unit.
|
|
6909
|
+
:type Name: str
|
|
6910
|
+
:param _Month: Month, which is the current month by default if not provided.
|
|
6911
|
+
:type Month: str
|
|
6912
|
+
"""
|
|
6913
|
+
self._ParentId = None
|
|
6914
|
+
self._Name = None
|
|
6915
|
+
self._Month = None
|
|
6916
|
+
|
|
6917
|
+
@property
|
|
6918
|
+
def ParentId(self):
|
|
6919
|
+
"""New cost allocation unit parent node ID.
|
|
6920
|
+
:rtype: int
|
|
6921
|
+
"""
|
|
6922
|
+
return self._ParentId
|
|
6923
|
+
|
|
6924
|
+
@ParentId.setter
|
|
6925
|
+
def ParentId(self, ParentId):
|
|
6926
|
+
self._ParentId = ParentId
|
|
6927
|
+
|
|
6928
|
+
@property
|
|
6929
|
+
def Name(self):
|
|
6930
|
+
"""Specifies the name of a newly-added cost allocation unit.
|
|
6931
|
+
:rtype: str
|
|
6932
|
+
"""
|
|
6933
|
+
return self._Name
|
|
6934
|
+
|
|
6935
|
+
@Name.setter
|
|
6936
|
+
def Name(self, Name):
|
|
6937
|
+
self._Name = Name
|
|
6938
|
+
|
|
6939
|
+
@property
|
|
6940
|
+
def Month(self):
|
|
6941
|
+
"""Month, which is the current month by default if not provided.
|
|
6942
|
+
:rtype: str
|
|
6943
|
+
"""
|
|
6944
|
+
return self._Month
|
|
6945
|
+
|
|
6946
|
+
@Month.setter
|
|
6947
|
+
def Month(self, Month):
|
|
6948
|
+
self._Month = Month
|
|
6949
|
+
|
|
6950
|
+
|
|
6951
|
+
def _deserialize(self, params):
|
|
6952
|
+
self._ParentId = params.get("ParentId")
|
|
6953
|
+
self._Name = params.get("Name")
|
|
6954
|
+
self._Month = params.get("Month")
|
|
6955
|
+
memeber_set = set(params.keys())
|
|
6956
|
+
for name, value in vars(self).items():
|
|
6957
|
+
property_name = name[1:]
|
|
6958
|
+
if property_name in memeber_set:
|
|
6959
|
+
memeber_set.remove(property_name)
|
|
6960
|
+
if len(memeber_set) > 0:
|
|
6961
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6962
|
+
|
|
6963
|
+
|
|
6964
|
+
|
|
6965
|
+
class CreateAllocationUnitResponse(AbstractModel):
|
|
6966
|
+
"""CreateAllocationUnit response structure.
|
|
6967
|
+
|
|
6968
|
+
"""
|
|
6969
|
+
|
|
6970
|
+
def __init__(self):
|
|
6971
|
+
r"""
|
|
6972
|
+
:param _Id: Specifies the ID of a newly-added cost allocation unit.
|
|
6973
|
+
:type Id: int
|
|
6974
|
+
:param _TreeNodeUniqKey: Unique identifier of a cost allocation unit
|
|
6975
|
+
:type TreeNodeUniqKey: str
|
|
6976
|
+
: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.
|
|
6977
|
+
:type RequestId: str
|
|
6978
|
+
"""
|
|
6979
|
+
self._Id = None
|
|
6980
|
+
self._TreeNodeUniqKey = None
|
|
6981
|
+
self._RequestId = None
|
|
6982
|
+
|
|
6983
|
+
@property
|
|
6984
|
+
def Id(self):
|
|
6985
|
+
"""Specifies the ID of a newly-added cost allocation unit.
|
|
6986
|
+
:rtype: int
|
|
6987
|
+
"""
|
|
6988
|
+
return self._Id
|
|
6989
|
+
|
|
6990
|
+
@Id.setter
|
|
6991
|
+
def Id(self, Id):
|
|
6992
|
+
self._Id = Id
|
|
6993
|
+
|
|
6994
|
+
@property
|
|
6995
|
+
def TreeNodeUniqKey(self):
|
|
6996
|
+
"""Unique identifier of a cost allocation unit
|
|
6997
|
+
:rtype: str
|
|
6998
|
+
"""
|
|
6999
|
+
return self._TreeNodeUniqKey
|
|
7000
|
+
|
|
7001
|
+
@TreeNodeUniqKey.setter
|
|
7002
|
+
def TreeNodeUniqKey(self, TreeNodeUniqKey):
|
|
7003
|
+
self._TreeNodeUniqKey = TreeNodeUniqKey
|
|
7004
|
+
|
|
7005
|
+
@property
|
|
7006
|
+
def RequestId(self):
|
|
7007
|
+
"""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.
|
|
7008
|
+
:rtype: str
|
|
7009
|
+
"""
|
|
7010
|
+
return self._RequestId
|
|
7011
|
+
|
|
7012
|
+
@RequestId.setter
|
|
7013
|
+
def RequestId(self, RequestId):
|
|
7014
|
+
self._RequestId = RequestId
|
|
7015
|
+
|
|
7016
|
+
|
|
7017
|
+
def _deserialize(self, params):
|
|
7018
|
+
self._Id = params.get("Id")
|
|
7019
|
+
self._TreeNodeUniqKey = params.get("TreeNodeUniqKey")
|
|
7020
|
+
self._RequestId = params.get("RequestId")
|
|
7021
|
+
|
|
7022
|
+
|
|
6899
7023
|
class Deal(AbstractModel):
|
|
6900
7024
|
"""Order data object
|
|
6901
7025
|
|
|
@@ -7418,6 +7542,85 @@ class DeleteAllocationTagResponse(AbstractModel):
|
|
|
7418
7542
|
self._RequestId = params.get("RequestId")
|
|
7419
7543
|
|
|
7420
7544
|
|
|
7545
|
+
class DeleteAllocationUnitRequest(AbstractModel):
|
|
7546
|
+
"""DeleteAllocationUnit request structure.
|
|
7547
|
+
|
|
7548
|
+
"""
|
|
7549
|
+
|
|
7550
|
+
def __init__(self):
|
|
7551
|
+
r"""
|
|
7552
|
+
:param _Id: Specifies the deleted cost allocation unit ID.
|
|
7553
|
+
:type Id: int
|
|
7554
|
+
:param _Month: Month, which is the current month by default if not provided.
|
|
7555
|
+
:type Month: str
|
|
7556
|
+
"""
|
|
7557
|
+
self._Id = None
|
|
7558
|
+
self._Month = None
|
|
7559
|
+
|
|
7560
|
+
@property
|
|
7561
|
+
def Id(self):
|
|
7562
|
+
"""Specifies the deleted cost allocation unit ID.
|
|
7563
|
+
:rtype: int
|
|
7564
|
+
"""
|
|
7565
|
+
return self._Id
|
|
7566
|
+
|
|
7567
|
+
@Id.setter
|
|
7568
|
+
def Id(self, Id):
|
|
7569
|
+
self._Id = Id
|
|
7570
|
+
|
|
7571
|
+
@property
|
|
7572
|
+
def Month(self):
|
|
7573
|
+
"""Month, which is the current month by default if not provided.
|
|
7574
|
+
:rtype: str
|
|
7575
|
+
"""
|
|
7576
|
+
return self._Month
|
|
7577
|
+
|
|
7578
|
+
@Month.setter
|
|
7579
|
+
def Month(self, Month):
|
|
7580
|
+
self._Month = Month
|
|
7581
|
+
|
|
7582
|
+
|
|
7583
|
+
def _deserialize(self, params):
|
|
7584
|
+
self._Id = params.get("Id")
|
|
7585
|
+
self._Month = params.get("Month")
|
|
7586
|
+
memeber_set = set(params.keys())
|
|
7587
|
+
for name, value in vars(self).items():
|
|
7588
|
+
property_name = name[1:]
|
|
7589
|
+
if property_name in memeber_set:
|
|
7590
|
+
memeber_set.remove(property_name)
|
|
7591
|
+
if len(memeber_set) > 0:
|
|
7592
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7593
|
+
|
|
7594
|
+
|
|
7595
|
+
|
|
7596
|
+
class DeleteAllocationUnitResponse(AbstractModel):
|
|
7597
|
+
"""DeleteAllocationUnit response structure.
|
|
7598
|
+
|
|
7599
|
+
"""
|
|
7600
|
+
|
|
7601
|
+
def __init__(self):
|
|
7602
|
+
r"""
|
|
7603
|
+
: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.
|
|
7604
|
+
:type RequestId: str
|
|
7605
|
+
"""
|
|
7606
|
+
self._RequestId = None
|
|
7607
|
+
|
|
7608
|
+
@property
|
|
7609
|
+
def RequestId(self):
|
|
7610
|
+
"""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.
|
|
7611
|
+
:rtype: str
|
|
7612
|
+
"""
|
|
7613
|
+
return self._RequestId
|
|
7614
|
+
|
|
7615
|
+
@RequestId.setter
|
|
7616
|
+
def RequestId(self, RequestId):
|
|
7617
|
+
self._RequestId = RequestId
|
|
7618
|
+
|
|
7619
|
+
|
|
7620
|
+
def _deserialize(self, params):
|
|
7621
|
+
self._RequestId = params.get("RequestId")
|
|
7622
|
+
|
|
7623
|
+
|
|
7421
7624
|
class DescribeAccountBalanceRequest(AbstractModel):
|
|
7422
7625
|
"""DescribeAccountBalance request structure.
|
|
7423
7626
|
|
|
@@ -13488,6 +13691,145 @@ class ExcludedProducts(AbstractModel):
|
|
|
13488
13691
|
|
|
13489
13692
|
|
|
13490
13693
|
|
|
13694
|
+
class ModifyAllocationUnitRequest(AbstractModel):
|
|
13695
|
+
"""ModifyAllocationUnit request structure.
|
|
13696
|
+
|
|
13697
|
+
"""
|
|
13698
|
+
|
|
13699
|
+
def __init__(self):
|
|
13700
|
+
r"""
|
|
13701
|
+
:param _Id: ID of the modified cost allocation unit.
|
|
13702
|
+
:type Id: int
|
|
13703
|
+
:param _Name: Modified cost allocation unit name.
|
|
13704
|
+
:type Name: str
|
|
13705
|
+
:param _SourceName: Modified cost allocation unit source organization name.
|
|
13706
|
+
:type SourceName: str
|
|
13707
|
+
:param _SourceId: Modified allocation unit source organization ID.
|
|
13708
|
+
:type SourceId: str
|
|
13709
|
+
:param _Remark: Cost allocation unit remark description.
|
|
13710
|
+
:type Remark: str
|
|
13711
|
+
:param _Month: Month, the current month by default if not provided.
|
|
13712
|
+
:type Month: str
|
|
13713
|
+
"""
|
|
13714
|
+
self._Id = None
|
|
13715
|
+
self._Name = None
|
|
13716
|
+
self._SourceName = None
|
|
13717
|
+
self._SourceId = None
|
|
13718
|
+
self._Remark = None
|
|
13719
|
+
self._Month = None
|
|
13720
|
+
|
|
13721
|
+
@property
|
|
13722
|
+
def Id(self):
|
|
13723
|
+
"""ID of the modified cost allocation unit.
|
|
13724
|
+
:rtype: int
|
|
13725
|
+
"""
|
|
13726
|
+
return self._Id
|
|
13727
|
+
|
|
13728
|
+
@Id.setter
|
|
13729
|
+
def Id(self, Id):
|
|
13730
|
+
self._Id = Id
|
|
13731
|
+
|
|
13732
|
+
@property
|
|
13733
|
+
def Name(self):
|
|
13734
|
+
"""Modified cost allocation unit name.
|
|
13735
|
+
:rtype: str
|
|
13736
|
+
"""
|
|
13737
|
+
return self._Name
|
|
13738
|
+
|
|
13739
|
+
@Name.setter
|
|
13740
|
+
def Name(self, Name):
|
|
13741
|
+
self._Name = Name
|
|
13742
|
+
|
|
13743
|
+
@property
|
|
13744
|
+
def SourceName(self):
|
|
13745
|
+
"""Modified cost allocation unit source organization name.
|
|
13746
|
+
:rtype: str
|
|
13747
|
+
"""
|
|
13748
|
+
return self._SourceName
|
|
13749
|
+
|
|
13750
|
+
@SourceName.setter
|
|
13751
|
+
def SourceName(self, SourceName):
|
|
13752
|
+
self._SourceName = SourceName
|
|
13753
|
+
|
|
13754
|
+
@property
|
|
13755
|
+
def SourceId(self):
|
|
13756
|
+
"""Modified allocation unit source organization ID.
|
|
13757
|
+
:rtype: str
|
|
13758
|
+
"""
|
|
13759
|
+
return self._SourceId
|
|
13760
|
+
|
|
13761
|
+
@SourceId.setter
|
|
13762
|
+
def SourceId(self, SourceId):
|
|
13763
|
+
self._SourceId = SourceId
|
|
13764
|
+
|
|
13765
|
+
@property
|
|
13766
|
+
def Remark(self):
|
|
13767
|
+
"""Cost allocation unit remark description.
|
|
13768
|
+
:rtype: str
|
|
13769
|
+
"""
|
|
13770
|
+
return self._Remark
|
|
13771
|
+
|
|
13772
|
+
@Remark.setter
|
|
13773
|
+
def Remark(self, Remark):
|
|
13774
|
+
self._Remark = Remark
|
|
13775
|
+
|
|
13776
|
+
@property
|
|
13777
|
+
def Month(self):
|
|
13778
|
+
"""Month, the current month by default if not provided.
|
|
13779
|
+
:rtype: str
|
|
13780
|
+
"""
|
|
13781
|
+
return self._Month
|
|
13782
|
+
|
|
13783
|
+
@Month.setter
|
|
13784
|
+
def Month(self, Month):
|
|
13785
|
+
self._Month = Month
|
|
13786
|
+
|
|
13787
|
+
|
|
13788
|
+
def _deserialize(self, params):
|
|
13789
|
+
self._Id = params.get("Id")
|
|
13790
|
+
self._Name = params.get("Name")
|
|
13791
|
+
self._SourceName = params.get("SourceName")
|
|
13792
|
+
self._SourceId = params.get("SourceId")
|
|
13793
|
+
self._Remark = params.get("Remark")
|
|
13794
|
+
self._Month = params.get("Month")
|
|
13795
|
+
memeber_set = set(params.keys())
|
|
13796
|
+
for name, value in vars(self).items():
|
|
13797
|
+
property_name = name[1:]
|
|
13798
|
+
if property_name in memeber_set:
|
|
13799
|
+
memeber_set.remove(property_name)
|
|
13800
|
+
if len(memeber_set) > 0:
|
|
13801
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
13802
|
+
|
|
13803
|
+
|
|
13804
|
+
|
|
13805
|
+
class ModifyAllocationUnitResponse(AbstractModel):
|
|
13806
|
+
"""ModifyAllocationUnit response structure.
|
|
13807
|
+
|
|
13808
|
+
"""
|
|
13809
|
+
|
|
13810
|
+
def __init__(self):
|
|
13811
|
+
r"""
|
|
13812
|
+
: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.
|
|
13813
|
+
:type RequestId: str
|
|
13814
|
+
"""
|
|
13815
|
+
self._RequestId = None
|
|
13816
|
+
|
|
13817
|
+
@property
|
|
13818
|
+
def RequestId(self):
|
|
13819
|
+
"""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.
|
|
13820
|
+
:rtype: str
|
|
13821
|
+
"""
|
|
13822
|
+
return self._RequestId
|
|
13823
|
+
|
|
13824
|
+
@RequestId.setter
|
|
13825
|
+
def RequestId(self, RequestId):
|
|
13826
|
+
self._RequestId = RequestId
|
|
13827
|
+
|
|
13828
|
+
|
|
13829
|
+
def _deserialize(self, params):
|
|
13830
|
+
self._RequestId = params.get("RequestId")
|
|
13831
|
+
|
|
13832
|
+
|
|
13491
13833
|
class PayModeSummaryOverviewItem(AbstractModel):
|
|
13492
13834
|
"""Detailed summary of costs by billing mode
|
|
13493
13835
|
|
|
@@ -716,6 +716,29 @@ class CynosdbClient(AbstractClient):
|
|
|
716
716
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
717
717
|
|
|
718
718
|
|
|
719
|
+
def DescribeBackupDownloadRestriction(self, request):
|
|
720
|
+
"""This API is used to query the download source limit of the default backup configured by the user in the current region.
|
|
721
|
+
|
|
722
|
+
:param request: Request instance for DescribeBackupDownloadRestriction.
|
|
723
|
+
:type request: :class:`tencentcloud.cynosdb.v20190107.models.DescribeBackupDownloadRestrictionRequest`
|
|
724
|
+
:rtype: :class:`tencentcloud.cynosdb.v20190107.models.DescribeBackupDownloadRestrictionResponse`
|
|
725
|
+
|
|
726
|
+
"""
|
|
727
|
+
try:
|
|
728
|
+
params = request._serialize()
|
|
729
|
+
headers = request.headers
|
|
730
|
+
body = self.call("DescribeBackupDownloadRestriction", params, headers=headers)
|
|
731
|
+
response = json.loads(body)
|
|
732
|
+
model = models.DescribeBackupDownloadRestrictionResponse()
|
|
733
|
+
model._deserialize(response["Response"])
|
|
734
|
+
return model
|
|
735
|
+
except Exception as e:
|
|
736
|
+
if isinstance(e, TencentCloudSDKException):
|
|
737
|
+
raise
|
|
738
|
+
else:
|
|
739
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
740
|
+
|
|
741
|
+
|
|
719
742
|
def DescribeBackupDownloadUrl(self, request):
|
|
720
743
|
"""This API is used to query the download link of cluster backup files.
|
|
721
744
|
|
|
@@ -739,6 +762,29 @@ class CynosdbClient(AbstractClient):
|
|
|
739
762
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
740
763
|
|
|
741
764
|
|
|
765
|
+
def DescribeBackupDownloadUserRestriction(self, request):
|
|
766
|
+
"""This API is used to query the default backup download access restrictions of user-level settings in the current region.
|
|
767
|
+
|
|
768
|
+
:param request: Request instance for DescribeBackupDownloadUserRestriction.
|
|
769
|
+
:type request: :class:`tencentcloud.cynosdb.v20190107.models.DescribeBackupDownloadUserRestrictionRequest`
|
|
770
|
+
:rtype: :class:`tencentcloud.cynosdb.v20190107.models.DescribeBackupDownloadUserRestrictionResponse`
|
|
771
|
+
|
|
772
|
+
"""
|
|
773
|
+
try:
|
|
774
|
+
params = request._serialize()
|
|
775
|
+
headers = request.headers
|
|
776
|
+
body = self.call("DescribeBackupDownloadUserRestriction", params, headers=headers)
|
|
777
|
+
response = json.loads(body)
|
|
778
|
+
model = models.DescribeBackupDownloadUserRestrictionResponse()
|
|
779
|
+
model._deserialize(response["Response"])
|
|
780
|
+
return model
|
|
781
|
+
except Exception as e:
|
|
782
|
+
if isinstance(e, TencentCloudSDKException):
|
|
783
|
+
raise
|
|
784
|
+
else:
|
|
785
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
786
|
+
|
|
787
|
+
|
|
742
788
|
def DescribeBackupList(self, request):
|
|
743
789
|
"""This API is used to query the backup file list of a cluster.
|
|
744
790
|
|
|
@@ -992,6 +1038,29 @@ class CynosdbClient(AbstractClient):
|
|
|
992
1038
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
993
1039
|
|
|
994
1040
|
|
|
1041
|
+
def DescribeClusterReadOnly(self, request):
|
|
1042
|
+
"""This API is used to query the cluster read-only switch.
|
|
1043
|
+
|
|
1044
|
+
:param request: Request instance for DescribeClusterReadOnly.
|
|
1045
|
+
:type request: :class:`tencentcloud.cynosdb.v20190107.models.DescribeClusterReadOnlyRequest`
|
|
1046
|
+
:rtype: :class:`tencentcloud.cynosdb.v20190107.models.DescribeClusterReadOnlyResponse`
|
|
1047
|
+
|
|
1048
|
+
"""
|
|
1049
|
+
try:
|
|
1050
|
+
params = request._serialize()
|
|
1051
|
+
headers = request.headers
|
|
1052
|
+
body = self.call("DescribeClusterReadOnly", params, headers=headers)
|
|
1053
|
+
response = json.loads(body)
|
|
1054
|
+
model = models.DescribeClusterReadOnlyResponse()
|
|
1055
|
+
model._deserialize(response["Response"])
|
|
1056
|
+
return model
|
|
1057
|
+
except Exception as e:
|
|
1058
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1059
|
+
raise
|
|
1060
|
+
else:
|
|
1061
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1062
|
+
|
|
1063
|
+
|
|
995
1064
|
def DescribeClusterTransparentEncryptInfo(self, request):
|
|
996
1065
|
"""This API is used to query cluster transparent encryption information.
|
|
997
1066
|
|
|
@@ -1981,6 +2050,52 @@ class CynosdbClient(AbstractClient):
|
|
|
1981
2050
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1982
2051
|
|
|
1983
2052
|
|
|
2053
|
+
def ModifyBackupDownloadRestriction(self, request):
|
|
2054
|
+
"""This API is used to modify the download source limit of the backup file for the user in the current region. It can be configured to allow downloads from both private and public networks, only the private network, or a designated vpc or ip within the private network.
|
|
2055
|
+
|
|
2056
|
+
:param request: Request instance for ModifyBackupDownloadRestriction.
|
|
2057
|
+
:type request: :class:`tencentcloud.cynosdb.v20190107.models.ModifyBackupDownloadRestrictionRequest`
|
|
2058
|
+
:rtype: :class:`tencentcloud.cynosdb.v20190107.models.ModifyBackupDownloadRestrictionResponse`
|
|
2059
|
+
|
|
2060
|
+
"""
|
|
2061
|
+
try:
|
|
2062
|
+
params = request._serialize()
|
|
2063
|
+
headers = request.headers
|
|
2064
|
+
body = self.call("ModifyBackupDownloadRestriction", params, headers=headers)
|
|
2065
|
+
response = json.loads(body)
|
|
2066
|
+
model = models.ModifyBackupDownloadRestrictionResponse()
|
|
2067
|
+
model._deserialize(response["Response"])
|
|
2068
|
+
return model
|
|
2069
|
+
except Exception as e:
|
|
2070
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2071
|
+
raise
|
|
2072
|
+
else:
|
|
2073
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
def ModifyBackupDownloadUserRestriction(self, request):
|
|
2077
|
+
"""This API is used to modify the download source restrictions for backup files in the user's current region. It can be configured to allow downloads from both private and public networks, only from a private network, or from a designated vpc or ip within the private network.
|
|
2078
|
+
|
|
2079
|
+
:param request: Request instance for ModifyBackupDownloadUserRestriction.
|
|
2080
|
+
:type request: :class:`tencentcloud.cynosdb.v20190107.models.ModifyBackupDownloadUserRestrictionRequest`
|
|
2081
|
+
:rtype: :class:`tencentcloud.cynosdb.v20190107.models.ModifyBackupDownloadUserRestrictionResponse`
|
|
2082
|
+
|
|
2083
|
+
"""
|
|
2084
|
+
try:
|
|
2085
|
+
params = request._serialize()
|
|
2086
|
+
headers = request.headers
|
|
2087
|
+
body = self.call("ModifyBackupDownloadUserRestriction", params, headers=headers)
|
|
2088
|
+
response = json.loads(body)
|
|
2089
|
+
model = models.ModifyBackupDownloadUserRestrictionResponse()
|
|
2090
|
+
model._deserialize(response["Response"])
|
|
2091
|
+
return model
|
|
2092
|
+
except Exception as e:
|
|
2093
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2094
|
+
raise
|
|
2095
|
+
else:
|
|
2096
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2097
|
+
|
|
2098
|
+
|
|
1984
2099
|
def ModifyBackupName(self, request):
|
|
1985
2100
|
"""This API is used to rename a backup file.
|
|
1986
2101
|
|
|
@@ -2142,6 +2257,29 @@ class CynosdbClient(AbstractClient):
|
|
|
2142
2257
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2143
2258
|
|
|
2144
2259
|
|
|
2260
|
+
def ModifyClusterReadOnly(self, request):
|
|
2261
|
+
"""This API is used to modify the read-only switch of a cluster.
|
|
2262
|
+
|
|
2263
|
+
:param request: Request instance for ModifyClusterReadOnly.
|
|
2264
|
+
:type request: :class:`tencentcloud.cynosdb.v20190107.models.ModifyClusterReadOnlyRequest`
|
|
2265
|
+
:rtype: :class:`tencentcloud.cynosdb.v20190107.models.ModifyClusterReadOnlyResponse`
|
|
2266
|
+
|
|
2267
|
+
"""
|
|
2268
|
+
try:
|
|
2269
|
+
params = request._serialize()
|
|
2270
|
+
headers = request.headers
|
|
2271
|
+
body = self.call("ModifyClusterReadOnly", params, headers=headers)
|
|
2272
|
+
response = json.loads(body)
|
|
2273
|
+
model = models.ModifyClusterReadOnlyResponse()
|
|
2274
|
+
model._deserialize(response["Response"])
|
|
2275
|
+
return model
|
|
2276
|
+
except Exception as e:
|
|
2277
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2278
|
+
raise
|
|
2279
|
+
else:
|
|
2280
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2281
|
+
|
|
2282
|
+
|
|
2145
2283
|
def ModifyClusterSlaveZone(self, request):
|
|
2146
2284
|
"""This API is used to modify the slave availability zone of a cluster.
|
|
2147
2285
|
|
|
@@ -59,6 +59,9 @@ FAILEDOPERATION_GETNETSERVICEINFOERROR = 'FailedOperation.GetNetServiceInfoError
|
|
|
59
59
|
# Failed to query the details of a read-write instance
|
|
60
60
|
FAILEDOPERATION_GETOSSINFOERROR = 'FailedOperation.GetOssInfoError'
|
|
61
61
|
|
|
62
|
+
#
|
|
63
|
+
FAILEDOPERATION_INSTANCEQUERYERROR = 'FailedOperation.InstanceQueryError'
|
|
64
|
+
|
|
62
65
|
# Insufficient account balance
|
|
63
66
|
FAILEDOPERATION_INSUFFICIENTBALANCE = 'FailedOperation.InsufficientBalance'
|
|
64
67
|
|
|
@@ -116,6 +119,9 @@ INTERNALERROR_INTERNALHTTPSERVERERROR = 'InternalError.InternalHttpServerError'
|
|
|
116
119
|
# Failed to query instances by security group.
|
|
117
120
|
INTERNALERROR_LISTINSTANCEFAILED = 'InternalError.ListInstanceFailed'
|
|
118
121
|
|
|
122
|
+
#
|
|
123
|
+
INTERNALERROR_LISTINSTANCESERROR = 'InternalError.ListInstancesError'
|
|
124
|
+
|
|
119
125
|
# Public network operation failed.
|
|
120
126
|
INTERNALERROR_OPERATEWANFAIL = 'InternalError.OperateWanFail'
|
|
121
127
|
|
|
@@ -242,6 +248,9 @@ LIMITEXCEEDED_CLUSTERINSTANCELIMIT = 'LimitExceeded.ClusterInstanceLimit'
|
|
|
242
248
|
# The number of instances exceeds the limit.
|
|
243
249
|
LIMITEXCEEDED_USERINSTANCELIMIT = 'LimitExceeded.UserInstanceLimit'
|
|
244
250
|
|
|
251
|
+
#
|
|
252
|
+
OPERATIONDENIED_AUDITSTATUSERROR = 'OperationDenied.AuditStatusError'
|
|
253
|
+
|
|
245
254
|
# Failed to verify permissions
|
|
246
255
|
OPERATIONDENIED_CAMDENIEDERROR = 'OperationDenied.CamDeniedError'
|
|
247
256
|
|