lib/v20190103/client.rb in tencentcloud-sdk-emr-3.0.882 vs lib/v20190103/client.rb in tencentcloud-sdk-emr-3.0.883
- old
+ new
@@ -580,10 +580,34 @@
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`
+ 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
+
# 获取trino查询结果
# @param request: Request instance for DescribeTrinoQueryInfo.
# @type request: :class:`Tencentcloud::emr::V20190103::DescribeTrinoQueryInfoRequest`
# @rtype: :class:`Tencentcloud::emr::V20190103::DescribeTrinoQueryInfoResponse`
@@ -653,10 +677,34 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 查看yarn资源调度的调度历史
+
+ # @param request: Request instance for DescribeYarnScheduleHistory.
+ # @type request: :class:`Tencentcloud::emr::V20190103::DescribeYarnScheduleHistoryRequest`
+ # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeYarnScheduleHistoryResponse`
+ def DescribeYarnScheduleHistory(request)
+ body = send_request('DescribeYarnScheduleHistory', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DescribeYarnScheduleHistoryResponse.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 InquirePriceRenewEmr.
# @type request: :class:`Tencentcloud::emr::V20190103::InquirePriceRenewEmrRequest`
# @rtype: :class:`Tencentcloud::emr::V20190103::InquirePriceRenewEmrResponse`
@@ -903,9 +951,33 @@
def ModifyUserManagerPwd(request)
body = send_request('ModifyUserManagerPwd', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = ModifyUserManagerPwdResponse.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 ModifyYarnDeploy.
+ # @type request: :class:`Tencentcloud::emr::V20190103::ModifyYarnDeployRequest`
+ # @rtype: :class:`Tencentcloud::emr::V20190103::ModifyYarnDeployResponse`
+ def ModifyYarnDeploy(request)
+ body = send_request('ModifyYarnDeploy', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = ModifyYarnDeployResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
\ No newline at end of file