Sha256: 315cb7191a87cd24296957478292160b3f1d234bdec661aa92c13a19924df986

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

module ForemanApi
  module Resources
    class Audit < ForemanApi::Base
      def self.doc
        @doc ||= ForemanApi.doc['resources']["audits"]
      end

      # @param [Hash] params a hash of params to be passed to the service
      # @option params [Object] host_id Part of +/api/hosts/:host_id/audits+ path
      # @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
      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] id
      #
      # @param [Hash] headers additional http headers
      # @return [Array] First item: parsed data; second item: raw body
      def show(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.11 lib/foreman_api/resources/audit.rb
foreman_api-0.1.10 lib/foreman_api/resources/audit.rb
foreman_api-0.1.9 lib/foreman_api/resources/audit.rb
foreman_api-0.1.8 lib/foreman_api/resources/audit.rb
foreman_api-0.1.7 lib/foreman_api/resources/audit.rb