authentik-api 2026.2.2 → 2026.5.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.md +3 -3
- data/README_API.md +67 -15
- data/lib/authentik/api/api/admin_api.rb +5 -13
- data/lib/authentik/api/api/authenticators_api.rb +60 -60
- data/lib/authentik/api/api/core_api.rb +188 -63
- data/lib/authentik/api/api/crypto_api.rb +9 -13
- data/lib/authentik/api/api/endpoints_api.rb +1600 -679
- data/lib/authentik/api/api/enterprise_api.rb +5 -5
- data/lib/authentik/api/api/events_api.rb +141 -58
- data/lib/authentik/api/api/flows_api.rb +24 -106
- data/lib/authentik/api/api/lifecycle_api.rb +27 -18
- data/lib/authentik/api/api/managed_api.rb +79 -6
- data/lib/authentik/api/api/oauth2_api.rb +9 -9
- data/lib/authentik/api/api/outposts_api.rb +22 -22
- data/lib/authentik/api/api/policies_api.rb +57 -58
- data/lib/authentik/api/api/propertymappings_api.rb +79 -79
- data/lib/authentik/api/api/providers_api.rb +134 -196
- data/lib/authentik/api/api/rac_api.rb +10 -10
- data/lib/authentik/api/api/rbac_api.rb +15 -20
- data/lib/authentik/api/api/reports_api.rb +2 -2
- data/lib/authentik/api/api/schema_api.rb +4 -12
- data/lib/authentik/api/api/sources_api.rb +158 -219
- data/lib/authentik/api/api/ssf_api.rb +64 -7
- data/lib/authentik/api/api/stages_api.rb +723 -244
- data/lib/authentik/api/api/tasks_api.rb +11 -19
- data/lib/authentik/api/api/tenants_api.rb +10 -10
- data/lib/authentik/api/models/account_lockdown_stage.rb +372 -0
- data/lib/authentik/api/models/account_lockdown_stage_request.rb +219 -0
- data/lib/authentik/api/models/app_enum.rb +3 -2
- data/lib/authentik/api/models/apple_independent_secure_enclave.rb +246 -0
- data/lib/authentik/api/models/apple_independent_secure_enclave_request.rb +273 -0
- data/lib/authentik/api/models/application.rb +14 -4
- data/lib/authentik/api/models/application_request.rb +14 -4
- data/lib/authentik/api/models/authenticated_session_user_agent_device.rb +2 -30
- data/lib/authentik/api/models/authenticated_session_user_agent_os.rb +4 -60
- data/lib/authentik/api/models/authentication_enum.rb +2 -1
- data/lib/authentik/api/models/authenticator_validate_stage.rb +51 -4
- data/lib/authentik/api/models/authenticator_validate_stage_request.rb +51 -4
- data/lib/authentik/api/models/authenticator_web_authn_stage.rb +23 -2
- data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +23 -2
- data/lib/authentik/api/models/{flow_import_result.rb → blueprint_import_result.rb} +4 -4
- data/lib/authentik/api/models/brand.rb +11 -1
- data/lib/authentik/api/models/brand_request.rb +11 -1
- data/lib/authentik/api/models/certificate_key_pair.rb +1 -1
- data/lib/authentik/api/models/certificate_key_pair_key_type_enum.rb +37 -0
- data/lib/authentik/api/models/compatibility_mode_enum.rb +3 -1
- data/lib/authentik/api/models/{consent_stage_mode_enum.rb → consent_mode_enum.rb} +3 -3
- data/lib/authentik/api/models/consent_stage.rb +1 -1
- data/lib/authentik/api/models/consent_stage_request.rb +1 -1
- data/lib/authentik/api/models/country_code_enum.rb +3 -3
- data/lib/authentik/api/models/current_brand.rb +10 -1
- data/lib/authentik/api/models/current_brand_flags.rb +31 -27
- data/lib/authentik/api/models/delivery_method_enum.rb +3 -1
- data/lib/authentik/api/models/device_user_binding.rb +3 -45
- data/lib/authentik/api/models/event_matcher_policy.rb +15 -5
- data/lib/authentik/api/models/event_matcher_policy_request.rb +30 -5
- data/lib/authentik/api/models/event_stats.rb +187 -0
- data/lib/authentik/api/models/event_volume.rb +1 -1
- data/lib/authentik/api/models/events_requested_enum.rb +7 -1
- data/lib/authentik/api/models/force_binding_enum.rb +34 -0
- data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
- data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
- data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
- data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
- data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
- data/lib/authentik/api/models/grant_types_enum.rb +39 -0
- data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
- data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
- data/lib/authentik/api/models/key_type_enum.rb +3 -3
- data/lib/authentik/api/models/lang_enum.rb +131 -0
- data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
- data/lib/authentik/api/models/logout_url.rb +209 -0
- data/lib/authentik/api/models/model_enum.rb +3 -1
- data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
- data/lib/authentik/api/models/notification_rule.rb +1 -15
- data/lib/authentik/api/models/notification_transport.rb +13 -2
- data/lib/authentik/api/models/notification_transport_request.rb +13 -2
- data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
- data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
- data/lib/authentik/api/models/operating_system.rb +0 -17
- data/lib/authentik/api/models/operating_system_request.rb +2 -9
- data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
- data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
- data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
- data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
- data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
- data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
- data/lib/authentik/api/models/patched_application_request.rb +14 -4
- data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
- data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
- data/lib/authentik/api/models/patched_brand_request.rb +11 -1
- data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
- data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
- data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
- data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
- data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
- data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
- data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
- data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
- data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
- data/lib/authentik/api/models/policy_binding.rb +3 -45
- data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
- data/lib/authentik/api/models/redirect_uri.rb +13 -4
- data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
- data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
- data/lib/authentik/api/models/related_rule.rb +250 -0
- data/lib/authentik/api/models/saml_metadata.rb +0 -2
- data/lib/authentik/api/models/saml_provider.rb +98 -8
- data/lib/authentik/api/models/saml_provider_request.rb +17 -27
- data/lib/authentik/api/models/saml_source.rb +11 -1
- data/lib/authentik/api/models/saml_source_request.rb +11 -1
- data/lib/authentik/api/models/ssf_provider.rb +41 -4
- data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
- data/lib/authentik/api/models/ssf_stream.rb +10 -1
- data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
- data/lib/authentik/api/models/task.rb +1 -1
- data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
- data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
- data/lib/authentik/api/models/usage_enum.rb +33 -0
- data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
- data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
- data/lib/authentik/api/models/vendor_enum.rb +2 -1
- data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
- data/lib/authentik/api/version.rb +1 -1
- data/spec/api/admin_api_spec.rb +2 -2
- data/spec/api/core_api_spec.rb +27 -3
- data/spec/api/crypto_api_spec.rb +1 -1
- data/spec/api/endpoints_api_spec.rb +167 -0
- data/spec/api/events_api_spec.rb +33 -7
- data/spec/api/flows_api_spec.rb +4 -16
- data/spec/api/lifecycle_api_spec.rb +6 -3
- data/spec/api/managed_api_spec.rb +13 -0
- data/spec/api/policies_api_spec.rb +2 -1
- data/spec/api/providers_api_spec.rb +21 -19
- data/spec/api/schema_api_spec.rb +2 -2
- data/spec/api/sources_api_spec.rb +17 -16
- data/spec/api/ssf_api_spec.rb +12 -1
- data/spec/api/stages_api_spec.rb +117 -18
- data/spec/api/tasks_api_spec.rb +2 -2
- data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
- data/spec/models/account_lockdown_stage_spec.rb +96 -0
- data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
- data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
- data/spec/models/application_request_spec.rb +6 -0
- data/spec/models/application_spec.rb +6 -0
- data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
- data/spec/models/authenticator_validate_stage_spec.rb +30 -0
- data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
- data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
- data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
- data/spec/models/brand_request_spec.rb +6 -0
- data/spec/models/brand_spec.rb +6 -0
- data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
- data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
- data/spec/models/current_brand_flags_spec.rb +2 -2
- data/spec/models/current_brand_spec.rb +6 -0
- data/spec/models/event_matcher_policy_request_spec.rb +6 -0
- data/spec/models/event_matcher_policy_spec.rb +6 -0
- data/spec/models/event_stats_spec.rb +36 -0
- data/spec/models/force_binding_enum_spec.rb +24 -0
- data/spec/models/format_enum_spec.rb +24 -0
- data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
- data/spec/models/google_chrome_connector_request_spec.rb +48 -0
- data/spec/models/google_chrome_connector_spec.rb +78 -0
- data/spec/models/grant_types_enum_spec.rb +24 -0
- data/spec/models/group_ldap_source_connection_spec.rb +6 -0
- data/spec/models/invitation_send_email_request_spec.rb +48 -0
- data/spec/models/lang_enum_spec.rb +24 -0
- data/spec/models/lifecycle_iteration_spec.rb +2 -14
- data/spec/models/logout_url_spec.rb +60 -0
- data/spec/models/native_logout_challenge_spec.rb +13 -7
- data/spec/models/notification_transport_request_spec.rb +6 -0
- data/spec/models/notification_transport_spec.rb +6 -0
- data/spec/models/o_auth2_provider_request_spec.rb +6 -0
- data/spec/models/o_auth2_provider_spec.rb +6 -0
- data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
- data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
- data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
- data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
- data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
- data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
- data/spec/models/patched_application_request_spec.rb +6 -0
- data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
- data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
- data/spec/models/patched_brand_request_spec.rb +6 -0
- data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
- data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
- data/spec/models/patched_notification_transport_request_spec.rb +6 -0
- data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
- data/spec/models/patched_saml_provider_request_spec.rb +7 -1
- data/spec/models/patched_saml_source_request_spec.rb +6 -0
- data/spec/models/patched_settings_request_flags_spec.rb +2 -2
- data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
- data/spec/models/redirect_uri_request_spec.rb +6 -0
- data/spec/models/redirect_uri_spec.rb +6 -0
- data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
- data/spec/models/related_rule_spec.rb +54 -0
- data/spec/models/saml_provider_request_spec.rb +7 -1
- data/spec/models/saml_provider_spec.rb +25 -1
- data/spec/models/saml_source_request_spec.rb +6 -0
- data/spec/models/saml_source_spec.rb +6 -0
- data/spec/models/ssf_provider_request_spec.rb +6 -0
- data/spec/models/ssf_provider_spec.rb +12 -0
- data/spec/models/ssf_stream_spec.rb +6 -0
- data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
- data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
- data/spec/models/transport_mode_enum_spec.rb +24 -0
- data/spec/models/usage_enum_spec.rb +24 -0
- data/spec/models/user_account_lockdown_request_spec.rb +30 -0
- data/spec/models/user_ldap_source_connection_spec.rb +6 -0
- data/spec/models/user_password_hash_set_request_spec.rb +30 -0
- data/spec/models/web_authn_hint_enum_spec.rb +24 -0
- data/spec/zeitwerk_spec.rb +34 -0
- metadata +113 -32
- data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
|
@@ -101,7 +101,7 @@ module Authentik::Api
|
|
|
101
101
|
fail ArgumentError, "Missing the required parameter 'fsb_uuid' when calling FlowsApi.flows_bindings_destroy"
|
|
102
102
|
end
|
|
103
103
|
# resource path
|
|
104
|
-
local_var_path = '/flows/bindings/{fsb_uuid}/'.sub('{
|
|
104
|
+
local_var_path = '/flows/bindings/{fsb_uuid}/'.sub('{fsb_uuid}', CGI.escape(fsb_uuid.to_s))
|
|
105
105
|
|
|
106
106
|
# query parameters
|
|
107
107
|
query_params = opts[:query_params] || {}
|
|
@@ -144,14 +144,14 @@ module Authentik::Api
|
|
|
144
144
|
# @param [Hash] opts the optional parameters
|
|
145
145
|
# @option opts [Boolean] :evaluate_on_plan
|
|
146
146
|
# @option opts [String] :fsb_uuid
|
|
147
|
-
# @option opts [
|
|
147
|
+
# @option opts [InvalidResponseActionEnum] :invalid_response_action
|
|
148
148
|
# @option opts [Integer] :order
|
|
149
149
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
150
150
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
151
151
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
152
152
|
# @option opts [String] :pbm_uuid
|
|
153
153
|
# @option opts [Array<String>] :policies
|
|
154
|
-
# @option opts [
|
|
154
|
+
# @option opts [PolicyEngineMode] :policy_engine_mode
|
|
155
155
|
# @option opts [Boolean] :re_evaluate_policies
|
|
156
156
|
# @option opts [String] :search A search term.
|
|
157
157
|
# @option opts [String] :stage
|
|
@@ -166,14 +166,14 @@ module Authentik::Api
|
|
|
166
166
|
# @param [Hash] opts the optional parameters
|
|
167
167
|
# @option opts [Boolean] :evaluate_on_plan
|
|
168
168
|
# @option opts [String] :fsb_uuid
|
|
169
|
-
# @option opts [
|
|
169
|
+
# @option opts [InvalidResponseActionEnum] :invalid_response_action
|
|
170
170
|
# @option opts [Integer] :order
|
|
171
171
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
172
172
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
173
173
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
174
174
|
# @option opts [String] :pbm_uuid
|
|
175
175
|
# @option opts [Array<String>] :policies
|
|
176
|
-
# @option opts [
|
|
176
|
+
# @option opts [PolicyEngineMode] :policy_engine_mode
|
|
177
177
|
# @option opts [Boolean] :re_evaluate_policies
|
|
178
178
|
# @option opts [String] :search A search term.
|
|
179
179
|
# @option opts [String] :stage
|
|
@@ -183,14 +183,6 @@ module Authentik::Api
|
|
|
183
183
|
if @api_client.config.debugging
|
|
184
184
|
@api_client.config.logger.debug 'Calling API: FlowsApi.flows_bindings_list ...'
|
|
185
185
|
end
|
|
186
|
-
allowable_values = ["restart", "restart_with_context", "retry"]
|
|
187
|
-
if @api_client.config.client_side_validation && opts[:'invalid_response_action'] && !allowable_values.include?(opts[:'invalid_response_action'])
|
|
188
|
-
fail ArgumentError, "invalid value for \"invalid_response_action\", must be one of #{allowable_values}"
|
|
189
|
-
end
|
|
190
|
-
allowable_values = ["all", "any"]
|
|
191
|
-
if @api_client.config.client_side_validation && opts[:'policy_engine_mode'] && !allowable_values.include?(opts[:'policy_engine_mode'])
|
|
192
|
-
fail ArgumentError, "invalid value for \"policy_engine_mode\", must be one of #{allowable_values}"
|
|
193
|
-
end
|
|
194
186
|
# resource path
|
|
195
187
|
local_var_path = '/flows/bindings/'
|
|
196
188
|
|
|
@@ -269,7 +261,7 @@ module Authentik::Api
|
|
|
269
261
|
fail ArgumentError, "Missing the required parameter 'fsb_uuid' when calling FlowsApi.flows_bindings_partial_update"
|
|
270
262
|
end
|
|
271
263
|
# resource path
|
|
272
|
-
local_var_path = '/flows/bindings/{fsb_uuid}/'.sub('{
|
|
264
|
+
local_var_path = '/flows/bindings/{fsb_uuid}/'.sub('{fsb_uuid}', CGI.escape(fsb_uuid.to_s))
|
|
273
265
|
|
|
274
266
|
# query parameters
|
|
275
267
|
query_params = opts[:query_params] || {}
|
|
@@ -335,7 +327,7 @@ module Authentik::Api
|
|
|
335
327
|
fail ArgumentError, "Missing the required parameter 'fsb_uuid' when calling FlowsApi.flows_bindings_retrieve"
|
|
336
328
|
end
|
|
337
329
|
# resource path
|
|
338
|
-
local_var_path = '/flows/bindings/{fsb_uuid}/'.sub('{
|
|
330
|
+
local_var_path = '/flows/bindings/{fsb_uuid}/'.sub('{fsb_uuid}', CGI.escape(fsb_uuid.to_s))
|
|
339
331
|
|
|
340
332
|
# query parameters
|
|
341
333
|
query_params = opts[:query_params] || {}
|
|
@@ -402,7 +394,7 @@ module Authentik::Api
|
|
|
402
394
|
fail ArgumentError, "Missing the required parameter 'flow_stage_binding_request' when calling FlowsApi.flows_bindings_update"
|
|
403
395
|
end
|
|
404
396
|
# resource path
|
|
405
|
-
local_var_path = '/flows/bindings/{fsb_uuid}/'.sub('{
|
|
397
|
+
local_var_path = '/flows/bindings/{fsb_uuid}/'.sub('{fsb_uuid}', CGI.escape(fsb_uuid.to_s))
|
|
406
398
|
|
|
407
399
|
# query parameters
|
|
408
400
|
query_params = opts[:query_params] || {}
|
|
@@ -468,7 +460,7 @@ module Authentik::Api
|
|
|
468
460
|
fail ArgumentError, "Missing the required parameter 'fsb_uuid' when calling FlowsApi.flows_bindings_used_by_list"
|
|
469
461
|
end
|
|
470
462
|
# resource path
|
|
471
|
-
local_var_path = '/flows/bindings/{fsb_uuid}/used_by/'.sub('{
|
|
463
|
+
local_var_path = '/flows/bindings/{fsb_uuid}/used_by/'.sub('{fsb_uuid}', CGI.escape(fsb_uuid.to_s))
|
|
472
464
|
|
|
473
465
|
# query parameters
|
|
474
466
|
query_params = opts[:query_params] || {}
|
|
@@ -535,7 +527,7 @@ module Authentik::Api
|
|
|
535
527
|
fail ArgumentError, "Missing the required parameter 'query' when calling FlowsApi.flows_executor_get"
|
|
536
528
|
end
|
|
537
529
|
# resource path
|
|
538
|
-
local_var_path = '/flows/executor/{flow_slug}/'.sub('{
|
|
530
|
+
local_var_path = '/flows/executor/{flow_slug}/'.sub('{flow_slug}', CGI.escape(flow_slug.to_s))
|
|
539
531
|
|
|
540
532
|
# query parameters
|
|
541
533
|
query_params = opts[:query_params] || {}
|
|
@@ -605,7 +597,7 @@ module Authentik::Api
|
|
|
605
597
|
fail ArgumentError, "Missing the required parameter 'query' when calling FlowsApi.flows_executor_solve"
|
|
606
598
|
end
|
|
607
599
|
# resource path
|
|
608
|
-
local_var_path = '/flows/executor/{flow_slug}/'.sub('{
|
|
600
|
+
local_var_path = '/flows/executor/{flow_slug}/'.sub('{flow_slug}', CGI.escape(flow_slug.to_s))
|
|
609
601
|
|
|
610
602
|
# query parameters
|
|
611
603
|
query_params = opts[:query_params] || {}
|
|
@@ -672,7 +664,7 @@ module Authentik::Api
|
|
|
672
664
|
fail ArgumentError, "Missing the required parameter 'flow_slug' when calling FlowsApi.flows_inspector_get"
|
|
673
665
|
end
|
|
674
666
|
# resource path
|
|
675
|
-
local_var_path = '/flows/inspector/{flow_slug}/'.sub('{
|
|
667
|
+
local_var_path = '/flows/inspector/{flow_slug}/'.sub('{flow_slug}', CGI.escape(flow_slug.to_s))
|
|
676
668
|
|
|
677
669
|
# query parameters
|
|
678
670
|
query_params = opts[:query_params] || {}
|
|
@@ -909,7 +901,7 @@ module Authentik::Api
|
|
|
909
901
|
fail ArgumentError, "Missing the required parameter 'slug' when calling FlowsApi.flows_instances_destroy"
|
|
910
902
|
end
|
|
911
903
|
# resource path
|
|
912
|
-
local_var_path = '/flows/instances/{slug}/'.sub('{
|
|
904
|
+
local_var_path = '/flows/instances/{slug}/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
913
905
|
|
|
914
906
|
# query parameters
|
|
915
907
|
query_params = opts[:query_params] || {}
|
|
@@ -970,7 +962,7 @@ module Authentik::Api
|
|
|
970
962
|
fail ArgumentError, "Missing the required parameter 'slug' when calling FlowsApi.flows_instances_diagram_retrieve"
|
|
971
963
|
end
|
|
972
964
|
# resource path
|
|
973
|
-
local_var_path = '/flows/instances/{slug}/diagram/'.sub('{
|
|
965
|
+
local_var_path = '/flows/instances/{slug}/diagram/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
974
966
|
|
|
975
967
|
# query parameters
|
|
976
968
|
query_params = opts[:query_params] || {}
|
|
@@ -1031,7 +1023,7 @@ module Authentik::Api
|
|
|
1031
1023
|
fail ArgumentError, "Missing the required parameter 'slug' when calling FlowsApi.flows_instances_execute_retrieve"
|
|
1032
1024
|
end
|
|
1033
1025
|
# resource path
|
|
1034
|
-
local_var_path = '/flows/instances/{slug}/execute/'.sub('{
|
|
1026
|
+
local_var_path = '/flows/instances/{slug}/execute/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
1035
1027
|
|
|
1036
1028
|
# query parameters
|
|
1037
1029
|
query_params = opts[:query_params] || {}
|
|
@@ -1092,7 +1084,7 @@ module Authentik::Api
|
|
|
1092
1084
|
fail ArgumentError, "Missing the required parameter 'slug' when calling FlowsApi.flows_instances_export_retrieve"
|
|
1093
1085
|
end
|
|
1094
1086
|
# resource path
|
|
1095
|
-
local_var_path = '/flows/instances/{slug}/export/'.sub('{
|
|
1087
|
+
local_var_path = '/flows/instances/{slug}/export/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
1096
1088
|
|
|
1097
1089
|
# query parameters
|
|
1098
1090
|
query_params = opts[:query_params] || {}
|
|
@@ -1131,76 +1123,10 @@ module Authentik::Api
|
|
|
1131
1123
|
return data, status_code, headers
|
|
1132
1124
|
end
|
|
1133
1125
|
|
|
1134
|
-
# Import flow from .yaml file
|
|
1135
|
-
# @param [Hash] opts the optional parameters
|
|
1136
|
-
# @option opts [File] :file
|
|
1137
|
-
# @option opts [Boolean] :clear (default to false)
|
|
1138
|
-
# @return [FlowImportResult]
|
|
1139
|
-
def flows_instances_import_create(opts = {})
|
|
1140
|
-
data, _status_code, _headers = flows_instances_import_create_with_http_info(opts)
|
|
1141
|
-
data
|
|
1142
|
-
end
|
|
1143
|
-
|
|
1144
|
-
# Import flow from .yaml file
|
|
1145
|
-
# @param [Hash] opts the optional parameters
|
|
1146
|
-
# @option opts [File] :file
|
|
1147
|
-
# @option opts [Boolean] :clear (default to false)
|
|
1148
|
-
# @return [Array<(FlowImportResult, Integer, Hash)>] FlowImportResult data, response status code and response headers
|
|
1149
|
-
def flows_instances_import_create_with_http_info(opts = {})
|
|
1150
|
-
if @api_client.config.debugging
|
|
1151
|
-
@api_client.config.logger.debug 'Calling API: FlowsApi.flows_instances_import_create ...'
|
|
1152
|
-
end
|
|
1153
|
-
# resource path
|
|
1154
|
-
local_var_path = '/flows/instances/import/'
|
|
1155
|
-
|
|
1156
|
-
# query parameters
|
|
1157
|
-
query_params = opts[:query_params] || {}
|
|
1158
|
-
|
|
1159
|
-
# header parameters
|
|
1160
|
-
header_params = opts[:header_params] || {}
|
|
1161
|
-
# HTTP header 'Accept' (if needed)
|
|
1162
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1163
|
-
# HTTP header 'Content-Type'
|
|
1164
|
-
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
1165
|
-
if !content_type.nil?
|
|
1166
|
-
header_params['Content-Type'] = content_type
|
|
1167
|
-
end
|
|
1168
|
-
|
|
1169
|
-
# form parameters
|
|
1170
|
-
form_params = opts[:form_params] || {}
|
|
1171
|
-
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
1172
|
-
form_params['clear'] = opts[:'clear'] if !opts[:'clear'].nil?
|
|
1173
|
-
|
|
1174
|
-
# http body (model)
|
|
1175
|
-
post_body = opts[:debug_body]
|
|
1176
|
-
|
|
1177
|
-
# return_type
|
|
1178
|
-
return_type = opts[:debug_return_type] || 'FlowImportResult'
|
|
1179
|
-
|
|
1180
|
-
# auth_names
|
|
1181
|
-
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1182
|
-
|
|
1183
|
-
new_options = opts.merge(
|
|
1184
|
-
:operation => :"FlowsApi.flows_instances_import_create",
|
|
1185
|
-
:header_params => header_params,
|
|
1186
|
-
:query_params => query_params,
|
|
1187
|
-
:form_params => form_params,
|
|
1188
|
-
:body => post_body,
|
|
1189
|
-
:auth_names => auth_names,
|
|
1190
|
-
:return_type => return_type
|
|
1191
|
-
)
|
|
1192
|
-
|
|
1193
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1194
|
-
if @api_client.config.debugging
|
|
1195
|
-
@api_client.config.logger.debug "API called: FlowsApi#flows_instances_import_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1196
|
-
end
|
|
1197
|
-
return data, status_code, headers
|
|
1198
|
-
end
|
|
1199
|
-
|
|
1200
1126
|
# Flow Viewset
|
|
1201
1127
|
# @param [Hash] opts the optional parameters
|
|
1202
|
-
# @option opts [
|
|
1203
|
-
# @option opts [
|
|
1128
|
+
# @option opts [DeniedActionEnum] :denied_action
|
|
1129
|
+
# @option opts [FlowDesignationEnum] :designation
|
|
1204
1130
|
# @option opts [String] :flow_uuid
|
|
1205
1131
|
# @option opts [String] :name
|
|
1206
1132
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
@@ -1216,8 +1142,8 @@ module Authentik::Api
|
|
|
1216
1142
|
|
|
1217
1143
|
# Flow Viewset
|
|
1218
1144
|
# @param [Hash] opts the optional parameters
|
|
1219
|
-
# @option opts [
|
|
1220
|
-
# @option opts [
|
|
1145
|
+
# @option opts [DeniedActionEnum] :denied_action
|
|
1146
|
+
# @option opts [FlowDesignationEnum] :designation
|
|
1221
1147
|
# @option opts [String] :flow_uuid
|
|
1222
1148
|
# @option opts [String] :name
|
|
1223
1149
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
@@ -1230,14 +1156,6 @@ module Authentik::Api
|
|
|
1230
1156
|
if @api_client.config.debugging
|
|
1231
1157
|
@api_client.config.logger.debug 'Calling API: FlowsApi.flows_instances_list ...'
|
|
1232
1158
|
end
|
|
1233
|
-
allowable_values = ["continue", "message", "message_continue"]
|
|
1234
|
-
if @api_client.config.client_side_validation && opts[:'denied_action'] && !allowable_values.include?(opts[:'denied_action'])
|
|
1235
|
-
fail ArgumentError, "invalid value for \"denied_action\", must be one of #{allowable_values}"
|
|
1236
|
-
end
|
|
1237
|
-
allowable_values = ["authentication", "authorization", "enrollment", "invalidation", "recovery", "stage_configuration", "unenrollment"]
|
|
1238
|
-
if @api_client.config.client_side_validation && opts[:'designation'] && !allowable_values.include?(opts[:'designation'])
|
|
1239
|
-
fail ArgumentError, "invalid value for \"designation\", must be one of #{allowable_values}"
|
|
1240
|
-
end
|
|
1241
1159
|
# resource path
|
|
1242
1160
|
local_var_path = '/flows/instances/'
|
|
1243
1161
|
|
|
@@ -1311,7 +1229,7 @@ module Authentik::Api
|
|
|
1311
1229
|
fail ArgumentError, "Missing the required parameter 'slug' when calling FlowsApi.flows_instances_partial_update"
|
|
1312
1230
|
end
|
|
1313
1231
|
# resource path
|
|
1314
|
-
local_var_path = '/flows/instances/{slug}/'.sub('{
|
|
1232
|
+
local_var_path = '/flows/instances/{slug}/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
1315
1233
|
|
|
1316
1234
|
# query parameters
|
|
1317
1235
|
query_params = opts[:query_params] || {}
|
|
@@ -1377,7 +1295,7 @@ module Authentik::Api
|
|
|
1377
1295
|
fail ArgumentError, "Missing the required parameter 'slug' when calling FlowsApi.flows_instances_retrieve"
|
|
1378
1296
|
end
|
|
1379
1297
|
# resource path
|
|
1380
|
-
local_var_path = '/flows/instances/{slug}/'.sub('{
|
|
1298
|
+
local_var_path = '/flows/instances/{slug}/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
1381
1299
|
|
|
1382
1300
|
# query parameters
|
|
1383
1301
|
query_params = opts[:query_params] || {}
|
|
@@ -1444,7 +1362,7 @@ module Authentik::Api
|
|
|
1444
1362
|
fail ArgumentError, "Missing the required parameter 'flow_request' when calling FlowsApi.flows_instances_update"
|
|
1445
1363
|
end
|
|
1446
1364
|
# resource path
|
|
1447
|
-
local_var_path = '/flows/instances/{slug}/'.sub('{
|
|
1365
|
+
local_var_path = '/flows/instances/{slug}/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
1448
1366
|
|
|
1449
1367
|
# query parameters
|
|
1450
1368
|
query_params = opts[:query_params] || {}
|
|
@@ -1510,7 +1428,7 @@ module Authentik::Api
|
|
|
1510
1428
|
fail ArgumentError, "Missing the required parameter 'slug' when calling FlowsApi.flows_instances_used_by_list"
|
|
1511
1429
|
end
|
|
1512
1430
|
# resource path
|
|
1513
|
-
local_var_path = '/flows/instances/{slug}/used_by/'.sub('{
|
|
1431
|
+
local_var_path = '/flows/instances/{slug}/used_by/'.sub('{slug}', CGI.escape(slug.to_s))
|
|
1514
1432
|
|
|
1515
1433
|
# query parameters
|
|
1516
1434
|
query_params = opts[:query_params] || {}
|
|
@@ -83,9 +83,12 @@ module Authentik::Api
|
|
|
83
83
|
# @param content_type [String]
|
|
84
84
|
# @param obj_id [String]
|
|
85
85
|
# @param [Hash] opts the optional parameters
|
|
86
|
-
# @
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
87
|
+
# @option opts [String] :search A search term.
|
|
88
|
+
# @option opts [Boolean] :user_is_reviewer
|
|
89
|
+
# @return [Array<LifecycleIteration>]
|
|
90
|
+
def lifecycle_iterations_list_latest(content_type, obj_id, opts = {})
|
|
91
|
+
data, _status_code, _headers = lifecycle_iterations_list_latest_with_http_info(content_type, obj_id, opts)
|
|
89
92
|
data
|
|
90
93
|
end
|
|
91
94
|
|
|
@@ -93,34 +96,40 @@ module Authentik::Api
|
|
|
93
96
|
# @param content_type [String]
|
|
94
97
|
# @param obj_id [String]
|
|
95
98
|
# @param [Hash] opts the optional parameters
|
|
96
|
-
# @
|
|
97
|
-
|
|
99
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
100
|
+
# @option opts [String] :search A search term.
|
|
101
|
+
# @option opts [Boolean] :user_is_reviewer
|
|
102
|
+
# @return [Array<(Array<LifecycleIteration>, Integer, Hash)>] Array<LifecycleIteration> data, response status code and response headers
|
|
103
|
+
def lifecycle_iterations_list_latest_with_http_info(content_type, obj_id, opts = {})
|
|
98
104
|
if @api_client.config.debugging
|
|
99
|
-
@api_client.config.logger.debug 'Calling API: LifecycleApi.
|
|
105
|
+
@api_client.config.logger.debug 'Calling API: LifecycleApi.lifecycle_iterations_list_latest ...'
|
|
100
106
|
end
|
|
101
107
|
# verify the required parameter 'content_type' is set
|
|
102
108
|
if @api_client.config.client_side_validation && content_type.nil?
|
|
103
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling LifecycleApi.
|
|
109
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling LifecycleApi.lifecycle_iterations_list_latest"
|
|
104
110
|
end
|
|
105
111
|
pattern = Regexp.new(/^[^\/]+$/)
|
|
106
112
|
if @api_client.config.client_side_validation && content_type !~ pattern
|
|
107
|
-
fail ArgumentError, "invalid value for 'content_type' when calling LifecycleApi.
|
|
113
|
+
fail ArgumentError, "invalid value for 'content_type' when calling LifecycleApi.lifecycle_iterations_list_latest, must conform to the pattern #{pattern}."
|
|
108
114
|
end
|
|
109
115
|
|
|
110
116
|
# verify the required parameter 'obj_id' is set
|
|
111
117
|
if @api_client.config.client_side_validation && obj_id.nil?
|
|
112
|
-
fail ArgumentError, "Missing the required parameter 'obj_id' when calling LifecycleApi.
|
|
118
|
+
fail ArgumentError, "Missing the required parameter 'obj_id' when calling LifecycleApi.lifecycle_iterations_list_latest"
|
|
113
119
|
end
|
|
114
120
|
pattern = Regexp.new(/^[^\/]+$/)
|
|
115
121
|
if @api_client.config.client_side_validation && obj_id !~ pattern
|
|
116
|
-
fail ArgumentError, "invalid value for 'obj_id' when calling LifecycleApi.
|
|
122
|
+
fail ArgumentError, "invalid value for 'obj_id' when calling LifecycleApi.lifecycle_iterations_list_latest, must conform to the pattern #{pattern}."
|
|
117
123
|
end
|
|
118
124
|
|
|
119
125
|
# resource path
|
|
120
|
-
local_var_path = '/lifecycle/iterations/latest/{content_type}/{object_id}/'.sub('{
|
|
126
|
+
local_var_path = '/lifecycle/iterations/latest/{content_type}/{object_id}/'.sub('{content_type}', CGI.escape(content_type.to_s)).sub('{object_id}', CGI.escape(obj_id.to_s))
|
|
121
127
|
|
|
122
128
|
# query parameters
|
|
123
129
|
query_params = opts[:query_params] || {}
|
|
130
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
131
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
132
|
+
query_params[:'user_is_reviewer'] = opts[:'user_is_reviewer'] if !opts[:'user_is_reviewer'].nil?
|
|
124
133
|
|
|
125
134
|
# header parameters
|
|
126
135
|
header_params = opts[:header_params] || {}
|
|
@@ -134,13 +143,13 @@ module Authentik::Api
|
|
|
134
143
|
post_body = opts[:debug_body]
|
|
135
144
|
|
|
136
145
|
# return_type
|
|
137
|
-
return_type = opts[:debug_return_type] || 'LifecycleIteration'
|
|
146
|
+
return_type = opts[:debug_return_type] || 'Array<LifecycleIteration>'
|
|
138
147
|
|
|
139
148
|
# auth_names
|
|
140
149
|
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
141
150
|
|
|
142
151
|
new_options = opts.merge(
|
|
143
|
-
:operation => :"LifecycleApi.
|
|
152
|
+
:operation => :"LifecycleApi.lifecycle_iterations_list_latest",
|
|
144
153
|
:header_params => header_params,
|
|
145
154
|
:query_params => query_params,
|
|
146
155
|
:form_params => form_params,
|
|
@@ -151,7 +160,7 @@ module Authentik::Api
|
|
|
151
160
|
|
|
152
161
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
153
162
|
if @api_client.config.debugging
|
|
154
|
-
@api_client.config.logger.debug "API called: LifecycleApi#
|
|
163
|
+
@api_client.config.logger.debug "API called: LifecycleApi#lifecycle_iterations_list_latest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
155
164
|
end
|
|
156
165
|
return data, status_code, headers
|
|
157
166
|
end
|
|
@@ -376,7 +385,7 @@ module Authentik::Api
|
|
|
376
385
|
fail ArgumentError, "Missing the required parameter 'id' when calling LifecycleApi.lifecycle_rules_destroy"
|
|
377
386
|
end
|
|
378
387
|
# resource path
|
|
379
|
-
local_var_path = '/lifecycle/rules/{id}/'.sub('{
|
|
388
|
+
local_var_path = '/lifecycle/rules/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
380
389
|
|
|
381
390
|
# query parameters
|
|
382
391
|
query_params = opts[:query_params] || {}
|
|
@@ -505,7 +514,7 @@ module Authentik::Api
|
|
|
505
514
|
fail ArgumentError, "Missing the required parameter 'id' when calling LifecycleApi.lifecycle_rules_partial_update"
|
|
506
515
|
end
|
|
507
516
|
# resource path
|
|
508
|
-
local_var_path = '/lifecycle/rules/{id}/'.sub('{
|
|
517
|
+
local_var_path = '/lifecycle/rules/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
509
518
|
|
|
510
519
|
# query parameters
|
|
511
520
|
query_params = opts[:query_params] || {}
|
|
@@ -569,7 +578,7 @@ module Authentik::Api
|
|
|
569
578
|
fail ArgumentError, "Missing the required parameter 'id' when calling LifecycleApi.lifecycle_rules_retrieve"
|
|
570
579
|
end
|
|
571
580
|
# resource path
|
|
572
|
-
local_var_path = '/lifecycle/rules/{id}/'.sub('{
|
|
581
|
+
local_var_path = '/lifecycle/rules/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
573
582
|
|
|
574
583
|
# query parameters
|
|
575
584
|
query_params = opts[:query_params] || {}
|
|
@@ -634,7 +643,7 @@ module Authentik::Api
|
|
|
634
643
|
fail ArgumentError, "Missing the required parameter 'lifecycle_rule_request' when calling LifecycleApi.lifecycle_rules_update"
|
|
635
644
|
end
|
|
636
645
|
# resource path
|
|
637
|
-
local_var_path = '/lifecycle/rules/{id}/'.sub('{
|
|
646
|
+
local_var_path = '/lifecycle/rules/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
638
647
|
|
|
639
648
|
# query parameters
|
|
640
649
|
query_params = opts[:query_params] || {}
|
|
@@ -35,7 +35,7 @@ module Authentik::Api
|
|
|
35
35
|
fail ArgumentError, "Missing the required parameter 'instance_uuid' when calling ManagedApi.managed_blueprints_apply_create"
|
|
36
36
|
end
|
|
37
37
|
# resource path
|
|
38
|
-
local_var_path = '/managed/blueprints/{instance_uuid}/apply/'.sub('{
|
|
38
|
+
local_var_path = '/managed/blueprints/{instance_uuid}/apply/'.sub('{instance_uuid}', CGI.escape(instance_uuid.to_s))
|
|
39
39
|
|
|
40
40
|
# query parameters
|
|
41
41
|
query_params = opts[:query_params] || {}
|
|
@@ -217,7 +217,7 @@ module Authentik::Api
|
|
|
217
217
|
fail ArgumentError, "Missing the required parameter 'instance_uuid' when calling ManagedApi.managed_blueprints_destroy"
|
|
218
218
|
end
|
|
219
219
|
# resource path
|
|
220
|
-
local_var_path = '/managed/blueprints/{instance_uuid}/'.sub('{
|
|
220
|
+
local_var_path = '/managed/blueprints/{instance_uuid}/'.sub('{instance_uuid}', CGI.escape(instance_uuid.to_s))
|
|
221
221
|
|
|
222
222
|
# query parameters
|
|
223
223
|
query_params = opts[:query_params] || {}
|
|
@@ -256,6 +256,79 @@ module Authentik::Api
|
|
|
256
256
|
return data, status_code, headers
|
|
257
257
|
end
|
|
258
258
|
|
|
259
|
+
# Import blueprint from .yaml file and apply it once, without creating an instance
|
|
260
|
+
# @param [Hash] opts the optional parameters
|
|
261
|
+
# @option opts [File] :file
|
|
262
|
+
# @option opts [String] :path
|
|
263
|
+
# @option opts [String] :context
|
|
264
|
+
# @return [BlueprintImportResult]
|
|
265
|
+
def managed_blueprints_import_create(opts = {})
|
|
266
|
+
data, _status_code, _headers = managed_blueprints_import_create_with_http_info(opts)
|
|
267
|
+
data
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Import blueprint from .yaml file and apply it once, without creating an instance
|
|
271
|
+
# @param [Hash] opts the optional parameters
|
|
272
|
+
# @option opts [File] :file
|
|
273
|
+
# @option opts [String] :path
|
|
274
|
+
# @option opts [String] :context
|
|
275
|
+
# @return [Array<(BlueprintImportResult, Integer, Hash)>] BlueprintImportResult data, response status code and response headers
|
|
276
|
+
def managed_blueprints_import_create_with_http_info(opts = {})
|
|
277
|
+
if @api_client.config.debugging
|
|
278
|
+
@api_client.config.logger.debug 'Calling API: ManagedApi.managed_blueprints_import_create ...'
|
|
279
|
+
end
|
|
280
|
+
if @api_client.config.client_side_validation && !opts[:'path'].nil? && opts[:'path'].to_s.length < 1
|
|
281
|
+
fail ArgumentError, 'invalid value for "opts[:"path"]" when calling ManagedApi.managed_blueprints_import_create, the character length must be greater than or equal to 1.'
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# resource path
|
|
285
|
+
local_var_path = '/managed/blueprints/import/'
|
|
286
|
+
|
|
287
|
+
# query parameters
|
|
288
|
+
query_params = opts[:query_params] || {}
|
|
289
|
+
|
|
290
|
+
# header parameters
|
|
291
|
+
header_params = opts[:header_params] || {}
|
|
292
|
+
# HTTP header 'Accept' (if needed)
|
|
293
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
294
|
+
# HTTP header 'Content-Type'
|
|
295
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
296
|
+
if !content_type.nil?
|
|
297
|
+
header_params['Content-Type'] = content_type
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# form parameters
|
|
301
|
+
form_params = opts[:form_params] || {}
|
|
302
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
303
|
+
form_params['path'] = opts[:'path'] if !opts[:'path'].nil?
|
|
304
|
+
form_params['context'] = opts[:'context'] if !opts[:'context'].nil?
|
|
305
|
+
|
|
306
|
+
# http body (model)
|
|
307
|
+
post_body = opts[:debug_body]
|
|
308
|
+
|
|
309
|
+
# return_type
|
|
310
|
+
return_type = opts[:debug_return_type] || 'BlueprintImportResult'
|
|
311
|
+
|
|
312
|
+
# auth_names
|
|
313
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
314
|
+
|
|
315
|
+
new_options = opts.merge(
|
|
316
|
+
:operation => :"ManagedApi.managed_blueprints_import_create",
|
|
317
|
+
:header_params => header_params,
|
|
318
|
+
:query_params => query_params,
|
|
319
|
+
:form_params => form_params,
|
|
320
|
+
:body => post_body,
|
|
321
|
+
:auth_names => auth_names,
|
|
322
|
+
:return_type => return_type
|
|
323
|
+
)
|
|
324
|
+
|
|
325
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
326
|
+
if @api_client.config.debugging
|
|
327
|
+
@api_client.config.logger.debug "API called: ManagedApi#managed_blueprints_import_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
328
|
+
end
|
|
329
|
+
return data, status_code, headers
|
|
330
|
+
end
|
|
331
|
+
|
|
259
332
|
# Blueprint instances
|
|
260
333
|
# @param [Hash] opts the optional parameters
|
|
261
334
|
# @option opts [String] :name
|
|
@@ -353,7 +426,7 @@ module Authentik::Api
|
|
|
353
426
|
fail ArgumentError, "Missing the required parameter 'instance_uuid' when calling ManagedApi.managed_blueprints_partial_update"
|
|
354
427
|
end
|
|
355
428
|
# resource path
|
|
356
|
-
local_var_path = '/managed/blueprints/{instance_uuid}/'.sub('{
|
|
429
|
+
local_var_path = '/managed/blueprints/{instance_uuid}/'.sub('{instance_uuid}', CGI.escape(instance_uuid.to_s))
|
|
357
430
|
|
|
358
431
|
# query parameters
|
|
359
432
|
query_params = opts[:query_params] || {}
|
|
@@ -419,7 +492,7 @@ module Authentik::Api
|
|
|
419
492
|
fail ArgumentError, "Missing the required parameter 'instance_uuid' when calling ManagedApi.managed_blueprints_retrieve"
|
|
420
493
|
end
|
|
421
494
|
# resource path
|
|
422
|
-
local_var_path = '/managed/blueprints/{instance_uuid}/'.sub('{
|
|
495
|
+
local_var_path = '/managed/blueprints/{instance_uuid}/'.sub('{instance_uuid}', CGI.escape(instance_uuid.to_s))
|
|
423
496
|
|
|
424
497
|
# query parameters
|
|
425
498
|
query_params = opts[:query_params] || {}
|
|
@@ -486,7 +559,7 @@ module Authentik::Api
|
|
|
486
559
|
fail ArgumentError, "Missing the required parameter 'blueprint_instance_request' when calling ManagedApi.managed_blueprints_update"
|
|
487
560
|
end
|
|
488
561
|
# resource path
|
|
489
|
-
local_var_path = '/managed/blueprints/{instance_uuid}/'.sub('{
|
|
562
|
+
local_var_path = '/managed/blueprints/{instance_uuid}/'.sub('{instance_uuid}', CGI.escape(instance_uuid.to_s))
|
|
490
563
|
|
|
491
564
|
# query parameters
|
|
492
565
|
query_params = opts[:query_params] || {}
|
|
@@ -552,7 +625,7 @@ module Authentik::Api
|
|
|
552
625
|
fail ArgumentError, "Missing the required parameter 'instance_uuid' when calling ManagedApi.managed_blueprints_used_by_list"
|
|
553
626
|
end
|
|
554
627
|
# resource path
|
|
555
|
-
local_var_path = '/managed/blueprints/{instance_uuid}/used_by/'.sub('{
|
|
628
|
+
local_var_path = '/managed/blueprints/{instance_uuid}/used_by/'.sub('{instance_uuid}', CGI.escape(instance_uuid.to_s))
|
|
556
629
|
|
|
557
630
|
# query parameters
|
|
558
631
|
query_params = opts[:query_params] || {}
|
|
@@ -35,7 +35,7 @@ module Authentik::Api
|
|
|
35
35
|
fail ArgumentError, "Missing the required parameter 'id' when calling Oauth2Api.oauth2_access_tokens_destroy"
|
|
36
36
|
end
|
|
37
37
|
# resource path
|
|
38
|
-
local_var_path = '/oauth2/access_tokens/{id}/'.sub('{
|
|
38
|
+
local_var_path = '/oauth2/access_tokens/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
39
39
|
|
|
40
40
|
# query parameters
|
|
41
41
|
query_params = opts[:query_params] || {}
|
|
@@ -169,7 +169,7 @@ module Authentik::Api
|
|
|
169
169
|
fail ArgumentError, "Missing the required parameter 'id' when calling Oauth2Api.oauth2_access_tokens_retrieve"
|
|
170
170
|
end
|
|
171
171
|
# resource path
|
|
172
|
-
local_var_path = '/oauth2/access_tokens/{id}/'.sub('{
|
|
172
|
+
local_var_path = '/oauth2/access_tokens/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
173
173
|
|
|
174
174
|
# query parameters
|
|
175
175
|
query_params = opts[:query_params] || {}
|
|
@@ -230,7 +230,7 @@ module Authentik::Api
|
|
|
230
230
|
fail ArgumentError, "Missing the required parameter 'id' when calling Oauth2Api.oauth2_access_tokens_used_by_list"
|
|
231
231
|
end
|
|
232
232
|
# resource path
|
|
233
|
-
local_var_path = '/oauth2/access_tokens/{id}/used_by/'.sub('{
|
|
233
|
+
local_var_path = '/oauth2/access_tokens/{id}/used_by/'.sub('{id}', CGI.escape(id.to_s))
|
|
234
234
|
|
|
235
235
|
# query parameters
|
|
236
236
|
query_params = opts[:query_params] || {}
|
|
@@ -291,7 +291,7 @@ module Authentik::Api
|
|
|
291
291
|
fail ArgumentError, "Missing the required parameter 'id' when calling Oauth2Api.oauth2_authorization_codes_destroy"
|
|
292
292
|
end
|
|
293
293
|
# resource path
|
|
294
|
-
local_var_path = '/oauth2/authorization_codes/{id}/'.sub('{
|
|
294
|
+
local_var_path = '/oauth2/authorization_codes/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
295
295
|
|
|
296
296
|
# query parameters
|
|
297
297
|
query_params = opts[:query_params] || {}
|
|
@@ -425,7 +425,7 @@ module Authentik::Api
|
|
|
425
425
|
fail ArgumentError, "Missing the required parameter 'id' when calling Oauth2Api.oauth2_authorization_codes_retrieve"
|
|
426
426
|
end
|
|
427
427
|
# resource path
|
|
428
|
-
local_var_path = '/oauth2/authorization_codes/{id}/'.sub('{
|
|
428
|
+
local_var_path = '/oauth2/authorization_codes/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
429
429
|
|
|
430
430
|
# query parameters
|
|
431
431
|
query_params = opts[:query_params] || {}
|
|
@@ -486,7 +486,7 @@ module Authentik::Api
|
|
|
486
486
|
fail ArgumentError, "Missing the required parameter 'id' when calling Oauth2Api.oauth2_authorization_codes_used_by_list"
|
|
487
487
|
end
|
|
488
488
|
# resource path
|
|
489
|
-
local_var_path = '/oauth2/authorization_codes/{id}/used_by/'.sub('{
|
|
489
|
+
local_var_path = '/oauth2/authorization_codes/{id}/used_by/'.sub('{id}', CGI.escape(id.to_s))
|
|
490
490
|
|
|
491
491
|
# query parameters
|
|
492
492
|
query_params = opts[:query_params] || {}
|
|
@@ -547,7 +547,7 @@ module Authentik::Api
|
|
|
547
547
|
fail ArgumentError, "Missing the required parameter 'id' when calling Oauth2Api.oauth2_refresh_tokens_destroy"
|
|
548
548
|
end
|
|
549
549
|
# resource path
|
|
550
|
-
local_var_path = '/oauth2/refresh_tokens/{id}/'.sub('{
|
|
550
|
+
local_var_path = '/oauth2/refresh_tokens/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
551
551
|
|
|
552
552
|
# query parameters
|
|
553
553
|
query_params = opts[:query_params] || {}
|
|
@@ -681,7 +681,7 @@ module Authentik::Api
|
|
|
681
681
|
fail ArgumentError, "Missing the required parameter 'id' when calling Oauth2Api.oauth2_refresh_tokens_retrieve"
|
|
682
682
|
end
|
|
683
683
|
# resource path
|
|
684
|
-
local_var_path = '/oauth2/refresh_tokens/{id}/'.sub('{
|
|
684
|
+
local_var_path = '/oauth2/refresh_tokens/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
685
685
|
|
|
686
686
|
# query parameters
|
|
687
687
|
query_params = opts[:query_params] || {}
|
|
@@ -742,7 +742,7 @@ module Authentik::Api
|
|
|
742
742
|
fail ArgumentError, "Missing the required parameter 'id' when calling Oauth2Api.oauth2_refresh_tokens_used_by_list"
|
|
743
743
|
end
|
|
744
744
|
# resource path
|
|
745
|
-
local_var_path = '/oauth2/refresh_tokens/{id}/used_by/'.sub('{
|
|
745
|
+
local_var_path = '/oauth2/refresh_tokens/{id}/used_by/'.sub('{id}', CGI.escape(id.to_s))
|
|
746
746
|
|
|
747
747
|
# query parameters
|
|
748
748
|
query_params = opts[:query_params] || {}
|