def DescribeDBInstanceAttribute(self, request): """本接口 (DescribeDBInstanceAttribute) 用于查询某个实例的详情信息。 :param request: 调用DescribeDBInstanceAttribute所需参数的结构体。 :type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBInstanceAttributeRequest` :rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeDBInstanceAttributeResponse` """ try: params = request._serialize() body = self.call("DescribeDBInstanceAttribute", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeDBInstanceAttributeResponse() 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 DescribeDBInstanceAttribute(self, request): """This API is used to query the details of one instance. :param request: Request instance for DescribeDBInstanceAttribute. :type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBInstanceAttributeRequest` :rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeDBInstanceAttributeResponse` """ try: params = request._serialize() body = self.call("DescribeDBInstanceAttribute", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeDBInstanceAttributeResponse() 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)