class ForemanApi::Resources::SmartVariable

Public Class Methods

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

Public Instance Methods

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

@param [Hash] params a hash of params to be passed to the service @option params [Hash, nil] smart_variable

allowed keys are:
* puppetclass_id [String, nil]
* default_value [String, nil]
* description [String, nil]
* override_value_order [String, nil]
* validator_rule [String, nil]
* validator_type [String, nil]
* variable [String]
* variable_type [String, nil]

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

# File lib/foreman_api/resources/smart_variable.rb, line 46
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/smart_variable.rb, line 74
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] host_id @option params [String] hostgroup_id @option params [String] puppetclass_id @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/smart_variable.rb, line 19
def index(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/smart_variable.rb, line 28
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, nil] smart_variable

allowed keys are:
* puppetclass_id [String, nil]
* default_value [String, nil]
* description [String, nil]
* override_value_order [String, nil]
* validator_rule [String, nil]
* validator_type [String, nil]
* variable [String]
* variable_type [String, nil]

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

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