tencentcloud-sdk-python-intl-en 3.0.1254__py2.py3-none-any.whl → 3.0.1256__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 CHANGED
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- __version__ = '3.0.1254'
16
+ __version__ = '3.0.1256'
@@ -118,6 +118,29 @@ class DnspodClient(AbstractClient):
118
118
  raise TencentCloudSDKException(type(e).__name__, str(e))
119
119
 
120
120
 
121
+ def CreatePackageOrder(self, request):
122
+ """This API is used to enable a paid plan on the international website.
123
+
124
+ :param request: Request instance for CreatePackageOrder.
125
+ :type request: :class:`tencentcloud.dnspod.v20210323.models.CreatePackageOrderRequest`
126
+ :rtype: :class:`tencentcloud.dnspod.v20210323.models.CreatePackageOrderResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("CreatePackageOrder", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.CreatePackageOrderResponse()
135
+ model._deserialize(response["Response"])
136
+ return model
137
+ except Exception as e:
138
+ if isinstance(e, TencentCloudSDKException):
139
+ raise
140
+ else:
141
+ raise TencentCloudSDKException(type(e).__name__, str(e))
142
+
143
+
121
144
  def CreateRecord(self, request):
122
145
  """This API is used to add a record.
123
146
 
@@ -50,12 +50,18 @@ FAILEDOPERATION_LOGINAREANOTALLOWED = 'FailedOperation.LoginAreaNotAllowed'
50
50
  # Login failed. Check whether the account and password are correct.
51
51
  FAILEDOPERATION_LOGINFAILED = 'FailedOperation.LoginFailed'
52
52
 
53
+ # Failed to get the balance of the international account or no card is bound.
54
+ FAILEDOPERATION_NOTBINDCREDITCARD = 'FailedOperation.NotBindCreditCard'
55
+
53
56
  # You are not the domain owner.
54
57
  FAILEDOPERATION_NOTDOMAINOWNER = 'FailedOperation.NotDomainOwner'
55
58
 
56
59
  # Your account identity has not been verified. Complete identity verification first before performing this operation.
57
60
  FAILEDOPERATION_NOTREALNAMEDUSER = 'FailedOperation.NotRealNamedUser'
58
61
 
62
+ # Postpaid billing account not opened.
63
+ FAILEDOPERATION_POSTPAYPAYMENTNOTOPEN = 'FailedOperation.PostPayPaymentNotOpen'
64
+
59
65
  # The number of requests is currently unavailable. Try again later.
60
66
  FAILEDOPERATION_TEMPORARYERROR = 'FailedOperation.TemporaryError'
61
67
 
@@ -1157,6 +1157,91 @@ class CreateDomainResponse(AbstractModel):
1157
1157
  self._RequestId = params.get("RequestId")
1158
1158
 
1159
1159
 
1160
+ class CreatePackageOrderRequest(AbstractModel):
1161
+ """CreatePackageOrder request structure.
1162
+
1163
+ """
1164
+
1165
+ def __init__(self):
1166
+ r"""
1167
+ :param _Domain: Domain
1168
+ :type Domain: str
1169
+ :param _Grade: Valid options for the package version are as follows:
1170
+ DPG_PROFESSIONAL
1171
+ DPG_ENTERPRISE
1172
+ DPG_ULTIMATE
1173
+ :type Grade: str
1174
+ """
1175
+ self._Domain = None
1176
+ self._Grade = None
1177
+
1178
+ @property
1179
+ def Domain(self):
1180
+ """Domain
1181
+ :rtype: str
1182
+ """
1183
+ return self._Domain
1184
+
1185
+ @Domain.setter
1186
+ def Domain(self, Domain):
1187
+ self._Domain = Domain
1188
+
1189
+ @property
1190
+ def Grade(self):
1191
+ """Valid options for the package version are as follows:
1192
+ DPG_PROFESSIONAL
1193
+ DPG_ENTERPRISE
1194
+ DPG_ULTIMATE
1195
+ :rtype: str
1196
+ """
1197
+ return self._Grade
1198
+
1199
+ @Grade.setter
1200
+ def Grade(self, Grade):
1201
+ self._Grade = Grade
1202
+
1203
+
1204
+ def _deserialize(self, params):
1205
+ self._Domain = params.get("Domain")
1206
+ self._Grade = params.get("Grade")
1207
+ memeber_set = set(params.keys())
1208
+ for name, value in vars(self).items():
1209
+ property_name = name[1:]
1210
+ if property_name in memeber_set:
1211
+ memeber_set.remove(property_name)
1212
+ if len(memeber_set) > 0:
1213
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1214
+
1215
+
1216
+
1217
+ class CreatePackageOrderResponse(AbstractModel):
1218
+ """CreatePackageOrder response structure.
1219
+
1220
+ """
1221
+
1222
+ def __init__(self):
1223
+ r"""
1224
+ :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.
1225
+ :type RequestId: str
1226
+ """
1227
+ self._RequestId = None
1228
+
1229
+ @property
1230
+ def RequestId(self):
1231
+ """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.
1232
+ :rtype: str
1233
+ """
1234
+ return self._RequestId
1235
+
1236
+ @RequestId.setter
1237
+ def RequestId(self, RequestId):
1238
+ self._RequestId = RequestId
1239
+
1240
+
1241
+ def _deserialize(self, params):
1242
+ self._RequestId = params.get("RequestId")
1243
+
1244
+
1160
1245
  class CreateRecordBatchDetail(AbstractModel):
1161
1246
  """Response structure for bulk adding records
1162
1247
 
@@ -497,7 +497,7 @@ UNAUTHORIZEDOPERATION_MFAEXPIRED = 'UnauthorizedOperation.MFAExpired'
497
497
  # MFA does not exist.
498
498
  UNAUTHORIZEDOPERATION_MFANOTFOUND = 'UnauthorizedOperation.MFANotFound'
499
499
 
500
- # No permission
500
+ # No permission.
501
501
  UNAUTHORIZEDOPERATION_NOPERMISSION = 'UnauthorizedOperation.NoPermission'
502
502
 
503
503
  #
@@ -590,7 +590,7 @@ UNSUPPORTEDOPERATION_RESOURCENOTRETURNABLE = 'UnsupportedOperation.ResourceNotRe
590
590
  # The snapshot is busy.
591
591
  UNSUPPORTEDOPERATION_SNAPSHOTBUSY = 'UnsupportedOperation.SnapshotBusy'
592
592
 
593
- # System busy
593
+ # System busy.
594
594
  UNSUPPORTEDOPERATION_SYSTEMBUSY = 'UnsupportedOperation.SystemBusy'
595
595
 
596
596
  # TAT agent on the instance is not online.