lib/v20190103/client.rb in tencentcloud-sdk-emr-3.0.901 vs lib/v20190103/client.rb in tencentcloud-sdk-emr-3.0.902

- old
+ new

@@ -604,9 +604,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # YARN资源调度-变更详情 + + # @param request: Request instance for DescribeResourceScheduleDiffDetail. + # @type request: :class:`Tencentcloud::emr::V20190103::DescribeResourceScheduleDiffDetailRequest` + # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeResourceScheduleDiffDetailResponse` + def DescribeResourceScheduleDiffDetail(request) + body = send_request('DescribeResourceScheduleDiffDetail', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeResourceScheduleDiffDetailResponse.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 DescribeServiceNodeInfos. # @type request: :class:`Tencentcloud::emr::V20190103::DescribeServiceNodeInfosRequest` # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeServiceNodeInfosResponse` \ No newline at end of file