Class: ForemanApi::Resources::OsDefaultTemplate

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

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) doc



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

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

Instance Method Details

- (Array) create(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):

  • operatingsystem_id (String)

    id of operating system

  • os_default_template (Hash, nil)

    allowed keys are:

    • config_template_id [String, nil]

    • template_kind_id [String, nil]

Returns:

  • (Array)

    First item: parsed data; second item: raw body



38
39
40
# File 'lib/foreman_api/resources/os_default_template.rb', line 38

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

- (Array) destroy(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 (String)
  • operatingsystem_id (String)

    id of operating system

Returns:

  • (Array)

    First item: parsed data; second item: raw body



62
63
64
# File 'lib/foreman_api/resources/os_default_template.rb', line 62

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

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

  • operatingsystem_id (String)

    id of operating system

  • page (String)

    paginate results

  • per_page (String)

    number of entries per request

Returns:

  • (Array)

    First item: parsed data; second item: raw body



15
16
17
# File 'lib/foreman_api/resources/os_default_template.rb', line 15

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

- (Array) show(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 (String)
  • operatingsystem_id (String)

    id of operating system

Returns:

  • (Array)

    First item: parsed data; second item: raw body



25
26
27
# File 'lib/foreman_api/resources/os_default_template.rb', line 25

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

- (Array) update(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 (String)
  • operatingsystem_id (String)

    id of operating system

  • os_default_template (Hash, nil)

    allowed keys are:

    • config_template_id [String, nil]

    • template_kind_id [String, nil]

Returns:

  • (Array)

    First item: parsed data; second item: raw body



52
53
54
# File 'lib/foreman_api/resources/os_default_template.rb', line 52

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