Sha256: 8bf219a389554b39b8b12f606e36da82f2b450dfe53df93e72264ccad6fa92bf

Contents?: true

Size: 1.55 KB

Versions: 5

Compression:

Stored size: 1.55 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 [Object] id Part of +/api/hostgroups/:hostgroup_id/puppetclass_ids/:id+ path
      # @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 destroy(params = {}, headers = {})
        perform_call(__method__, params, headers)
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_api-0.1.6 lib/foreman_api/resources/hostgroup_class.rb
foreman_api-0.1.5 lib/foreman_api/resources/hostgroup_class.rb
foreman_api-0.1.4 lib/foreman_api/resources/hostgroup_class.rb
foreman_api-0.1.3 lib/foreman_api/resources/hostgroup_class.rb
foreman_api-0.1.2 lib/foreman_api/resources/hostgroup_class.rb