Class: MailSafePro::AuthenticationApi
- Inherits:
-
Object
- Object
- MailSafePro::AuthenticationApi
- Defined in:
- lib/mailsafepro/api/authentication_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#auth_health_check_auth_health_auth_get(opts = {}) ⇒ Object
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
-
#auth_health_check_auth_health_auth_get_0(opts = {}) ⇒ Object
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
-
#auth_health_check_auth_health_auth_get_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
-
#auth_health_check_auth_health_auth_get_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
-
#auth_health_check_auth_health_auth_head(opts = {}) ⇒ Object
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
-
#auth_health_check_auth_health_auth_head_0(opts = {}) ⇒ Object
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
-
#auth_health_check_auth_health_auth_head_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
-
#auth_health_check_auth_health_auth_head_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
-
#delete_account_auth_delete_delete(opts = {}) ⇒ Object
Delete Account Elimina la cuenta del usuario autenticado y todos sus datos relacionados.
-
#delete_account_auth_delete_delete_0(opts = {}) ⇒ Object
Delete Account Elimina la cuenta del usuario autenticado y todos sus datos relacionados.
-
#delete_account_auth_delete_delete_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Delete Account Elimina la cuenta del usuario autenticado y todos sus datos relacionados.
-
#delete_account_auth_delete_delete_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Delete Account Elimina la cuenta del usuario autenticado y todos sus datos relacionados.
-
#get_current_user_auth_me_get(opts = {}) ⇒ Object
Get Current User Devuelve información básica del usuario actual.
-
#get_current_user_auth_me_get_0(opts = {}) ⇒ Object
Get Current User Devuelve información básica del usuario actual.
-
#get_current_user_auth_me_get_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Get Current User Devuelve información básica del usuario actual.
-
#get_current_user_auth_me_get_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Get Current User Devuelve información básica del usuario actual.
-
#initialize(api_client = ApiClient.default) ⇒ AuthenticationApi
constructor
A new instance of AuthenticationApi.
-
#login_web_user_auth_login_post(user_login, opts = {}) ⇒ Object
Login Web User Login de usuario para panel web.
-
#login_web_user_auth_login_post_0(user_login, opts = {}) ⇒ Object
Login Web User Login de usuario para panel web.
-
#login_web_user_auth_login_post_0_with_http_info(user_login, opts = {}) ⇒ Array<(Object, Integer, Hash)>
Login Web User Login de usuario para panel web.
-
#login_web_user_auth_login_post_with_http_info(user_login, opts = {}) ⇒ Array<(Object, Integer, Hash)>
Login Web User Login de usuario para panel web.
-
#logout_auth_logout_post(opts = {}) ⇒ Object
Logout Logout idempotente: - Si el access token es válido, lo añade a la blacklist.
-
#logout_auth_logout_post_0(opts = {}) ⇒ Object
Logout Logout idempotente: - Si el access token es válido, lo añade a la blacklist.
-
#logout_auth_logout_post_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Logout Logout idempotente: - Si el access token es válido, lo añade a la blacklist.
-
#logout_auth_logout_post_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Logout Logout idempotente: - Si el access token es válido, lo añade a la blacklist.
-
#refresh_token_auth_refresh_post(opts = {}) ⇒ Object
Refresh Token Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
-
#refresh_token_auth_refresh_post_0(opts = {}) ⇒ Object
Refresh Token Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
-
#refresh_token_auth_refresh_post_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Refresh Token Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
-
#refresh_token_auth_refresh_post_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Refresh Token Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
-
#register_web_user_auth_register_post(user_register, opts = {}) ⇒ Object
Register Web User Registro de usuario para panel web: crea usuario, API key y tokens.
-
#register_web_user_auth_register_post_0(user_register, opts = {}) ⇒ Object
Register Web User Registro de usuario para panel web: crea usuario, API key y tokens.
-
#register_web_user_auth_register_post_0_with_http_info(user_register, opts = {}) ⇒ Array<(Object, Integer, Hash)>
Register Web User Registro de usuario para panel web: crea usuario, API key y tokens.
-
#register_web_user_auth_register_post_with_http_info(user_register, opts = {}) ⇒ Array<(Object, Integer, Hash)>
Register Web User Registro de usuario para panel web: crea usuario, API key y tokens.
-
#rotate_api_key_auth_rotate_key_post(key_rotation_request, opts = {}) ⇒ Object
Rotate Api Key Rotación de API keys con período de gracia; acceso restringido a admin.
-
#rotate_api_key_auth_rotate_key_post_0(key_rotation_request, opts = {}) ⇒ Object
Rotate Api Key Rotación de API keys con período de gracia; acceso restringido a admin.
-
#rotate_api_key_auth_rotate_key_post_0_with_http_info(key_rotation_request, opts = {}) ⇒ Array<(Object, Integer, Hash)>
Rotate Api Key Rotación de API keys con período de gracia; acceso restringido a admin.
-
#rotate_api_key_auth_rotate_key_post_with_http_info(key_rotation_request, opts = {}) ⇒ Array<(Object, Integer, Hash)>
Rotate Api Key Rotación de API keys con período de gracia; acceso restringido a admin.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ AuthenticationApi
Returns a new instance of AuthenticationApi.
19 20 21 |
# File 'lib/mailsafepro/api/authentication_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/mailsafepro/api/authentication_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#auth_health_check_auth_health_auth_get(opts = {}) ⇒ Object
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
26 27 28 29 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 26 def auth_health_check_auth_health_auth_get(opts = {}) data, _status_code, _headers = auth_health_check_auth_health_auth_get_with_http_info(opts) data end |
#auth_health_check_auth_health_auth_get_0(opts = {}) ⇒ Object
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
83 84 85 86 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 83 def auth_health_check_auth_health_auth_get_0(opts = {}) data, _status_code, _headers = auth_health_check_auth_health_auth_get_0_with_http_info(opts) data end |
#auth_health_check_auth_health_auth_get_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 92 def auth_health_check_auth_health_auth_get_0_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_health_check_auth_health_auth_get_0 ...' end # resource path local_var_path = '/auth/health/auth' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"AuthenticationApi.auth_health_check_auth_health_auth_get_0", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#auth_health_check_auth_health_auth_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#auth_health_check_auth_health_auth_get_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
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 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 35 def auth_health_check_auth_health_auth_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_health_check_auth_health_auth_get ...' end # resource path local_var_path = '/auth/health/auth' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"AuthenticationApi.auth_health_check_auth_health_auth_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#auth_health_check_auth_health_auth_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#auth_health_check_auth_health_auth_head(opts = {}) ⇒ Object
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
140 141 142 143 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 140 def auth_health_check_auth_health_auth_head(opts = {}) data, _status_code, _headers = auth_health_check_auth_health_auth_head_with_http_info(opts) data end |
#auth_health_check_auth_health_auth_head_0(opts = {}) ⇒ Object
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
197 198 199 200 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 197 def auth_health_check_auth_health_auth_head_0(opts = {}) data, _status_code, _headers = auth_health_check_auth_health_auth_head_0_with_http_info(opts) data end |
#auth_health_check_auth_health_auth_head_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 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 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 206 def auth_health_check_auth_health_auth_head_0_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_health_check_auth_health_auth_head_0 ...' end # resource path local_var_path = '/auth/health/auth' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"AuthenticationApi.auth_health_check_auth_health_auth_head_0", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#auth_health_check_auth_health_auth_head_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#auth_health_check_auth_health_auth_head_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Auth Health Check Health check para autenticación: Redis, JWT y hashing.
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 149 def auth_health_check_auth_health_auth_head_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_health_check_auth_health_auth_head ...' end # resource path local_var_path = '/auth/health/auth' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"AuthenticationApi.auth_health_check_auth_health_auth_head", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#auth_health_check_auth_health_auth_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_account_auth_delete_delete(opts = {}) ⇒ Object
Delete Account Elimina la cuenta del usuario autenticado y todos sus datos relacionados. ⚠️ ADVERTENCIA: Esta operación es IRREVERSIBLE. Elimina: - Datos del usuario - Todas las API keys - Usage/quota - Suscripciones - Rate limits - Tokens relacionados Security: - Solo el usuario puede eliminarse a sí mismo (o admin) - Requiere autenticación válida - Registra la acción en logs para auditoría - Rate limited para prevenir abuse
254 255 256 257 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 254 def delete_account_auth_delete_delete(opts = {}) data, _status_code, _headers = delete_account_auth_delete_delete_with_http_info(opts) data end |
#delete_account_auth_delete_delete_0(opts = {}) ⇒ Object
Delete Account Elimina la cuenta del usuario autenticado y todos sus datos relacionados. ⚠️ ADVERTENCIA: Esta operación es IRREVERSIBLE. Elimina: - Datos del usuario - Todas las API keys - Usage/quota - Suscripciones - Rate limits - Tokens relacionados Security: - Solo el usuario puede eliminarse a sí mismo (o admin) - Requiere autenticación válida - Registra la acción en logs para auditoría - Rate limited para prevenir abuse
311 312 313 314 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 311 def delete_account_auth_delete_delete_0(opts = {}) data, _status_code, _headers = delete_account_auth_delete_delete_0_with_http_info(opts) data end |
#delete_account_auth_delete_delete_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Delete Account Elimina la cuenta del usuario autenticado y todos sus datos relacionados. ⚠️ ADVERTENCIA: Esta operación es IRREVERSIBLE. Elimina: - Datos del usuario - Todas las API keys - Usage/quota - Suscripciones - Rate limits - Tokens relacionados Security: - Solo el usuario puede eliminarse a sí mismo (o admin) - Requiere autenticación válida - Registra la acción en logs para auditoría - Rate limited para prevenir abuse
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 320 def delete_account_auth_delete_delete_0_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.delete_account_auth_delete_delete_0 ...' end # resource path local_var_path = '/auth/delete' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || ['Bearer'] = opts.merge( :operation => :"AuthenticationApi.delete_account_auth_delete_delete_0", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#delete_account_auth_delete_delete_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_account_auth_delete_delete_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Delete Account Elimina la cuenta del usuario autenticado y todos sus datos relacionados. ⚠️ ADVERTENCIA: Esta operación es IRREVERSIBLE. Elimina: - Datos del usuario - Todas las API keys - Usage/quota - Suscripciones - Rate limits - Tokens relacionados Security: - Solo el usuario puede eliminarse a sí mismo (o admin) - Requiere autenticación válida - Registra la acción en logs para auditoría - Rate limited para prevenir abuse
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 263 def delete_account_auth_delete_delete_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.delete_account_auth_delete_delete ...' end # resource path local_var_path = '/auth/delete' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || ['Bearer'] = opts.merge( :operation => :"AuthenticationApi.delete_account_auth_delete_delete", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#delete_account_auth_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_current_user_auth_me_get(opts = {}) ⇒ Object
Get Current User Devuelve información básica del usuario actual.
368 369 370 371 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 368 def get_current_user_auth_me_get(opts = {}) data, _status_code, _headers = get_current_user_auth_me_get_with_http_info(opts) data end |
#get_current_user_auth_me_get_0(opts = {}) ⇒ Object
Get Current User Devuelve información básica del usuario actual.
425 426 427 428 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 425 def get_current_user_auth_me_get_0(opts = {}) data, _status_code, _headers = get_current_user_auth_me_get_0_with_http_info(opts) data end |
#get_current_user_auth_me_get_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Get Current User Devuelve información básica del usuario actual.
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 434 def get_current_user_auth_me_get_0_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.get_current_user_auth_me_get_0 ...' end # resource path local_var_path = '/auth/me' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || ['Bearer'] = opts.merge( :operation => :"AuthenticationApi.get_current_user_auth_me_get_0", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#get_current_user_auth_me_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_current_user_auth_me_get_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Get Current User Devuelve información básica del usuario actual.
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 377 def get_current_user_auth_me_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.get_current_user_auth_me_get ...' end # resource path local_var_path = '/auth/me' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || ['Bearer'] = opts.merge( :operation => :"AuthenticationApi.get_current_user_auth_me_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#get_current_user_auth_me_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#login_web_user_auth_login_post(user_login, opts = {}) ⇒ Object
Login Web User Login de usuario para panel web. Security features: - Rate limiting por email + IP - Timing attack protection - Generic error messages - PII masking en logs
483 484 485 486 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 483 def login_web_user_auth_login_post(user_login, opts = {}) data, _status_code, _headers = login_web_user_auth_login_post_with_http_info(user_login, opts) data end |
#login_web_user_auth_login_post_0(user_login, opts = {}) ⇒ Object
Login Web User Login de usuario para panel web. Security features: - Rate limiting por email + IP - Timing attack protection - Generic error messages - PII masking en logs
551 552 553 554 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 551 def login_web_user_auth_login_post_0(user_login, opts = {}) data, _status_code, _headers = login_web_user_auth_login_post_0_with_http_info(user_login, opts) data end |
#login_web_user_auth_login_post_0_with_http_info(user_login, opts = {}) ⇒ Array<(Object, Integer, Hash)>
Login Web User Login de usuario para panel web. Security features: - Rate limiting por email + IP - Timing attack protection - Generic error messages - PII masking en logs
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 561 def login_web_user_auth_login_post_0_with_http_info(user_login, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.login_web_user_auth_login_post_0 ...' end # verify the required parameter 'user_login' is set if @api_client.config.client_side_validation && user_login.nil? fail ArgumentError, "Missing the required parameter 'user_login' when calling AuthenticationApi.login_web_user_auth_login_post_0" end # resource path local_var_path = '/auth/login' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(user_login) # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"AuthenticationApi.login_web_user_auth_login_post_0", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#login_web_user_auth_login_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#login_web_user_auth_login_post_with_http_info(user_login, opts = {}) ⇒ Array<(Object, Integer, Hash)>
Login Web User Login de usuario para panel web. Security features: - Rate limiting por email + IP - Timing attack protection - Generic error messages - PII masking en logs
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 493 def login_web_user_auth_login_post_with_http_info(user_login, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.login_web_user_auth_login_post ...' end # verify the required parameter 'user_login' is set if @api_client.config.client_side_validation && user_login.nil? fail ArgumentError, "Missing the required parameter 'user_login' when calling AuthenticationApi.login_web_user_auth_login_post" end # resource path local_var_path = '/auth/login' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(user_login) # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"AuthenticationApi.login_web_user_auth_login_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#login_web_user_auth_login_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#logout_auth_logout_post(opts = {}) ⇒ Object
Logout Logout idempotente: - Si el access token es válido, lo añade a la blacklist. - Si el access token está expirado, responde 200 indicando que ya estaba expirado. - Solo devuelve 401 si el token es completamente inválido (firma/claims corruptos). - Intenta revocar el refresh token si se proporciona.
618 619 620 621 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 618 def logout_auth_logout_post(opts = {}) data, _status_code, _headers = logout_auth_logout_post_with_http_info(opts) data end |
#logout_auth_logout_post_0(opts = {}) ⇒ Object
Logout Logout idempotente: - Si el access token es válido, lo añade a la blacklist. - Si el access token está expirado, responde 200 indicando que ya estaba expirado. - Solo devuelve 401 si el token es completamente inválido (firma/claims corruptos). - Intenta revocar el refresh token si se proporciona.
675 676 677 678 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 675 def logout_auth_logout_post_0(opts = {}) data, _status_code, _headers = logout_auth_logout_post_0_with_http_info(opts) data end |
#logout_auth_logout_post_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Logout Logout idempotente: - Si el access token es válido, lo añade a la blacklist. - Si el access token está expirado, responde 200 indicando que ya estaba expirado. - Solo devuelve 401 si el token es completamente inválido (firma/claims corruptos). - Intenta revocar el refresh token si se proporciona.
684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 684 def logout_auth_logout_post_0_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.logout_auth_logout_post_0 ...' end # resource path local_var_path = '/auth/logout' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"AuthenticationApi.logout_auth_logout_post_0", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#logout_auth_logout_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#logout_auth_logout_post_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Logout Logout idempotente: - Si el access token es válido, lo añade a la blacklist. - Si el access token está expirado, responde 200 indicando que ya estaba expirado. - Solo devuelve 401 si el token es completamente inválido (firma/claims corruptos). - Intenta revocar el refresh token si se proporciona.
627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 627 def logout_auth_logout_post_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.logout_auth_logout_post ...' end # resource path local_var_path = '/auth/logout' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"AuthenticationApi.logout_auth_logout_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#logout_auth_logout_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#refresh_token_auth_refresh_post(opts = {}) ⇒ Object
Refresh Token Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
732 733 734 735 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 732 def refresh_token_auth_refresh_post(opts = {}) data, _status_code, _headers = refresh_token_auth_refresh_post_with_http_info(opts) data end |
#refresh_token_auth_refresh_post_0(opts = {}) ⇒ Object
Refresh Token Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
789 790 791 792 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 789 def refresh_token_auth_refresh_post_0(opts = {}) data, _status_code, _headers = refresh_token_auth_refresh_post_0_with_http_info(opts) data end |
#refresh_token_auth_refresh_post_0_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Refresh Token Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 798 def refresh_token_auth_refresh_post_0_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.refresh_token_auth_refresh_post_0 ...' end # resource path local_var_path = '/auth/refresh' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"AuthenticationApi.refresh_token_auth_refresh_post_0", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#refresh_token_auth_refresh_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#refresh_token_auth_refresh_post_with_http_info(opts = {}) ⇒ Array<(Object, Integer, Hash)>
Refresh Token Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 741 def refresh_token_auth_refresh_post_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.refresh_token_auth_refresh_post ...' end # resource path local_var_path = '/auth/refresh' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"AuthenticationApi.refresh_token_auth_refresh_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#refresh_token_auth_refresh_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#register_web_user_auth_register_post(user_register, opts = {}) ⇒ Object
Register Web User Registro de usuario para panel web: crea usuario, API key y tokens.
847 848 849 850 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 847 def register_web_user_auth_register_post(user_register, opts = {}) data, _status_code, _headers = register_web_user_auth_register_post_with_http_info(user_register, opts) data end |
#register_web_user_auth_register_post_0(user_register, opts = {}) ⇒ Object
Register Web User Registro de usuario para panel web: crea usuario, API key y tokens.
915 916 917 918 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 915 def register_web_user_auth_register_post_0(user_register, opts = {}) data, _status_code, _headers = register_web_user_auth_register_post_0_with_http_info(user_register, opts) data end |
#register_web_user_auth_register_post_0_with_http_info(user_register, opts = {}) ⇒ Array<(Object, Integer, Hash)>
Register Web User Registro de usuario para panel web: crea usuario, API key y tokens.
925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 925 def register_web_user_auth_register_post_0_with_http_info(user_register, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.register_web_user_auth_register_post_0 ...' end # verify the required parameter 'user_register' is set if @api_client.config.client_side_validation && user_register.nil? fail ArgumentError, "Missing the required parameter 'user_register' when calling AuthenticationApi.register_web_user_auth_register_post_0" end # resource path local_var_path = '/auth/register' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(user_register) # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"AuthenticationApi.register_web_user_auth_register_post_0", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#register_web_user_auth_register_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#register_web_user_auth_register_post_with_http_info(user_register, opts = {}) ⇒ Array<(Object, Integer, Hash)>
Register Web User Registro de usuario para panel web: crea usuario, API key y tokens.
857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 857 def register_web_user_auth_register_post_with_http_info(user_register, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.register_web_user_auth_register_post ...' end # verify the required parameter 'user_register' is set if @api_client.config.client_side_validation && user_register.nil? fail ArgumentError, "Missing the required parameter 'user_register' when calling AuthenticationApi.register_web_user_auth_register_post" end # resource path local_var_path = '/auth/register' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(user_register) # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( :operation => :"AuthenticationApi.register_web_user_auth_register_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#register_web_user_auth_register_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#rotate_api_key_auth_rotate_key_post(key_rotation_request, opts = {}) ⇒ Object
Rotate Api Key Rotación de API keys con período de gracia; acceso restringido a admin.
983 984 985 986 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 983 def rotate_api_key_auth_rotate_key_post(key_rotation_request, opts = {}) data, _status_code, _headers = rotate_api_key_auth_rotate_key_post_with_http_info(key_rotation_request, opts) data end |
#rotate_api_key_auth_rotate_key_post_0(key_rotation_request, opts = {}) ⇒ Object
Rotate Api Key Rotación de API keys con período de gracia; acceso restringido a admin.
1051 1052 1053 1054 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 1051 def rotate_api_key_auth_rotate_key_post_0(key_rotation_request, opts = {}) data, _status_code, _headers = rotate_api_key_auth_rotate_key_post_0_with_http_info(key_rotation_request, opts) data end |
#rotate_api_key_auth_rotate_key_post_0_with_http_info(key_rotation_request, opts = {}) ⇒ Array<(Object, Integer, Hash)>
Rotate Api Key Rotación de API keys con período de gracia; acceso restringido a admin.
1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 1061 def rotate_api_key_auth_rotate_key_post_0_with_http_info(key_rotation_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.rotate_api_key_auth_rotate_key_post_0 ...' end # verify the required parameter 'key_rotation_request' is set if @api_client.config.client_side_validation && key_rotation_request.nil? fail ArgumentError, "Missing the required parameter 'key_rotation_request' when calling AuthenticationApi.rotate_api_key_auth_rotate_key_post_0" end # resource path local_var_path = '/auth/rotate-key' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(key_rotation_request) # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || ['Bearer'] = opts.merge( :operation => :"AuthenticationApi.rotate_api_key_auth_rotate_key_post_0", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#rotate_api_key_auth_rotate_key_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#rotate_api_key_auth_rotate_key_post_with_http_info(key_rotation_request, opts = {}) ⇒ Array<(Object, Integer, Hash)>
Rotate Api Key Rotación de API keys con período de gracia; acceso restringido a admin.
993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 |
# File 'lib/mailsafepro/api/authentication_api.rb', line 993 def rotate_api_key_auth_rotate_key_post_with_http_info(key_rotation_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationApi.rotate_api_key_auth_rotate_key_post ...' end # verify the required parameter 'key_rotation_request' is set if @api_client.config.client_side_validation && key_rotation_request.nil? fail ArgumentError, "Missing the required parameter 'key_rotation_request' when calling AuthenticationApi.rotate_api_key_auth_rotate_key_post" end # resource path local_var_path = '/auth/rotate-key' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(key_rotation_request) # return_type return_type = opts[:debug_return_type] || 'Object' # auth_names auth_names = opts[:debug_auth_names] || ['Bearer'] = opts.merge( :operation => :"AuthenticationApi.rotate_api_key_auth_rotate_key_post", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AuthenticationApi#rotate_api_key_auth_rotate_key_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |