lib/v20190103/client.rb in tencentcloud-sdk-emr-3.0.911 vs lib/v20190103/client.rb in tencentcloud-sdk-emr-3.0.912

- old
+ new

@@ -414,10 +414,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 查询YARN资源调度的全局配置 + + # @param request: Request instance for DescribeGlobalConfig. + # @type request: :class:`Tencentcloud::emr::V20190103::DescribeGlobalConfigRequest` + # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeGlobalConfigResponse` + def DescribeGlobalConfig(request) + body = send_request('DescribeGlobalConfig', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeGlobalConfigResponse.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 + # 获取Hbase表级监控数据概览接口 # @param request: Request instance for DescribeHBaseTableOverview. # @type request: :class:`Tencentcloud::emr::V20190103::DescribeHBaseTableOverviewRequest` # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeHBaseTableOverviewResponse` @@ -1002,9 +1026,33 @@ def ModifyAutoScaleStrategy(request) body = send_request('ModifyAutoScaleStrategy', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyAutoScaleStrategyResponse.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资源调度的全局配置 + + # @param request: Request instance for ModifyGlobalConfig. + # @type request: :class:`Tencentcloud::emr::V20190103::ModifyGlobalConfigRequest` + # @rtype: :class:`Tencentcloud::emr::V20190103::ModifyGlobalConfigResponse` + def ModifyGlobalConfig(request) + body = send_request('ModifyGlobalConfig', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = ModifyGlobalConfigResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] \ No newline at end of file