Sha256: 35ac32636155759e7e01eec007dafa023ba7d07e95541729ba5aba13d41ae005
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
module ForemanApi module Resources class HostgroupClass < ForemanApi::Base def self.doc @doc ||= ForemanApi.doc['resources']["hostgroup_classes"] end # @param [Hash] params a hash of params to be passed to the service # @option params [Object] hostgroup_id Part of +/api/hostgroups/:hostgroup_id/puppetclass_ids+ path # # @param [Hash] headers additional http headers # @return [Array] First item: parsed data; second item: raw body def index(params = {}, headers = {}) perform_call(__method__, params, headers) end # @param [Hash] params a hash of params to be passed to the service # @option params [String] hostgroup_id id of hostgroup # @option params [String] puppetclass_id id of puppetclass # # @param [Hash] headers additional http headers # @return [Array] First item: parsed data; second item: raw body def create(params = {}, headers = {}) perform_call(__method__, params, headers) end # @param [Hash] params a hash of params to be passed to the service # @option params [String] id id of puppetclass # @option params [String] hostgroup_id id of hostgroup # # @param [Hash] headers additional http headers # @return [Array] First item: parsed data; second item: raw body def destroy(params = {}, headers = {}) perform_call(__method__, params, headers) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_api-0.1.11 | lib/foreman_api/resources/hostgroup_class.rb |
foreman_api-0.1.10 | lib/foreman_api/resources/hostgroup_class.rb |