lib/v20170312/client.rb in tencentcloud-sdk-mariadb-3.0.596 vs lib/v20170312/client.rb in tencentcloud-sdk-mariadb-3.0.597
- old
+ new
@@ -606,9 +606,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 本接口(DescribeDBTmpInstances)用于获取实例回档生成的临时实例
+
+ # @param request: Request instance for DescribeDBTmpInstances.
+ # @type request: :class:`Tencentcloud::mariadb::V20170312::DescribeDBTmpInstancesRequest`
+ # @rtype: :class:`Tencentcloud::mariadb::V20170312::DescribeDBTmpInstancesResponse`
+ def DescribeDBTmpInstances(request)
+ body = send_request('DescribeDBTmpInstances', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DescribeDBTmpInstancesResponse.new
+ model.deserialize(response['Response'])
+ model
+ else
+ code = response['Response']['Error']['Code']
+ message = response['Response']['Error']['Message']
+ reqid = response['Response']['RequestId']
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
+ end
+ rescue TencentCloud::Common::TencentCloudSDKException => e
+ raise e
+ rescue StandardError => e
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
+ end
+
# 本接口(DescribeDatabaseObjects)用于查询云数据库实例的数据库中的对象列表,包含表、存储过程、视图和函数。
# @param request: Request instance for DescribeDatabaseObjects.
# @type request: :class:`Tencentcloud::mariadb::V20170312::DescribeDatabaseObjectsRequest`
# @rtype: :class:`Tencentcloud::mariadb::V20170312::DescribeDatabaseObjectsResponse`
\ No newline at end of file