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 'license_uuid' when calling EnterpriseApi.enterprise_license_destroy"
|
|
102
102
|
end
|
|
103
103
|
# resource path
|
|
104
|
-
local_var_path = '/enterprise/license/{license_uuid}/'.sub('{
|
|
104
|
+
local_var_path = '/enterprise/license/{license_uuid}/'.sub('{license_uuid}', CGI.escape(license_uuid.to_s))
|
|
105
105
|
|
|
106
106
|
# query parameters
|
|
107
107
|
query_params = opts[:query_params] || {}
|
|
@@ -344,7 +344,7 @@ module Authentik::Api
|
|
|
344
344
|
fail ArgumentError, "Missing the required parameter 'license_uuid' when calling EnterpriseApi.enterprise_license_partial_update"
|
|
345
345
|
end
|
|
346
346
|
# resource path
|
|
347
|
-
local_var_path = '/enterprise/license/{license_uuid}/'.sub('{
|
|
347
|
+
local_var_path = '/enterprise/license/{license_uuid}/'.sub('{license_uuid}', CGI.escape(license_uuid.to_s))
|
|
348
348
|
|
|
349
349
|
# query parameters
|
|
350
350
|
query_params = opts[:query_params] || {}
|
|
@@ -410,7 +410,7 @@ module Authentik::Api
|
|
|
410
410
|
fail ArgumentError, "Missing the required parameter 'license_uuid' when calling EnterpriseApi.enterprise_license_retrieve"
|
|
411
411
|
end
|
|
412
412
|
# resource path
|
|
413
|
-
local_var_path = '/enterprise/license/{license_uuid}/'.sub('{
|
|
413
|
+
local_var_path = '/enterprise/license/{license_uuid}/'.sub('{license_uuid}', CGI.escape(license_uuid.to_s))
|
|
414
414
|
|
|
415
415
|
# query parameters
|
|
416
416
|
query_params = opts[:query_params] || {}
|
|
@@ -535,7 +535,7 @@ module Authentik::Api
|
|
|
535
535
|
fail ArgumentError, "Missing the required parameter 'license_request' when calling EnterpriseApi.enterprise_license_update"
|
|
536
536
|
end
|
|
537
537
|
# resource path
|
|
538
|
-
local_var_path = '/enterprise/license/{license_uuid}/'.sub('{
|
|
538
|
+
local_var_path = '/enterprise/license/{license_uuid}/'.sub('{license_uuid}', CGI.escape(license_uuid.to_s))
|
|
539
539
|
|
|
540
540
|
# query parameters
|
|
541
541
|
query_params = opts[:query_params] || {}
|
|
@@ -601,7 +601,7 @@ module Authentik::Api
|
|
|
601
601
|
fail ArgumentError, "Missing the required parameter 'license_uuid' when calling EnterpriseApi.enterprise_license_used_by_list"
|
|
602
602
|
end
|
|
603
603
|
# resource path
|
|
604
|
-
local_var_path = '/enterprise/license/{license_uuid}/used_by/'.sub('{
|
|
604
|
+
local_var_path = '/enterprise/license/{license_uuid}/used_by/'.sub('{license_uuid}', CGI.escape(license_uuid.to_s))
|
|
605
605
|
|
|
606
606
|
# query parameters
|
|
607
607
|
query_params = opts[:query_params] || {}
|
|
@@ -156,7 +156,7 @@ module Authentik::Api
|
|
|
156
156
|
fail ArgumentError, "Missing the required parameter 'event_uuid' when calling EventsApi.events_events_destroy"
|
|
157
157
|
end
|
|
158
158
|
# resource path
|
|
159
|
-
local_var_path = '/events/events/{event_uuid}/'.sub('{
|
|
159
|
+
local_var_path = '/events/events/{event_uuid}/'.sub('{event_uuid}', CGI.escape(event_uuid.to_s))
|
|
160
160
|
|
|
161
161
|
# query parameters
|
|
162
162
|
query_params = opts[:query_params] || {}
|
|
@@ -198,10 +198,11 @@ module Authentik::Api
|
|
|
198
198
|
# Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download
|
|
199
199
|
# @param [Hash] opts the optional parameters
|
|
200
200
|
# @option opts [String] :action
|
|
201
|
-
# @option opts [Array<
|
|
201
|
+
# @option opts [Array<EventActions>] :actions
|
|
202
202
|
# @option opts [String] :brand_name Brand name
|
|
203
203
|
# @option opts [String] :client_ip
|
|
204
204
|
# @option opts [String] :context_authorized_app Context Authorized application
|
|
205
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
205
206
|
# @option opts [String] :context_model_app Context Model App
|
|
206
207
|
# @option opts [String] :context_model_name Context Model Name
|
|
207
208
|
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
@@ -217,10 +218,11 @@ module Authentik::Api
|
|
|
217
218
|
# Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download
|
|
218
219
|
# @param [Hash] opts the optional parameters
|
|
219
220
|
# @option opts [String] :action
|
|
220
|
-
# @option opts [Array<
|
|
221
|
+
# @option opts [Array<EventActions>] :actions
|
|
221
222
|
# @option opts [String] :brand_name Brand name
|
|
222
223
|
# @option opts [String] :client_ip
|
|
223
224
|
# @option opts [String] :context_authorized_app Context Authorized application
|
|
225
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
224
226
|
# @option opts [String] :context_model_app Context Model App
|
|
225
227
|
# @option opts [String] :context_model_name Context Model Name
|
|
226
228
|
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
@@ -232,10 +234,6 @@ module Authentik::Api
|
|
|
232
234
|
if @api_client.config.debugging
|
|
233
235
|
@api_client.config.logger.debug 'Calling API: EventsApi.events_events_export_create ...'
|
|
234
236
|
end
|
|
235
|
-
allowable_values = ["authorize_application", "configuration_error", "configuration_warning", "custom_", "email_sent", "export_ready", "flow_execution", "impersonation_ended", "impersonation_started", "invitation_used", "login", "login_failed", "logout", "model_created", "model_deleted", "model_updated", "password_set", "policy_exception", "policy_execution", "property_mapping_exception", "review_attested", "review_completed", "review_initiated", "review_overdue", "secret_rotate", "secret_view", "source_linked", "suspicious_request", "system_exception", "system_task_exception", "system_task_execution", "update_available", "user_write"]
|
|
236
|
-
if @api_client.config.client_side_validation && opts[:'actions'] && !opts[:'actions'].all? { |item| allowable_values.include?(item) }
|
|
237
|
-
fail ArgumentError, "invalid value for \"actions\", must include one of #{allowable_values}"
|
|
238
|
-
end
|
|
239
237
|
# resource path
|
|
240
238
|
local_var_path = '/events/events/export/'
|
|
241
239
|
|
|
@@ -246,6 +244,7 @@ module Authentik::Api
|
|
|
246
244
|
query_params[:'brand_name'] = opts[:'brand_name'] if !opts[:'brand_name'].nil?
|
|
247
245
|
query_params[:'client_ip'] = opts[:'client_ip'] if !opts[:'client_ip'].nil?
|
|
248
246
|
query_params[:'context_authorized_app'] = opts[:'context_authorized_app'] if !opts[:'context_authorized_app'].nil?
|
|
247
|
+
query_params[:'context_device'] = opts[:'context_device'] if !opts[:'context_device'].nil?
|
|
249
248
|
query_params[:'context_model_app'] = opts[:'context_model_app'] if !opts[:'context_model_app'].nil?
|
|
250
249
|
query_params[:'context_model_name'] = opts[:'context_model_name'] if !opts[:'context_model_name'].nil?
|
|
251
250
|
query_params[:'context_model_pk'] = opts[:'context_model_pk'] if !opts[:'context_model_pk'].nil?
|
|
@@ -290,10 +289,11 @@ module Authentik::Api
|
|
|
290
289
|
# Event Read-Only Viewset
|
|
291
290
|
# @param [Hash] opts the optional parameters
|
|
292
291
|
# @option opts [String] :action
|
|
293
|
-
# @option opts [Array<
|
|
292
|
+
# @option opts [Array<EventActions>] :actions
|
|
294
293
|
# @option opts [String] :brand_name Brand name
|
|
295
294
|
# @option opts [String] :client_ip
|
|
296
295
|
# @option opts [String] :context_authorized_app Context Authorized application
|
|
296
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
297
297
|
# @option opts [String] :context_model_app Context Model App
|
|
298
298
|
# @option opts [String] :context_model_name Context Model Name
|
|
299
299
|
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
@@ -311,10 +311,11 @@ module Authentik::Api
|
|
|
311
311
|
# Event Read-Only Viewset
|
|
312
312
|
# @param [Hash] opts the optional parameters
|
|
313
313
|
# @option opts [String] :action
|
|
314
|
-
# @option opts [Array<
|
|
314
|
+
# @option opts [Array<EventActions>] :actions
|
|
315
315
|
# @option opts [String] :brand_name Brand name
|
|
316
316
|
# @option opts [String] :client_ip
|
|
317
317
|
# @option opts [String] :context_authorized_app Context Authorized application
|
|
318
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
318
319
|
# @option opts [String] :context_model_app Context Model App
|
|
319
320
|
# @option opts [String] :context_model_name Context Model Name
|
|
320
321
|
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
@@ -328,10 +329,6 @@ module Authentik::Api
|
|
|
328
329
|
if @api_client.config.debugging
|
|
329
330
|
@api_client.config.logger.debug 'Calling API: EventsApi.events_events_list ...'
|
|
330
331
|
end
|
|
331
|
-
allowable_values = ["authorize_application", "configuration_error", "configuration_warning", "custom_", "email_sent", "export_ready", "flow_execution", "impersonation_ended", "impersonation_started", "invitation_used", "login", "login_failed", "logout", "model_created", "model_deleted", "model_updated", "password_set", "policy_exception", "policy_execution", "property_mapping_exception", "review_attested", "review_completed", "review_initiated", "review_overdue", "secret_rotate", "secret_view", "source_linked", "suspicious_request", "system_exception", "system_task_exception", "system_task_execution", "update_available", "user_write"]
|
|
332
|
-
if @api_client.config.client_side_validation && opts[:'actions'] && !opts[:'actions'].all? { |item| allowable_values.include?(item) }
|
|
333
|
-
fail ArgumentError, "invalid value for \"actions\", must include one of #{allowable_values}"
|
|
334
|
-
end
|
|
335
332
|
# resource path
|
|
336
333
|
local_var_path = '/events/events/'
|
|
337
334
|
|
|
@@ -342,6 +339,7 @@ module Authentik::Api
|
|
|
342
339
|
query_params[:'brand_name'] = opts[:'brand_name'] if !opts[:'brand_name'].nil?
|
|
343
340
|
query_params[:'client_ip'] = opts[:'client_ip'] if !opts[:'client_ip'].nil?
|
|
344
341
|
query_params[:'context_authorized_app'] = opts[:'context_authorized_app'] if !opts[:'context_authorized_app'].nil?
|
|
342
|
+
query_params[:'context_device'] = opts[:'context_device'] if !opts[:'context_device'].nil?
|
|
345
343
|
query_params[:'context_model_app'] = opts[:'context_model_app'] if !opts[:'context_model_app'].nil?
|
|
346
344
|
query_params[:'context_model_name'] = opts[:'context_model_name'] if !opts[:'context_model_name'].nil?
|
|
347
345
|
query_params[:'context_model_pk'] = opts[:'context_model_pk'] if !opts[:'context_model_pk'].nil?
|
|
@@ -409,7 +407,7 @@ module Authentik::Api
|
|
|
409
407
|
fail ArgumentError, "Missing the required parameter 'event_uuid' when calling EventsApi.events_events_partial_update"
|
|
410
408
|
end
|
|
411
409
|
# resource path
|
|
412
|
-
local_var_path = '/events/events/{event_uuid}/'.sub('{
|
|
410
|
+
local_var_path = '/events/events/{event_uuid}/'.sub('{event_uuid}', CGI.escape(event_uuid.to_s))
|
|
413
411
|
|
|
414
412
|
# query parameters
|
|
415
413
|
query_params = opts[:query_params] || {}
|
|
@@ -475,7 +473,7 @@ module Authentik::Api
|
|
|
475
473
|
fail ArgumentError, "Missing the required parameter 'event_uuid' when calling EventsApi.events_events_retrieve"
|
|
476
474
|
end
|
|
477
475
|
# resource path
|
|
478
|
-
local_var_path = '/events/events/{event_uuid}/'.sub('{
|
|
476
|
+
local_var_path = '/events/events/{event_uuid}/'.sub('{event_uuid}', CGI.escape(event_uuid.to_s))
|
|
479
477
|
|
|
480
478
|
# query parameters
|
|
481
479
|
query_params = opts[:query_params] || {}
|
|
@@ -514,6 +512,104 @@ module Authentik::Api
|
|
|
514
512
|
return data, status_code, headers
|
|
515
513
|
end
|
|
516
514
|
|
|
515
|
+
# Get event stats for specified filters and count steps
|
|
516
|
+
# @param count_steps [Array<String>] Timedelta, format of 'weeks=3;days=2;hours=3,seconds=2'
|
|
517
|
+
# @param [Hash] opts the optional parameters
|
|
518
|
+
# @option opts [String] :action
|
|
519
|
+
# @option opts [Array<EventActions>] :actions
|
|
520
|
+
# @option opts [String] :brand_name Brand name
|
|
521
|
+
# @option opts [String] :client_ip
|
|
522
|
+
# @option opts [String] :context_authorized_app Context Authorized application
|
|
523
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
524
|
+
# @option opts [String] :context_model_app Context Model App
|
|
525
|
+
# @option opts [String] :context_model_name Context Model Name
|
|
526
|
+
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
527
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
528
|
+
# @option opts [String] :search A search term.
|
|
529
|
+
# @option opts [String] :username Username
|
|
530
|
+
# @return [EventStats]
|
|
531
|
+
def events_events_stats_retrieve(count_steps, opts = {})
|
|
532
|
+
data, _status_code, _headers = events_events_stats_retrieve_with_http_info(count_steps, opts)
|
|
533
|
+
data
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
# Get event stats for specified filters and count steps
|
|
537
|
+
# @param count_steps [Array<String>] Timedelta, format of 'weeks=3;days=2;hours=3,seconds=2'
|
|
538
|
+
# @param [Hash] opts the optional parameters
|
|
539
|
+
# @option opts [String] :action
|
|
540
|
+
# @option opts [Array<EventActions>] :actions
|
|
541
|
+
# @option opts [String] :brand_name Brand name
|
|
542
|
+
# @option opts [String] :client_ip
|
|
543
|
+
# @option opts [String] :context_authorized_app Context Authorized application
|
|
544
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
545
|
+
# @option opts [String] :context_model_app Context Model App
|
|
546
|
+
# @option opts [String] :context_model_name Context Model Name
|
|
547
|
+
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
548
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
549
|
+
# @option opts [String] :search A search term.
|
|
550
|
+
# @option opts [String] :username Username
|
|
551
|
+
# @return [Array<(EventStats, Integer, Hash)>] EventStats data, response status code and response headers
|
|
552
|
+
def events_events_stats_retrieve_with_http_info(count_steps, opts = {})
|
|
553
|
+
if @api_client.config.debugging
|
|
554
|
+
@api_client.config.logger.debug 'Calling API: EventsApi.events_events_stats_retrieve ...'
|
|
555
|
+
end
|
|
556
|
+
# verify the required parameter 'count_steps' is set
|
|
557
|
+
if @api_client.config.client_side_validation && count_steps.nil?
|
|
558
|
+
fail ArgumentError, "Missing the required parameter 'count_steps' when calling EventsApi.events_events_stats_retrieve"
|
|
559
|
+
end
|
|
560
|
+
# resource path
|
|
561
|
+
local_var_path = '/events/events/stats/'
|
|
562
|
+
|
|
563
|
+
# query parameters
|
|
564
|
+
query_params = opts[:query_params] || {}
|
|
565
|
+
query_params[:'count_steps'] = @api_client.build_collection_param(count_steps, :multi)
|
|
566
|
+
query_params[:'action'] = opts[:'action'] if !opts[:'action'].nil?
|
|
567
|
+
query_params[:'actions'] = @api_client.build_collection_param(opts[:'actions'], :multi) if !opts[:'actions'].nil?
|
|
568
|
+
query_params[:'brand_name'] = opts[:'brand_name'] if !opts[:'brand_name'].nil?
|
|
569
|
+
query_params[:'client_ip'] = opts[:'client_ip'] if !opts[:'client_ip'].nil?
|
|
570
|
+
query_params[:'context_authorized_app'] = opts[:'context_authorized_app'] if !opts[:'context_authorized_app'].nil?
|
|
571
|
+
query_params[:'context_device'] = opts[:'context_device'] if !opts[:'context_device'].nil?
|
|
572
|
+
query_params[:'context_model_app'] = opts[:'context_model_app'] if !opts[:'context_model_app'].nil?
|
|
573
|
+
query_params[:'context_model_name'] = opts[:'context_model_name'] if !opts[:'context_model_name'].nil?
|
|
574
|
+
query_params[:'context_model_pk'] = opts[:'context_model_pk'] if !opts[:'context_model_pk'].nil?
|
|
575
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
576
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
577
|
+
query_params[:'username'] = opts[:'username'] if !opts[:'username'].nil?
|
|
578
|
+
|
|
579
|
+
# header parameters
|
|
580
|
+
header_params = opts[:header_params] || {}
|
|
581
|
+
# HTTP header 'Accept' (if needed)
|
|
582
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
583
|
+
|
|
584
|
+
# form parameters
|
|
585
|
+
form_params = opts[:form_params] || {}
|
|
586
|
+
|
|
587
|
+
# http body (model)
|
|
588
|
+
post_body = opts[:debug_body]
|
|
589
|
+
|
|
590
|
+
# return_type
|
|
591
|
+
return_type = opts[:debug_return_type] || 'EventStats'
|
|
592
|
+
|
|
593
|
+
# auth_names
|
|
594
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
595
|
+
|
|
596
|
+
new_options = opts.merge(
|
|
597
|
+
:operation => :"EventsApi.events_events_stats_retrieve",
|
|
598
|
+
:header_params => header_params,
|
|
599
|
+
:query_params => query_params,
|
|
600
|
+
:form_params => form_params,
|
|
601
|
+
:body => post_body,
|
|
602
|
+
:auth_names => auth_names,
|
|
603
|
+
:return_type => return_type
|
|
604
|
+
)
|
|
605
|
+
|
|
606
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
607
|
+
if @api_client.config.debugging
|
|
608
|
+
@api_client.config.logger.debug "API called: EventsApi#events_events_stats_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
609
|
+
end
|
|
610
|
+
return data, status_code, headers
|
|
611
|
+
end
|
|
612
|
+
|
|
517
613
|
# Get the top_n events grouped by user count
|
|
518
614
|
# @param [Hash] opts the optional parameters
|
|
519
615
|
# @option opts [String] :action
|
|
@@ -603,7 +699,7 @@ module Authentik::Api
|
|
|
603
699
|
fail ArgumentError, "Missing the required parameter 'event_request' when calling EventsApi.events_events_update"
|
|
604
700
|
end
|
|
605
701
|
# resource path
|
|
606
|
-
local_var_path = '/events/events/{event_uuid}/'.sub('{
|
|
702
|
+
local_var_path = '/events/events/{event_uuid}/'.sub('{event_uuid}', CGI.escape(event_uuid.to_s))
|
|
607
703
|
|
|
608
704
|
# query parameters
|
|
609
705
|
query_params = opts[:query_params] || {}
|
|
@@ -650,14 +746,15 @@ module Authentik::Api
|
|
|
650
746
|
# Get event volume for specified filters and timeframe
|
|
651
747
|
# @param [Hash] opts the optional parameters
|
|
652
748
|
# @option opts [String] :action
|
|
653
|
-
# @option opts [Array<
|
|
749
|
+
# @option opts [Array<EventActions>] :actions
|
|
654
750
|
# @option opts [String] :brand_name Brand name
|
|
655
751
|
# @option opts [String] :client_ip
|
|
656
752
|
# @option opts [String] :context_authorized_app Context Authorized application
|
|
753
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
657
754
|
# @option opts [String] :context_model_app Context Model App
|
|
658
755
|
# @option opts [String] :context_model_name Context Model Name
|
|
659
756
|
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
660
|
-
# @option opts [
|
|
757
|
+
# @option opts [Integer] :history_days (default to 7)
|
|
661
758
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
662
759
|
# @option opts [String] :search A search term.
|
|
663
760
|
# @option opts [String] :username Username
|
|
@@ -670,14 +767,15 @@ module Authentik::Api
|
|
|
670
767
|
# Get event volume for specified filters and timeframe
|
|
671
768
|
# @param [Hash] opts the optional parameters
|
|
672
769
|
# @option opts [String] :action
|
|
673
|
-
# @option opts [Array<
|
|
770
|
+
# @option opts [Array<EventActions>] :actions
|
|
674
771
|
# @option opts [String] :brand_name Brand name
|
|
675
772
|
# @option opts [String] :client_ip
|
|
676
773
|
# @option opts [String] :context_authorized_app Context Authorized application
|
|
774
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
677
775
|
# @option opts [String] :context_model_app Context Model App
|
|
678
776
|
# @option opts [String] :context_model_name Context Model Name
|
|
679
777
|
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
680
|
-
# @option opts [
|
|
778
|
+
# @option opts [Integer] :history_days (default to 7)
|
|
681
779
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
682
780
|
# @option opts [String] :search A search term.
|
|
683
781
|
# @option opts [String] :username Username
|
|
@@ -686,10 +784,6 @@ module Authentik::Api
|
|
|
686
784
|
if @api_client.config.debugging
|
|
687
785
|
@api_client.config.logger.debug 'Calling API: EventsApi.events_events_volume_list ...'
|
|
688
786
|
end
|
|
689
|
-
allowable_values = ["authorize_application", "configuration_error", "configuration_warning", "custom_", "email_sent", "export_ready", "flow_execution", "impersonation_ended", "impersonation_started", "invitation_used", "login", "login_failed", "logout", "model_created", "model_deleted", "model_updated", "password_set", "policy_exception", "policy_execution", "property_mapping_exception", "review_attested", "review_completed", "review_initiated", "review_overdue", "secret_rotate", "secret_view", "source_linked", "suspicious_request", "system_exception", "system_task_exception", "system_task_execution", "update_available", "user_write"]
|
|
690
|
-
if @api_client.config.client_side_validation && opts[:'actions'] && !opts[:'actions'].all? { |item| allowable_values.include?(item) }
|
|
691
|
-
fail ArgumentError, "invalid value for \"actions\", must include one of #{allowable_values}"
|
|
692
|
-
end
|
|
693
787
|
# resource path
|
|
694
788
|
local_var_path = '/events/events/volume/'
|
|
695
789
|
|
|
@@ -700,6 +794,7 @@ module Authentik::Api
|
|
|
700
794
|
query_params[:'brand_name'] = opts[:'brand_name'] if !opts[:'brand_name'].nil?
|
|
701
795
|
query_params[:'client_ip'] = opts[:'client_ip'] if !opts[:'client_ip'].nil?
|
|
702
796
|
query_params[:'context_authorized_app'] = opts[:'context_authorized_app'] if !opts[:'context_authorized_app'].nil?
|
|
797
|
+
query_params[:'context_device'] = opts[:'context_device'] if !opts[:'context_device'].nil?
|
|
703
798
|
query_params[:'context_model_app'] = opts[:'context_model_app'] if !opts[:'context_model_app'].nil?
|
|
704
799
|
query_params[:'context_model_name'] = opts[:'context_model_name'] if !opts[:'context_model_name'].nil?
|
|
705
800
|
query_params[:'context_model_pk'] = opts[:'context_model_pk'] if !opts[:'context_model_pk'].nil?
|
|
@@ -764,7 +859,7 @@ module Authentik::Api
|
|
|
764
859
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling EventsApi.events_notifications_destroy"
|
|
765
860
|
end
|
|
766
861
|
# resource path
|
|
767
|
-
local_var_path = '/events/notifications/{uuid}/'.sub('{
|
|
862
|
+
local_var_path = '/events/notifications/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
768
863
|
|
|
769
864
|
# query parameters
|
|
770
865
|
query_params = opts[:query_params] || {}
|
|
@@ -813,7 +908,7 @@ module Authentik::Api
|
|
|
813
908
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
814
909
|
# @option opts [String] :search A search term.
|
|
815
910
|
# @option opts [Boolean] :seen
|
|
816
|
-
# @option opts [
|
|
911
|
+
# @option opts [SeverityEnum] :severity
|
|
817
912
|
# @option opts [Integer] :user
|
|
818
913
|
# @return [PaginatedNotificationList]
|
|
819
914
|
def events_notifications_list(opts = {})
|
|
@@ -831,17 +926,13 @@ module Authentik::Api
|
|
|
831
926
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
832
927
|
# @option opts [String] :search A search term.
|
|
833
928
|
# @option opts [Boolean] :seen
|
|
834
|
-
# @option opts [
|
|
929
|
+
# @option opts [SeverityEnum] :severity
|
|
835
930
|
# @option opts [Integer] :user
|
|
836
931
|
# @return [Array<(PaginatedNotificationList, Integer, Hash)>] PaginatedNotificationList data, response status code and response headers
|
|
837
932
|
def events_notifications_list_with_http_info(opts = {})
|
|
838
933
|
if @api_client.config.debugging
|
|
839
934
|
@api_client.config.logger.debug 'Calling API: EventsApi.events_notifications_list ...'
|
|
840
935
|
end
|
|
841
|
-
allowable_values = ["alert", "notice", "warning"]
|
|
842
|
-
if @api_client.config.client_side_validation && opts[:'severity'] && !allowable_values.include?(opts[:'severity'])
|
|
843
|
-
fail ArgumentError, "invalid value for \"severity\", must be one of #{allowable_values}"
|
|
844
|
-
end
|
|
845
936
|
# resource path
|
|
846
937
|
local_var_path = '/events/notifications/'
|
|
847
938
|
|
|
@@ -971,7 +1062,7 @@ module Authentik::Api
|
|
|
971
1062
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling EventsApi.events_notifications_partial_update"
|
|
972
1063
|
end
|
|
973
1064
|
# resource path
|
|
974
|
-
local_var_path = '/events/notifications/{uuid}/'.sub('{
|
|
1065
|
+
local_var_path = '/events/notifications/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
975
1066
|
|
|
976
1067
|
# query parameters
|
|
977
1068
|
query_params = opts[:query_params] || {}
|
|
@@ -1037,7 +1128,7 @@ module Authentik::Api
|
|
|
1037
1128
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling EventsApi.events_notifications_retrieve"
|
|
1038
1129
|
end
|
|
1039
1130
|
# resource path
|
|
1040
|
-
local_var_path = '/events/notifications/{uuid}/'.sub('{
|
|
1131
|
+
local_var_path = '/events/notifications/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1041
1132
|
|
|
1042
1133
|
# query parameters
|
|
1043
1134
|
query_params = opts[:query_params] || {}
|
|
@@ -1100,7 +1191,7 @@ module Authentik::Api
|
|
|
1100
1191
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling EventsApi.events_notifications_update"
|
|
1101
1192
|
end
|
|
1102
1193
|
# resource path
|
|
1103
|
-
local_var_path = '/events/notifications/{uuid}/'.sub('{
|
|
1194
|
+
local_var_path = '/events/notifications/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1104
1195
|
|
|
1105
1196
|
# query parameters
|
|
1106
1197
|
query_params = opts[:query_params] || {}
|
|
@@ -1166,7 +1257,7 @@ module Authentik::Api
|
|
|
1166
1257
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling EventsApi.events_notifications_used_by_list"
|
|
1167
1258
|
end
|
|
1168
1259
|
# resource path
|
|
1169
|
-
local_var_path = '/events/notifications/{uuid}/used_by/'.sub('{
|
|
1260
|
+
local_var_path = '/events/notifications/{uuid}/used_by/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1170
1261
|
|
|
1171
1262
|
# query parameters
|
|
1172
1263
|
query_params = opts[:query_params] || {}
|
|
@@ -1293,7 +1384,7 @@ module Authentik::Api
|
|
|
1293
1384
|
fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EventsApi.events_rules_destroy"
|
|
1294
1385
|
end
|
|
1295
1386
|
# resource path
|
|
1296
|
-
local_var_path = '/events/rules/{pbm_uuid}/'.sub('{
|
|
1387
|
+
local_var_path = '/events/rules/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
1297
1388
|
|
|
1298
1389
|
# query parameters
|
|
1299
1390
|
query_params = opts[:query_params] || {}
|
|
@@ -1340,7 +1431,7 @@ module Authentik::Api
|
|
|
1340
1431
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
1341
1432
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
1342
1433
|
# @option opts [String] :search A search term.
|
|
1343
|
-
# @option opts [
|
|
1434
|
+
# @option opts [SeverityEnum] :severity
|
|
1344
1435
|
# @return [PaginatedNotificationRuleList]
|
|
1345
1436
|
def events_rules_list(opts = {})
|
|
1346
1437
|
data, _status_code, _headers = events_rules_list_with_http_info(opts)
|
|
@@ -1355,16 +1446,12 @@ module Authentik::Api
|
|
|
1355
1446
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
1356
1447
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
1357
1448
|
# @option opts [String] :search A search term.
|
|
1358
|
-
# @option opts [
|
|
1449
|
+
# @option opts [SeverityEnum] :severity
|
|
1359
1450
|
# @return [Array<(PaginatedNotificationRuleList, Integer, Hash)>] PaginatedNotificationRuleList data, response status code and response headers
|
|
1360
1451
|
def events_rules_list_with_http_info(opts = {})
|
|
1361
1452
|
if @api_client.config.debugging
|
|
1362
1453
|
@api_client.config.logger.debug 'Calling API: EventsApi.events_rules_list ...'
|
|
1363
1454
|
end
|
|
1364
|
-
allowable_values = ["alert", "notice", "warning"]
|
|
1365
|
-
if @api_client.config.client_side_validation && opts[:'severity'] && !allowable_values.include?(opts[:'severity'])
|
|
1366
|
-
fail ArgumentError, "invalid value for \"severity\", must be one of #{allowable_values}"
|
|
1367
|
-
end
|
|
1368
1455
|
# resource path
|
|
1369
1456
|
local_var_path = '/events/rules/'
|
|
1370
1457
|
|
|
@@ -1436,7 +1523,7 @@ module Authentik::Api
|
|
|
1436
1523
|
fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EventsApi.events_rules_partial_update"
|
|
1437
1524
|
end
|
|
1438
1525
|
# resource path
|
|
1439
|
-
local_var_path = '/events/rules/{pbm_uuid}/'.sub('{
|
|
1526
|
+
local_var_path = '/events/rules/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
1440
1527
|
|
|
1441
1528
|
# query parameters
|
|
1442
1529
|
query_params = opts[:query_params] || {}
|
|
@@ -1502,7 +1589,7 @@ module Authentik::Api
|
|
|
1502
1589
|
fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EventsApi.events_rules_retrieve"
|
|
1503
1590
|
end
|
|
1504
1591
|
# resource path
|
|
1505
|
-
local_var_path = '/events/rules/{pbm_uuid}/'.sub('{
|
|
1592
|
+
local_var_path = '/events/rules/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
1506
1593
|
|
|
1507
1594
|
# query parameters
|
|
1508
1595
|
query_params = opts[:query_params] || {}
|
|
@@ -1569,7 +1656,7 @@ module Authentik::Api
|
|
|
1569
1656
|
fail ArgumentError, "Missing the required parameter 'notification_rule_request' when calling EventsApi.events_rules_update"
|
|
1570
1657
|
end
|
|
1571
1658
|
# resource path
|
|
1572
|
-
local_var_path = '/events/rules/{pbm_uuid}/'.sub('{
|
|
1659
|
+
local_var_path = '/events/rules/{pbm_uuid}/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
1573
1660
|
|
|
1574
1661
|
# query parameters
|
|
1575
1662
|
query_params = opts[:query_params] || {}
|
|
@@ -1635,7 +1722,7 @@ module Authentik::Api
|
|
|
1635
1722
|
fail ArgumentError, "Missing the required parameter 'pbm_uuid' when calling EventsApi.events_rules_used_by_list"
|
|
1636
1723
|
end
|
|
1637
1724
|
# resource path
|
|
1638
|
-
local_var_path = '/events/rules/{pbm_uuid}/used_by/'.sub('{
|
|
1725
|
+
local_var_path = '/events/rules/{pbm_uuid}/used_by/'.sub('{pbm_uuid}', CGI.escape(pbm_uuid.to_s))
|
|
1639
1726
|
|
|
1640
1727
|
# query parameters
|
|
1641
1728
|
query_params = opts[:query_params] || {}
|
|
@@ -1762,7 +1849,7 @@ module Authentik::Api
|
|
|
1762
1849
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling EventsApi.events_transports_destroy"
|
|
1763
1850
|
end
|
|
1764
1851
|
# resource path
|
|
1765
|
-
local_var_path = '/events/transports/{uuid}/'.sub('{
|
|
1852
|
+
local_var_path = '/events/transports/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1766
1853
|
|
|
1767
1854
|
# query parameters
|
|
1768
1855
|
query_params = opts[:query_params] || {}
|
|
@@ -1803,7 +1890,7 @@ module Authentik::Api
|
|
|
1803
1890
|
|
|
1804
1891
|
# NotificationTransport Viewset
|
|
1805
1892
|
# @param [Hash] opts the optional parameters
|
|
1806
|
-
# @option opts [
|
|
1893
|
+
# @option opts [TransportModeEnum] :mode
|
|
1807
1894
|
# @option opts [String] :name
|
|
1808
1895
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
1809
1896
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -1819,7 +1906,7 @@ module Authentik::Api
|
|
|
1819
1906
|
|
|
1820
1907
|
# NotificationTransport Viewset
|
|
1821
1908
|
# @param [Hash] opts the optional parameters
|
|
1822
|
-
# @option opts [
|
|
1909
|
+
# @option opts [TransportModeEnum] :mode
|
|
1823
1910
|
# @option opts [String] :name
|
|
1824
1911
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
1825
1912
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -1832,10 +1919,6 @@ module Authentik::Api
|
|
|
1832
1919
|
if @api_client.config.debugging
|
|
1833
1920
|
@api_client.config.logger.debug 'Calling API: EventsApi.events_transports_list ...'
|
|
1834
1921
|
end
|
|
1835
|
-
allowable_values = ["email", "local", "webhook", "webhook_slack"]
|
|
1836
|
-
if @api_client.config.client_side_validation && opts[:'mode'] && !allowable_values.include?(opts[:'mode'])
|
|
1837
|
-
fail ArgumentError, "invalid value for \"mode\", must be one of #{allowable_values}"
|
|
1838
|
-
end
|
|
1839
1922
|
# resource path
|
|
1840
1923
|
local_var_path = '/events/transports/'
|
|
1841
1924
|
|
|
@@ -1908,7 +1991,7 @@ module Authentik::Api
|
|
|
1908
1991
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling EventsApi.events_transports_partial_update"
|
|
1909
1992
|
end
|
|
1910
1993
|
# resource path
|
|
1911
|
-
local_var_path = '/events/transports/{uuid}/'.sub('{
|
|
1994
|
+
local_var_path = '/events/transports/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1912
1995
|
|
|
1913
1996
|
# query parameters
|
|
1914
1997
|
query_params = opts[:query_params] || {}
|
|
@@ -1974,7 +2057,7 @@ module Authentik::Api
|
|
|
1974
2057
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling EventsApi.events_transports_retrieve"
|
|
1975
2058
|
end
|
|
1976
2059
|
# resource path
|
|
1977
|
-
local_var_path = '/events/transports/{uuid}/'.sub('{
|
|
2060
|
+
local_var_path = '/events/transports/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1978
2061
|
|
|
1979
2062
|
# query parameters
|
|
1980
2063
|
query_params = opts[:query_params] || {}
|
|
@@ -2035,7 +2118,7 @@ module Authentik::Api
|
|
|
2035
2118
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling EventsApi.events_transports_test_create"
|
|
2036
2119
|
end
|
|
2037
2120
|
# resource path
|
|
2038
|
-
local_var_path = '/events/transports/{uuid}/test/'.sub('{
|
|
2121
|
+
local_var_path = '/events/transports/{uuid}/test/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
2039
2122
|
|
|
2040
2123
|
# query parameters
|
|
2041
2124
|
query_params = opts[:query_params] || {}
|
|
@@ -2102,7 +2185,7 @@ module Authentik::Api
|
|
|
2102
2185
|
fail ArgumentError, "Missing the required parameter 'notification_transport_request' when calling EventsApi.events_transports_update"
|
|
2103
2186
|
end
|
|
2104
2187
|
# resource path
|
|
2105
|
-
local_var_path = '/events/transports/{uuid}/'.sub('{
|
|
2188
|
+
local_var_path = '/events/transports/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
2106
2189
|
|
|
2107
2190
|
# query parameters
|
|
2108
2191
|
query_params = opts[:query_params] || {}
|
|
@@ -2168,7 +2251,7 @@ module Authentik::Api
|
|
|
2168
2251
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling EventsApi.events_transports_used_by_list"
|
|
2169
2252
|
end
|
|
2170
2253
|
# resource path
|
|
2171
|
-
local_var_path = '/events/transports/{uuid}/used_by/'.sub('{
|
|
2254
|
+
local_var_path = '/events/transports/{uuid}/used_by/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
2172
2255
|
|
|
2173
2256
|
# query parameters
|
|
2174
2257
|
query_params = opts[:query_params] || {}
|