# File lib/foreman_api/resources/user.rb, line 4 def self.doc @doc ||= ForemanApi.doc['resources']["users"] end
@param [Hash] params a hash of params to be passed to the service @option params [Hash] user
allowed keys are: * auth_source_id [Numeric] * admin [String] is an admin account? * firstname [String] * lastname [String] * login [String] * mail [String] * password [String]
@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body
# File lib/foreman_api/resources/user.rb, line 42 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
@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body
# File lib/foreman_api/resources/user.rb, line 68 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] 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
# File lib/foreman_api/resources/user.rb, line 16 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
# File lib/foreman_api/resources/user.rb, line 25 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 @option params [Hash] user
allowed keys are: * admin [String] is an admin account? * firstname [String, nil] * lastname [String, nil] * login [String] * mail [String] * password [String]
@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body
# File lib/foreman_api/resources/user.rb, line 59 def update(params = {}, headers = {}) perform_call(__method__, params, headers) end