lib/v20190103/client.rb in tencentcloud-sdk-emr-3.0.751 vs lib/v20190103/client.rb in tencentcloud-sdk-emr-3.0.752
- old
+ new
@@ -268,9 +268,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 获取洞察结果信息
+
+ # @param request: Request instance for DescribeInsightList.
+ # @type request: :class:`Tencentcloud::emr::V20190103::DescribeInsightListRequest`
+ # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeInsightListResponse`
+ def DescribeInsightList(request)
+ body = send_request('DescribeInsightList', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DescribeInsightListResponse.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
+
# 查询待续费节点信息
# @param request: Request instance for DescribeInstanceRenewNodes.
# @type request: :class:`Tencentcloud::emr::V20190103::DescribeInstanceRenewNodesRequest`
# @rtype: :class:`Tencentcloud::emr::V20190103::DescribeInstanceRenewNodesResponse`
\ No newline at end of file