lib/v20190103/client.rb in tencentcloud-sdk-emr-3.0.925 vs lib/v20190103/client.rb in tencentcloud-sdk-emr-3.0.926

- old
+ new

@@ -462,10 +462,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 查询HDFS存储文件信息 + + # @param request: Request instance for DescribeHDFSStorageInfo. + # @type request: :class:`Tencentcloud::emr::V20190103::DescribeHDFSStorageInfoRequest` + # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeHDFSStorageInfoResponse` + def DescribeHDFSStorageInfo(request) + body = send_request('DescribeHDFSStorageInfo', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeHDFSStorageInfoResponse.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 + # 获取hive查询信息 # @param request: Request instance for DescribeHiveQueries. # @type request: :class:`Tencentcloud::emr::V20190103::DescribeHiveQueriesRequest` # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeHiveQueriesResponse` @@ -630,10 +654,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 查询Kyuubi查询信息 + + # @param request: Request instance for DescribeKyuubiQueryInfo. + # @type request: :class:`Tencentcloud::emr::V20190103::DescribeKyuubiQueryInfoRequest` + # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeKyuubiQueryInfoResponse` + def DescribeKyuubiQueryInfo(request) + body = send_request('DescribeKyuubiQueryInfo', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeKyuubiQueryInfoResponse.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 + # 查询YARN资源调度数据信息。已废弃,请使用`DescribeYarnQueue`去查询队列信息。 # @param request: Request instance for DescribeResourceSchedule. # @type request: :class:`Tencentcloud::emr::V20190103::DescribeResourceScheduleRequest` # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeResourceScheduleResponse` @@ -736,9 +784,57 @@ def DescribeServiceNodeInfos(request) body = send_request('DescribeServiceNodeInfos', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeServiceNodeInfosResponse.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 + + # 查询Spark查询信息列表 + + # @param request: Request instance for DescribeSparkQueries. + # @type request: :class:`Tencentcloud::emr::V20190103::DescribeSparkQueriesRequest` + # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeSparkQueriesResponse` + def DescribeSparkQueries(request) + body = send_request('DescribeSparkQueries', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeSparkQueriesResponse.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 + + # 查询StarRocks查询信息 + + # @param request: Request instance for DescribeStarRocksQueryInfo. + # @type request: :class:`Tencentcloud::emr::V20190103::DescribeStarRocksQueryInfoRequest` + # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeStarRocksQueryInfoResponse` + def DescribeStarRocksQueryInfo(request) + body = send_request('DescribeStarRocksQueryInfo', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeStarRocksQueryInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] \ No newline at end of file