Module: XClarityClient::Mixins::JobMixin

Included in:
Client
Defined in:
lib/xclarity_client/mixins/job_mixin.rb

Overview

Exposes JobManagement features

Instance Method Summary collapse

Instance Method Details

#cancel_job(id = '') ⇒ Object



20
21
22
# File 'lib/xclarity_client/mixins/job_mixin.rb', line 20

def cancel_job(id = '')
  JobManagement.new(@config).cancel_job(id)
end

#delete_job(id = '') ⇒ Object



24
25
26
# File 'lib/xclarity_client/mixins/job_mixin.rb', line 24

def delete_job(id = '')
  JobManagement.new(@config).delete_job(id)
end

#discover_jobs(opts = {}) ⇒ Object



6
7
8
# File 'lib/xclarity_client/mixins/job_mixin.rb', line 6

def discover_jobs(opts = {})
  JobManagement.new(@config).fetch_all(opts)
end

#fetch_jobs(ids = nil, include_attributes = nil, exclude_attributes = nil) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/xclarity_client/mixins/job_mixin.rb', line 10

def fetch_jobs(ids = nil,
               include_attributes = nil,
               exclude_attributes = nil)
  JobManagement.new(@config).get_object_with_id(
    ids,
    include_attributes,
    exclude_attributes
  )
end