Class: SwaggerClient::AuthControllerApi
- Inherits:
-
Object
- Object
- SwaggerClient::AuthControllerApi
- Defined in:
- lib/swagger_client/api/auth_controller_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_service_accounts_using_get(opts = {}) ⇒ Array<Object>
Get service accounts.
-
#get_service_accounts_using_get_with_http_info(opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>
Get service accounts.
-
#initialize(api_client = ApiClient.default) ⇒ AuthControllerApi
constructor
A new instance of AuthControllerApi.
-
#logged_out_using_get(opts = {}) ⇒ String
Get logged out message.
-
#logged_out_using_get_with_http_info(opts = {}) ⇒ Array<(String, Fixnum, Hash)>
Get logged out message.
-
#redirect_using_get(to, opts = {}) ⇒ nil
Redirect to Deck.
-
#redirect_using_get_with_http_info(to, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Redirect to Deck.
-
#sync_using_post(opts = {}) ⇒ nil
Sync user roles.
-
#sync_using_post_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Sync user roles.
-
#user_using_get(opts = {}) ⇒ User
Get user.
-
#user_using_get_with_http_info(opts = {}) ⇒ Array<(User, Fixnum, Hash)>
Get user.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ AuthControllerApi
Returns a new instance of AuthControllerApi.
19 20 21 |
# File 'lib/swagger_client/api/auth_controller_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/swagger_client/api/auth_controller_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#get_service_accounts_using_get(opts = {}) ⇒ Array<Object>
Get service accounts
25 26 27 28 |
# 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_using_get_with_http_info(opts = {}) ⇒ Array<(Array<Object>, Fixnum, Hash)>
Get service accounts
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# 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 |
#logged_out_using_get(opts = {}) ⇒ String
Get logged out message
71 72 73 74 |
# 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 |
#logged_out_using_get_with_http_info(opts = {}) ⇒ Array<(String, Fixnum, Hash)>
Get logged out message
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# 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_using_get(to, opts = {}) ⇒ nil
Redirect to Deck
118 119 120 121 |
# 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_using_get_with_http_info(to, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Redirect to Deck
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
# 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_using_post(opts = {}) ⇒ nil
Sync user roles
169 170 171 172 |
# 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_using_post_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Sync user roles
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 |
# 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 |
#user_using_get(opts = {}) ⇒ User
Get user
214 215 216 217 |
# 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 |
#user_using_get_with_http_info(opts = {}) ⇒ Array<(User, Fixnum, Hash)>
Get user
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 |
# 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 |