Sha256: bdf02e84670118ad37914ad2c65284e91bb7c894d6536ae0e2af0bd85cccf1ef
Contents?: true
Size: 1.8 KB
Versions: 5
Compression:
Stored size: 1.8 KB
Contents
module ForemanApi module Resources class Report < ForemanApi::Base def self.doc @doc ||= ForemanApi.doc['resources']["reports"] end # @param [Hash] params a hash of params to be passed to the service # @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 # @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 destroy(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 # @option params [Object] host_id Part of +/api/hosts/:host_id/reports/last+ path # # @param [Hash] headers additional http headers # @return [Array] First item: parsed data; second item: raw body def last(params = {}, headers = {}) perform_call(__method__, params, headers) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems