lib/v20190103/client.rb in tencentcloud-sdk-emr-3.0.636 vs lib/v20190103/client.rb in tencentcloud-sdk-emr-3.0.637
- old
+ new
@@ -605,9 +605,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 强制修改标签
+
+ # @param request: Request instance for ModifyResourcesTags.
+ # @type request: :class:`Tencentcloud::emr::V20190103::ModifyResourcesTagsRequest`
+ # @rtype: :class:`Tencentcloud::emr::V20190103::ModifyResourcesTagsResponse`
+ def ModifyResourcesTags(request)
+ body = send_request('ModifyResourcesTags', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = ModifyResourcesTagsResponse.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 RunJobFlow.
# @type request: :class:`Tencentcloud::emr::V20190103::RunJobFlowRequest`
# @rtype: :class:`Tencentcloud::emr::V20190103::RunJobFlowResponse`
\ No newline at end of file