def DeleteAccount(self, request): """本接口(DeleteAccount)用于删除云数据库账号。用户名+host唯一确定一个账号。 :param request: Request instance for DeleteAccount. :type request: :class:`tencentcloud.dcdb.v20180411.models.DeleteAccountRequest` :rtype: :class:`tencentcloud.dcdb.v20180411.models.DeleteAccountResponse` """ try: params = request._serialize() body = self.call("DeleteAccount", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DeleteAccountResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def DeleteAccount(self, request): """This API is used to delete a TencentDB account, which is uniquely identified by username and host. :param request: Request instance for DeleteAccount. :type request: :class:`tencentcloud.dcdb.v20180411.models.DeleteAccountRequest` :rtype: :class:`tencentcloud.dcdb.v20180411.models.DeleteAccountResponse` """ try: params = request._serialize() body = self.call("DeleteAccount", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DeleteAccountResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)