Class: ForemanApi::Resources::Task

Inherits:
Base
  • Object
show all
Defined in:
lib/foreman_api/resources/task.rb

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) doc



4
5
6
# File 'lib/foreman_api/resources/task.rb', line 4

def self.doc
  @doc ||= ForemanApi.doc['resources']["tasks"]
end

Instance Method Details

- (Array) index(params = {}, headers = {})

Returns First item: parsed data; second item: raw body

Parameters:

  • params (Hash) (defaults to: {})

    a hash of params to be passed to the service

  • headers (Hash) (defaults to: {})

    additional http headers

Options Hash (params):

  • id (Object)

    Part of /api/orchestration/:id/tasks path

Returns:

  • (Array)

    First item: parsed data; second item: raw body



13
14
15
# File 'lib/foreman_api/resources/task.rb', line 13

def index(params = {}, headers = {})
  perform_call(__method__, params, headers)
end