authentik-api 2026.5.7 → 2026.8.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README_API.md +94 -9
- data/lib/authentik/api/api/admin_api.rb +3 -0
- data/lib/authentik/api/api/core_api.rb +624 -0
- data/lib/authentik/api/api/events_api.rb +35 -2
- data/lib/authentik/api/api/lifecycle_api.rb +258 -0
- data/lib/authentik/api/api/providers_api.rb +401 -0
- data/lib/authentik/api/api/requests_api.rb +1858 -0
- data/lib/authentik/api/api/sources_api.rb +6 -3
- data/lib/authentik/api/inflector.rb +2 -1
- data/lib/authentik/api/models/app_enum.rb +3 -1
- data/lib/authentik/api/models/application.rb +27 -1
- data/lib/authentik/api/models/authenticator_email_stage.rb +10 -1
- data/lib/authentik/api/models/authenticator_sms_stage.rb +36 -1
- data/lib/authentik/api/models/authenticator_web_authn_stage.rb +1 -11
- data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +1 -11
- data/lib/authentik/api/models/brand.rb +21 -1
- data/lib/authentik/api/models/brand_request.rb +21 -1
- data/lib/authentik/api/models/captcha_stage.rb +32 -1
- data/lib/authentik/api/models/captcha_stage_request.rb +32 -1
- data/lib/authentik/api/models/compatibility_mode_enum.rb +2 -1
- data/lib/authentik/api/models/content_type.rb +30 -4
- data/lib/authentik/api/models/current_brand.rb +19 -1
- data/lib/authentik/api/models/device_user_binding.rb +39 -1
- data/lib/authentik/api/models/endpoint_device.rb +15 -1
- data/lib/authentik/api/models/endpoint_device_details.rb +15 -1
- data/lib/authentik/api/models/event_actions.rb +6 -1
- data/lib/authentik/api/models/grant_request.rb +382 -0
- data/lib/authentik/api/models/{reviewer_group.rb → grant_request_create_request.rb} +29 -42
- data/lib/authentik/api/models/{grant_types_enum.rb → grant_type_enum.rb} +5 -4
- data/lib/authentik/api/models/kerberos_source.rb +21 -1
- data/lib/authentik/api/models/last_task_status_enum.rb +2 -1
- data/lib/authentik/api/models/ldap_outpost_config.rb +1 -1
- data/lib/authentik/api/models/ldap_source.rb +14 -4
- data/lib/authentik/api/models/ldap_source_request.rb +14 -4
- data/lib/authentik/api/models/lifecycle_rule.rb +2 -2
- data/lib/authentik/api/models/microsoft_entra_provider.rb +27 -1
- data/lib/authentik/api/models/model_enum.rb +8 -1
- data/lib/authentik/api/models/notification_mode_enum.rb +35 -0
- data/lib/authentik/api/models/o_auth2_dynamic_client_registration.rb +291 -0
- data/lib/authentik/api/models/o_auth2_dynamic_client_registration_request.rb +303 -0
- data/lib/authentik/api/models/o_auth2_provider.rb +1 -1
- data/lib/authentik/api/models/o_auth2_provider_request.rb +1 -1
- data/lib/authentik/api/models/o_auth_source.rb +0 -60
- data/lib/authentik/api/models/o_auth_source_request.rb +0 -60
- data/lib/authentik/api/models/object_attribute.rb +420 -0
- data/lib/authentik/api/models/object_attribute_request.rb +358 -0
- data/lib/authentik/api/models/object_attribute_type_enum.rb +35 -0
- data/lib/authentik/api/models/offboarding_action_enum.rb +34 -0
- data/lib/authentik/api/models/offboarding_status_enum.rb +36 -0
- data/lib/authentik/api/models/paginated_grant_request_list.rb +214 -0
- data/lib/authentik/api/models/paginated_o_auth2_dynamic_client_registration_list.rb +214 -0
- data/lib/authentik/api/models/paginated_object_attribute_list.rb +214 -0
- data/lib/authentik/api/models/paginated_request_rule_binding_list.rb +214 -0
- data/lib/authentik/api/models/paginated_request_rule_child_binding_list.rb +214 -0
- data/lib/authentik/api/models/paginated_request_rule_list.rb +214 -0
- data/lib/authentik/api/models/paginated_requestable_target_list.rb +214 -0
- data/lib/authentik/api/models/paginated_user_offboarding_list.rb +214 -0
- data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +1 -11
- data/lib/authentik/api/models/patched_brand_request.rb +21 -1
- data/lib/authentik/api/models/patched_captcha_stage_request.rb +32 -1
- data/lib/authentik/api/models/patched_grant_request_fulfill_request.rb +175 -0
- data/lib/authentik/api/models/patched_ldap_source_request.rb +14 -4
- data/lib/authentik/api/models/patched_o_auth2_dynamic_client_registration_request.rb +286 -0
- data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +1 -1
- data/lib/authentik/api/models/patched_o_auth_source_request.rb +0 -60
- data/lib/authentik/api/models/patched_object_attribute_request.rb +320 -0
- data/lib/authentik/api/models/patched_request_rule_binding_request.rb +249 -0
- data/lib/authentik/api/models/patched_request_rule_child_binding_request.rb +159 -0
- data/lib/authentik/api/models/patched_request_rule_request.rb +277 -0
- data/lib/authentik/api/models/patched_saml_source_request.rb +8 -8
- data/lib/authentik/api/models/patched_settings_request.rb +30 -1
- data/lib/authentik/api/models/patched_settings_request_flags.rb +1 -1
- data/lib/authentik/api/models/patched_ws_federation_provider_request.rb +11 -1
- data/lib/authentik/api/models/policy_binding.rb +42 -4
- data/lib/authentik/api/models/provider_type_enum.rb +2 -3
- data/lib/authentik/api/models/related_rule.rb +2 -2
- data/lib/authentik/api/models/related_target.rb +266 -0
- data/lib/authentik/api/models/request_content_type_enum.rb +34 -0
- data/lib/authentik/api/models/request_rule.rb +329 -0
- data/lib/authentik/api/models/request_rule_binding.rb +353 -0
- data/lib/authentik/api/models/request_rule_binding_request.rb +283 -0
- data/lib/authentik/api/models/{reviewer_user.rb → request_rule_child_binding.rb} +34 -99
- data/lib/authentik/api/models/request_rule_child_binding_request.rb +193 -0
- data/lib/authentik/api/models/request_rule_request.rb +284 -0
- data/lib/authentik/api/models/request_status.rb +36 -0
- data/lib/authentik/api/models/requestable_target.rb +278 -0
- data/lib/authentik/api/models/review.rb +1 -1
- data/lib/authentik/api/models/saml_source.rb +35 -8
- data/lib/authentik/api/models/saml_source_request.rb +8 -8
- data/lib/authentik/api/models/saml_version_enum.rb +34 -0
- data/lib/authentik/api/models/scim_provider.rb +11 -1
- data/lib/authentik/api/models/session_user.rb +32 -4
- data/lib/authentik/api/models/settings.rb +30 -1
- data/lib/authentik/api/models/settings_request.rb +30 -1
- data/lib/authentik/api/models/system_info.rb +31 -4
- data/lib/authentik/api/models/task_aggregated_status_enum.rb +2 -1
- data/lib/authentik/api/models/task_status_enum.rb +2 -1
- data/lib/authentik/api/models/user_offboarding.rb +379 -0
- data/lib/authentik/api/models/user_offboarding_request.rb +237 -0
- data/lib/authentik/api/models/user_self.rb +28 -1
- data/lib/authentik/api/models/user_switch_action_enum.rb +34 -0
- data/lib/authentik/api/models/user_switch_request.rb +173 -0
- data/lib/authentik/api/models/user_switch_response.rb +159 -0
- data/lib/authentik/api/models/ws_federation_provider.rb +41 -4
- data/lib/authentik/api/models/ws_federation_provider_request.rb +11 -1
- data/lib/authentik/api/version.rb +1 -1
- data/spec/api/admin_api_spec.rb +1 -0
- data/spec/api/core_api_spec.rb +119 -0
- data/spec/api/events_api_spec.rb +11 -0
- data/spec/api/lifecycle_api_spec.rb +47 -0
- data/spec/api/providers_api_spec.rb +73 -0
- data/spec/api/requests_api_spec.rb +365 -0
- data/spec/api/sources_api_spec.rb +2 -1
- data/spec/models/application_spec.rb +6 -0
- data/spec/models/authenticator_email_stage_spec.rb +6 -0
- data/spec/models/authenticator_sms_stage_spec.rb +12 -0
- data/spec/models/authenticator_web_authn_stage_request_spec.rb +0 -6
- data/spec/models/authenticator_web_authn_stage_spec.rb +0 -6
- data/spec/models/brand_request_spec.rb +12 -0
- data/spec/models/brand_spec.rb +12 -0
- data/spec/models/captcha_stage_request_spec.rb +6 -0
- data/spec/models/captcha_stage_spec.rb +6 -0
- data/spec/models/content_type_spec.rb +6 -0
- data/spec/models/current_brand_spec.rb +12 -0
- data/spec/models/device_user_binding_spec.rb +12 -0
- data/spec/models/grant_request_create_request_spec.rb +36 -0
- data/spec/models/grant_request_spec.rb +90 -0
- data/spec/models/{grant_types_enum_spec.rb → grant_type_enum_spec.rb} +6 -6
- data/spec/models/kerberos_source_spec.rb +12 -0
- data/spec/models/ldap_source_request_spec.rb +6 -0
- data/spec/models/ldap_source_spec.rb +6 -0
- data/spec/models/microsoft_entra_provider_spec.rb +6 -0
- data/spec/models/notification_mode_enum_spec.rb +24 -0
- data/spec/models/o_auth2_dynamic_client_registration_request_spec.rb +78 -0
- data/spec/models/o_auth2_dynamic_client_registration_spec.rb +84 -0
- data/spec/models/object_attribute_request_spec.rb +84 -0
- data/spec/models/object_attribute_spec.rb +108 -0
- data/spec/models/object_attribute_type_enum_spec.rb +24 -0
- data/spec/models/offboarding_action_enum_spec.rb +24 -0
- data/spec/models/offboarding_status_enum_spec.rb +24 -0
- data/spec/models/paginated_grant_request_list_spec.rb +42 -0
- data/spec/models/paginated_o_auth2_dynamic_client_registration_list_spec.rb +42 -0
- data/spec/models/paginated_object_attribute_list_spec.rb +42 -0
- data/spec/models/paginated_request_rule_binding_list_spec.rb +42 -0
- data/spec/models/paginated_request_rule_child_binding_list_spec.rb +42 -0
- data/spec/models/paginated_request_rule_list_spec.rb +42 -0
- data/spec/models/paginated_requestable_target_list_spec.rb +42 -0
- data/spec/models/paginated_user_offboarding_list_spec.rb +42 -0
- data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +0 -6
- data/spec/models/patched_brand_request_spec.rb +12 -0
- data/spec/models/patched_captcha_stage_request_spec.rb +6 -0
- data/spec/models/patched_grant_request_fulfill_request_spec.rb +36 -0
- data/spec/models/patched_ldap_source_request_spec.rb +6 -0
- data/spec/models/patched_o_auth2_dynamic_client_registration_request_spec.rb +78 -0
- data/spec/models/patched_object_attribute_request_spec.rb +84 -0
- data/spec/models/patched_request_rule_binding_request_spec.rb +60 -0
- data/spec/models/patched_request_rule_child_binding_request_spec.rb +42 -0
- data/spec/models/patched_request_rule_request_spec.rb +72 -0
- data/spec/models/patched_saml_source_request_spec.rb +1 -1
- data/spec/models/patched_settings_request_spec.rb +6 -0
- data/spec/models/patched_ws_federation_provider_request_spec.rb +6 -0
- data/spec/models/policy_binding_spec.rb +12 -0
- data/spec/models/related_target_spec.rb +54 -0
- data/spec/models/request_content_type_enum_spec.rb +24 -0
- data/spec/models/request_rule_binding_request_spec.rb +60 -0
- data/spec/models/request_rule_binding_spec.rb +84 -0
- data/spec/models/request_rule_child_binding_request_spec.rb +42 -0
- data/spec/models/{reviewer_user_spec.rb → request_rule_child_binding_spec.rb} +8 -14
- data/spec/models/request_rule_request_spec.rb +72 -0
- data/spec/models/request_rule_spec.rb +84 -0
- data/spec/models/request_status_spec.rb +24 -0
- data/spec/models/requestable_target_spec.rb +60 -0
- data/spec/models/saml_source_request_spec.rb +1 -1
- data/spec/models/saml_source_spec.rb +7 -1
- data/spec/models/saml_version_enum_spec.rb +24 -0
- data/spec/models/scim_provider_spec.rb +6 -0
- data/spec/models/session_user_spec.rb +6 -0
- data/spec/models/settings_request_spec.rb +6 -0
- data/spec/models/settings_spec.rb +6 -0
- data/spec/models/system_info_spec.rb +6 -0
- data/spec/models/user_offboarding_request_spec.rb +54 -0
- data/spec/models/user_offboarding_spec.rb +90 -0
- data/spec/models/user_self_spec.rb +6 -0
- data/spec/models/user_switch_action_enum_spec.rb +24 -0
- data/spec/models/{reviewer_group_spec.rb → user_switch_request_spec.rb} +8 -8
- data/spec/models/user_switch_response_spec.rb +30 -0
- data/spec/models/ws_federation_provider_request_spec.rb +6 -0
- data/spec/models/ws_federation_provider_spec.rb +12 -0
- metadata +127 -10
|
@@ -284,6 +284,82 @@ module Authentik::Api
|
|
|
284
284
|
return data, status_code, headers
|
|
285
285
|
end
|
|
286
286
|
|
|
287
|
+
# List application entitlements which the current user can request access to
|
|
288
|
+
# @param [Hash] opts the optional parameters
|
|
289
|
+
# @option opts [String] :app
|
|
290
|
+
# @option opts [String] :name
|
|
291
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
292
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
293
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
294
|
+
# @option opts [String] :pbm_uuid
|
|
295
|
+
# @option opts [String] :search A search term.
|
|
296
|
+
# @return [PaginatedRequestableTargetList]
|
|
297
|
+
def core_application_entitlements_requestable_list(opts = {})
|
|
298
|
+
data, _status_code, _headers = core_application_entitlements_requestable_list_with_http_info(opts)
|
|
299
|
+
data
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
# List application entitlements which the current user can request access to
|
|
303
|
+
# @param [Hash] opts the optional parameters
|
|
304
|
+
# @option opts [String] :app
|
|
305
|
+
# @option opts [String] :name
|
|
306
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
307
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
308
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
309
|
+
# @option opts [String] :pbm_uuid
|
|
310
|
+
# @option opts [String] :search A search term.
|
|
311
|
+
# @return [Array<(PaginatedRequestableTargetList, Integer, Hash)>] PaginatedRequestableTargetList data, response status code and response headers
|
|
312
|
+
def core_application_entitlements_requestable_list_with_http_info(opts = {})
|
|
313
|
+
if @api_client.config.debugging
|
|
314
|
+
@api_client.config.logger.debug 'Calling API: CoreApi.core_application_entitlements_requestable_list ...'
|
|
315
|
+
end
|
|
316
|
+
# resource path
|
|
317
|
+
local_var_path = '/core/application_entitlements/requestable/'
|
|
318
|
+
|
|
319
|
+
# query parameters
|
|
320
|
+
query_params = opts[:query_params] || {}
|
|
321
|
+
query_params[:'app'] = opts[:'app'] if !opts[:'app'].nil?
|
|
322
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
323
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
324
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
325
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
326
|
+
query_params[:'pbm_uuid'] = opts[:'pbm_uuid'] if !opts[:'pbm_uuid'].nil?
|
|
327
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
328
|
+
|
|
329
|
+
# header parameters
|
|
330
|
+
header_params = opts[:header_params] || {}
|
|
331
|
+
# HTTP header 'Accept' (if needed)
|
|
332
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
333
|
+
|
|
334
|
+
# form parameters
|
|
335
|
+
form_params = opts[:form_params] || {}
|
|
336
|
+
|
|
337
|
+
# http body (model)
|
|
338
|
+
post_body = opts[:debug_body]
|
|
339
|
+
|
|
340
|
+
# return_type
|
|
341
|
+
return_type = opts[:debug_return_type] || 'PaginatedRequestableTargetList'
|
|
342
|
+
|
|
343
|
+
# auth_names
|
|
344
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
345
|
+
|
|
346
|
+
new_options = opts.merge(
|
|
347
|
+
:operation => :"CoreApi.core_application_entitlements_requestable_list",
|
|
348
|
+
:header_params => header_params,
|
|
349
|
+
:query_params => query_params,
|
|
350
|
+
:form_params => form_params,
|
|
351
|
+
:body => post_body,
|
|
352
|
+
:auth_names => auth_names,
|
|
353
|
+
:return_type => return_type
|
|
354
|
+
)
|
|
355
|
+
|
|
356
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
357
|
+
if @api_client.config.debugging
|
|
358
|
+
@api_client.config.logger.debug "API called: CoreApi#core_application_entitlements_requestable_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
359
|
+
end
|
|
360
|
+
return data, status_code, headers
|
|
361
|
+
end
|
|
362
|
+
|
|
287
363
|
# ApplicationEntitlement Viewset
|
|
288
364
|
# @param pbm_uuid [String] A UUID string identifying this Application Entitlement.
|
|
289
365
|
# @param [Hash] opts the optional parameters
|
|
@@ -831,6 +907,91 @@ module Authentik::Api
|
|
|
831
907
|
return data, status_code, headers
|
|
832
908
|
end
|
|
833
909
|
|
|
910
|
+
# List applications which the current user can request access to
|
|
911
|
+
# @param [Hash] opts the optional parameters
|
|
912
|
+
# @option opts [String] :group
|
|
913
|
+
# @option opts [String] :meta_description
|
|
914
|
+
# @option opts [String] :meta_launch_url
|
|
915
|
+
# @option opts [String] :meta_publisher
|
|
916
|
+
# @option opts [String] :name
|
|
917
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
918
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
919
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
920
|
+
# @option opts [String] :search A search term.
|
|
921
|
+
# @option opts [String] :slug
|
|
922
|
+
# @return [PaginatedApplicationList]
|
|
923
|
+
def core_applications_requestable_list(opts = {})
|
|
924
|
+
data, _status_code, _headers = core_applications_requestable_list_with_http_info(opts)
|
|
925
|
+
data
|
|
926
|
+
end
|
|
927
|
+
|
|
928
|
+
# List applications which the current user can request access to
|
|
929
|
+
# @param [Hash] opts the optional parameters
|
|
930
|
+
# @option opts [String] :group
|
|
931
|
+
# @option opts [String] :meta_description
|
|
932
|
+
# @option opts [String] :meta_launch_url
|
|
933
|
+
# @option opts [String] :meta_publisher
|
|
934
|
+
# @option opts [String] :name
|
|
935
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
936
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
937
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
938
|
+
# @option opts [String] :search A search term.
|
|
939
|
+
# @option opts [String] :slug
|
|
940
|
+
# @return [Array<(PaginatedApplicationList, Integer, Hash)>] PaginatedApplicationList data, response status code and response headers
|
|
941
|
+
def core_applications_requestable_list_with_http_info(opts = {})
|
|
942
|
+
if @api_client.config.debugging
|
|
943
|
+
@api_client.config.logger.debug 'Calling API: CoreApi.core_applications_requestable_list ...'
|
|
944
|
+
end
|
|
945
|
+
# resource path
|
|
946
|
+
local_var_path = '/core/applications/requestable/'
|
|
947
|
+
|
|
948
|
+
# query parameters
|
|
949
|
+
query_params = opts[:query_params] || {}
|
|
950
|
+
query_params[:'group'] = opts[:'group'] if !opts[:'group'].nil?
|
|
951
|
+
query_params[:'meta_description'] = opts[:'meta_description'] if !opts[:'meta_description'].nil?
|
|
952
|
+
query_params[:'meta_launch_url'] = opts[:'meta_launch_url'] if !opts[:'meta_launch_url'].nil?
|
|
953
|
+
query_params[:'meta_publisher'] = opts[:'meta_publisher'] if !opts[:'meta_publisher'].nil?
|
|
954
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
955
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
956
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
957
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
958
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
959
|
+
query_params[:'slug'] = opts[:'slug'] if !opts[:'slug'].nil?
|
|
960
|
+
|
|
961
|
+
# header parameters
|
|
962
|
+
header_params = opts[:header_params] || {}
|
|
963
|
+
# HTTP header 'Accept' (if needed)
|
|
964
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
965
|
+
|
|
966
|
+
# form parameters
|
|
967
|
+
form_params = opts[:form_params] || {}
|
|
968
|
+
|
|
969
|
+
# http body (model)
|
|
970
|
+
post_body = opts[:debug_body]
|
|
971
|
+
|
|
972
|
+
# return_type
|
|
973
|
+
return_type = opts[:debug_return_type] || 'PaginatedApplicationList'
|
|
974
|
+
|
|
975
|
+
# auth_names
|
|
976
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
977
|
+
|
|
978
|
+
new_options = opts.merge(
|
|
979
|
+
:operation => :"CoreApi.core_applications_requestable_list",
|
|
980
|
+
:header_params => header_params,
|
|
981
|
+
:query_params => query_params,
|
|
982
|
+
:form_params => form_params,
|
|
983
|
+
:body => post_body,
|
|
984
|
+
:auth_names => auth_names,
|
|
985
|
+
:return_type => return_type
|
|
986
|
+
)
|
|
987
|
+
|
|
988
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
989
|
+
if @api_client.config.debugging
|
|
990
|
+
@api_client.config.logger.debug "API called: CoreApi#core_applications_requestable_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
991
|
+
end
|
|
992
|
+
return data, status_code, headers
|
|
993
|
+
end
|
|
994
|
+
|
|
834
995
|
# Application Viewset
|
|
835
996
|
# @param slug [String]
|
|
836
997
|
# @param [Hash] opts the optional parameters
|
|
@@ -1543,8 +1704,10 @@ module Authentik::Api
|
|
|
1543
1704
|
# @option opts [String] :flow_invalidation
|
|
1544
1705
|
# @option opts [String] :flow_lockdown
|
|
1545
1706
|
# @option opts [String] :flow_recovery
|
|
1707
|
+
# @option opts [String] :flow_request
|
|
1546
1708
|
# @option opts [String] :flow_unenrollment
|
|
1547
1709
|
# @option opts [String] :flow_user_settings
|
|
1710
|
+
# @option opts [String] :flow_user_switch
|
|
1548
1711
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
1549
1712
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
1550
1713
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
@@ -1571,8 +1734,10 @@ module Authentik::Api
|
|
|
1571
1734
|
# @option opts [String] :flow_invalidation
|
|
1572
1735
|
# @option opts [String] :flow_lockdown
|
|
1573
1736
|
# @option opts [String] :flow_recovery
|
|
1737
|
+
# @option opts [String] :flow_request
|
|
1574
1738
|
# @option opts [String] :flow_unenrollment
|
|
1575
1739
|
# @option opts [String] :flow_user_settings
|
|
1740
|
+
# @option opts [String] :flow_user_switch
|
|
1576
1741
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
1577
1742
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
1578
1743
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
@@ -1601,8 +1766,10 @@ module Authentik::Api
|
|
|
1601
1766
|
query_params[:'flow_invalidation'] = opts[:'flow_invalidation'] if !opts[:'flow_invalidation'].nil?
|
|
1602
1767
|
query_params[:'flow_lockdown'] = opts[:'flow_lockdown'] if !opts[:'flow_lockdown'].nil?
|
|
1603
1768
|
query_params[:'flow_recovery'] = opts[:'flow_recovery'] if !opts[:'flow_recovery'].nil?
|
|
1769
|
+
query_params[:'flow_request'] = opts[:'flow_request'] if !opts[:'flow_request'].nil?
|
|
1604
1770
|
query_params[:'flow_unenrollment'] = opts[:'flow_unenrollment'] if !opts[:'flow_unenrollment'].nil?
|
|
1605
1771
|
query_params[:'flow_user_settings'] = opts[:'flow_user_settings'] if !opts[:'flow_user_settings'].nil?
|
|
1772
|
+
query_params[:'flow_user_switch'] = opts[:'flow_user_switch'] if !opts[:'flow_user_switch'].nil?
|
|
1606
1773
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
1607
1774
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
1608
1775
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
@@ -2544,6 +2711,398 @@ module Authentik::Api
|
|
|
2544
2711
|
return data, status_code, headers
|
|
2545
2712
|
end
|
|
2546
2713
|
|
|
2714
|
+
# @param object_attribute_request [ObjectAttributeRequest]
|
|
2715
|
+
# @param [Hash] opts the optional parameters
|
|
2716
|
+
# @return [ObjectAttribute]
|
|
2717
|
+
def core_object_attributes_create(object_attribute_request, opts = {})
|
|
2718
|
+
data, _status_code, _headers = core_object_attributes_create_with_http_info(object_attribute_request, opts)
|
|
2719
|
+
data
|
|
2720
|
+
end
|
|
2721
|
+
|
|
2722
|
+
# @param object_attribute_request [ObjectAttributeRequest]
|
|
2723
|
+
# @param [Hash] opts the optional parameters
|
|
2724
|
+
# @return [Array<(ObjectAttribute, Integer, Hash)>] ObjectAttribute data, response status code and response headers
|
|
2725
|
+
def core_object_attributes_create_with_http_info(object_attribute_request, opts = {})
|
|
2726
|
+
if @api_client.config.debugging
|
|
2727
|
+
@api_client.config.logger.debug 'Calling API: CoreApi.core_object_attributes_create ...'
|
|
2728
|
+
end
|
|
2729
|
+
# verify the required parameter 'object_attribute_request' is set
|
|
2730
|
+
if @api_client.config.client_side_validation && object_attribute_request.nil?
|
|
2731
|
+
fail ArgumentError, "Missing the required parameter 'object_attribute_request' when calling CoreApi.core_object_attributes_create"
|
|
2732
|
+
end
|
|
2733
|
+
# resource path
|
|
2734
|
+
local_var_path = '/core/object_attributes/'
|
|
2735
|
+
|
|
2736
|
+
# query parameters
|
|
2737
|
+
query_params = opts[:query_params] || {}
|
|
2738
|
+
|
|
2739
|
+
# header parameters
|
|
2740
|
+
header_params = opts[:header_params] || {}
|
|
2741
|
+
# HTTP header 'Accept' (if needed)
|
|
2742
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2743
|
+
# HTTP header 'Content-Type'
|
|
2744
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2745
|
+
if !content_type.nil?
|
|
2746
|
+
header_params['Content-Type'] = content_type
|
|
2747
|
+
end
|
|
2748
|
+
|
|
2749
|
+
# form parameters
|
|
2750
|
+
form_params = opts[:form_params] || {}
|
|
2751
|
+
|
|
2752
|
+
# http body (model)
|
|
2753
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(object_attribute_request)
|
|
2754
|
+
|
|
2755
|
+
# return_type
|
|
2756
|
+
return_type = opts[:debug_return_type] || 'ObjectAttribute'
|
|
2757
|
+
|
|
2758
|
+
# auth_names
|
|
2759
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
2760
|
+
|
|
2761
|
+
new_options = opts.merge(
|
|
2762
|
+
:operation => :"CoreApi.core_object_attributes_create",
|
|
2763
|
+
:header_params => header_params,
|
|
2764
|
+
:query_params => query_params,
|
|
2765
|
+
:form_params => form_params,
|
|
2766
|
+
:body => post_body,
|
|
2767
|
+
:auth_names => auth_names,
|
|
2768
|
+
:return_type => return_type
|
|
2769
|
+
)
|
|
2770
|
+
|
|
2771
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2772
|
+
if @api_client.config.debugging
|
|
2773
|
+
@api_client.config.logger.debug "API called: CoreApi#core_object_attributes_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2774
|
+
end
|
|
2775
|
+
return data, status_code, headers
|
|
2776
|
+
end
|
|
2777
|
+
|
|
2778
|
+
# @param attribute_id [String] A UUID string identifying this Object Attribute.
|
|
2779
|
+
# @param [Hash] opts the optional parameters
|
|
2780
|
+
# @return [nil]
|
|
2781
|
+
def core_object_attributes_destroy(attribute_id, opts = {})
|
|
2782
|
+
core_object_attributes_destroy_with_http_info(attribute_id, opts)
|
|
2783
|
+
nil
|
|
2784
|
+
end
|
|
2785
|
+
|
|
2786
|
+
# @param attribute_id [String] A UUID string identifying this Object Attribute.
|
|
2787
|
+
# @param [Hash] opts the optional parameters
|
|
2788
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2789
|
+
def core_object_attributes_destroy_with_http_info(attribute_id, opts = {})
|
|
2790
|
+
if @api_client.config.debugging
|
|
2791
|
+
@api_client.config.logger.debug 'Calling API: CoreApi.core_object_attributes_destroy ...'
|
|
2792
|
+
end
|
|
2793
|
+
# verify the required parameter 'attribute_id' is set
|
|
2794
|
+
if @api_client.config.client_side_validation && attribute_id.nil?
|
|
2795
|
+
fail ArgumentError, "Missing the required parameter 'attribute_id' when calling CoreApi.core_object_attributes_destroy"
|
|
2796
|
+
end
|
|
2797
|
+
# resource path
|
|
2798
|
+
local_var_path = '/core/object_attributes/{attribute_id}/'.sub('{attribute_id}', CGI.escape(attribute_id.to_s))
|
|
2799
|
+
|
|
2800
|
+
# query parameters
|
|
2801
|
+
query_params = opts[:query_params] || {}
|
|
2802
|
+
|
|
2803
|
+
# header parameters
|
|
2804
|
+
header_params = opts[:header_params] || {}
|
|
2805
|
+
# HTTP header 'Accept' (if needed)
|
|
2806
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2807
|
+
|
|
2808
|
+
# form parameters
|
|
2809
|
+
form_params = opts[:form_params] || {}
|
|
2810
|
+
|
|
2811
|
+
# http body (model)
|
|
2812
|
+
post_body = opts[:debug_body]
|
|
2813
|
+
|
|
2814
|
+
# return_type
|
|
2815
|
+
return_type = opts[:debug_return_type]
|
|
2816
|
+
|
|
2817
|
+
# auth_names
|
|
2818
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
2819
|
+
|
|
2820
|
+
new_options = opts.merge(
|
|
2821
|
+
:operation => :"CoreApi.core_object_attributes_destroy",
|
|
2822
|
+
:header_params => header_params,
|
|
2823
|
+
:query_params => query_params,
|
|
2824
|
+
:form_params => form_params,
|
|
2825
|
+
:body => post_body,
|
|
2826
|
+
:auth_names => auth_names,
|
|
2827
|
+
:return_type => return_type
|
|
2828
|
+
)
|
|
2829
|
+
|
|
2830
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
2831
|
+
if @api_client.config.debugging
|
|
2832
|
+
@api_client.config.logger.debug "API called: CoreApi#core_object_attributes_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2833
|
+
end
|
|
2834
|
+
return data, status_code, headers
|
|
2835
|
+
end
|
|
2836
|
+
|
|
2837
|
+
# @param [Hash] opts the optional parameters
|
|
2838
|
+
# @option opts [Boolean] :enabled
|
|
2839
|
+
# @option opts [String] :object_type__app_label
|
|
2840
|
+
# @option opts [String] :object_type__model
|
|
2841
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
2842
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
2843
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
2844
|
+
# @option opts [String] :search A search term.
|
|
2845
|
+
# @return [PaginatedObjectAttributeList]
|
|
2846
|
+
def core_object_attributes_list(opts = {})
|
|
2847
|
+
data, _status_code, _headers = core_object_attributes_list_with_http_info(opts)
|
|
2848
|
+
data
|
|
2849
|
+
end
|
|
2850
|
+
|
|
2851
|
+
# @param [Hash] opts the optional parameters
|
|
2852
|
+
# @option opts [Boolean] :enabled
|
|
2853
|
+
# @option opts [String] :object_type__app_label
|
|
2854
|
+
# @option opts [String] :object_type__model
|
|
2855
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
2856
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
2857
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
2858
|
+
# @option opts [String] :search A search term.
|
|
2859
|
+
# @return [Array<(PaginatedObjectAttributeList, Integer, Hash)>] PaginatedObjectAttributeList data, response status code and response headers
|
|
2860
|
+
def core_object_attributes_list_with_http_info(opts = {})
|
|
2861
|
+
if @api_client.config.debugging
|
|
2862
|
+
@api_client.config.logger.debug 'Calling API: CoreApi.core_object_attributes_list ...'
|
|
2863
|
+
end
|
|
2864
|
+
# resource path
|
|
2865
|
+
local_var_path = '/core/object_attributes/'
|
|
2866
|
+
|
|
2867
|
+
# query parameters
|
|
2868
|
+
query_params = opts[:query_params] || {}
|
|
2869
|
+
query_params[:'enabled'] = opts[:'enabled'] if !opts[:'enabled'].nil?
|
|
2870
|
+
query_params[:'object_type__app_label'] = opts[:'object_type__app_label'] if !opts[:'object_type__app_label'].nil?
|
|
2871
|
+
query_params[:'object_type__model'] = opts[:'object_type__model'] if !opts[:'object_type__model'].nil?
|
|
2872
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
2873
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
2874
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
2875
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
2876
|
+
|
|
2877
|
+
# header parameters
|
|
2878
|
+
header_params = opts[:header_params] || {}
|
|
2879
|
+
# HTTP header 'Accept' (if needed)
|
|
2880
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2881
|
+
|
|
2882
|
+
# form parameters
|
|
2883
|
+
form_params = opts[:form_params] || {}
|
|
2884
|
+
|
|
2885
|
+
# http body (model)
|
|
2886
|
+
post_body = opts[:debug_body]
|
|
2887
|
+
|
|
2888
|
+
# return_type
|
|
2889
|
+
return_type = opts[:debug_return_type] || 'PaginatedObjectAttributeList'
|
|
2890
|
+
|
|
2891
|
+
# auth_names
|
|
2892
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
2893
|
+
|
|
2894
|
+
new_options = opts.merge(
|
|
2895
|
+
:operation => :"CoreApi.core_object_attributes_list",
|
|
2896
|
+
:header_params => header_params,
|
|
2897
|
+
:query_params => query_params,
|
|
2898
|
+
:form_params => form_params,
|
|
2899
|
+
:body => post_body,
|
|
2900
|
+
:auth_names => auth_names,
|
|
2901
|
+
:return_type => return_type
|
|
2902
|
+
)
|
|
2903
|
+
|
|
2904
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2905
|
+
if @api_client.config.debugging
|
|
2906
|
+
@api_client.config.logger.debug "API called: CoreApi#core_object_attributes_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2907
|
+
end
|
|
2908
|
+
return data, status_code, headers
|
|
2909
|
+
end
|
|
2910
|
+
|
|
2911
|
+
# @param attribute_id [String] A UUID string identifying this Object Attribute.
|
|
2912
|
+
# @param [Hash] opts the optional parameters
|
|
2913
|
+
# @option opts [PatchedObjectAttributeRequest] :patched_object_attribute_request
|
|
2914
|
+
# @return [ObjectAttribute]
|
|
2915
|
+
def core_object_attributes_partial_update(attribute_id, opts = {})
|
|
2916
|
+
data, _status_code, _headers = core_object_attributes_partial_update_with_http_info(attribute_id, opts)
|
|
2917
|
+
data
|
|
2918
|
+
end
|
|
2919
|
+
|
|
2920
|
+
# @param attribute_id [String] A UUID string identifying this Object Attribute.
|
|
2921
|
+
# @param [Hash] opts the optional parameters
|
|
2922
|
+
# @option opts [PatchedObjectAttributeRequest] :patched_object_attribute_request
|
|
2923
|
+
# @return [Array<(ObjectAttribute, Integer, Hash)>] ObjectAttribute data, response status code and response headers
|
|
2924
|
+
def core_object_attributes_partial_update_with_http_info(attribute_id, opts = {})
|
|
2925
|
+
if @api_client.config.debugging
|
|
2926
|
+
@api_client.config.logger.debug 'Calling API: CoreApi.core_object_attributes_partial_update ...'
|
|
2927
|
+
end
|
|
2928
|
+
# verify the required parameter 'attribute_id' is set
|
|
2929
|
+
if @api_client.config.client_side_validation && attribute_id.nil?
|
|
2930
|
+
fail ArgumentError, "Missing the required parameter 'attribute_id' when calling CoreApi.core_object_attributes_partial_update"
|
|
2931
|
+
end
|
|
2932
|
+
# resource path
|
|
2933
|
+
local_var_path = '/core/object_attributes/{attribute_id}/'.sub('{attribute_id}', CGI.escape(attribute_id.to_s))
|
|
2934
|
+
|
|
2935
|
+
# query parameters
|
|
2936
|
+
query_params = opts[:query_params] || {}
|
|
2937
|
+
|
|
2938
|
+
# header parameters
|
|
2939
|
+
header_params = opts[:header_params] || {}
|
|
2940
|
+
# HTTP header 'Accept' (if needed)
|
|
2941
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2942
|
+
# HTTP header 'Content-Type'
|
|
2943
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2944
|
+
if !content_type.nil?
|
|
2945
|
+
header_params['Content-Type'] = content_type
|
|
2946
|
+
end
|
|
2947
|
+
|
|
2948
|
+
# form parameters
|
|
2949
|
+
form_params = opts[:form_params] || {}
|
|
2950
|
+
|
|
2951
|
+
# http body (model)
|
|
2952
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_object_attribute_request'])
|
|
2953
|
+
|
|
2954
|
+
# return_type
|
|
2955
|
+
return_type = opts[:debug_return_type] || 'ObjectAttribute'
|
|
2956
|
+
|
|
2957
|
+
# auth_names
|
|
2958
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
2959
|
+
|
|
2960
|
+
new_options = opts.merge(
|
|
2961
|
+
:operation => :"CoreApi.core_object_attributes_partial_update",
|
|
2962
|
+
:header_params => header_params,
|
|
2963
|
+
:query_params => query_params,
|
|
2964
|
+
:form_params => form_params,
|
|
2965
|
+
:body => post_body,
|
|
2966
|
+
:auth_names => auth_names,
|
|
2967
|
+
:return_type => return_type
|
|
2968
|
+
)
|
|
2969
|
+
|
|
2970
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2971
|
+
if @api_client.config.debugging
|
|
2972
|
+
@api_client.config.logger.debug "API called: CoreApi#core_object_attributes_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2973
|
+
end
|
|
2974
|
+
return data, status_code, headers
|
|
2975
|
+
end
|
|
2976
|
+
|
|
2977
|
+
# @param attribute_id [String] A UUID string identifying this Object Attribute.
|
|
2978
|
+
# @param [Hash] opts the optional parameters
|
|
2979
|
+
# @return [ObjectAttribute]
|
|
2980
|
+
def core_object_attributes_retrieve(attribute_id, opts = {})
|
|
2981
|
+
data, _status_code, _headers = core_object_attributes_retrieve_with_http_info(attribute_id, opts)
|
|
2982
|
+
data
|
|
2983
|
+
end
|
|
2984
|
+
|
|
2985
|
+
# @param attribute_id [String] A UUID string identifying this Object Attribute.
|
|
2986
|
+
# @param [Hash] opts the optional parameters
|
|
2987
|
+
# @return [Array<(ObjectAttribute, Integer, Hash)>] ObjectAttribute data, response status code and response headers
|
|
2988
|
+
def core_object_attributes_retrieve_with_http_info(attribute_id, opts = {})
|
|
2989
|
+
if @api_client.config.debugging
|
|
2990
|
+
@api_client.config.logger.debug 'Calling API: CoreApi.core_object_attributes_retrieve ...'
|
|
2991
|
+
end
|
|
2992
|
+
# verify the required parameter 'attribute_id' is set
|
|
2993
|
+
if @api_client.config.client_side_validation && attribute_id.nil?
|
|
2994
|
+
fail ArgumentError, "Missing the required parameter 'attribute_id' when calling CoreApi.core_object_attributes_retrieve"
|
|
2995
|
+
end
|
|
2996
|
+
# resource path
|
|
2997
|
+
local_var_path = '/core/object_attributes/{attribute_id}/'.sub('{attribute_id}', CGI.escape(attribute_id.to_s))
|
|
2998
|
+
|
|
2999
|
+
# query parameters
|
|
3000
|
+
query_params = opts[:query_params] || {}
|
|
3001
|
+
|
|
3002
|
+
# header parameters
|
|
3003
|
+
header_params = opts[:header_params] || {}
|
|
3004
|
+
# HTTP header 'Accept' (if needed)
|
|
3005
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3006
|
+
|
|
3007
|
+
# form parameters
|
|
3008
|
+
form_params = opts[:form_params] || {}
|
|
3009
|
+
|
|
3010
|
+
# http body (model)
|
|
3011
|
+
post_body = opts[:debug_body]
|
|
3012
|
+
|
|
3013
|
+
# return_type
|
|
3014
|
+
return_type = opts[:debug_return_type] || 'ObjectAttribute'
|
|
3015
|
+
|
|
3016
|
+
# auth_names
|
|
3017
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
3018
|
+
|
|
3019
|
+
new_options = opts.merge(
|
|
3020
|
+
:operation => :"CoreApi.core_object_attributes_retrieve",
|
|
3021
|
+
:header_params => header_params,
|
|
3022
|
+
:query_params => query_params,
|
|
3023
|
+
:form_params => form_params,
|
|
3024
|
+
:body => post_body,
|
|
3025
|
+
:auth_names => auth_names,
|
|
3026
|
+
:return_type => return_type
|
|
3027
|
+
)
|
|
3028
|
+
|
|
3029
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3030
|
+
if @api_client.config.debugging
|
|
3031
|
+
@api_client.config.logger.debug "API called: CoreApi#core_object_attributes_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3032
|
+
end
|
|
3033
|
+
return data, status_code, headers
|
|
3034
|
+
end
|
|
3035
|
+
|
|
3036
|
+
# @param attribute_id [String] A UUID string identifying this Object Attribute.
|
|
3037
|
+
# @param object_attribute_request [ObjectAttributeRequest]
|
|
3038
|
+
# @param [Hash] opts the optional parameters
|
|
3039
|
+
# @return [ObjectAttribute]
|
|
3040
|
+
def core_object_attributes_update(attribute_id, object_attribute_request, opts = {})
|
|
3041
|
+
data, _status_code, _headers = core_object_attributes_update_with_http_info(attribute_id, object_attribute_request, opts)
|
|
3042
|
+
data
|
|
3043
|
+
end
|
|
3044
|
+
|
|
3045
|
+
# @param attribute_id [String] A UUID string identifying this Object Attribute.
|
|
3046
|
+
# @param object_attribute_request [ObjectAttributeRequest]
|
|
3047
|
+
# @param [Hash] opts the optional parameters
|
|
3048
|
+
# @return [Array<(ObjectAttribute, Integer, Hash)>] ObjectAttribute data, response status code and response headers
|
|
3049
|
+
def core_object_attributes_update_with_http_info(attribute_id, object_attribute_request, opts = {})
|
|
3050
|
+
if @api_client.config.debugging
|
|
3051
|
+
@api_client.config.logger.debug 'Calling API: CoreApi.core_object_attributes_update ...'
|
|
3052
|
+
end
|
|
3053
|
+
# verify the required parameter 'attribute_id' is set
|
|
3054
|
+
if @api_client.config.client_side_validation && attribute_id.nil?
|
|
3055
|
+
fail ArgumentError, "Missing the required parameter 'attribute_id' when calling CoreApi.core_object_attributes_update"
|
|
3056
|
+
end
|
|
3057
|
+
# verify the required parameter 'object_attribute_request' is set
|
|
3058
|
+
if @api_client.config.client_side_validation && object_attribute_request.nil?
|
|
3059
|
+
fail ArgumentError, "Missing the required parameter 'object_attribute_request' when calling CoreApi.core_object_attributes_update"
|
|
3060
|
+
end
|
|
3061
|
+
# resource path
|
|
3062
|
+
local_var_path = '/core/object_attributes/{attribute_id}/'.sub('{attribute_id}', CGI.escape(attribute_id.to_s))
|
|
3063
|
+
|
|
3064
|
+
# query parameters
|
|
3065
|
+
query_params = opts[:query_params] || {}
|
|
3066
|
+
|
|
3067
|
+
# header parameters
|
|
3068
|
+
header_params = opts[:header_params] || {}
|
|
3069
|
+
# HTTP header 'Accept' (if needed)
|
|
3070
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3071
|
+
# HTTP header 'Content-Type'
|
|
3072
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
3073
|
+
if !content_type.nil?
|
|
3074
|
+
header_params['Content-Type'] = content_type
|
|
3075
|
+
end
|
|
3076
|
+
|
|
3077
|
+
# form parameters
|
|
3078
|
+
form_params = opts[:form_params] || {}
|
|
3079
|
+
|
|
3080
|
+
# http body (model)
|
|
3081
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(object_attribute_request)
|
|
3082
|
+
|
|
3083
|
+
# return_type
|
|
3084
|
+
return_type = opts[:debug_return_type] || 'ObjectAttribute'
|
|
3085
|
+
|
|
3086
|
+
# auth_names
|
|
3087
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
3088
|
+
|
|
3089
|
+
new_options = opts.merge(
|
|
3090
|
+
:operation => :"CoreApi.core_object_attributes_update",
|
|
3091
|
+
:header_params => header_params,
|
|
3092
|
+
:query_params => query_params,
|
|
3093
|
+
:form_params => form_params,
|
|
3094
|
+
:body => post_body,
|
|
3095
|
+
:auth_names => auth_names,
|
|
3096
|
+
:return_type => return_type
|
|
3097
|
+
)
|
|
3098
|
+
|
|
3099
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3100
|
+
if @api_client.config.debugging
|
|
3101
|
+
@api_client.config.logger.debug "API called: CoreApi#core_object_attributes_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3102
|
+
end
|
|
3103
|
+
return data, status_code, headers
|
|
3104
|
+
end
|
|
3105
|
+
|
|
2547
3106
|
# Token Viewset
|
|
2548
3107
|
# @param token_request [TokenRequest]
|
|
2549
3108
|
# @param [Hash] opts the optional parameters
|
|
@@ -4662,6 +5221,71 @@ module Authentik::Api
|
|
|
4662
5221
|
return data, status_code, headers
|
|
4663
5222
|
end
|
|
4664
5223
|
|
|
5224
|
+
# Start browser user switching.
|
|
5225
|
+
# @param [Hash] opts the optional parameters
|
|
5226
|
+
# @option opts [String] :_next
|
|
5227
|
+
# @option opts [UserSwitchRequest] :user_switch_request
|
|
5228
|
+
# @return [UserSwitchResponse]
|
|
5229
|
+
def core_users_switch_create(opts = {})
|
|
5230
|
+
data, _status_code, _headers = core_users_switch_create_with_http_info(opts)
|
|
5231
|
+
data
|
|
5232
|
+
end
|
|
5233
|
+
|
|
5234
|
+
# Start browser user switching.
|
|
5235
|
+
# @param [Hash] opts the optional parameters
|
|
5236
|
+
# @option opts [String] :_next
|
|
5237
|
+
# @option opts [UserSwitchRequest] :user_switch_request
|
|
5238
|
+
# @return [Array<(UserSwitchResponse, Integer, Hash)>] UserSwitchResponse data, response status code and response headers
|
|
5239
|
+
def core_users_switch_create_with_http_info(opts = {})
|
|
5240
|
+
if @api_client.config.debugging
|
|
5241
|
+
@api_client.config.logger.debug 'Calling API: CoreApi.core_users_switch_create ...'
|
|
5242
|
+
end
|
|
5243
|
+
# resource path
|
|
5244
|
+
local_var_path = '/core/users/switch/'
|
|
5245
|
+
|
|
5246
|
+
# query parameters
|
|
5247
|
+
query_params = opts[:query_params] || {}
|
|
5248
|
+
query_params[:'next'] = opts[:'_next'] if !opts[:'_next'].nil?
|
|
5249
|
+
|
|
5250
|
+
# header parameters
|
|
5251
|
+
header_params = opts[:header_params] || {}
|
|
5252
|
+
# HTTP header 'Accept' (if needed)
|
|
5253
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
5254
|
+
# HTTP header 'Content-Type'
|
|
5255
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5256
|
+
if !content_type.nil?
|
|
5257
|
+
header_params['Content-Type'] = content_type
|
|
5258
|
+
end
|
|
5259
|
+
|
|
5260
|
+
# form parameters
|
|
5261
|
+
form_params = opts[:form_params] || {}
|
|
5262
|
+
|
|
5263
|
+
# http body (model)
|
|
5264
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'user_switch_request'])
|
|
5265
|
+
|
|
5266
|
+
# return_type
|
|
5267
|
+
return_type = opts[:debug_return_type] || 'UserSwitchResponse'
|
|
5268
|
+
|
|
5269
|
+
# auth_names
|
|
5270
|
+
auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
|
|
5271
|
+
|
|
5272
|
+
new_options = opts.merge(
|
|
5273
|
+
:operation => :"CoreApi.core_users_switch_create",
|
|
5274
|
+
:header_params => header_params,
|
|
5275
|
+
:query_params => query_params,
|
|
5276
|
+
:form_params => form_params,
|
|
5277
|
+
:body => post_body,
|
|
5278
|
+
:auth_names => auth_names,
|
|
5279
|
+
:return_type => return_type
|
|
5280
|
+
)
|
|
5281
|
+
|
|
5282
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
5283
|
+
if @api_client.config.debugging
|
|
5284
|
+
@api_client.config.logger.debug "API called: CoreApi#core_users_switch_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5285
|
+
end
|
|
5286
|
+
return data, status_code, headers
|
|
5287
|
+
end
|
|
5288
|
+
|
|
4665
5289
|
# User Viewset
|
|
4666
5290
|
# @param id [Integer] A unique integer value identifying this User.
|
|
4667
5291
|
# @param user_request [UserRequest]
|