lib/v20180411/client.rb in tencentcloud-sdk-dcdb-3.0.596 vs lib/v20180411/client.rb in tencentcloud-sdk-dcdb-3.0.597

- old
+ new

@@ -533,9 +533,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::dcdb::V20180411::DescribeDBTmpInstancesRequest` + # @rtype: :class:`Tencentcloud::dcdb::V20180411::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 + # 本接口(DescribeDCDBInstanceDetail)用于获取TDSQL实例详情 # @param request: Request instance for DescribeDCDBInstanceDetail. # @type request: :class:`Tencentcloud::dcdb::V20180411::DescribeDCDBInstanceDetailRequest` # @rtype: :class:`Tencentcloud::dcdb::V20180411::DescribeDCDBInstanceDetailResponse` \ No newline at end of file