class ForemanApi::Resources::ConfigTemplate

Public Class Methods

doc() click to toggle source
# File lib/foreman_api/resources/config_template.rb, line 4
def self.doc
  @doc ||= ForemanApi.doc['resources']["config_templates"]
end

Public Instance Methods

build_pxe_default(params = {}, headers = {}) click to toggle source

@param [Hash] params a hash of params to be passed to the service

@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body

# File lib/foreman_api/resources/config_template.rb, line 86
def build_pxe_default(params = {}, headers = {})
  perform_call(__method__, params, headers)
end
create(params = {}, headers = {}) click to toggle source

@param [Hash] params a hash of params to be passed to the service @option params [Hash] config_template

allowed keys are:
* operatingsystem_ids [Array]  array of operating systems id to associate the template with 
* template_kind_id [String, nil]  not relevant for snippet 
* audit_comment [String, nil]
* name [String]  template name 
* snippet [String, nil]
* template [String]
* template_combinations_attributes [Array]  array of template combinations (hostgroup_id, environment_id)

@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body

# File lib/foreman_api/resources/config_template.rb, line 42
def create(params = {}, headers = {})
  perform_call(__method__, params, headers)
end
destroy(params = {}, headers = {}) click to toggle source

@param [Hash] params a hash of params to be passed to the service @option params [String] id

@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body

# File lib/foreman_api/resources/config_template.rb, line 78
def destroy(params = {}, headers = {})
  perform_call(__method__, params, headers)
end
index(params = {}, headers = {}) click to toggle source

@param [Hash] params a hash of params to be passed to the service @option params [String] order sort results @option params [String] page paginate results @option params [String] per_page number of entries per request @option params [String] search filter results

@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body

# File lib/foreman_api/resources/config_template.rb, line 16
def index(params = {}, headers = {})
  perform_call(__method__, params, headers)
end
revision(params = {}, headers = {}) click to toggle source

@param [Hash] params a hash of params to be passed to the service @option params [String] version template version

@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body

# File lib/foreman_api/resources/config_template.rb, line 69
def revision(params = {}, headers = {})
  perform_call(__method__, params, headers)
end
show(params = {}, headers = {}) click to toggle source

@param [Hash] params a hash of params to be passed to the service @option params [String] id

@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body

# File lib/foreman_api/resources/config_template.rb, line 25
def show(params = {}, headers = {})
  perform_call(__method__, params, headers)
end
update(params = {}, headers = {}) click to toggle source

@param [Hash] params a hash of params to be passed to the service @option params [String] id @option params [Hash] config_template

allowed keys are:
* operatingsystem_ids [Array]  array of operating systems id to associate the template with 
* template_kind_id [String, nil]  not relevant for snippet 
* audit_comment [String, nil]
* name [String]  template name 
* snippet [String]
* template [String]
* template_combinations_attributes [Array]  array of template combinations (hostgroup_id, environment_id)

@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body

# File lib/foreman_api/resources/config_template.rb, line 60
def update(params = {}, headers = {})
  perform_call(__method__, params, headers)
end