Class: XClarityClient::JobManagement

Inherits:
Services::XClarityService show all
Defined in:
lib/xclarity_client/services/job_management.rb

Instance Method Summary collapse

Methods inherited from Services::XClarityService

#fetch_all, #get_headers_with_opts, #get_object, #get_object_with_id, #get_object_with_opts, #initialize

Methods included from Services::ResponseBuilderMixin

#build_response_with_resource_list

Methods included from Services::ListNameInterpreterMixin

#add_listname_on_body

Constructor Details

This class inherits a constructor from XClarityClient::Services::XClarityService

Instance Method Details

#cancel_job(uuid = '') ⇒ Object



7
8
9
10
# File 'lib/xclarity_client/services/job_management.rb', line 7

def cancel_job(uuid='')
  cancelReq = JSON.generate(cancelRequest: 'true')
  @connection.do_put(managed_resource::BASE_URI + '/' + uuid, cancelReq)
end

#delete_job(uuid = '') ⇒ Object



12
13
14
# File 'lib/xclarity_client/services/job_management.rb', line 12

def delete_job(uuid='')
  @connection.do_delete(managed_resource::BASE_URI + '/' + uuid)
end