class ForemanApi::Resources::HostClass

Public Class Methods

doc() click to toggle source
# File lib/foreman_api/resources/host_class.rb, line 4
def self.doc
  @doc ||= ForemanApi.doc['resources']["host_classes"]
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 [String] host_id id of host @option params [String] puppetclass_id id of puppetclass

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

# File lib/foreman_api/resources/host_class.rb, line 23
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 id of puppetclass @option params [String] host_id id of host

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

# File lib/foreman_api/resources/host_class.rb, line 33
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 [Object] host_id Part of +/api/hosts/:host_id/puppetclass_ids+ path

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

# File lib/foreman_api/resources/host_class.rb, line 13
def index(params = {}, headers = {})
  perform_call(__method__, params, headers)
end