lib/v20190107/client.rb in tencentcloud-sdk-cynosdb-3.0.765 vs lib/v20190107/client.rb in tencentcloud-sdk-cynosdb-3.0.766
- old
+ new
@@ -1707,9 +1707,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 查询任务列表
+
+ # @param request: Request instance for DescribeTasks.
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeTasksRequest`
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeTasksResponse`
+ def DescribeTasks(request)
+ body = send_request('DescribeTasks', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DescribeTasksResponse.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
+
# 本接口(DescribeZones)用于查询可售卖地域可用区信息。
# @param request: Request instance for DescribeZones.
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeZonesRequest`
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeZonesResponse`
\ No newline at end of file