class SwaggerClient::AuthControllerApi
Attributes
Public Class Methods
# File lib/swagger_client/api/auth_controller_api.rb, line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
Get service accounts @param [Hash] opts the optional parameters @return [Array<Object>]
# File lib/swagger_client/api/auth_controller_api.rb, line 25 def get_service_accounts_using_get(opts = {}) data, _status_code, _headers = get_service_accounts_using_get_with_http_info(opts) data end
Get service accounts @param [Hash] opts the optional parameters @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
# File lib/swagger_client/api/auth_controller_api.rb, line 33 def get_service_accounts_using_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthControllerApi.get_service_accounts_using_get ...' end # resource path local_var_path = '/auth/user/serviceAccounts' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<Object>') if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthControllerApi#get_service_accounts_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get logged out message @param [Hash] opts the optional parameters @return [String]
# File lib/swagger_client/api/auth_controller_api.rb, line 71 def logged_out_using_get(opts = {}) data, _status_code, _headers = logged_out_using_get_with_http_info(opts) data end
Get logged out message @param [Hash] opts the optional parameters @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
# File lib/swagger_client/api/auth_controller_api.rb, line 79 def logged_out_using_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthControllerApi.logged_out_using_get ...' end # resource path local_var_path = '/auth/loggedOut' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'String') if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthControllerApi#logged_out_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Redirect to Deck @param to to @param [Hash] opts the optional parameters @return [nil]
# File lib/swagger_client/api/auth_controller_api.rb, line 118 def redirect_using_get(to, opts = {}) redirect_using_get_with_http_info(to, opts) nil end
Redirect to Deck @param to to @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
# File lib/swagger_client/api/auth_controller_api.rb, line 127 def redirect_using_get_with_http_info(to, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthControllerApi.redirect_using_get ...' end # verify the required parameter 'to' is set if @api_client.config.client_side_validation && to.nil? fail ArgumentError, "Missing the required parameter 'to' when calling AuthControllerApi.redirect_using_get" end # resource path local_var_path = '/auth/redirect' # query parameters query_params = {} query_params[:'to'] = to # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthControllerApi#redirect_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Sync user roles @param [Hash] opts the optional parameters @return [nil]
# File lib/swagger_client/api/auth_controller_api.rb, line 169 def sync_using_post(opts = {}) sync_using_post_with_http_info(opts) nil end
Sync user roles @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
# File lib/swagger_client/api/auth_controller_api.rb, line 177 def sync_using_post_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthControllerApi.sync_using_post ...' end # resource path local_var_path = '/auth/roles/sync' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthControllerApi#sync_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get user @param [Hash] opts the optional parameters @return [User]
# File lib/swagger_client/api/auth_controller_api.rb, line 214 def user_using_get(opts = {}) data, _status_code, _headers = user_using_get_with_http_info(opts) data end
Get user @param [Hash] opts the optional parameters @return [Array<(User
, Fixnum, Hash)>] User
data, response status code and response headers
# File lib/swagger_client/api/auth_controller_api.rb, line 222 def user_using_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthControllerApi.user_using_get ...' end # resource path local_var_path = '/auth/user' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'User') if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthControllerApi#user_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end