def DescribeAccounts(self, request): """本接口(DescribeAccounts)用于查询指定云数据库实例的账号列表。 :param request: 调用DescribeAccounts所需参数的结构体。 :type request: :class:`tencentcloud.mariadb.v20170312.models.DescribeAccountsRequest` :rtype: :class:`tencentcloud.mariadb.v20170312.models.DescribeAccountsResponse` """ try: params = request._serialize() body = self.call("DescribeAccounts", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeAccountsResponse() 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 e else: raise TencentCloudSDKException(e.message, e.message)
def DescribeAccounts(self, request): """This API is used to query the list of accounts of a specified TencentDB instance. :param request: Request instance for DescribeAccounts. :type request: :class:`tencentcloud.mariadb.v20170312.models.DescribeAccountsRequest` :rtype: :class:`tencentcloud.mariadb.v20170312.models.DescribeAccountsResponse` """ try: params = request._serialize() body = self.call("DescribeAccounts", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeAccountsResponse() 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)