Class: ForemanApi::Resources::TemplateCombination

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

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) doc



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

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

Instance Method Details

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

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):

  • config_template_id (String)
  • template_combination (Hash)

    allowed keys are:

    • environment_id [String, nil] Environment id

    • hostgroup_id [String, nil] Hostgroup id

Returns:

  • (Array)

    First item: parsed data; second item: raw body



26
27
28
# File 'lib/foreman_api/resources/template_combination.rb', line 26

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

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

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 (String)

Returns:

  • (Array)

    First item: parsed data; second item: raw body



44
45
46
# File 'lib/foreman_api/resources/template_combination.rb', line 44

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

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

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):

  • config_template_id (String)

Returns:

  • (Array)

    First item: parsed data; second item: raw body



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

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

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

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 (String)

Returns:

  • (Array)

    First item: parsed data; second item: raw body



35
36
37
# File 'lib/foreman_api/resources/template_combination.rb', line 35

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