From f39e1f869e6c0b3440380951ac803ba5abc31856 Mon Sep 17 00:00:00 2001 From: "authentik-automation[bot]" <135050075+authentik-automation[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:48:58 +0000 Subject: [PATCH] Update API Client #### What's New --- ##### `GET` /authenticators/admin/endpoint/ ##### `POST` /authenticators/admin/endpoint/ ##### `GET` /authenticators/admin/endpoint/{uuid}/ ##### `PUT` /authenticators/admin/endpoint/{uuid}/ ##### `DELETE` /authenticators/admin/endpoint/{uuid}/ ##### `PATCH` /authenticators/admin/endpoint/{uuid}/ ##### `GET` /authenticators/endpoint/ ##### `GET` /authenticators/endpoint/{uuid}/ ##### `GET` /authenticators/endpoint/{uuid}/used_by/ ##### `GET` /stages/authenticator/endpoint_gdtc/ ##### `POST` /stages/authenticator/endpoint_gdtc/ ##### `GET` /stages/authenticator/endpoint_gdtc/{stage_uuid}/ ##### `PUT` /stages/authenticator/endpoint_gdtc/{stage_uuid}/ ##### `DELETE` /stages/authenticator/endpoint_gdtc/{stage_uuid}/ ##### `PATCH` /stages/authenticator/endpoint_gdtc/{stage_uuid}/ ##### `GET` /stages/authenticator/endpoint_gdtc/{stage_uuid}/used_by/ #### What's Changed --- ##### `GET` /authenticators/admin/all/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` Changed items (object): > Serializer for Duo authenticator devices * Changed property `pk` (integer -> string) ##### `GET` /authenticators/all/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` Changed items (object): > Serializer for Duo authenticator devices * Changed property `pk` (integer -> string) ##### `GET` /policies/event_matcher/{policy_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `app` (string) > Match events created by selected application. When left empty, all applications are matched. Added enum value: * `authentik.enterprise.stages.authenticator_endpoint_gdtc` * Changed property `model` (string) > Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched. Added enum value: * `authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage` ##### `PUT` /policies/event_matcher/{policy_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `app` (string) > Match events created by selected application. When left empty, all applications are matched. Added enum value: * `authentik.enterprise.stages.authenticator_endpoint_gdtc` * Changed property `model` (string) > Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched. Added enum value: * `authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage` ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `app` (string) > Match events created by selected application. When left empty, all applications are matched. Added enum value: * `authentik.enterprise.stages.authenticator_endpoint_gdtc` * Changed property `model` (string) > Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched. Added enum value: * `authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage` ##### `PATCH` /policies/event_matcher/{policy_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `app` (string) > Match events created by selected application. When left empty, all applications are matched. Added enum value: * `authentik.enterprise.stages.authenticator_endpoint_gdtc` * Changed property `model` (string) > Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched. Added enum value: * `authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage` ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `app` (string) > Match events created by selected application. When left empty, all applications are matched. Added enum value: * `authentik.enterprise.stages.authenticator_endpoint_gdtc` * Changed property `model` (string) > Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched. Added enum value: * `authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage` ##### `POST` /policies/event_matcher/ ###### Request: Changed content type : `application/json` * Changed property `app` (string) > Match events created by selected application. When left empty, all applications are matched. Added enum value: * `authentik.enterprise.stages.authenticator_endpoint_gdtc` * Changed property `model` (string) > Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched. Added enum value: * `authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage` ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Changed property `app` (string) > Match events created by selected application. When left empty, all applications are matched. Added enum value: * `authentik.enterprise.stages.authenticator_endpoint_gdtc` * Changed property `model` (string) > Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched. Added enum value: * `authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage` ##### `GET` /policies/event_matcher/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > Event Matcher Policy Serializer * Changed property `app` (string) > Match events created by selected application. When left empty, all applications are matched. Added enum value: * `authentik.enterprise.stages.authenticator_endpoint_gdtc` * Changed property `model` (string) > Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched. Added enum value: * `authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage` ##### `POST` /rbac/permissions/assigned_by_roles/{uuid}/assign/ ###### Request: Changed content type : `application/json` * Changed property `model` (string) Added enum value: * `authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage` ##### `PATCH` /rbac/permissions/assigned_by_roles/{uuid}/unassign/ ###### Request: Changed content type : `application/json` * Changed property `model` (string) Added enum value: * `authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage` ##### `POST` /rbac/permissions/assigned_by_users/{id}/assign/ ###### Request: Changed content type : `application/json` * Changed property `model` (string) Added enum value: * `authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage` ##### `PATCH` /rbac/permissions/assigned_by_users/{id}/unassign/ ###### Request: Changed content type : `application/json` * Changed property `model` (string) Added enum value: * `authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage` ##### `GET` /rbac/permissions/assigned_by_roles/ ###### Parameters: Changed: `model` in `query` ##### `GET` /rbac/permissions/assigned_by_users/ ###### Parameters: Changed: `model` in `query` ##### `GET` /flows/executor/{flow_slug}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` Added 'xak-flow-frame' component: * Property `flow_info` (object) > Contextual flow information for a challenge * Property `title` (string) * Property `background` (string) * Property `cancel_url` (string) * Property `layout` (string) Enum values: * `stacked` * `content_left` * `content_right` * `sidebar_left` * `sidebar_right` * Property `component` (string) * Property `response_errors` (object) * Property `url` (string) * Property `loading_overlay` (boolean) * Property `loading_text` (string) ##### `POST` /flows/executor/{flow_slug}/ ###### Request: Changed content type : `application/json` Added 'xak-flow-frame' component: * Property `component` (string) ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` Added 'xak-flow-frame' component: --- .openapi-generator/FILES | 20 + README.md | 26 + api/openapi.yaml | 1906 ++++++++++--- api_authenticators.go | 2347 +++++++++++++---- api_stages.go | 929 +++++++ docs/AppEnum.md | 2 + docs/AuthenticatorEndpointGDTCStage.md | 285 ++ docs/AuthenticatorEndpointGDTCStageRequest.md | 180 ++ docs/AuthenticatorsApi.md | 645 +++++ docs/ChallengeTypes.md | 49 +- docs/Device.md | 10 +- docs/EndpointDevice.md | 77 + docs/EndpointDeviceRequest.md | 77 + docs/FrameChallenge.md | 176 ++ docs/FrameChallengeResponseRequest.md | 56 + docs/ModelEnum.md | 2 + ...natedAuthenticatorEndpointGDTCStageList.md | 72 + docs/PaginatedEndpointDeviceList.md | 72 + ...edAuthenticatorEndpointGDTCStageRequest.md | 190 ++ docs/PatchedEndpointDeviceRequest.md | 82 + docs/StagesApi.md | 501 ++++ model_app_enum.go | 116 +- model_authenticator_endpoint_gdtc_stage.go | 418 +++ ...thenticator_endpoint_gdtc_stage_request.go | 269 ++ model_challenge_types.go | 40 + model_device.go | 12 +- model_endpoint_device.go | 144 + model_endpoint_device_request.go | 144 + model_flow_challenge_response_request.go | 40 + model_frame_challenge.go | 288 ++ model_frame_challenge_response_request.go | 118 + model_model_enum.go | 180 +- ..._authenticator_endpoint_gdtc_stage_list.go | 136 + model_paginated_endpoint_device_list.go | 136 + ...thenticator_endpoint_gdtc_stage_request.go | 282 ++ model_patched_endpoint_device_request.go | 151 ++ schema.yml | 1156 ++++++-- 37 files changed, 10038 insertions(+), 1296 deletions(-) create mode 100644 docs/AuthenticatorEndpointGDTCStage.md create mode 100644 docs/AuthenticatorEndpointGDTCStageRequest.md create mode 100644 docs/EndpointDevice.md create mode 100644 docs/EndpointDeviceRequest.md create mode 100644 docs/FrameChallenge.md create mode 100644 docs/FrameChallengeResponseRequest.md create mode 100644 docs/PaginatedAuthenticatorEndpointGDTCStageList.md create mode 100644 docs/PaginatedEndpointDeviceList.md create mode 100644 docs/PatchedAuthenticatorEndpointGDTCStageRequest.md create mode 100644 docs/PatchedEndpointDeviceRequest.md create mode 100644 model_authenticator_endpoint_gdtc_stage.go create mode 100644 model_authenticator_endpoint_gdtc_stage_request.go create mode 100644 model_endpoint_device.go create mode 100644 model_endpoint_device_request.go create mode 100644 model_frame_challenge.go create mode 100644 model_frame_challenge_response_request.go create mode 100644 model_paginated_authenticator_endpoint_gdtc_stage_list.go create mode 100644 model_paginated_endpoint_device_list.go create mode 100644 model_patched_authenticator_endpoint_gdtc_stage_request.go create mode 100644 model_patched_endpoint_device_request.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 47f1fbd8d..fae6e7853 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -50,6 +50,8 @@ docs/AuthenticatorDuoStage.md docs/AuthenticatorDuoStageDeviceImportResponse.md docs/AuthenticatorDuoStageManualDeviceImportRequest.md docs/AuthenticatorDuoStageRequest.md +docs/AuthenticatorEndpointGDTCStage.md +docs/AuthenticatorEndpointGDTCStageRequest.md docs/AuthenticatorSMSChallenge.md docs/AuthenticatorSMSChallengeResponseRequest.md docs/AuthenticatorSMSStage.md @@ -140,6 +142,8 @@ docs/EmailChallengeResponseRequest.md docs/EmailStage.md docs/EmailStageRequest.md docs/Endpoint.md +docs/EndpointDevice.md +docs/EndpointDeviceRequest.md docs/EndpointRequest.md docs/EnterpriseApi.md docs/ErrorDetail.md @@ -175,6 +179,8 @@ docs/FlowStageBinding.md docs/FlowStageBindingRequest.md docs/FlowsApi.md docs/FooterLink.md +docs/FrameChallenge.md +docs/FrameChallengeResponseRequest.md docs/GenericError.md docs/GeoIPPolicy.md docs/GeoIPPolicyRequest.md @@ -279,6 +285,7 @@ docs/OutpostsApi.md docs/PaginatedApplicationList.md docs/PaginatedAuthenticatedSessionList.md docs/PaginatedAuthenticatorDuoStageList.md +docs/PaginatedAuthenticatorEndpointGDTCStageList.md docs/PaginatedAuthenticatorSMSStageList.md docs/PaginatedAuthenticatorStaticStageList.md docs/PaginatedAuthenticatorTOTPStageList.md @@ -297,6 +304,7 @@ docs/PaginatedDummyPolicyList.md docs/PaginatedDummyStageList.md docs/PaginatedDuoDeviceList.md docs/PaginatedEmailStageList.md +docs/PaginatedEndpointDeviceList.md docs/PaginatedEndpointList.md docs/PaginatedEventList.md docs/PaginatedEventMatcherPolicyList.md @@ -407,6 +415,7 @@ docs/PasswordStage.md docs/PasswordStageRequest.md docs/PatchedApplicationRequest.md docs/PatchedAuthenticatorDuoStageRequest.md +docs/PatchedAuthenticatorEndpointGDTCStageRequest.md docs/PatchedAuthenticatorSMSStageRequest.md docs/PatchedAuthenticatorStaticStageRequest.md docs/PatchedAuthenticatorTOTPStageRequest.md @@ -425,6 +434,7 @@ docs/PatchedDummyPolicyRequest.md docs/PatchedDummyStageRequest.md docs/PatchedDuoDeviceRequest.md docs/PatchedEmailStageRequest.md +docs/PatchedEndpointDeviceRequest.md docs/PatchedEndpointRequest.md docs/PatchedEventMatcherPolicyRequest.md docs/PatchedEventRequest.md @@ -720,6 +730,8 @@ model_authenticator_duo_stage.go model_authenticator_duo_stage_device_import_response.go model_authenticator_duo_stage_manual_device_import_request.go model_authenticator_duo_stage_request.go +model_authenticator_endpoint_gdtc_stage.go +model_authenticator_endpoint_gdtc_stage_request.go model_authenticator_sms_challenge.go model_authenticator_sms_challenge_response_request.go model_authenticator_sms_stage.go @@ -807,6 +819,8 @@ model_email_challenge_response_request.go model_email_stage.go model_email_stage_request.go model_endpoint.go +model_endpoint_device.go +model_endpoint_device_request.go model_endpoint_request.go model_error_detail.go model_error_reporting_config.go @@ -839,6 +853,8 @@ model_flow_set_request.go model_flow_stage_binding.go model_flow_stage_binding_request.go model_footer_link.go +model_frame_challenge.go +model_frame_challenge_response_request.go model_generic_error.go model_geo_ip_policy.go model_geo_ip_policy_request.go @@ -940,6 +956,7 @@ model_outpost_type_enum.go model_paginated_application_list.go model_paginated_authenticated_session_list.go model_paginated_authenticator_duo_stage_list.go +model_paginated_authenticator_endpoint_gdtc_stage_list.go model_paginated_authenticator_sms_stage_list.go model_paginated_authenticator_static_stage_list.go model_paginated_authenticator_totp_stage_list.go @@ -958,6 +975,7 @@ model_paginated_dummy_policy_list.go model_paginated_dummy_stage_list.go model_paginated_duo_device_list.go model_paginated_email_stage_list.go +model_paginated_endpoint_device_list.go model_paginated_endpoint_list.go model_paginated_event_list.go model_paginated_event_matcher_policy_list.go @@ -1068,6 +1086,7 @@ model_password_stage.go model_password_stage_request.go model_patched_application_request.go model_patched_authenticator_duo_stage_request.go +model_patched_authenticator_endpoint_gdtc_stage_request.go model_patched_authenticator_sms_stage_request.go model_patched_authenticator_static_stage_request.go model_patched_authenticator_totp_stage_request.go @@ -1086,6 +1105,7 @@ model_patched_dummy_policy_request.go model_patched_dummy_stage_request.go model_patched_duo_device_request.go model_patched_email_stage_request.go +model_patched_endpoint_device_request.go model_patched_endpoint_request.go model_patched_event_matcher_policy_request.go model_patched_event_request.go diff --git a/README.md b/README.md index c5d692e46..2061b36d1 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,12 @@ Class | Method | HTTP request | Description *AuthenticatorsApi* | [**AuthenticatorsAdminDuoPartialUpdate**](docs/AuthenticatorsApi.md#authenticatorsadminduopartialupdate) | **Patch** /authenticators/admin/duo/{id}/ | *AuthenticatorsApi* | [**AuthenticatorsAdminDuoRetrieve**](docs/AuthenticatorsApi.md#authenticatorsadminduoretrieve) | **Get** /authenticators/admin/duo/{id}/ | *AuthenticatorsApi* | [**AuthenticatorsAdminDuoUpdate**](docs/AuthenticatorsApi.md#authenticatorsadminduoupdate) | **Put** /authenticators/admin/duo/{id}/ | +*AuthenticatorsApi* | [**AuthenticatorsAdminEndpointCreate**](docs/AuthenticatorsApi.md#authenticatorsadminendpointcreate) | **Post** /authenticators/admin/endpoint/ | +*AuthenticatorsApi* | [**AuthenticatorsAdminEndpointDestroy**](docs/AuthenticatorsApi.md#authenticatorsadminendpointdestroy) | **Delete** /authenticators/admin/endpoint/{uuid}/ | +*AuthenticatorsApi* | [**AuthenticatorsAdminEndpointList**](docs/AuthenticatorsApi.md#authenticatorsadminendpointlist) | **Get** /authenticators/admin/endpoint/ | +*AuthenticatorsApi* | [**AuthenticatorsAdminEndpointPartialUpdate**](docs/AuthenticatorsApi.md#authenticatorsadminendpointpartialupdate) | **Patch** /authenticators/admin/endpoint/{uuid}/ | +*AuthenticatorsApi* | [**AuthenticatorsAdminEndpointRetrieve**](docs/AuthenticatorsApi.md#authenticatorsadminendpointretrieve) | **Get** /authenticators/admin/endpoint/{uuid}/ | +*AuthenticatorsApi* | [**AuthenticatorsAdminEndpointUpdate**](docs/AuthenticatorsApi.md#authenticatorsadminendpointupdate) | **Put** /authenticators/admin/endpoint/{uuid}/ | *AuthenticatorsApi* | [**AuthenticatorsAdminSmsCreate**](docs/AuthenticatorsApi.md#authenticatorsadminsmscreate) | **Post** /authenticators/admin/sms/ | *AuthenticatorsApi* | [**AuthenticatorsAdminSmsDestroy**](docs/AuthenticatorsApi.md#authenticatorsadminsmsdestroy) | **Delete** /authenticators/admin/sms/{id}/ | *AuthenticatorsApi* | [**AuthenticatorsAdminSmsList**](docs/AuthenticatorsApi.md#authenticatorsadminsmslist) | **Get** /authenticators/admin/sms/ | @@ -87,6 +93,9 @@ Class | Method | HTTP request | Description *AuthenticatorsApi* | [**AuthenticatorsDuoRetrieve**](docs/AuthenticatorsApi.md#authenticatorsduoretrieve) | **Get** /authenticators/duo/{id}/ | *AuthenticatorsApi* | [**AuthenticatorsDuoUpdate**](docs/AuthenticatorsApi.md#authenticatorsduoupdate) | **Put** /authenticators/duo/{id}/ | *AuthenticatorsApi* | [**AuthenticatorsDuoUsedByList**](docs/AuthenticatorsApi.md#authenticatorsduousedbylist) | **Get** /authenticators/duo/{id}/used_by/ | +*AuthenticatorsApi* | [**AuthenticatorsEndpointList**](docs/AuthenticatorsApi.md#authenticatorsendpointlist) | **Get** /authenticators/endpoint/ | +*AuthenticatorsApi* | [**AuthenticatorsEndpointRetrieve**](docs/AuthenticatorsApi.md#authenticatorsendpointretrieve) | **Get** /authenticators/endpoint/{uuid}/ | +*AuthenticatorsApi* | [**AuthenticatorsEndpointUsedByList**](docs/AuthenticatorsApi.md#authenticatorsendpointusedbylist) | **Get** /authenticators/endpoint/{uuid}/used_by/ | *AuthenticatorsApi* | [**AuthenticatorsSmsDestroy**](docs/AuthenticatorsApi.md#authenticatorssmsdestroy) | **Delete** /authenticators/sms/{id}/ | *AuthenticatorsApi* | [**AuthenticatorsSmsList**](docs/AuthenticatorsApi.md#authenticatorssmslist) | **Get** /authenticators/sms/ | *AuthenticatorsApi* | [**AuthenticatorsSmsPartialUpdate**](docs/AuthenticatorsApi.md#authenticatorssmspartialupdate) | **Patch** /authenticators/sms/{id}/ | @@ -749,6 +758,13 @@ Class | Method | HTTP request | Description *StagesApi* | [**StagesAuthenticatorDuoRetrieve**](docs/StagesApi.md#stagesauthenticatorduoretrieve) | **Get** /stages/authenticator/duo/{stage_uuid}/ | *StagesApi* | [**StagesAuthenticatorDuoUpdate**](docs/StagesApi.md#stagesauthenticatorduoupdate) | **Put** /stages/authenticator/duo/{stage_uuid}/ | *StagesApi* | [**StagesAuthenticatorDuoUsedByList**](docs/StagesApi.md#stagesauthenticatorduousedbylist) | **Get** /stages/authenticator/duo/{stage_uuid}/used_by/ | +*StagesApi* | [**StagesAuthenticatorEndpointGdtcCreate**](docs/StagesApi.md#stagesauthenticatorendpointgdtccreate) | **Post** /stages/authenticator/endpoint_gdtc/ | +*StagesApi* | [**StagesAuthenticatorEndpointGdtcDestroy**](docs/StagesApi.md#stagesauthenticatorendpointgdtcdestroy) | **Delete** /stages/authenticator/endpoint_gdtc/{stage_uuid}/ | +*StagesApi* | [**StagesAuthenticatorEndpointGdtcList**](docs/StagesApi.md#stagesauthenticatorendpointgdtclist) | **Get** /stages/authenticator/endpoint_gdtc/ | +*StagesApi* | [**StagesAuthenticatorEndpointGdtcPartialUpdate**](docs/StagesApi.md#stagesauthenticatorendpointgdtcpartialupdate) | **Patch** /stages/authenticator/endpoint_gdtc/{stage_uuid}/ | +*StagesApi* | [**StagesAuthenticatorEndpointGdtcRetrieve**](docs/StagesApi.md#stagesauthenticatorendpointgdtcretrieve) | **Get** /stages/authenticator/endpoint_gdtc/{stage_uuid}/ | +*StagesApi* | [**StagesAuthenticatorEndpointGdtcUpdate**](docs/StagesApi.md#stagesauthenticatorendpointgdtcupdate) | **Put** /stages/authenticator/endpoint_gdtc/{stage_uuid}/ | +*StagesApi* | [**StagesAuthenticatorEndpointGdtcUsedByList**](docs/StagesApi.md#stagesauthenticatorendpointgdtcusedbylist) | **Get** /stages/authenticator/endpoint_gdtc/{stage_uuid}/used_by/ | *StagesApi* | [**StagesAuthenticatorSmsCreate**](docs/StagesApi.md#stagesauthenticatorsmscreate) | **Post** /stages/authenticator/sms/ | *StagesApi* | [**StagesAuthenticatorSmsDestroy**](docs/StagesApi.md#stagesauthenticatorsmsdestroy) | **Delete** /stages/authenticator/sms/{stage_uuid}/ | *StagesApi* | [**StagesAuthenticatorSmsList**](docs/StagesApi.md#stagesauthenticatorsmslist) | **Get** /stages/authenticator/sms/ | @@ -943,6 +959,8 @@ Class | Method | HTTP request | Description - [AuthenticatorDuoStageDeviceImportResponse](docs/AuthenticatorDuoStageDeviceImportResponse.md) - [AuthenticatorDuoStageManualDeviceImportRequest](docs/AuthenticatorDuoStageManualDeviceImportRequest.md) - [AuthenticatorDuoStageRequest](docs/AuthenticatorDuoStageRequest.md) + - [AuthenticatorEndpointGDTCStage](docs/AuthenticatorEndpointGDTCStage.md) + - [AuthenticatorEndpointGDTCStageRequest](docs/AuthenticatorEndpointGDTCStageRequest.md) - [AuthenticatorSMSChallenge](docs/AuthenticatorSMSChallenge.md) - [AuthenticatorSMSChallengeResponseRequest](docs/AuthenticatorSMSChallengeResponseRequest.md) - [AuthenticatorSMSStage](docs/AuthenticatorSMSStage.md) @@ -1030,6 +1048,8 @@ Class | Method | HTTP request | Description - [EmailStage](docs/EmailStage.md) - [EmailStageRequest](docs/EmailStageRequest.md) - [Endpoint](docs/Endpoint.md) + - [EndpointDevice](docs/EndpointDevice.md) + - [EndpointDeviceRequest](docs/EndpointDeviceRequest.md) - [EndpointRequest](docs/EndpointRequest.md) - [ErrorDetail](docs/ErrorDetail.md) - [ErrorReportingConfig](docs/ErrorReportingConfig.md) @@ -1062,6 +1082,8 @@ Class | Method | HTTP request | Description - [FlowStageBinding](docs/FlowStageBinding.md) - [FlowStageBindingRequest](docs/FlowStageBindingRequest.md) - [FooterLink](docs/FooterLink.md) + - [FrameChallenge](docs/FrameChallenge.md) + - [FrameChallengeResponseRequest](docs/FrameChallengeResponseRequest.md) - [GenericError](docs/GenericError.md) - [GeoIPPolicy](docs/GeoIPPolicy.md) - [GeoIPPolicyRequest](docs/GeoIPPolicyRequest.md) @@ -1163,6 +1185,7 @@ Class | Method | HTTP request | Description - [PaginatedApplicationList](docs/PaginatedApplicationList.md) - [PaginatedAuthenticatedSessionList](docs/PaginatedAuthenticatedSessionList.md) - [PaginatedAuthenticatorDuoStageList](docs/PaginatedAuthenticatorDuoStageList.md) + - [PaginatedAuthenticatorEndpointGDTCStageList](docs/PaginatedAuthenticatorEndpointGDTCStageList.md) - [PaginatedAuthenticatorSMSStageList](docs/PaginatedAuthenticatorSMSStageList.md) - [PaginatedAuthenticatorStaticStageList](docs/PaginatedAuthenticatorStaticStageList.md) - [PaginatedAuthenticatorTOTPStageList](docs/PaginatedAuthenticatorTOTPStageList.md) @@ -1181,6 +1204,7 @@ Class | Method | HTTP request | Description - [PaginatedDummyStageList](docs/PaginatedDummyStageList.md) - [PaginatedDuoDeviceList](docs/PaginatedDuoDeviceList.md) - [PaginatedEmailStageList](docs/PaginatedEmailStageList.md) + - [PaginatedEndpointDeviceList](docs/PaginatedEndpointDeviceList.md) - [PaginatedEndpointList](docs/PaginatedEndpointList.md) - [PaginatedEventList](docs/PaginatedEventList.md) - [PaginatedEventMatcherPolicyList](docs/PaginatedEventMatcherPolicyList.md) @@ -1291,6 +1315,7 @@ Class | Method | HTTP request | Description - [PasswordStageRequest](docs/PasswordStageRequest.md) - [PatchedApplicationRequest](docs/PatchedApplicationRequest.md) - [PatchedAuthenticatorDuoStageRequest](docs/PatchedAuthenticatorDuoStageRequest.md) + - [PatchedAuthenticatorEndpointGDTCStageRequest](docs/PatchedAuthenticatorEndpointGDTCStageRequest.md) - [PatchedAuthenticatorSMSStageRequest](docs/PatchedAuthenticatorSMSStageRequest.md) - [PatchedAuthenticatorStaticStageRequest](docs/PatchedAuthenticatorStaticStageRequest.md) - [PatchedAuthenticatorTOTPStageRequest](docs/PatchedAuthenticatorTOTPStageRequest.md) @@ -1309,6 +1334,7 @@ Class | Method | HTTP request | Description - [PatchedDummyStageRequest](docs/PatchedDummyStageRequest.md) - [PatchedDuoDeviceRequest](docs/PatchedDuoDeviceRequest.md) - [PatchedEmailStageRequest](docs/PatchedEmailStageRequest.md) + - [PatchedEndpointDeviceRequest](docs/PatchedEndpointDeviceRequest.md) - [PatchedEndpointRequest](docs/PatchedEndpointRequest.md) - [PatchedEventMatcherPolicyRequest](docs/PatchedEventMatcherPolicyRequest.md) - [PatchedEventRequest](docs/PatchedEventRequest.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 64f303361..1920c2093 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -672,10 +672,10 @@ paths: - authentik: [] tags: - authenticators - /authenticators/admin/sms/: + /authenticators/admin/endpoint/: get: - description: Viewset for sms authenticator devices (for admins) - operationId: authenticators_admin_sms_list + description: Viewset for Endpoint authenticator devices (for admins) + operationId: authenticators_admin_endpoint_list parameters: - explode: true in: query @@ -721,7 +721,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSMSDeviceList' + $ref: '#/components/schemas/PaginatedEndpointDeviceList' description: "" "400": content: @@ -740,20 +740,20 @@ paths: tags: - authenticators post: - description: Viewset for sms authenticator devices (for admins) - operationId: authenticators_admin_sms_create + description: Viewset for Endpoint authenticator devices (for admins) + operationId: authenticators_admin_endpoint_create requestBody: content: application/json: schema: - $ref: '#/components/schemas/SMSDeviceRequest' + $ref: '#/components/schemas/EndpointDeviceRequest' required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/SMSDevice' + $ref: '#/components/schemas/EndpointDevice' description: "" "400": content: @@ -771,18 +771,19 @@ paths: - authentik: [] tags: - authenticators - /authenticators/admin/sms/{id}/: + /authenticators/admin/endpoint/{uuid}/: delete: - description: Viewset for sms authenticator devices (for admins) - operationId: authenticators_admin_sms_destroy + description: Viewset for Endpoint authenticator devices (for admins) + operationId: authenticators_admin_endpoint_destroy parameters: - - description: A unique integer value identifying this SMS Device. + - description: A UUID string identifying this Endpoint Device. explode: false in: path - name: id + name: uuid required: true schema: - type: integer + format: uuid + type: string style: simple responses: "204": @@ -804,23 +805,24 @@ paths: tags: - authenticators get: - description: Viewset for sms authenticator devices (for admins) - operationId: authenticators_admin_sms_retrieve + description: Viewset for Endpoint authenticator devices (for admins) + operationId: authenticators_admin_endpoint_retrieve parameters: - - description: A unique integer value identifying this SMS Device. + - description: A UUID string identifying this Endpoint Device. explode: false in: path - name: id + name: uuid required: true schema: - type: integer + format: uuid + type: string style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SMSDevice' + $ref: '#/components/schemas/EndpointDevice' description: "" "400": content: @@ -839,28 +841,29 @@ paths: tags: - authenticators patch: - description: Viewset for sms authenticator devices (for admins) - operationId: authenticators_admin_sms_partial_update + description: Viewset for Endpoint authenticator devices (for admins) + operationId: authenticators_admin_endpoint_partial_update parameters: - - description: A unique integer value identifying this SMS Device. + - description: A UUID string identifying this Endpoint Device. explode: false in: path - name: id + name: uuid required: true schema: - type: integer + format: uuid + type: string style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedSMSDeviceRequest' + $ref: '#/components/schemas/PatchedEndpointDeviceRequest' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SMSDevice' + $ref: '#/components/schemas/EndpointDevice' description: "" "400": content: @@ -879,29 +882,30 @@ paths: tags: - authenticators put: - description: Viewset for sms authenticator devices (for admins) - operationId: authenticators_admin_sms_update + description: Viewset for Endpoint authenticator devices (for admins) + operationId: authenticators_admin_endpoint_update parameters: - - description: A unique integer value identifying this SMS Device. + - description: A UUID string identifying this Endpoint Device. explode: false in: path - name: id + name: uuid required: true schema: - type: integer + format: uuid + type: string style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/SMSDeviceRequest' + $ref: '#/components/schemas/EndpointDeviceRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SMSDevice' + $ref: '#/components/schemas/EndpointDevice' description: "" "400": content: @@ -919,10 +923,10 @@ paths: - authentik: [] tags: - authenticators - /authenticators/admin/static/: + /authenticators/admin/sms/: get: - description: Viewset for static authenticator devices (for admins) - operationId: authenticators_admin_static_list + description: Viewset for sms authenticator devices (for admins) + operationId: authenticators_admin_sms_list parameters: - explode: true in: query @@ -968,7 +972,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedStaticDeviceList' + $ref: '#/components/schemas/PaginatedSMSDeviceList' description: "" "400": content: @@ -987,20 +991,20 @@ paths: tags: - authenticators post: - description: Viewset for static authenticator devices (for admins) - operationId: authenticators_admin_static_create + description: Viewset for sms authenticator devices (for admins) + operationId: authenticators_admin_sms_create requestBody: content: application/json: schema: - $ref: '#/components/schemas/StaticDeviceRequest' + $ref: '#/components/schemas/SMSDeviceRequest' required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/StaticDevice' + $ref: '#/components/schemas/SMSDevice' description: "" "400": content: @@ -1018,12 +1022,12 @@ paths: - authentik: [] tags: - authenticators - /authenticators/admin/static/{id}/: + /authenticators/admin/sms/{id}/: delete: - description: Viewset for static authenticator devices (for admins) - operationId: authenticators_admin_static_destroy + description: Viewset for sms authenticator devices (for admins) + operationId: authenticators_admin_sms_destroy parameters: - - description: A unique integer value identifying this Static Device. + - description: A unique integer value identifying this SMS Device. explode: false in: path name: id @@ -1051,10 +1055,10 @@ paths: tags: - authenticators get: - description: Viewset for static authenticator devices (for admins) - operationId: authenticators_admin_static_retrieve + description: Viewset for sms authenticator devices (for admins) + operationId: authenticators_admin_sms_retrieve parameters: - - description: A unique integer value identifying this Static Device. + - description: A unique integer value identifying this SMS Device. explode: false in: path name: id @@ -1067,7 +1071,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StaticDevice' + $ref: '#/components/schemas/SMSDevice' description: "" "400": content: @@ -1086,10 +1090,10 @@ paths: tags: - authenticators patch: - description: Viewset for static authenticator devices (for admins) - operationId: authenticators_admin_static_partial_update + description: Viewset for sms authenticator devices (for admins) + operationId: authenticators_admin_sms_partial_update parameters: - - description: A unique integer value identifying this Static Device. + - description: A unique integer value identifying this SMS Device. explode: false in: path name: id @@ -1101,13 +1105,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedStaticDeviceRequest' + $ref: '#/components/schemas/PatchedSMSDeviceRequest' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StaticDevice' + $ref: '#/components/schemas/SMSDevice' description: "" "400": content: @@ -1126,10 +1130,10 @@ paths: tags: - authenticators put: - description: Viewset for static authenticator devices (for admins) - operationId: authenticators_admin_static_update + description: Viewset for sms authenticator devices (for admins) + operationId: authenticators_admin_sms_update parameters: - - description: A unique integer value identifying this Static Device. + - description: A unique integer value identifying this SMS Device. explode: false in: path name: id @@ -1141,14 +1145,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StaticDeviceRequest' + $ref: '#/components/schemas/SMSDeviceRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StaticDevice' + $ref: '#/components/schemas/SMSDevice' description: "" "400": content: @@ -1166,10 +1170,10 @@ paths: - authentik: [] tags: - authenticators - /authenticators/admin/totp/: + /authenticators/admin/static/: get: - description: Viewset for totp authenticator devices (for admins) - operationId: authenticators_admin_totp_list + description: Viewset for static authenticator devices (for admins) + operationId: authenticators_admin_static_list parameters: - explode: true in: query @@ -1215,7 +1219,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTOTPDeviceList' + $ref: '#/components/schemas/PaginatedStaticDeviceList' description: "" "400": content: @@ -1234,20 +1238,20 @@ paths: tags: - authenticators post: - description: Viewset for totp authenticator devices (for admins) - operationId: authenticators_admin_totp_create + description: Viewset for static authenticator devices (for admins) + operationId: authenticators_admin_static_create requestBody: content: application/json: schema: - $ref: '#/components/schemas/TOTPDeviceRequest' + $ref: '#/components/schemas/StaticDeviceRequest' required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/TOTPDevice' + $ref: '#/components/schemas/StaticDevice' description: "" "400": content: @@ -1265,12 +1269,12 @@ paths: - authentik: [] tags: - authenticators - /authenticators/admin/totp/{id}/: + /authenticators/admin/static/{id}/: delete: - description: Viewset for totp authenticator devices (for admins) - operationId: authenticators_admin_totp_destroy + description: Viewset for static authenticator devices (for admins) + operationId: authenticators_admin_static_destroy parameters: - - description: A unique integer value identifying this TOTP Device. + - description: A unique integer value identifying this Static Device. explode: false in: path name: id @@ -1298,10 +1302,10 @@ paths: tags: - authenticators get: - description: Viewset for totp authenticator devices (for admins) - operationId: authenticators_admin_totp_retrieve + description: Viewset for static authenticator devices (for admins) + operationId: authenticators_admin_static_retrieve parameters: - - description: A unique integer value identifying this TOTP Device. + - description: A unique integer value identifying this Static Device. explode: false in: path name: id @@ -1314,7 +1318,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TOTPDevice' + $ref: '#/components/schemas/StaticDevice' description: "" "400": content: @@ -1333,10 +1337,10 @@ paths: tags: - authenticators patch: - description: Viewset for totp authenticator devices (for admins) - operationId: authenticators_admin_totp_partial_update + description: Viewset for static authenticator devices (for admins) + operationId: authenticators_admin_static_partial_update parameters: - - description: A unique integer value identifying this TOTP Device. + - description: A unique integer value identifying this Static Device. explode: false in: path name: id @@ -1348,13 +1352,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedTOTPDeviceRequest' + $ref: '#/components/schemas/PatchedStaticDeviceRequest' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/TOTPDevice' + $ref: '#/components/schemas/StaticDevice' description: "" "400": content: @@ -1373,10 +1377,10 @@ paths: tags: - authenticators put: - description: Viewset for totp authenticator devices (for admins) - operationId: authenticators_admin_totp_update + description: Viewset for static authenticator devices (for admins) + operationId: authenticators_admin_static_update parameters: - - description: A unique integer value identifying this TOTP Device. + - description: A unique integer value identifying this Static Device. explode: false in: path name: id @@ -1388,14 +1392,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TOTPDeviceRequest' + $ref: '#/components/schemas/StaticDeviceRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/TOTPDevice' + $ref: '#/components/schemas/StaticDevice' description: "" "400": content: @@ -1413,10 +1417,10 @@ paths: - authentik: [] tags: - authenticators - /authenticators/admin/webauthn/: + /authenticators/admin/totp/: get: - description: Viewset for WebAuthn authenticator devices (for admins) - operationId: authenticators_admin_webauthn_list + description: Viewset for totp authenticator devices (for admins) + operationId: authenticators_admin_totp_list parameters: - explode: true in: query @@ -1462,7 +1466,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWebAuthnDeviceList' + $ref: '#/components/schemas/PaginatedTOTPDeviceList' description: "" "400": content: @@ -1481,20 +1485,20 @@ paths: tags: - authenticators post: - description: Viewset for WebAuthn authenticator devices (for admins) - operationId: authenticators_admin_webauthn_create + description: Viewset for totp authenticator devices (for admins) + operationId: authenticators_admin_totp_create requestBody: content: application/json: schema: - $ref: '#/components/schemas/WebAuthnDeviceRequest' + $ref: '#/components/schemas/TOTPDeviceRequest' required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/WebAuthnDevice' + $ref: '#/components/schemas/TOTPDevice' description: "" "400": content: @@ -1512,12 +1516,12 @@ paths: - authentik: [] tags: - authenticators - /authenticators/admin/webauthn/{id}/: + /authenticators/admin/totp/{id}/: delete: - description: Viewset for WebAuthn authenticator devices (for admins) - operationId: authenticators_admin_webauthn_destroy + description: Viewset for totp authenticator devices (for admins) + operationId: authenticators_admin_totp_destroy parameters: - - description: A unique integer value identifying this WebAuthn Device. + - description: A unique integer value identifying this TOTP Device. explode: false in: path name: id @@ -1545,10 +1549,10 @@ paths: tags: - authenticators get: - description: Viewset for WebAuthn authenticator devices (for admins) - operationId: authenticators_admin_webauthn_retrieve + description: Viewset for totp authenticator devices (for admins) + operationId: authenticators_admin_totp_retrieve parameters: - - description: A unique integer value identifying this WebAuthn Device. + - description: A unique integer value identifying this TOTP Device. explode: false in: path name: id @@ -1561,7 +1565,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WebAuthnDevice' + $ref: '#/components/schemas/TOTPDevice' description: "" "400": content: @@ -1580,10 +1584,10 @@ paths: tags: - authenticators patch: - description: Viewset for WebAuthn authenticator devices (for admins) - operationId: authenticators_admin_webauthn_partial_update + description: Viewset for totp authenticator devices (for admins) + operationId: authenticators_admin_totp_partial_update parameters: - - description: A unique integer value identifying this WebAuthn Device. + - description: A unique integer value identifying this TOTP Device. explode: false in: path name: id @@ -1595,13 +1599,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWebAuthnDeviceRequest' + $ref: '#/components/schemas/PatchedTOTPDeviceRequest' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/WebAuthnDevice' + $ref: '#/components/schemas/TOTPDevice' description: "" "400": content: @@ -1620,10 +1624,10 @@ paths: tags: - authenticators put: - description: Viewset for WebAuthn authenticator devices (for admins) - operationId: authenticators_admin_webauthn_update + description: Viewset for totp authenticator devices (for admins) + operationId: authenticators_admin_totp_update parameters: - - description: A unique integer value identifying this WebAuthn Device. + - description: A unique integer value identifying this TOTP Device. explode: false in: path name: id @@ -1635,43 +1639,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WebAuthnDeviceRequest' + $ref: '#/components/schemas/TOTPDeviceRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/WebAuthnDevice' - description: "" - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ValidationError' - description: "" - "403": - content: - application/json: - schema: - $ref: '#/components/schemas/GenericError' - description: "" - security: - - authentik: [] - tags: - - authenticators - /authenticators/all/: - get: - description: Get all devices for current user - operationId: authenticators_all_list - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/Device' - type: array + $ref: '#/components/schemas/TOTPDevice' description: "" "400": content: @@ -1689,10 +1664,10 @@ paths: - authentik: [] tags: - authenticators - /authenticators/duo/: + /authenticators/admin/webauthn/: get: - description: Viewset for Duo authenticator devices - operationId: authenticators_duo_list + description: Viewset for WebAuthn authenticator devices (for admins) + operationId: authenticators_admin_webauthn_list parameters: - explode: true in: query @@ -1738,7 +1713,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDuoDeviceList' + $ref: '#/components/schemas/PaginatedWebAuthnDeviceList' description: "" "400": content: @@ -1756,12 +1731,44 @@ paths: - authentik: [] tags: - authenticators - /authenticators/duo/{id}/: + post: + description: Viewset for WebAuthn authenticator devices (for admins) + operationId: authenticators_admin_webauthn_create + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WebAuthnDeviceRequest' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/WebAuthnDevice' + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - authenticators + /authenticators/admin/webauthn/{id}/: delete: - description: Viewset for Duo authenticator devices - operationId: authenticators_duo_destroy + description: Viewset for WebAuthn authenticator devices (for admins) + operationId: authenticators_admin_webauthn_destroy parameters: - - description: A unique integer value identifying this Duo Device. + - description: A unique integer value identifying this WebAuthn Device. explode: false in: path name: id @@ -1789,10 +1796,10 @@ paths: tags: - authenticators get: - description: Viewset for Duo authenticator devices - operationId: authenticators_duo_retrieve + description: Viewset for WebAuthn authenticator devices (for admins) + operationId: authenticators_admin_webauthn_retrieve parameters: - - description: A unique integer value identifying this Duo Device. + - description: A unique integer value identifying this WebAuthn Device. explode: false in: path name: id @@ -1805,7 +1812,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DuoDevice' + $ref: '#/components/schemas/WebAuthnDevice' description: "" "400": content: @@ -1824,10 +1831,10 @@ paths: tags: - authenticators patch: - description: Viewset for Duo authenticator devices - operationId: authenticators_duo_partial_update + description: Viewset for WebAuthn authenticator devices (for admins) + operationId: authenticators_admin_webauthn_partial_update parameters: - - description: A unique integer value identifying this Duo Device. + - description: A unique integer value identifying this WebAuthn Device. explode: false in: path name: id @@ -1839,13 +1846,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDuoDeviceRequest' + $ref: '#/components/schemas/PatchedWebAuthnDeviceRequest' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DuoDevice' + $ref: '#/components/schemas/WebAuthnDevice' description: "" "400": content: @@ -1864,10 +1871,10 @@ paths: tags: - authenticators put: - description: Viewset for Duo authenticator devices - operationId: authenticators_duo_update + description: Viewset for WebAuthn authenticator devices (for admins) + operationId: authenticators_admin_webauthn_update parameters: - - description: A unique integer value identifying this Duo Device. + - description: A unique integer value identifying this WebAuthn Device. explode: false in: path name: id @@ -1879,14 +1886,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DuoDeviceRequest' + $ref: '#/components/schemas/WebAuthnDeviceRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DuoDevice' + $ref: '#/components/schemas/WebAuthnDevice' description: "" "400": content: @@ -1904,26 +1911,17 @@ paths: - authentik: [] tags: - authenticators - /authenticators/duo/{id}/used_by/: + /authenticators/all/: get: - description: Get a list of all objects that use this object - operationId: authenticators_duo_used_by_list - parameters: - - description: A unique integer value identifying this Duo Device. - explode: false - in: path - name: id - required: true - schema: - type: integer - style: simple + description: Get all devices for current user + operationId: authenticators_all_list responses: "200": content: application/json: schema: items: - $ref: '#/components/schemas/UsedBy' + $ref: '#/components/schemas/Device' type: array description: "" "400": @@ -1942,10 +1940,10 @@ paths: - authentik: [] tags: - authenticators - /authenticators/sms/: + /authenticators/duo/: get: - description: Viewset for sms authenticator devices - operationId: authenticators_sms_list + description: Viewset for Duo authenticator devices + operationId: authenticators_duo_list parameters: - explode: true in: query @@ -1991,7 +1989,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSMSDeviceList' + $ref: '#/components/schemas/PaginatedDuoDeviceList' description: "" "400": content: @@ -2009,12 +2007,12 @@ paths: - authentik: [] tags: - authenticators - /authenticators/sms/{id}/: + /authenticators/duo/{id}/: delete: - description: Viewset for sms authenticator devices - operationId: authenticators_sms_destroy + description: Viewset for Duo authenticator devices + operationId: authenticators_duo_destroy parameters: - - description: A unique integer value identifying this SMS Device. + - description: A unique integer value identifying this Duo Device. explode: false in: path name: id @@ -2042,10 +2040,10 @@ paths: tags: - authenticators get: - description: Viewset for sms authenticator devices - operationId: authenticators_sms_retrieve + description: Viewset for Duo authenticator devices + operationId: authenticators_duo_retrieve parameters: - - description: A unique integer value identifying this SMS Device. + - description: A unique integer value identifying this Duo Device. explode: false in: path name: id @@ -2058,7 +2056,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SMSDevice' + $ref: '#/components/schemas/DuoDevice' description: "" "400": content: @@ -2077,10 +2075,10 @@ paths: tags: - authenticators patch: - description: Viewset for sms authenticator devices - operationId: authenticators_sms_partial_update + description: Viewset for Duo authenticator devices + operationId: authenticators_duo_partial_update parameters: - - description: A unique integer value identifying this SMS Device. + - description: A unique integer value identifying this Duo Device. explode: false in: path name: id @@ -2092,13 +2090,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedSMSDeviceRequest' + $ref: '#/components/schemas/PatchedDuoDeviceRequest' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SMSDevice' + $ref: '#/components/schemas/DuoDevice' description: "" "400": content: @@ -2117,10 +2115,10 @@ paths: tags: - authenticators put: - description: Viewset for sms authenticator devices - operationId: authenticators_sms_update + description: Viewset for Duo authenticator devices + operationId: authenticators_duo_update parameters: - - description: A unique integer value identifying this SMS Device. + - description: A unique integer value identifying this Duo Device. explode: false in: path name: id @@ -2132,14 +2130,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SMSDeviceRequest' + $ref: '#/components/schemas/DuoDeviceRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/SMSDevice' + $ref: '#/components/schemas/DuoDevice' description: "" "400": content: @@ -2157,12 +2155,12 @@ paths: - authentik: [] tags: - authenticators - /authenticators/sms/{id}/used_by/: + /authenticators/duo/{id}/used_by/: get: description: Get a list of all objects that use this object - operationId: authenticators_sms_used_by_list + operationId: authenticators_duo_used_by_list parameters: - - description: A unique integer value identifying this SMS Device. + - description: A unique integer value identifying this Duo Device. explode: false in: path name: id @@ -2195,10 +2193,10 @@ paths: - authentik: [] tags: - authenticators - /authenticators/static/: + /authenticators/endpoint/: get: - description: Viewset for static authenticator devices - operationId: authenticators_static_list + description: Viewset for Endpoint authenticator devices + operationId: authenticators_endpoint_list parameters: - explode: true in: query @@ -2244,7 +2242,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedStaticDeviceList' + $ref: '#/components/schemas/PaginatedEndpointDeviceList' description: "" "400": content: @@ -2262,12 +2260,155 @@ paths: - authentik: [] tags: - authenticators - /authenticators/static/{id}/: + /authenticators/endpoint/{uuid}/: + get: + description: Viewset for Endpoint authenticator devices + operationId: authenticators_endpoint_retrieve + parameters: + - description: A UUID string identifying this Endpoint Device. + explode: false + in: path + name: uuid + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointDevice' + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - authenticators + /authenticators/endpoint/{uuid}/used_by/: + get: + description: Get a list of all objects that use this object + operationId: authenticators_endpoint_used_by_list + parameters: + - description: A UUID string identifying this Endpoint Device. + explode: false + in: path + name: uuid + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UsedBy' + type: array + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - authenticators + /authenticators/sms/: + get: + description: Viewset for sms authenticator devices + operationId: authenticators_sms_list + parameters: + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: A search term. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedSMSDeviceList' + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - authenticators + /authenticators/sms/{id}/: delete: - description: Viewset for static authenticator devices - operationId: authenticators_static_destroy + description: Viewset for sms authenticator devices + operationId: authenticators_sms_destroy parameters: - - description: A unique integer value identifying this Static Device. + - description: A unique integer value identifying this SMS Device. explode: false in: path name: id @@ -2295,10 +2436,10 @@ paths: tags: - authenticators get: - description: Viewset for static authenticator devices - operationId: authenticators_static_retrieve + description: Viewset for sms authenticator devices + operationId: authenticators_sms_retrieve parameters: - - description: A unique integer value identifying this Static Device. + - description: A unique integer value identifying this SMS Device. explode: false in: path name: id @@ -2311,7 +2452,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StaticDevice' + $ref: '#/components/schemas/SMSDevice' description: "" "400": content: @@ -2330,10 +2471,10 @@ paths: tags: - authenticators patch: - description: Viewset for static authenticator devices - operationId: authenticators_static_partial_update + description: Viewset for sms authenticator devices + operationId: authenticators_sms_partial_update parameters: - - description: A unique integer value identifying this Static Device. + - description: A unique integer value identifying this SMS Device. explode: false in: path name: id @@ -2345,13 +2486,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedStaticDeviceRequest' + $ref: '#/components/schemas/PatchedSMSDeviceRequest' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StaticDevice' + $ref: '#/components/schemas/SMSDevice' description: "" "400": content: @@ -2370,10 +2511,10 @@ paths: tags: - authenticators put: - description: Viewset for static authenticator devices - operationId: authenticators_static_update + description: Viewset for sms authenticator devices + operationId: authenticators_sms_update parameters: - - description: A unique integer value identifying this Static Device. + - description: A unique integer value identifying this SMS Device. explode: false in: path name: id @@ -2385,14 +2526,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StaticDeviceRequest' + $ref: '#/components/schemas/SMSDeviceRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StaticDevice' + $ref: '#/components/schemas/SMSDevice' description: "" "400": content: @@ -2410,12 +2551,265 @@ paths: - authentik: [] tags: - authenticators - /authenticators/static/{id}/used_by/: + /authenticators/sms/{id}/used_by/: get: description: Get a list of all objects that use this object - operationId: authenticators_static_used_by_list + operationId: authenticators_sms_used_by_list parameters: - - description: A unique integer value identifying this Static Device. + - description: A unique integer value identifying this SMS Device. + explode: false + in: path + name: id + required: true + schema: + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UsedBy' + type: array + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - authenticators + /authenticators/static/: + get: + description: Viewset for static authenticator devices + operationId: authenticators_static_list + parameters: + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: A search term. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedStaticDeviceList' + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - authenticators + /authenticators/static/{id}/: + delete: + description: Viewset for static authenticator devices + operationId: authenticators_static_destroy + parameters: + - description: A unique integer value identifying this Static Device. + explode: false + in: path + name: id + required: true + schema: + type: integer + style: simple + responses: + "204": + description: No response body + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - authenticators + get: + description: Viewset for static authenticator devices + operationId: authenticators_static_retrieve + parameters: + - description: A unique integer value identifying this Static Device. + explode: false + in: path + name: id + required: true + schema: + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/StaticDevice' + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - authenticators + patch: + description: Viewset for static authenticator devices + operationId: authenticators_static_partial_update + parameters: + - description: A unique integer value identifying this Static Device. + explode: false + in: path + name: id + required: true + schema: + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedStaticDeviceRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/StaticDevice' + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - authenticators + put: + description: Viewset for static authenticator devices + operationId: authenticators_static_update + parameters: + - description: A unique integer value identifying this Static Device. + explode: false + in: path + name: id + required: true + schema: + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/StaticDeviceRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/StaticDevice' + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - authenticators + /authenticators/static/{id}/used_by/: + get: + description: Get a list of all objects that use this object + operationId: authenticators_static_used_by_list + parameters: + - description: A unique integer value identifying this Static Device. explode: false in: path name: id @@ -25281,6 +25675,7 @@ paths: - authentik_sources_scim.scimsourcepropertymapping - authentik_stages_authenticator_duo.authenticatorduostage - authentik_stages_authenticator_duo.duodevice + - authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage - authentik_stages_authenticator_sms.authenticatorsmsstage - authentik_stages_authenticator_sms.smsdevice - authentik_stages_authenticator_static.authenticatorstaticstage @@ -25532,6 +25927,7 @@ paths: - authentik_sources_scim.scimsourcepropertymapping - authentik_stages_authenticator_duo.authenticatorduostage - authentik_stages_authenticator_duo.duodevice + - authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage - authentik_stages_authenticator_sms.authenticatorsmsstage - authentik_stages_authenticator_sms.smsdevice - authentik_stages_authenticator_static.authenticatorstaticstage @@ -32039,10 +32435,415 @@ paths: tags: - stages get: - description: AuthenticatorDuoStage Viewset - operationId: stages_authenticator_duo_retrieve + description: AuthenticatorDuoStage Viewset + operationId: stages_authenticator_duo_retrieve + parameters: + - description: A UUID string identifying this Duo Authenticator Setup Stage. + explode: false + in: path + name: stage_uuid + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStage' + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - stages + patch: + description: AuthenticatorDuoStage Viewset + operationId: stages_authenticator_duo_partial_update + parameters: + - description: A UUID string identifying this Duo Authenticator Setup Stage. + explode: false + in: path + name: stage_uuid + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedAuthenticatorDuoStageRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStage' + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - stages + put: + description: AuthenticatorDuoStage Viewset + operationId: stages_authenticator_duo_update + parameters: + - description: A UUID string identifying this Duo Authenticator Setup Stage. + explode: false + in: path + name: stage_uuid + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStageRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStage' + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - stages + /stages/authenticator/duo/{stage_uuid}/enrollment_status/: + post: + description: Check enrollment status of user details in current session + operationId: stages_authenticator_duo_enrollment_status_create + parameters: + - description: A UUID string identifying this Duo Authenticator Setup Stage. + explode: false + in: path + name: stage_uuid + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DuoDeviceEnrollmentStatus' + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - stages + /stages/authenticator/duo/{stage_uuid}/import_device_manual/: + post: + description: Import duo devices into authentik + operationId: stages_authenticator_duo_import_device_manual_create + parameters: + - description: A UUID string identifying this Duo Authenticator Setup Stage. + explode: false + in: path + name: stage_uuid + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStageManualDeviceImportRequest' + required: true + responses: + "204": + description: Enrollment successful + "400": + description: Bad request + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - stages + /stages/authenticator/duo/{stage_uuid}/import_devices_automatic/: + post: + description: Import duo devices into authentik + operationId: stages_authenticator_duo_import_devices_automatic_create + parameters: + - description: A UUID string identifying this Duo Authenticator Setup Stage. + explode: false + in: path + name: stage_uuid + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStageDeviceImportResponse' + description: "" + "400": + description: Bad request + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - stages + /stages/authenticator/duo/{stage_uuid}/used_by/: + get: + description: Get a list of all objects that use this object + operationId: stages_authenticator_duo_used_by_list + parameters: + - description: A UUID string identifying this Duo Authenticator Setup Stage. + explode: false + in: path + name: stage_uuid + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UsedBy' + type: array + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - stages + /stages/authenticator/endpoint_gdtc/: + get: + description: AuthenticatorEndpointGDTCStage Viewset + operationId: stages_authenticator_endpoint_gdtc_list + parameters: + - explode: true + in: query + name: configure_flow + required: false + schema: + format: uuid + type: string + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Which field to use when ordering the results. + explode: true + in: query + name: ordering + required: false + schema: + type: string + style: form + - description: A page number within the paginated result set. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results to return per page. + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: A search term. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedAuthenticatorEndpointGDTCStageList' + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - stages + post: + description: AuthenticatorEndpointGDTCStage Viewset + operationId: stages_authenticator_endpoint_gdtc_create + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStageRequest' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStage' + description: "" + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - stages + /stages/authenticator/endpoint_gdtc/{stage_uuid}/: + delete: + description: AuthenticatorEndpointGDTCStage Viewset + operationId: stages_authenticator_endpoint_gdtc_destroy + parameters: + - description: A UUID string identifying this Endpoint Authenticator Google + Device Trust Connector Stage. + explode: false + in: path + name: stage_uuid + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: No response body + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: "" + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + security: + - authentik: [] + tags: + - stages + get: + description: AuthenticatorEndpointGDTCStage Viewset + operationId: stages_authenticator_endpoint_gdtc_retrieve parameters: - - description: A UUID string identifying this Duo Authenticator Setup Stage. + - description: A UUID string identifying this Endpoint Authenticator Google + Device Trust Connector Stage. explode: false in: path name: stage_uuid @@ -32056,7 +32857,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuthenticatorDuoStage' + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStage' description: "" "400": content: @@ -32075,10 +32876,11 @@ paths: tags: - stages patch: - description: AuthenticatorDuoStage Viewset - operationId: stages_authenticator_duo_partial_update + description: AuthenticatorEndpointGDTCStage Viewset + operationId: stages_authenticator_endpoint_gdtc_partial_update parameters: - - description: A UUID string identifying this Duo Authenticator Setup Stage. + - description: A UUID string identifying this Endpoint Authenticator Google + Device Trust Connector Stage. explode: false in: path name: stage_uuid @@ -32091,13 +32893,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedAuthenticatorDuoStageRequest' + $ref: '#/components/schemas/PatchedAuthenticatorEndpointGDTCStageRequest' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AuthenticatorDuoStage' + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStage' description: "" "400": content: @@ -32116,10 +32918,11 @@ paths: tags: - stages put: - description: AuthenticatorDuoStage Viewset - operationId: stages_authenticator_duo_update + description: AuthenticatorEndpointGDTCStage Viewset + operationId: stages_authenticator_endpoint_gdtc_update parameters: - - description: A UUID string identifying this Duo Authenticator Setup Stage. + - description: A UUID string identifying this Endpoint Authenticator Google + Device Trust Connector Stage. explode: false in: path name: stage_uuid @@ -32132,14 +32935,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuthenticatorDuoStageRequest' + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStageRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AuthenticatorDuoStage' + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStage' description: "" "400": content: @@ -32157,117 +32960,13 @@ paths: - authentik: [] tags: - stages - /stages/authenticator/duo/{stage_uuid}/enrollment_status/: - post: - description: Check enrollment status of user details in current session - operationId: stages_authenticator_duo_enrollment_status_create - parameters: - - description: A UUID string identifying this Duo Authenticator Setup Stage. - explode: false - in: path - name: stage_uuid - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/DuoDeviceEnrollmentStatus' - description: "" - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ValidationError' - description: "" - "403": - content: - application/json: - schema: - $ref: '#/components/schemas/GenericError' - description: "" - security: - - authentik: [] - tags: - - stages - /stages/authenticator/duo/{stage_uuid}/import_device_manual/: - post: - description: Import duo devices into authentik - operationId: stages_authenticator_duo_import_device_manual_create - parameters: - - description: A UUID string identifying this Duo Authenticator Setup Stage. - explode: false - in: path - name: stage_uuid - required: true - schema: - format: uuid - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticatorDuoStageManualDeviceImportRequest' - required: true - responses: - "204": - description: Enrollment successful - "400": - description: Bad request - "403": - content: - application/json: - schema: - $ref: '#/components/schemas/GenericError' - description: "" - security: - - authentik: [] - tags: - - stages - /stages/authenticator/duo/{stage_uuid}/import_devices_automatic/: - post: - description: Import duo devices into authentik - operationId: stages_authenticator_duo_import_devices_automatic_create - parameters: - - description: A UUID string identifying this Duo Authenticator Setup Stage. - explode: false - in: path - name: stage_uuid - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticatorDuoStageDeviceImportResponse' - description: "" - "400": - description: Bad request - "403": - content: - application/json: - schema: - $ref: '#/components/schemas/GenericError' - description: "" - security: - - authentik: [] - tags: - - stages - /stages/authenticator/duo/{stage_uuid}/used_by/: + /stages/authenticator/endpoint_gdtc/{stage_uuid}/used_by/: get: description: Get a list of all objects that use this object - operationId: stages_authenticator_duo_used_by_list + operationId: stages_authenticator_endpoint_gdtc_used_by_list parameters: - - description: A UUID string identifying this Duo Authenticator Setup Stage. + - description: A UUID string identifying this Endpoint Authenticator Google + Device Trust Connector Stage. explode: false in: path name: stage_uuid @@ -39943,6 +40642,7 @@ components: - authentik.enterprise.providers.google_workspace - authentik.enterprise.providers.microsoft_entra - authentik.enterprise.providers.rac + - authentik.enterprise.stages.authenticator_endpoint_gdtc - authentik.enterprise.stages.source - authentik.events type: string @@ -40363,62 +41063,210 @@ components: friendly_name: nullable: true type: string - client_id: - type: string - api_hostname: - type: string - admin_integration_key: - type: string + client_id: + type: string + api_hostname: + type: string + admin_integration_key: + type: string + required: + - api_hostname + - client_id + - component + - meta_model_name + - name + - pk + - verbose_name + - verbose_name_plural + type: object + AuthenticatorDuoStageDeviceImportResponse: + example: + count: 0 + error: error + properties: + count: + readOnly: true + type: integer + error: + readOnly: true + type: string + required: + - count + - error + type: object + AuthenticatorDuoStageManualDeviceImportRequest: + example: + duo_user_id: duo_user_id + username: username + properties: + duo_user_id: + minLength: 1 + type: string + username: + minLength: 1 + type: string + required: + - duo_user_id + - username + type: object + AuthenticatorDuoStageRequest: + description: AuthenticatorDuoStage Serializer + example: + configure_flow: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + friendly_name: friendly_name + name: name + client_secret: client_secret + api_hostname: api_hostname + admin_integration_key: admin_integration_key + admin_secret_key: admin_secret_key + flow_set: + - policy_engine_mode: null + compatibility_mode: true + layout: null + denied_action: "" + name: name + designation: "" + title: title + slug: slug + - policy_engine_mode: null + compatibility_mode: true + layout: null + denied_action: "" + name: name + designation: "" + title: title + slug: slug + client_id: client_id + properties: + name: + minLength: 1 + type: string + flow_set: + items: + $ref: '#/components/schemas/FlowSetRequest' + type: array + configure_flow: + description: "Flow used by an authenticated user to configure this Stage.\ + \ If empty, user will not be able to configure this stage." + format: uuid + nullable: true + type: string + friendly_name: + minLength: 1 + nullable: true + type: string + client_id: + minLength: 1 + type: string + client_secret: + minLength: 1 + type: string + writeOnly: true + api_hostname: + minLength: 1 + type: string + admin_integration_key: + type: string + admin_secret_key: + type: string + writeOnly: true + required: + - api_hostname + - client_id + - client_secret + - name + type: object + AuthenticatorEndpointGDTCStage: + description: AuthenticatorEndpointGDTCStage Serializer + example: + component: component + verbose_name: verbose_name + configure_flow: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + friendly_name: friendly_name + verbose_name_plural: verbose_name_plural + meta_model_name: meta_model_name + credentials: "" + name: name + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + flow_set: + - policy_engine_mode: null + compatibility_mode: true + layout: null + policybindingmodel_ptr_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + background: background + denied_action: "" + name: name + export_url: export_url + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + designation: "" + title: title + slug: slug + - policy_engine_mode: null + compatibility_mode: true + layout: null + policybindingmodel_ptr_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + background: background + denied_action: "" + name: name + export_url: export_url + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + designation: "" + title: title + slug: slug + properties: + pk: + format: uuid + readOnly: true + title: Stage uuid + type: string + name: + type: string + component: + description: Get object type so that we know how to edit the object + readOnly: true + type: string + verbose_name: + description: Return object's verbose_name + readOnly: true + type: string + verbose_name_plural: + description: Return object's plural verbose_name + readOnly: true + type: string + meta_model_name: + description: Return internal model name + readOnly: true + type: string + flow_set: + items: + $ref: '#/components/schemas/FlowSet' + type: array + configure_flow: + description: "Flow used by an authenticated user to configure this Stage.\ + \ If empty, user will not be able to configure this stage." + format: uuid + nullable: true + type: string + friendly_name: + nullable: true + type: string + credentials: {} required: - - api_hostname - - client_id - component + - credentials - meta_model_name - name - pk - verbose_name - verbose_name_plural type: object - AuthenticatorDuoStageDeviceImportResponse: - example: - count: 0 - error: error - properties: - count: - readOnly: true - type: integer - error: - readOnly: true - type: string - required: - - count - - error - type: object - AuthenticatorDuoStageManualDeviceImportRequest: - example: - duo_user_id: duo_user_id - username: username - properties: - duo_user_id: - minLength: 1 - type: string - username: - minLength: 1 - type: string - required: - - duo_user_id - - username - type: object - AuthenticatorDuoStageRequest: - description: AuthenticatorDuoStage Serializer + AuthenticatorEndpointGDTCStageRequest: + description: AuthenticatorEndpointGDTCStage Serializer example: configure_flow: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 friendly_name: friendly_name + credentials: "" name: name - client_secret: client_secret - api_hostname: api_hostname - admin_integration_key: admin_integration_key - admin_secret_key: admin_secret_key flow_set: - policy_engine_mode: null compatibility_mode: true @@ -40436,7 +41284,6 @@ components: designation: "" title: title slug: slug - client_id: client_id properties: name: minLength: 1 @@ -40455,25 +41302,9 @@ components: minLength: 1 nullable: true type: string - client_id: - minLength: 1 - type: string - client_secret: - minLength: 1 - type: string - writeOnly: true - api_hostname: - minLength: 1 - type: string - admin_integration_key: - type: string - admin_secret_key: - type: string - writeOnly: true + credentials: {} required: - - api_hostname - - client_id - - client_secret + - credentials - name type: object AuthenticatorSMSChallenge: @@ -42209,6 +43040,7 @@ components: ak-stage-dummy: '#/components/schemas/DummyChallenge' ak-stage-email: '#/components/schemas/EmailChallenge' ak-stage-flow-error: '#/components/schemas/FlowErrorChallenge' + xak-flow-frame: '#/components/schemas/FrameChallenge' ak-stage-identification: '#/components/schemas/IdentificationChallenge' ak-provider-oauth2-device-code: '#/components/schemas/OAuthDeviceCodeChallenge' ak-provider-oauth2-device-code-finish: '#/components/schemas/OAuthDeviceCodeFinishChallenge' @@ -42235,6 +43067,7 @@ components: - $ref: '#/components/schemas/DummyChallenge' - $ref: '#/components/schemas/EmailChallenge' - $ref: '#/components/schemas/FlowErrorChallenge' + - $ref: '#/components/schemas/FrameChallenge' - $ref: '#/components/schemas/IdentificationChallenge' - $ref: '#/components/schemas/OAuthDeviceCodeChallenge' - $ref: '#/components/schemas/OAuthDeviceCodeFinishChallenge' @@ -43053,7 +43886,7 @@ components: extra_description: extra_description last_used: 2000-01-23T04:56:07.000+00:00 name: name - pk: 0 + pk: pk type: type confirmed: true properties: @@ -43070,7 +43903,7 @@ components: readOnly: true type: string pk: - type: integer + type: string name: type: string type: @@ -43878,6 +44711,41 @@ components: - provider - provider_obj type: object + EndpointDevice: + description: Serializer for Endpoint authenticator devices + example: + name: name + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + pk: + format: uuid + title: Uuid + type: string + name: + description: The human-readable name of this device. + maxLength: 64 + type: string + required: + - name + type: object + EndpointDeviceRequest: + description: Serializer for Endpoint authenticator devices + example: + name: name + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + pk: + format: uuid + title: Uuid + type: string + name: + description: The human-readable name of this device. + maxLength: 64 + minLength: 1 + type: string + required: + - name + type: object EndpointRequest: description: Endpoint Serializer example: @@ -44673,6 +45541,7 @@ components: ak-stage-consent: '#/components/schemas/ConsentChallengeResponseRequest' ak-stage-dummy: '#/components/schemas/DummyChallengeResponseRequest' ak-stage-email: '#/components/schemas/EmailChallengeResponseRequest' + xak-flow-frame: '#/components/schemas/FrameChallengeResponseRequest' ak-stage-identification: '#/components/schemas/IdentificationChallengeResponseRequest' ak-provider-oauth2-device-code: '#/components/schemas/OAuthDeviceCodeChallengeResponseRequest' ak-provider-oauth2-device-code-finish: '#/components/schemas/OAuthDeviceCodeFinishChallengeResponseRequest' @@ -44694,6 +45563,7 @@ components: - $ref: '#/components/schemas/ConsentChallengeResponseRequest' - $ref: '#/components/schemas/DummyChallengeResponseRequest' - $ref: '#/components/schemas/EmailChallengeResponseRequest' + - $ref: '#/components/schemas/FrameChallengeResponseRequest' - $ref: '#/components/schemas/IdentificationChallengeResponseRequest' - $ref: '#/components/schemas/OAuthDeviceCodeChallengeResponseRequest' - $ref: '#/components/schemas/OAuthDeviceCodeFinishChallengeResponseRequest' @@ -45146,6 +46016,39 @@ components: - href - name type: object + FrameChallenge: + description: Challenge type to render a frame + properties: + flow_info: + $ref: '#/components/schemas/ContextualFlowInfo' + component: + default: xak-flow-frame + type: string + response_errors: + additionalProperties: + items: + $ref: '#/components/schemas/ErrorDetail' + type: array + type: object + url: + type: string + loading_overlay: + default: false + type: boolean + loading_text: + type: string + required: + - loading_text + - url + type: object + FrameChallengeResponseRequest: + description: Base class for all challenge responses + properties: + component: + default: xak-flow-frame + minLength: 1 + type: string + type: object GenericError: description: Generic API Error properties: @@ -48038,6 +48941,7 @@ components: - authentik_providers_rac.racprovider - authentik_providers_rac.endpoint - authentik_providers_rac.racpropertymapping + - authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage - authentik_stages_source.sourcestage - authentik_events.event - authentik_events.notificationtransport @@ -49677,6 +50581,96 @@ components: - pagination - results type: object + PaginatedAuthenticatorEndpointGDTCStageList: + example: + pagination: + next: 0.8008281904610115 + current: 5.962133916683182 + previous: 6.027456183070403 + start_index: 2.3021358869347655 + count: 1.4658129805029452 + end_index: 7.061401241503109 + total_pages: 5.637376656633329 + results: + - component: component + verbose_name: verbose_name + configure_flow: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + friendly_name: friendly_name + verbose_name_plural: verbose_name_plural + meta_model_name: meta_model_name + credentials: "" + name: name + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + flow_set: + - policy_engine_mode: null + compatibility_mode: true + layout: null + policybindingmodel_ptr_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + background: background + denied_action: "" + name: name + export_url: export_url + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + designation: "" + title: title + slug: slug + - policy_engine_mode: null + compatibility_mode: true + layout: null + policybindingmodel_ptr_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + background: background + denied_action: "" + name: name + export_url: export_url + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + designation: "" + title: title + slug: slug + - component: component + verbose_name: verbose_name + configure_flow: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + friendly_name: friendly_name + verbose_name_plural: verbose_name_plural + meta_model_name: meta_model_name + credentials: "" + name: name + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + flow_set: + - policy_engine_mode: null + compatibility_mode: true + layout: null + policybindingmodel_ptr_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + background: background + denied_action: "" + name: name + export_url: export_url + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + designation: "" + title: title + slug: slug + - policy_engine_mode: null + compatibility_mode: true + layout: null + policybindingmodel_ptr_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + background: background + denied_action: "" + name: name + export_url: export_url + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + designation: "" + title: title + slug: slug + properties: + pagination: + $ref: '#/components/schemas/Pagination' + results: + items: + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStage' + type: array + required: + - pagination + - results + type: object PaginatedAuthenticatorSMSStageList: example: pagination: @@ -50975,6 +51969,32 @@ components: - pagination - results type: object + PaginatedEndpointDeviceList: + example: + pagination: + next: 0.8008281904610115 + current: 5.962133916683182 + previous: 6.027456183070403 + start_index: 2.3021358869347655 + count: 1.4658129805029452 + end_index: 7.061401241503109 + total_pages: 5.637376656633329 + results: + - name: name + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - name: name + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + pagination: + $ref: '#/components/schemas/Pagination' + results: + items: + $ref: '#/components/schemas/EndpointDevice' + type: array + required: + - pagination + - results + type: object PaginatedEndpointList: example: pagination: @@ -57348,6 +58368,50 @@ components: type: string writeOnly: true type: object + PatchedAuthenticatorEndpointGDTCStageRequest: + description: AuthenticatorEndpointGDTCStage Serializer + example: + configure_flow: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + friendly_name: friendly_name + credentials: "" + name: name + flow_set: + - policy_engine_mode: null + compatibility_mode: true + layout: null + denied_action: "" + name: name + designation: "" + title: title + slug: slug + - policy_engine_mode: null + compatibility_mode: true + layout: null + denied_action: "" + name: name + designation: "" + title: title + slug: slug + properties: + name: + minLength: 1 + type: string + flow_set: + items: + $ref: '#/components/schemas/FlowSetRequest' + type: array + configure_flow: + description: "Flow used by an authenticated user to configure this Stage.\ + \ If empty, user will not be able to configure this stage." + format: uuid + nullable: true + type: string + friendly_name: + minLength: 1 + nullable: true + type: string + credentials: {} + type: object PatchedAuthenticatorSMSStageRequest: description: AuthenticatorSMSStage Serializer example: @@ -58127,6 +59191,22 @@ components: description: Activate users upon completion of stage. type: boolean type: object + PatchedEndpointDeviceRequest: + description: Serializer for Endpoint authenticator devices + example: + name: name + pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + pk: + format: uuid + title: Uuid + type: string + name: + description: The human-readable name of this device. + maxLength: 64 + minLength: 1 + type: string + type: object PatchedEndpointRequest: description: Endpoint Serializer example: diff --git a/api_authenticators.go b/api_authenticators.go index 89a594a21..79809c11a 100644 --- a/api_authenticators.go +++ b/api_authenticators.go @@ -948,31 +948,31 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminDuoUpdateExecute(r ApiAuth return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminSmsCreateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - sMSDeviceRequest *SMSDeviceRequest +type ApiAuthenticatorsAdminEndpointCreateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + endpointDeviceRequest *EndpointDeviceRequest } -func (r ApiAuthenticatorsAdminSmsCreateRequest) SMSDeviceRequest(sMSDeviceRequest SMSDeviceRequest) ApiAuthenticatorsAdminSmsCreateRequest { - r.sMSDeviceRequest = &sMSDeviceRequest +func (r ApiAuthenticatorsAdminEndpointCreateRequest) EndpointDeviceRequest(endpointDeviceRequest EndpointDeviceRequest) ApiAuthenticatorsAdminEndpointCreateRequest { + r.endpointDeviceRequest = &endpointDeviceRequest return r } -func (r ApiAuthenticatorsAdminSmsCreateRequest) Execute() (*SMSDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminSmsCreateExecute(r) +func (r ApiAuthenticatorsAdminEndpointCreateRequest) Execute() (*EndpointDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminEndpointCreateExecute(r) } /* -AuthenticatorsAdminSmsCreate Method for AuthenticatorsAdminSmsCreate +AuthenticatorsAdminEndpointCreate Method for AuthenticatorsAdminEndpointCreate -Viewset for sms authenticator devices (for admins) +Viewset for Endpoint authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthenticatorsAdminSmsCreateRequest + @return ApiAuthenticatorsAdminEndpointCreateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsCreate(ctx context.Context) ApiAuthenticatorsAdminSmsCreateRequest { - return ApiAuthenticatorsAdminSmsCreateRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminEndpointCreate(ctx context.Context) ApiAuthenticatorsAdminEndpointCreateRequest { + return ApiAuthenticatorsAdminEndpointCreateRequest{ ApiService: a, ctx: ctx, } @@ -980,27 +980,27 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsCreate(ctx context.Cont // Execute executes the request // -// @return SMSDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsCreateExecute(r ApiAuthenticatorsAdminSmsCreateRequest) (*SMSDevice, *http.Response, error) { +// @return EndpointDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminEndpointCreateExecute(r ApiAuthenticatorsAdminEndpointCreateRequest) (*EndpointDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SMSDevice + localVarReturnValue *EndpointDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminSmsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminEndpointCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/sms/" + localVarPath := localBasePath + "/authenticators/admin/endpoint/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.sMSDeviceRequest == nil { - return localVarReturnValue, nil, reportError("sMSDeviceRequest is required and must be specified") + if r.endpointDeviceRequest == nil { + return localVarReturnValue, nil, reportError("endpointDeviceRequest is required and must be specified") } // to determine the Content-Type header @@ -1021,7 +1021,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsCreateExecute(r ApiAuth localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.sMSDeviceRequest + localVarPostBody = r.endpointDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1078,48 +1078,48 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsCreateExecute(r ApiAuth return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminSmsDestroyRequest struct { +type ApiAuthenticatorsAdminEndpointDestroyRequest struct { ctx context.Context ApiService *AuthenticatorsApiService - id int32 + uuid string } -func (r ApiAuthenticatorsAdminSmsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.AuthenticatorsAdminSmsDestroyExecute(r) +func (r ApiAuthenticatorsAdminEndpointDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.AuthenticatorsAdminEndpointDestroyExecute(r) } /* -AuthenticatorsAdminSmsDestroy Method for AuthenticatorsAdminSmsDestroy +AuthenticatorsAdminEndpointDestroy Method for AuthenticatorsAdminEndpointDestroy -Viewset for sms authenticator devices (for admins) +Viewset for Endpoint authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this SMS Device. - @return ApiAuthenticatorsAdminSmsDestroyRequest + @param uuid A UUID string identifying this Endpoint Device. + @return ApiAuthenticatorsAdminEndpointDestroyRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsDestroy(ctx context.Context, id int32) ApiAuthenticatorsAdminSmsDestroyRequest { - return ApiAuthenticatorsAdminSmsDestroyRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminEndpointDestroy(ctx context.Context, uuid string) ApiAuthenticatorsAdminEndpointDestroyRequest { + return ApiAuthenticatorsAdminEndpointDestroyRequest{ ApiService: a, ctx: ctx, - id: id, + uuid: uuid, } } // Execute executes the request -func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsDestroyExecute(r ApiAuthenticatorsAdminSmsDestroyRequest) (*http.Response, error) { +func (a *AuthenticatorsApiService) AuthenticatorsAdminEndpointDestroyExecute(r ApiAuthenticatorsAdminEndpointDestroyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminSmsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminEndpointDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/sms/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath := localBasePath + "/authenticators/admin/endpoint/{uuid}/" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterToString(r.uuid, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1189,7 +1189,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsDestroyExecute(r ApiAut return localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminSmsListRequest struct { +type ApiAuthenticatorsAdminEndpointListRequest struct { ctx context.Context ApiService *AuthenticatorsApiService name *string @@ -1199,49 +1199,49 @@ type ApiAuthenticatorsAdminSmsListRequest struct { search *string } -func (r ApiAuthenticatorsAdminSmsListRequest) Name(name string) ApiAuthenticatorsAdminSmsListRequest { +func (r ApiAuthenticatorsAdminEndpointListRequest) Name(name string) ApiAuthenticatorsAdminEndpointListRequest { r.name = &name return r } // Which field to use when ordering the results. -func (r ApiAuthenticatorsAdminSmsListRequest) Ordering(ordering string) ApiAuthenticatorsAdminSmsListRequest { +func (r ApiAuthenticatorsAdminEndpointListRequest) Ordering(ordering string) ApiAuthenticatorsAdminEndpointListRequest { r.ordering = &ordering return r } // A page number within the paginated result set. -func (r ApiAuthenticatorsAdminSmsListRequest) Page(page int32) ApiAuthenticatorsAdminSmsListRequest { +func (r ApiAuthenticatorsAdminEndpointListRequest) Page(page int32) ApiAuthenticatorsAdminEndpointListRequest { r.page = &page return r } // Number of results to return per page. -func (r ApiAuthenticatorsAdminSmsListRequest) PageSize(pageSize int32) ApiAuthenticatorsAdminSmsListRequest { +func (r ApiAuthenticatorsAdminEndpointListRequest) PageSize(pageSize int32) ApiAuthenticatorsAdminEndpointListRequest { r.pageSize = &pageSize return r } // A search term. -func (r ApiAuthenticatorsAdminSmsListRequest) Search(search string) ApiAuthenticatorsAdminSmsListRequest { +func (r ApiAuthenticatorsAdminEndpointListRequest) Search(search string) ApiAuthenticatorsAdminEndpointListRequest { r.search = &search return r } -func (r ApiAuthenticatorsAdminSmsListRequest) Execute() (*PaginatedSMSDeviceList, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminSmsListExecute(r) +func (r ApiAuthenticatorsAdminEndpointListRequest) Execute() (*PaginatedEndpointDeviceList, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminEndpointListExecute(r) } /* -AuthenticatorsAdminSmsList Method for AuthenticatorsAdminSmsList +AuthenticatorsAdminEndpointList Method for AuthenticatorsAdminEndpointList -Viewset for sms authenticator devices (for admins) +Viewset for Endpoint authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthenticatorsAdminSmsListRequest + @return ApiAuthenticatorsAdminEndpointListRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsList(ctx context.Context) ApiAuthenticatorsAdminSmsListRequest { - return ApiAuthenticatorsAdminSmsListRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminEndpointList(ctx context.Context) ApiAuthenticatorsAdminEndpointListRequest { + return ApiAuthenticatorsAdminEndpointListRequest{ ApiService: a, ctx: ctx, } @@ -1249,21 +1249,21 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsList(ctx context.Contex // Execute executes the request // -// @return PaginatedSMSDeviceList -func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsListExecute(r ApiAuthenticatorsAdminSmsListRequest) (*PaginatedSMSDeviceList, *http.Response, error) { +// @return PaginatedEndpointDeviceList +func (a *AuthenticatorsApiService) AuthenticatorsAdminEndpointListExecute(r ApiAuthenticatorsAdminEndpointListRequest) (*PaginatedEndpointDeviceList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedSMSDeviceList + localVarReturnValue *PaginatedEndpointDeviceList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminSmsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminEndpointList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/sms/" + localVarPath := localBasePath + "/authenticators/admin/endpoint/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1357,57 +1357,57 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsListExecute(r ApiAuthen return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminSmsPartialUpdateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - id int32 - patchedSMSDeviceRequest *PatchedSMSDeviceRequest +type ApiAuthenticatorsAdminEndpointPartialUpdateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + uuid string + patchedEndpointDeviceRequest *PatchedEndpointDeviceRequest } -func (r ApiAuthenticatorsAdminSmsPartialUpdateRequest) PatchedSMSDeviceRequest(patchedSMSDeviceRequest PatchedSMSDeviceRequest) ApiAuthenticatorsAdminSmsPartialUpdateRequest { - r.patchedSMSDeviceRequest = &patchedSMSDeviceRequest +func (r ApiAuthenticatorsAdminEndpointPartialUpdateRequest) PatchedEndpointDeviceRequest(patchedEndpointDeviceRequest PatchedEndpointDeviceRequest) ApiAuthenticatorsAdminEndpointPartialUpdateRequest { + r.patchedEndpointDeviceRequest = &patchedEndpointDeviceRequest return r } -func (r ApiAuthenticatorsAdminSmsPartialUpdateRequest) Execute() (*SMSDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminSmsPartialUpdateExecute(r) +func (r ApiAuthenticatorsAdminEndpointPartialUpdateRequest) Execute() (*EndpointDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminEndpointPartialUpdateExecute(r) } /* -AuthenticatorsAdminSmsPartialUpdate Method for AuthenticatorsAdminSmsPartialUpdate +AuthenticatorsAdminEndpointPartialUpdate Method for AuthenticatorsAdminEndpointPartialUpdate -Viewset for sms authenticator devices (for admins) +Viewset for Endpoint authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this SMS Device. - @return ApiAuthenticatorsAdminSmsPartialUpdateRequest + @param uuid A UUID string identifying this Endpoint Device. + @return ApiAuthenticatorsAdminEndpointPartialUpdateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsPartialUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminSmsPartialUpdateRequest { - return ApiAuthenticatorsAdminSmsPartialUpdateRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminEndpointPartialUpdate(ctx context.Context, uuid string) ApiAuthenticatorsAdminEndpointPartialUpdateRequest { + return ApiAuthenticatorsAdminEndpointPartialUpdateRequest{ ApiService: a, ctx: ctx, - id: id, + uuid: uuid, } } // Execute executes the request // -// @return SMSDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsPartialUpdateExecute(r ApiAuthenticatorsAdminSmsPartialUpdateRequest) (*SMSDevice, *http.Response, error) { +// @return EndpointDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminEndpointPartialUpdateExecute(r ApiAuthenticatorsAdminEndpointPartialUpdateRequest) (*EndpointDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SMSDevice + localVarReturnValue *EndpointDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminSmsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminEndpointPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/sms/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath := localBasePath + "/authenticators/admin/endpoint/{uuid}/" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterToString(r.uuid, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1431,7 +1431,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsPartialUpdateExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedSMSDeviceRequest + localVarPostBody = r.patchedEndpointDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1488,51 +1488,51 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsPartialUpdateExecute(r return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminSmsRetrieveRequest struct { +type ApiAuthenticatorsAdminEndpointRetrieveRequest struct { ctx context.Context ApiService *AuthenticatorsApiService - id int32 + uuid string } -func (r ApiAuthenticatorsAdminSmsRetrieveRequest) Execute() (*SMSDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminSmsRetrieveExecute(r) +func (r ApiAuthenticatorsAdminEndpointRetrieveRequest) Execute() (*EndpointDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminEndpointRetrieveExecute(r) } /* -AuthenticatorsAdminSmsRetrieve Method for AuthenticatorsAdminSmsRetrieve +AuthenticatorsAdminEndpointRetrieve Method for AuthenticatorsAdminEndpointRetrieve -Viewset for sms authenticator devices (for admins) +Viewset for Endpoint authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this SMS Device. - @return ApiAuthenticatorsAdminSmsRetrieveRequest + @param uuid A UUID string identifying this Endpoint Device. + @return ApiAuthenticatorsAdminEndpointRetrieveRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsRetrieve(ctx context.Context, id int32) ApiAuthenticatorsAdminSmsRetrieveRequest { - return ApiAuthenticatorsAdminSmsRetrieveRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminEndpointRetrieve(ctx context.Context, uuid string) ApiAuthenticatorsAdminEndpointRetrieveRequest { + return ApiAuthenticatorsAdminEndpointRetrieveRequest{ ApiService: a, ctx: ctx, - id: id, + uuid: uuid, } } // Execute executes the request // -// @return SMSDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsRetrieveExecute(r ApiAuthenticatorsAdminSmsRetrieveRequest) (*SMSDevice, *http.Response, error) { +// @return EndpointDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminEndpointRetrieveExecute(r ApiAuthenticatorsAdminEndpointRetrieveRequest) (*EndpointDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SMSDevice + localVarReturnValue *EndpointDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminSmsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminEndpointRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/sms/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath := localBasePath + "/authenticators/admin/endpoint/{uuid}/" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterToString(r.uuid, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1611,63 +1611,63 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsRetrieveExecute(r ApiAu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminSmsUpdateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - id int32 - sMSDeviceRequest *SMSDeviceRequest +type ApiAuthenticatorsAdminEndpointUpdateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + uuid string + endpointDeviceRequest *EndpointDeviceRequest } -func (r ApiAuthenticatorsAdminSmsUpdateRequest) SMSDeviceRequest(sMSDeviceRequest SMSDeviceRequest) ApiAuthenticatorsAdminSmsUpdateRequest { - r.sMSDeviceRequest = &sMSDeviceRequest +func (r ApiAuthenticatorsAdminEndpointUpdateRequest) EndpointDeviceRequest(endpointDeviceRequest EndpointDeviceRequest) ApiAuthenticatorsAdminEndpointUpdateRequest { + r.endpointDeviceRequest = &endpointDeviceRequest return r } -func (r ApiAuthenticatorsAdminSmsUpdateRequest) Execute() (*SMSDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminSmsUpdateExecute(r) +func (r ApiAuthenticatorsAdminEndpointUpdateRequest) Execute() (*EndpointDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminEndpointUpdateExecute(r) } /* -AuthenticatorsAdminSmsUpdate Method for AuthenticatorsAdminSmsUpdate +AuthenticatorsAdminEndpointUpdate Method for AuthenticatorsAdminEndpointUpdate -Viewset for sms authenticator devices (for admins) +Viewset for Endpoint authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this SMS Device. - @return ApiAuthenticatorsAdminSmsUpdateRequest + @param uuid A UUID string identifying this Endpoint Device. + @return ApiAuthenticatorsAdminEndpointUpdateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminSmsUpdateRequest { - return ApiAuthenticatorsAdminSmsUpdateRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminEndpointUpdate(ctx context.Context, uuid string) ApiAuthenticatorsAdminEndpointUpdateRequest { + return ApiAuthenticatorsAdminEndpointUpdateRequest{ ApiService: a, ctx: ctx, - id: id, + uuid: uuid, } } // Execute executes the request // -// @return SMSDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsUpdateExecute(r ApiAuthenticatorsAdminSmsUpdateRequest) (*SMSDevice, *http.Response, error) { +// @return EndpointDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminEndpointUpdateExecute(r ApiAuthenticatorsAdminEndpointUpdateRequest) (*EndpointDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SMSDevice + localVarReturnValue *EndpointDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminSmsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminEndpointUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/sms/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath := localBasePath + "/authenticators/admin/endpoint/{uuid}/" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterToString(r.uuid, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.sMSDeviceRequest == nil { - return localVarReturnValue, nil, reportError("sMSDeviceRequest is required and must be specified") + if r.endpointDeviceRequest == nil { + return localVarReturnValue, nil, reportError("endpointDeviceRequest is required and must be specified") } // to determine the Content-Type header @@ -1688,7 +1688,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsUpdateExecute(r ApiAuth localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.sMSDeviceRequest + localVarPostBody = r.endpointDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1745,31 +1745,31 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsUpdateExecute(r ApiAuth return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminStaticCreateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - staticDeviceRequest *StaticDeviceRequest +type ApiAuthenticatorsAdminSmsCreateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + sMSDeviceRequest *SMSDeviceRequest } -func (r ApiAuthenticatorsAdminStaticCreateRequest) StaticDeviceRequest(staticDeviceRequest StaticDeviceRequest) ApiAuthenticatorsAdminStaticCreateRequest { - r.staticDeviceRequest = &staticDeviceRequest +func (r ApiAuthenticatorsAdminSmsCreateRequest) SMSDeviceRequest(sMSDeviceRequest SMSDeviceRequest) ApiAuthenticatorsAdminSmsCreateRequest { + r.sMSDeviceRequest = &sMSDeviceRequest return r } -func (r ApiAuthenticatorsAdminStaticCreateRequest) Execute() (*StaticDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminStaticCreateExecute(r) +func (r ApiAuthenticatorsAdminSmsCreateRequest) Execute() (*SMSDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminSmsCreateExecute(r) } /* -AuthenticatorsAdminStaticCreate Method for AuthenticatorsAdminStaticCreate +AuthenticatorsAdminSmsCreate Method for AuthenticatorsAdminSmsCreate -Viewset for static authenticator devices (for admins) +Viewset for sms authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthenticatorsAdminStaticCreateRequest + @return ApiAuthenticatorsAdminSmsCreateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticCreate(ctx context.Context) ApiAuthenticatorsAdminStaticCreateRequest { - return ApiAuthenticatorsAdminStaticCreateRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsCreate(ctx context.Context) ApiAuthenticatorsAdminSmsCreateRequest { + return ApiAuthenticatorsAdminSmsCreateRequest{ ApiService: a, ctx: ctx, } @@ -1777,27 +1777,27 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticCreate(ctx context.C // Execute executes the request // -// @return StaticDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticCreateExecute(r ApiAuthenticatorsAdminStaticCreateRequest) (*StaticDevice, *http.Response, error) { +// @return SMSDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsCreateExecute(r ApiAuthenticatorsAdminSmsCreateRequest) (*SMSDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *StaticDevice + localVarReturnValue *SMSDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminStaticCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminSmsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/static/" + localVarPath := localBasePath + "/authenticators/admin/sms/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.staticDeviceRequest == nil { - return localVarReturnValue, nil, reportError("staticDeviceRequest is required and must be specified") + if r.sMSDeviceRequest == nil { + return localVarReturnValue, nil, reportError("sMSDeviceRequest is required and must be specified") } // to determine the Content-Type header @@ -1818,7 +1818,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticCreateExecute(r ApiA localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.staticDeviceRequest + localVarPostBody = r.sMSDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1875,27 +1875,27 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticCreateExecute(r ApiA return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminStaticDestroyRequest struct { +type ApiAuthenticatorsAdminSmsDestroyRequest struct { ctx context.Context ApiService *AuthenticatorsApiService id int32 } -func (r ApiAuthenticatorsAdminStaticDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.AuthenticatorsAdminStaticDestroyExecute(r) +func (r ApiAuthenticatorsAdminSmsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.AuthenticatorsAdminSmsDestroyExecute(r) } /* -AuthenticatorsAdminStaticDestroy Method for AuthenticatorsAdminStaticDestroy +AuthenticatorsAdminSmsDestroy Method for AuthenticatorsAdminSmsDestroy -Viewset for static authenticator devices (for admins) +Viewset for sms authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Static Device. - @return ApiAuthenticatorsAdminStaticDestroyRequest + @param id A unique integer value identifying this SMS Device. + @return ApiAuthenticatorsAdminSmsDestroyRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticDestroy(ctx context.Context, id int32) ApiAuthenticatorsAdminStaticDestroyRequest { - return ApiAuthenticatorsAdminStaticDestroyRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsDestroy(ctx context.Context, id int32) ApiAuthenticatorsAdminSmsDestroyRequest { + return ApiAuthenticatorsAdminSmsDestroyRequest{ ApiService: a, ctx: ctx, id: id, @@ -1903,19 +1903,19 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticDestroy(ctx context. } // Execute executes the request -func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticDestroyExecute(r ApiAuthenticatorsAdminStaticDestroyRequest) (*http.Response, error) { +func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsDestroyExecute(r ApiAuthenticatorsAdminSmsDestroyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminStaticDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminSmsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/static/{id}/" + localVarPath := localBasePath + "/authenticators/admin/sms/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -1986,7 +1986,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticDestroyExecute(r Api return localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminStaticListRequest struct { +type ApiAuthenticatorsAdminSmsListRequest struct { ctx context.Context ApiService *AuthenticatorsApiService name *string @@ -1996,49 +1996,49 @@ type ApiAuthenticatorsAdminStaticListRequest struct { search *string } -func (r ApiAuthenticatorsAdminStaticListRequest) Name(name string) ApiAuthenticatorsAdminStaticListRequest { +func (r ApiAuthenticatorsAdminSmsListRequest) Name(name string) ApiAuthenticatorsAdminSmsListRequest { r.name = &name return r } // Which field to use when ordering the results. -func (r ApiAuthenticatorsAdminStaticListRequest) Ordering(ordering string) ApiAuthenticatorsAdminStaticListRequest { +func (r ApiAuthenticatorsAdminSmsListRequest) Ordering(ordering string) ApiAuthenticatorsAdminSmsListRequest { r.ordering = &ordering return r } // A page number within the paginated result set. -func (r ApiAuthenticatorsAdminStaticListRequest) Page(page int32) ApiAuthenticatorsAdminStaticListRequest { +func (r ApiAuthenticatorsAdminSmsListRequest) Page(page int32) ApiAuthenticatorsAdminSmsListRequest { r.page = &page return r } // Number of results to return per page. -func (r ApiAuthenticatorsAdminStaticListRequest) PageSize(pageSize int32) ApiAuthenticatorsAdminStaticListRequest { +func (r ApiAuthenticatorsAdminSmsListRequest) PageSize(pageSize int32) ApiAuthenticatorsAdminSmsListRequest { r.pageSize = &pageSize return r } // A search term. -func (r ApiAuthenticatorsAdminStaticListRequest) Search(search string) ApiAuthenticatorsAdminStaticListRequest { +func (r ApiAuthenticatorsAdminSmsListRequest) Search(search string) ApiAuthenticatorsAdminSmsListRequest { r.search = &search return r } -func (r ApiAuthenticatorsAdminStaticListRequest) Execute() (*PaginatedStaticDeviceList, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminStaticListExecute(r) +func (r ApiAuthenticatorsAdminSmsListRequest) Execute() (*PaginatedSMSDeviceList, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminSmsListExecute(r) } /* -AuthenticatorsAdminStaticList Method for AuthenticatorsAdminStaticList +AuthenticatorsAdminSmsList Method for AuthenticatorsAdminSmsList -Viewset for static authenticator devices (for admins) +Viewset for sms authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthenticatorsAdminStaticListRequest + @return ApiAuthenticatorsAdminSmsListRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticList(ctx context.Context) ApiAuthenticatorsAdminStaticListRequest { - return ApiAuthenticatorsAdminStaticListRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsList(ctx context.Context) ApiAuthenticatorsAdminSmsListRequest { + return ApiAuthenticatorsAdminSmsListRequest{ ApiService: a, ctx: ctx, } @@ -2046,21 +2046,21 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticList(ctx context.Con // Execute executes the request // -// @return PaginatedStaticDeviceList -func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticListExecute(r ApiAuthenticatorsAdminStaticListRequest) (*PaginatedStaticDeviceList, *http.Response, error) { +// @return PaginatedSMSDeviceList +func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsListExecute(r ApiAuthenticatorsAdminSmsListRequest) (*PaginatedSMSDeviceList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedStaticDeviceList + localVarReturnValue *PaginatedSMSDeviceList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminStaticList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminSmsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/static/" + localVarPath := localBasePath + "/authenticators/admin/sms/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2154,34 +2154,34 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticListExecute(r ApiAut return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminStaticPartialUpdateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - id int32 - patchedStaticDeviceRequest *PatchedStaticDeviceRequest +type ApiAuthenticatorsAdminSmsPartialUpdateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + id int32 + patchedSMSDeviceRequest *PatchedSMSDeviceRequest } -func (r ApiAuthenticatorsAdminStaticPartialUpdateRequest) PatchedStaticDeviceRequest(patchedStaticDeviceRequest PatchedStaticDeviceRequest) ApiAuthenticatorsAdminStaticPartialUpdateRequest { - r.patchedStaticDeviceRequest = &patchedStaticDeviceRequest +func (r ApiAuthenticatorsAdminSmsPartialUpdateRequest) PatchedSMSDeviceRequest(patchedSMSDeviceRequest PatchedSMSDeviceRequest) ApiAuthenticatorsAdminSmsPartialUpdateRequest { + r.patchedSMSDeviceRequest = &patchedSMSDeviceRequest return r } -func (r ApiAuthenticatorsAdminStaticPartialUpdateRequest) Execute() (*StaticDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminStaticPartialUpdateExecute(r) +func (r ApiAuthenticatorsAdminSmsPartialUpdateRequest) Execute() (*SMSDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminSmsPartialUpdateExecute(r) } /* -AuthenticatorsAdminStaticPartialUpdate Method for AuthenticatorsAdminStaticPartialUpdate +AuthenticatorsAdminSmsPartialUpdate Method for AuthenticatorsAdminSmsPartialUpdate -Viewset for static authenticator devices (for admins) +Viewset for sms authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Static Device. - @return ApiAuthenticatorsAdminStaticPartialUpdateRequest + @param id A unique integer value identifying this SMS Device. + @return ApiAuthenticatorsAdminSmsPartialUpdateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticPartialUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminStaticPartialUpdateRequest { - return ApiAuthenticatorsAdminStaticPartialUpdateRequest{ - ApiService: a, +func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsPartialUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminSmsPartialUpdateRequest { + return ApiAuthenticatorsAdminSmsPartialUpdateRequest{ + ApiService: a, ctx: ctx, id: id, } @@ -2189,21 +2189,21 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticPartialUpdate(ctx co // Execute executes the request // -// @return StaticDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticPartialUpdateExecute(r ApiAuthenticatorsAdminStaticPartialUpdateRequest) (*StaticDevice, *http.Response, error) { +// @return SMSDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsPartialUpdateExecute(r ApiAuthenticatorsAdminSmsPartialUpdateRequest) (*SMSDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *StaticDevice + localVarReturnValue *SMSDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminStaticPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminSmsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/static/{id}/" + localVarPath := localBasePath + "/authenticators/admin/sms/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -2228,7 +2228,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticPartialUpdateExecute localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedStaticDeviceRequest + localVarPostBody = r.patchedSMSDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2285,27 +2285,27 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticPartialUpdateExecute return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminStaticRetrieveRequest struct { +type ApiAuthenticatorsAdminSmsRetrieveRequest struct { ctx context.Context ApiService *AuthenticatorsApiService id int32 } -func (r ApiAuthenticatorsAdminStaticRetrieveRequest) Execute() (*StaticDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminStaticRetrieveExecute(r) +func (r ApiAuthenticatorsAdminSmsRetrieveRequest) Execute() (*SMSDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminSmsRetrieveExecute(r) } /* -AuthenticatorsAdminStaticRetrieve Method for AuthenticatorsAdminStaticRetrieve +AuthenticatorsAdminSmsRetrieve Method for AuthenticatorsAdminSmsRetrieve -Viewset for static authenticator devices (for admins) +Viewset for sms authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Static Device. - @return ApiAuthenticatorsAdminStaticRetrieveRequest + @param id A unique integer value identifying this SMS Device. + @return ApiAuthenticatorsAdminSmsRetrieveRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticRetrieve(ctx context.Context, id int32) ApiAuthenticatorsAdminStaticRetrieveRequest { - return ApiAuthenticatorsAdminStaticRetrieveRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsRetrieve(ctx context.Context, id int32) ApiAuthenticatorsAdminSmsRetrieveRequest { + return ApiAuthenticatorsAdminSmsRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -2314,21 +2314,21 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticRetrieve(ctx context // Execute executes the request // -// @return StaticDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticRetrieveExecute(r ApiAuthenticatorsAdminStaticRetrieveRequest) (*StaticDevice, *http.Response, error) { +// @return SMSDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsRetrieveExecute(r ApiAuthenticatorsAdminSmsRetrieveRequest) (*SMSDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *StaticDevice + localVarReturnValue *SMSDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminStaticRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminSmsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/static/{id}/" + localVarPath := localBasePath + "/authenticators/admin/sms/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -2408,33 +2408,33 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticRetrieveExecute(r Ap return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminStaticUpdateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - id int32 - staticDeviceRequest *StaticDeviceRequest +type ApiAuthenticatorsAdminSmsUpdateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + id int32 + sMSDeviceRequest *SMSDeviceRequest } -func (r ApiAuthenticatorsAdminStaticUpdateRequest) StaticDeviceRequest(staticDeviceRequest StaticDeviceRequest) ApiAuthenticatorsAdminStaticUpdateRequest { - r.staticDeviceRequest = &staticDeviceRequest +func (r ApiAuthenticatorsAdminSmsUpdateRequest) SMSDeviceRequest(sMSDeviceRequest SMSDeviceRequest) ApiAuthenticatorsAdminSmsUpdateRequest { + r.sMSDeviceRequest = &sMSDeviceRequest return r } -func (r ApiAuthenticatorsAdminStaticUpdateRequest) Execute() (*StaticDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminStaticUpdateExecute(r) +func (r ApiAuthenticatorsAdminSmsUpdateRequest) Execute() (*SMSDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminSmsUpdateExecute(r) } /* -AuthenticatorsAdminStaticUpdate Method for AuthenticatorsAdminStaticUpdate +AuthenticatorsAdminSmsUpdate Method for AuthenticatorsAdminSmsUpdate -Viewset for static authenticator devices (for admins) +Viewset for sms authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Static Device. - @return ApiAuthenticatorsAdminStaticUpdateRequest + @param id A unique integer value identifying this SMS Device. + @return ApiAuthenticatorsAdminSmsUpdateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminStaticUpdateRequest { - return ApiAuthenticatorsAdminStaticUpdateRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminSmsUpdateRequest { + return ApiAuthenticatorsAdminSmsUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -2443,28 +2443,28 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticUpdate(ctx context.C // Execute executes the request // -// @return StaticDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticUpdateExecute(r ApiAuthenticatorsAdminStaticUpdateRequest) (*StaticDevice, *http.Response, error) { +// @return SMSDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminSmsUpdateExecute(r ApiAuthenticatorsAdminSmsUpdateRequest) (*SMSDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *StaticDevice + localVarReturnValue *SMSDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminStaticUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminSmsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/static/{id}/" + localVarPath := localBasePath + "/authenticators/admin/sms/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.staticDeviceRequest == nil { - return localVarReturnValue, nil, reportError("staticDeviceRequest is required and must be specified") + if r.sMSDeviceRequest == nil { + return localVarReturnValue, nil, reportError("sMSDeviceRequest is required and must be specified") } // to determine the Content-Type header @@ -2485,7 +2485,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticUpdateExecute(r ApiA localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.staticDeviceRequest + localVarPostBody = r.sMSDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2542,31 +2542,31 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticUpdateExecute(r ApiA return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminTotpCreateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - tOTPDeviceRequest *TOTPDeviceRequest +type ApiAuthenticatorsAdminStaticCreateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + staticDeviceRequest *StaticDeviceRequest } -func (r ApiAuthenticatorsAdminTotpCreateRequest) TOTPDeviceRequest(tOTPDeviceRequest TOTPDeviceRequest) ApiAuthenticatorsAdminTotpCreateRequest { - r.tOTPDeviceRequest = &tOTPDeviceRequest +func (r ApiAuthenticatorsAdminStaticCreateRequest) StaticDeviceRequest(staticDeviceRequest StaticDeviceRequest) ApiAuthenticatorsAdminStaticCreateRequest { + r.staticDeviceRequest = &staticDeviceRequest return r } -func (r ApiAuthenticatorsAdminTotpCreateRequest) Execute() (*TOTPDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminTotpCreateExecute(r) +func (r ApiAuthenticatorsAdminStaticCreateRequest) Execute() (*StaticDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminStaticCreateExecute(r) } /* -AuthenticatorsAdminTotpCreate Method for AuthenticatorsAdminTotpCreate +AuthenticatorsAdminStaticCreate Method for AuthenticatorsAdminStaticCreate -Viewset for totp authenticator devices (for admins) +Viewset for static authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthenticatorsAdminTotpCreateRequest + @return ApiAuthenticatorsAdminStaticCreateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpCreate(ctx context.Context) ApiAuthenticatorsAdminTotpCreateRequest { - return ApiAuthenticatorsAdminTotpCreateRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticCreate(ctx context.Context) ApiAuthenticatorsAdminStaticCreateRequest { + return ApiAuthenticatorsAdminStaticCreateRequest{ ApiService: a, ctx: ctx, } @@ -2574,27 +2574,27 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpCreate(ctx context.Con // Execute executes the request // -// @return TOTPDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpCreateExecute(r ApiAuthenticatorsAdminTotpCreateRequest) (*TOTPDevice, *http.Response, error) { +// @return StaticDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticCreateExecute(r ApiAuthenticatorsAdminStaticCreateRequest) (*StaticDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *TOTPDevice + localVarReturnValue *StaticDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminTotpCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminStaticCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/totp/" + localVarPath := localBasePath + "/authenticators/admin/static/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.tOTPDeviceRequest == nil { - return localVarReturnValue, nil, reportError("tOTPDeviceRequest is required and must be specified") + if r.staticDeviceRequest == nil { + return localVarReturnValue, nil, reportError("staticDeviceRequest is required and must be specified") } // to determine the Content-Type header @@ -2615,7 +2615,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpCreateExecute(r ApiAut localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.tOTPDeviceRequest + localVarPostBody = r.staticDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2672,27 +2672,27 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpCreateExecute(r ApiAut return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminTotpDestroyRequest struct { +type ApiAuthenticatorsAdminStaticDestroyRequest struct { ctx context.Context ApiService *AuthenticatorsApiService id int32 } -func (r ApiAuthenticatorsAdminTotpDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.AuthenticatorsAdminTotpDestroyExecute(r) +func (r ApiAuthenticatorsAdminStaticDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.AuthenticatorsAdminStaticDestroyExecute(r) } /* -AuthenticatorsAdminTotpDestroy Method for AuthenticatorsAdminTotpDestroy +AuthenticatorsAdminStaticDestroy Method for AuthenticatorsAdminStaticDestroy -Viewset for totp authenticator devices (for admins) +Viewset for static authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this TOTP Device. - @return ApiAuthenticatorsAdminTotpDestroyRequest + @param id A unique integer value identifying this Static Device. + @return ApiAuthenticatorsAdminStaticDestroyRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpDestroy(ctx context.Context, id int32) ApiAuthenticatorsAdminTotpDestroyRequest { - return ApiAuthenticatorsAdminTotpDestroyRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticDestroy(ctx context.Context, id int32) ApiAuthenticatorsAdminStaticDestroyRequest { + return ApiAuthenticatorsAdminStaticDestroyRequest{ ApiService: a, ctx: ctx, id: id, @@ -2700,19 +2700,19 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpDestroy(ctx context.Co } // Execute executes the request -func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpDestroyExecute(r ApiAuthenticatorsAdminTotpDestroyRequest) (*http.Response, error) { +func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticDestroyExecute(r ApiAuthenticatorsAdminStaticDestroyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminTotpDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminStaticDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/totp/{id}/" + localVarPath := localBasePath + "/authenticators/admin/static/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -2783,7 +2783,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpDestroyExecute(r ApiAu return localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminTotpListRequest struct { +type ApiAuthenticatorsAdminStaticListRequest struct { ctx context.Context ApiService *AuthenticatorsApiService name *string @@ -2793,49 +2793,49 @@ type ApiAuthenticatorsAdminTotpListRequest struct { search *string } -func (r ApiAuthenticatorsAdminTotpListRequest) Name(name string) ApiAuthenticatorsAdminTotpListRequest { +func (r ApiAuthenticatorsAdminStaticListRequest) Name(name string) ApiAuthenticatorsAdminStaticListRequest { r.name = &name return r } // Which field to use when ordering the results. -func (r ApiAuthenticatorsAdminTotpListRequest) Ordering(ordering string) ApiAuthenticatorsAdminTotpListRequest { +func (r ApiAuthenticatorsAdminStaticListRequest) Ordering(ordering string) ApiAuthenticatorsAdminStaticListRequest { r.ordering = &ordering return r } // A page number within the paginated result set. -func (r ApiAuthenticatorsAdminTotpListRequest) Page(page int32) ApiAuthenticatorsAdminTotpListRequest { +func (r ApiAuthenticatorsAdminStaticListRequest) Page(page int32) ApiAuthenticatorsAdminStaticListRequest { r.page = &page return r } // Number of results to return per page. -func (r ApiAuthenticatorsAdminTotpListRequest) PageSize(pageSize int32) ApiAuthenticatorsAdminTotpListRequest { +func (r ApiAuthenticatorsAdminStaticListRequest) PageSize(pageSize int32) ApiAuthenticatorsAdminStaticListRequest { r.pageSize = &pageSize return r } // A search term. -func (r ApiAuthenticatorsAdminTotpListRequest) Search(search string) ApiAuthenticatorsAdminTotpListRequest { +func (r ApiAuthenticatorsAdminStaticListRequest) Search(search string) ApiAuthenticatorsAdminStaticListRequest { r.search = &search return r } -func (r ApiAuthenticatorsAdminTotpListRequest) Execute() (*PaginatedTOTPDeviceList, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminTotpListExecute(r) +func (r ApiAuthenticatorsAdminStaticListRequest) Execute() (*PaginatedStaticDeviceList, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminStaticListExecute(r) } /* -AuthenticatorsAdminTotpList Method for AuthenticatorsAdminTotpList +AuthenticatorsAdminStaticList Method for AuthenticatorsAdminStaticList -Viewset for totp authenticator devices (for admins) +Viewset for static authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthenticatorsAdminTotpListRequest + @return ApiAuthenticatorsAdminStaticListRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpList(ctx context.Context) ApiAuthenticatorsAdminTotpListRequest { - return ApiAuthenticatorsAdminTotpListRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticList(ctx context.Context) ApiAuthenticatorsAdminStaticListRequest { + return ApiAuthenticatorsAdminStaticListRequest{ ApiService: a, ctx: ctx, } @@ -2843,21 +2843,21 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpList(ctx context.Conte // Execute executes the request // -// @return PaginatedTOTPDeviceList -func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpListExecute(r ApiAuthenticatorsAdminTotpListRequest) (*PaginatedTOTPDeviceList, *http.Response, error) { +// @return PaginatedStaticDeviceList +func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticListExecute(r ApiAuthenticatorsAdminStaticListRequest) (*PaginatedStaticDeviceList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedTOTPDeviceList + localVarReturnValue *PaginatedStaticDeviceList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminTotpList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminStaticList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/totp/" + localVarPath := localBasePath + "/authenticators/admin/static/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2951,33 +2951,33 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpListExecute(r ApiAuthe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminTotpPartialUpdateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - id int32 - patchedTOTPDeviceRequest *PatchedTOTPDeviceRequest +type ApiAuthenticatorsAdminStaticPartialUpdateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + id int32 + patchedStaticDeviceRequest *PatchedStaticDeviceRequest } -func (r ApiAuthenticatorsAdminTotpPartialUpdateRequest) PatchedTOTPDeviceRequest(patchedTOTPDeviceRequest PatchedTOTPDeviceRequest) ApiAuthenticatorsAdminTotpPartialUpdateRequest { - r.patchedTOTPDeviceRequest = &patchedTOTPDeviceRequest +func (r ApiAuthenticatorsAdminStaticPartialUpdateRequest) PatchedStaticDeviceRequest(patchedStaticDeviceRequest PatchedStaticDeviceRequest) ApiAuthenticatorsAdminStaticPartialUpdateRequest { + r.patchedStaticDeviceRequest = &patchedStaticDeviceRequest return r } -func (r ApiAuthenticatorsAdminTotpPartialUpdateRequest) Execute() (*TOTPDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminTotpPartialUpdateExecute(r) +func (r ApiAuthenticatorsAdminStaticPartialUpdateRequest) Execute() (*StaticDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminStaticPartialUpdateExecute(r) } /* -AuthenticatorsAdminTotpPartialUpdate Method for AuthenticatorsAdminTotpPartialUpdate +AuthenticatorsAdminStaticPartialUpdate Method for AuthenticatorsAdminStaticPartialUpdate -Viewset for totp authenticator devices (for admins) +Viewset for static authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this TOTP Device. - @return ApiAuthenticatorsAdminTotpPartialUpdateRequest + @param id A unique integer value identifying this Static Device. + @return ApiAuthenticatorsAdminStaticPartialUpdateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpPartialUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminTotpPartialUpdateRequest { - return ApiAuthenticatorsAdminTotpPartialUpdateRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticPartialUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminStaticPartialUpdateRequest { + return ApiAuthenticatorsAdminStaticPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -2986,21 +2986,21 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpPartialUpdate(ctx cont // Execute executes the request // -// @return TOTPDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpPartialUpdateExecute(r ApiAuthenticatorsAdminTotpPartialUpdateRequest) (*TOTPDevice, *http.Response, error) { +// @return StaticDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticPartialUpdateExecute(r ApiAuthenticatorsAdminStaticPartialUpdateRequest) (*StaticDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *TOTPDevice + localVarReturnValue *StaticDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminTotpPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminStaticPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/totp/{id}/" + localVarPath := localBasePath + "/authenticators/admin/static/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -3025,7 +3025,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpPartialUpdateExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedTOTPDeviceRequest + localVarPostBody = r.patchedStaticDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3082,27 +3082,27 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpPartialUpdateExecute(r return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminTotpRetrieveRequest struct { +type ApiAuthenticatorsAdminStaticRetrieveRequest struct { ctx context.Context ApiService *AuthenticatorsApiService id int32 } -func (r ApiAuthenticatorsAdminTotpRetrieveRequest) Execute() (*TOTPDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminTotpRetrieveExecute(r) +func (r ApiAuthenticatorsAdminStaticRetrieveRequest) Execute() (*StaticDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminStaticRetrieveExecute(r) } /* -AuthenticatorsAdminTotpRetrieve Method for AuthenticatorsAdminTotpRetrieve +AuthenticatorsAdminStaticRetrieve Method for AuthenticatorsAdminStaticRetrieve -Viewset for totp authenticator devices (for admins) +Viewset for static authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this TOTP Device. - @return ApiAuthenticatorsAdminTotpRetrieveRequest + @param id A unique integer value identifying this Static Device. + @return ApiAuthenticatorsAdminStaticRetrieveRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpRetrieve(ctx context.Context, id int32) ApiAuthenticatorsAdminTotpRetrieveRequest { - return ApiAuthenticatorsAdminTotpRetrieveRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticRetrieve(ctx context.Context, id int32) ApiAuthenticatorsAdminStaticRetrieveRequest { + return ApiAuthenticatorsAdminStaticRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -3111,21 +3111,21 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpRetrieve(ctx context.C // Execute executes the request // -// @return TOTPDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpRetrieveExecute(r ApiAuthenticatorsAdminTotpRetrieveRequest) (*TOTPDevice, *http.Response, error) { +// @return StaticDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticRetrieveExecute(r ApiAuthenticatorsAdminStaticRetrieveRequest) (*StaticDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *TOTPDevice + localVarReturnValue *StaticDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminTotpRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminStaticRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/totp/{id}/" + localVarPath := localBasePath + "/authenticators/admin/static/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -3205,33 +3205,33 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpRetrieveExecute(r ApiA return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminTotpUpdateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - id int32 - tOTPDeviceRequest *TOTPDeviceRequest +type ApiAuthenticatorsAdminStaticUpdateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + id int32 + staticDeviceRequest *StaticDeviceRequest } -func (r ApiAuthenticatorsAdminTotpUpdateRequest) TOTPDeviceRequest(tOTPDeviceRequest TOTPDeviceRequest) ApiAuthenticatorsAdminTotpUpdateRequest { - r.tOTPDeviceRequest = &tOTPDeviceRequest +func (r ApiAuthenticatorsAdminStaticUpdateRequest) StaticDeviceRequest(staticDeviceRequest StaticDeviceRequest) ApiAuthenticatorsAdminStaticUpdateRequest { + r.staticDeviceRequest = &staticDeviceRequest return r } -func (r ApiAuthenticatorsAdminTotpUpdateRequest) Execute() (*TOTPDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminTotpUpdateExecute(r) +func (r ApiAuthenticatorsAdminStaticUpdateRequest) Execute() (*StaticDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminStaticUpdateExecute(r) } /* -AuthenticatorsAdminTotpUpdate Method for AuthenticatorsAdminTotpUpdate +AuthenticatorsAdminStaticUpdate Method for AuthenticatorsAdminStaticUpdate -Viewset for totp authenticator devices (for admins) +Viewset for static authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this TOTP Device. - @return ApiAuthenticatorsAdminTotpUpdateRequest + @param id A unique integer value identifying this Static Device. + @return ApiAuthenticatorsAdminStaticUpdateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminTotpUpdateRequest { - return ApiAuthenticatorsAdminTotpUpdateRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminStaticUpdateRequest { + return ApiAuthenticatorsAdminStaticUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -3240,28 +3240,28 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpUpdate(ctx context.Con // Execute executes the request // -// @return TOTPDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpUpdateExecute(r ApiAuthenticatorsAdminTotpUpdateRequest) (*TOTPDevice, *http.Response, error) { +// @return StaticDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminStaticUpdateExecute(r ApiAuthenticatorsAdminStaticUpdateRequest) (*StaticDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *TOTPDevice + localVarReturnValue *StaticDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminTotpUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminStaticUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/totp/{id}/" + localVarPath := localBasePath + "/authenticators/admin/static/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.tOTPDeviceRequest == nil { - return localVarReturnValue, nil, reportError("tOTPDeviceRequest is required and must be specified") + if r.staticDeviceRequest == nil { + return localVarReturnValue, nil, reportError("staticDeviceRequest is required and must be specified") } // to determine the Content-Type header @@ -3282,7 +3282,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpUpdateExecute(r ApiAut localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.tOTPDeviceRequest + localVarPostBody = r.staticDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3339,31 +3339,31 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpUpdateExecute(r ApiAut return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminWebauthnCreateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - webAuthnDeviceRequest *WebAuthnDeviceRequest +type ApiAuthenticatorsAdminTotpCreateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + tOTPDeviceRequest *TOTPDeviceRequest } -func (r ApiAuthenticatorsAdminWebauthnCreateRequest) WebAuthnDeviceRequest(webAuthnDeviceRequest WebAuthnDeviceRequest) ApiAuthenticatorsAdminWebauthnCreateRequest { - r.webAuthnDeviceRequest = &webAuthnDeviceRequest +func (r ApiAuthenticatorsAdminTotpCreateRequest) TOTPDeviceRequest(tOTPDeviceRequest TOTPDeviceRequest) ApiAuthenticatorsAdminTotpCreateRequest { + r.tOTPDeviceRequest = &tOTPDeviceRequest return r } -func (r ApiAuthenticatorsAdminWebauthnCreateRequest) Execute() (*WebAuthnDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminWebauthnCreateExecute(r) +func (r ApiAuthenticatorsAdminTotpCreateRequest) Execute() (*TOTPDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminTotpCreateExecute(r) } /* -AuthenticatorsAdminWebauthnCreate Method for AuthenticatorsAdminWebauthnCreate +AuthenticatorsAdminTotpCreate Method for AuthenticatorsAdminTotpCreate -Viewset for WebAuthn authenticator devices (for admins) +Viewset for totp authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthenticatorsAdminWebauthnCreateRequest + @return ApiAuthenticatorsAdminTotpCreateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnCreate(ctx context.Context) ApiAuthenticatorsAdminWebauthnCreateRequest { - return ApiAuthenticatorsAdminWebauthnCreateRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpCreate(ctx context.Context) ApiAuthenticatorsAdminTotpCreateRequest { + return ApiAuthenticatorsAdminTotpCreateRequest{ ApiService: a, ctx: ctx, } @@ -3371,27 +3371,27 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnCreate(ctx context // Execute executes the request // -// @return WebAuthnDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnCreateExecute(r ApiAuthenticatorsAdminWebauthnCreateRequest) (*WebAuthnDevice, *http.Response, error) { +// @return TOTPDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpCreateExecute(r ApiAuthenticatorsAdminTotpCreateRequest) (*TOTPDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *WebAuthnDevice + localVarReturnValue *TOTPDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminWebauthnCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminTotpCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/webauthn/" + localVarPath := localBasePath + "/authenticators/admin/totp/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.webAuthnDeviceRequest == nil { - return localVarReturnValue, nil, reportError("webAuthnDeviceRequest is required and must be specified") + if r.tOTPDeviceRequest == nil { + return localVarReturnValue, nil, reportError("tOTPDeviceRequest is required and must be specified") } // to determine the Content-Type header @@ -3412,7 +3412,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnCreateExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.webAuthnDeviceRequest + localVarPostBody = r.tOTPDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3469,27 +3469,27 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnCreateExecute(r Ap return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminWebauthnDestroyRequest struct { +type ApiAuthenticatorsAdminTotpDestroyRequest struct { ctx context.Context ApiService *AuthenticatorsApiService id int32 } -func (r ApiAuthenticatorsAdminWebauthnDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.AuthenticatorsAdminWebauthnDestroyExecute(r) +func (r ApiAuthenticatorsAdminTotpDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.AuthenticatorsAdminTotpDestroyExecute(r) } /* -AuthenticatorsAdminWebauthnDestroy Method for AuthenticatorsAdminWebauthnDestroy +AuthenticatorsAdminTotpDestroy Method for AuthenticatorsAdminTotpDestroy -Viewset for WebAuthn authenticator devices (for admins) +Viewset for totp authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this WebAuthn Device. - @return ApiAuthenticatorsAdminWebauthnDestroyRequest + @param id A unique integer value identifying this TOTP Device. + @return ApiAuthenticatorsAdminTotpDestroyRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnDestroy(ctx context.Context, id int32) ApiAuthenticatorsAdminWebauthnDestroyRequest { - return ApiAuthenticatorsAdminWebauthnDestroyRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpDestroy(ctx context.Context, id int32) ApiAuthenticatorsAdminTotpDestroyRequest { + return ApiAuthenticatorsAdminTotpDestroyRequest{ ApiService: a, ctx: ctx, id: id, @@ -3497,19 +3497,19 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnDestroy(ctx contex } // Execute executes the request -func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnDestroyExecute(r ApiAuthenticatorsAdminWebauthnDestroyRequest) (*http.Response, error) { +func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpDestroyExecute(r ApiAuthenticatorsAdminTotpDestroyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminWebauthnDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminTotpDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/webauthn/{id}/" + localVarPath := localBasePath + "/authenticators/admin/totp/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -3580,7 +3580,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnDestroyExecute(r A return localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminWebauthnListRequest struct { +type ApiAuthenticatorsAdminTotpListRequest struct { ctx context.Context ApiService *AuthenticatorsApiService name *string @@ -3590,49 +3590,49 @@ type ApiAuthenticatorsAdminWebauthnListRequest struct { search *string } -func (r ApiAuthenticatorsAdminWebauthnListRequest) Name(name string) ApiAuthenticatorsAdminWebauthnListRequest { +func (r ApiAuthenticatorsAdminTotpListRequest) Name(name string) ApiAuthenticatorsAdminTotpListRequest { r.name = &name return r } // Which field to use when ordering the results. -func (r ApiAuthenticatorsAdminWebauthnListRequest) Ordering(ordering string) ApiAuthenticatorsAdminWebauthnListRequest { +func (r ApiAuthenticatorsAdminTotpListRequest) Ordering(ordering string) ApiAuthenticatorsAdminTotpListRequest { r.ordering = &ordering return r } // A page number within the paginated result set. -func (r ApiAuthenticatorsAdminWebauthnListRequest) Page(page int32) ApiAuthenticatorsAdminWebauthnListRequest { +func (r ApiAuthenticatorsAdminTotpListRequest) Page(page int32) ApiAuthenticatorsAdminTotpListRequest { r.page = &page return r } // Number of results to return per page. -func (r ApiAuthenticatorsAdminWebauthnListRequest) PageSize(pageSize int32) ApiAuthenticatorsAdminWebauthnListRequest { +func (r ApiAuthenticatorsAdminTotpListRequest) PageSize(pageSize int32) ApiAuthenticatorsAdminTotpListRequest { r.pageSize = &pageSize return r } // A search term. -func (r ApiAuthenticatorsAdminWebauthnListRequest) Search(search string) ApiAuthenticatorsAdminWebauthnListRequest { +func (r ApiAuthenticatorsAdminTotpListRequest) Search(search string) ApiAuthenticatorsAdminTotpListRequest { r.search = &search return r } -func (r ApiAuthenticatorsAdminWebauthnListRequest) Execute() (*PaginatedWebAuthnDeviceList, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminWebauthnListExecute(r) +func (r ApiAuthenticatorsAdminTotpListRequest) Execute() (*PaginatedTOTPDeviceList, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminTotpListExecute(r) } /* -AuthenticatorsAdminWebauthnList Method for AuthenticatorsAdminWebauthnList +AuthenticatorsAdminTotpList Method for AuthenticatorsAdminTotpList -Viewset for WebAuthn authenticator devices (for admins) +Viewset for totp authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthenticatorsAdminWebauthnListRequest + @return ApiAuthenticatorsAdminTotpListRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnList(ctx context.Context) ApiAuthenticatorsAdminWebauthnListRequest { - return ApiAuthenticatorsAdminWebauthnListRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpList(ctx context.Context) ApiAuthenticatorsAdminTotpListRequest { + return ApiAuthenticatorsAdminTotpListRequest{ ApiService: a, ctx: ctx, } @@ -3640,21 +3640,21 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnList(ctx context.C // Execute executes the request // -// @return PaginatedWebAuthnDeviceList -func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnListExecute(r ApiAuthenticatorsAdminWebauthnListRequest) (*PaginatedWebAuthnDeviceList, *http.Response, error) { +// @return PaginatedTOTPDeviceList +func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpListExecute(r ApiAuthenticatorsAdminTotpListRequest) (*PaginatedTOTPDeviceList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedWebAuthnDeviceList + localVarReturnValue *PaginatedTOTPDeviceList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminWebauthnList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminTotpList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/webauthn/" + localVarPath := localBasePath + "/authenticators/admin/totp/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3748,33 +3748,33 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnListExecute(r ApiA return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminWebauthnPartialUpdateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - id int32 - patchedWebAuthnDeviceRequest *PatchedWebAuthnDeviceRequest +type ApiAuthenticatorsAdminTotpPartialUpdateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + id int32 + patchedTOTPDeviceRequest *PatchedTOTPDeviceRequest } -func (r ApiAuthenticatorsAdminWebauthnPartialUpdateRequest) PatchedWebAuthnDeviceRequest(patchedWebAuthnDeviceRequest PatchedWebAuthnDeviceRequest) ApiAuthenticatorsAdminWebauthnPartialUpdateRequest { - r.patchedWebAuthnDeviceRequest = &patchedWebAuthnDeviceRequest +func (r ApiAuthenticatorsAdminTotpPartialUpdateRequest) PatchedTOTPDeviceRequest(patchedTOTPDeviceRequest PatchedTOTPDeviceRequest) ApiAuthenticatorsAdminTotpPartialUpdateRequest { + r.patchedTOTPDeviceRequest = &patchedTOTPDeviceRequest return r } -func (r ApiAuthenticatorsAdminWebauthnPartialUpdateRequest) Execute() (*WebAuthnDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminWebauthnPartialUpdateExecute(r) +func (r ApiAuthenticatorsAdminTotpPartialUpdateRequest) Execute() (*TOTPDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminTotpPartialUpdateExecute(r) } /* -AuthenticatorsAdminWebauthnPartialUpdate Method for AuthenticatorsAdminWebauthnPartialUpdate +AuthenticatorsAdminTotpPartialUpdate Method for AuthenticatorsAdminTotpPartialUpdate -Viewset for WebAuthn authenticator devices (for admins) +Viewset for totp authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this WebAuthn Device. - @return ApiAuthenticatorsAdminWebauthnPartialUpdateRequest + @param id A unique integer value identifying this TOTP Device. + @return ApiAuthenticatorsAdminTotpPartialUpdateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnPartialUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminWebauthnPartialUpdateRequest { - return ApiAuthenticatorsAdminWebauthnPartialUpdateRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpPartialUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminTotpPartialUpdateRequest { + return ApiAuthenticatorsAdminTotpPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -3783,21 +3783,21 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnPartialUpdate(ctx // Execute executes the request // -// @return WebAuthnDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnPartialUpdateExecute(r ApiAuthenticatorsAdminWebauthnPartialUpdateRequest) (*WebAuthnDevice, *http.Response, error) { +// @return TOTPDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpPartialUpdateExecute(r ApiAuthenticatorsAdminTotpPartialUpdateRequest) (*TOTPDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *WebAuthnDevice + localVarReturnValue *TOTPDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminWebauthnPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminTotpPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/webauthn/{id}/" + localVarPath := localBasePath + "/authenticators/admin/totp/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -3822,7 +3822,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnPartialUpdateExecu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWebAuthnDeviceRequest + localVarPostBody = r.patchedTOTPDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3879,27 +3879,27 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnPartialUpdateExecu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminWebauthnRetrieveRequest struct { +type ApiAuthenticatorsAdminTotpRetrieveRequest struct { ctx context.Context ApiService *AuthenticatorsApiService id int32 } -func (r ApiAuthenticatorsAdminWebauthnRetrieveRequest) Execute() (*WebAuthnDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminWebauthnRetrieveExecute(r) +func (r ApiAuthenticatorsAdminTotpRetrieveRequest) Execute() (*TOTPDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminTotpRetrieveExecute(r) } /* -AuthenticatorsAdminWebauthnRetrieve Method for AuthenticatorsAdminWebauthnRetrieve +AuthenticatorsAdminTotpRetrieve Method for AuthenticatorsAdminTotpRetrieve -Viewset for WebAuthn authenticator devices (for admins) +Viewset for totp authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this WebAuthn Device. - @return ApiAuthenticatorsAdminWebauthnRetrieveRequest + @param id A unique integer value identifying this TOTP Device. + @return ApiAuthenticatorsAdminTotpRetrieveRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnRetrieve(ctx context.Context, id int32) ApiAuthenticatorsAdminWebauthnRetrieveRequest { - return ApiAuthenticatorsAdminWebauthnRetrieveRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpRetrieve(ctx context.Context, id int32) ApiAuthenticatorsAdminTotpRetrieveRequest { + return ApiAuthenticatorsAdminTotpRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -3908,21 +3908,21 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnRetrieve(ctx conte // Execute executes the request // -// @return WebAuthnDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnRetrieveExecute(r ApiAuthenticatorsAdminWebauthnRetrieveRequest) (*WebAuthnDevice, *http.Response, error) { +// @return TOTPDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpRetrieveExecute(r ApiAuthenticatorsAdminTotpRetrieveRequest) (*TOTPDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *WebAuthnDevice + localVarReturnValue *TOTPDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminWebauthnRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminTotpRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/webauthn/{id}/" + localVarPath := localBasePath + "/authenticators/admin/totp/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -4002,33 +4002,33 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnRetrieveExecute(r return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAdminWebauthnUpdateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - id int32 - webAuthnDeviceRequest *WebAuthnDeviceRequest +type ApiAuthenticatorsAdminTotpUpdateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + id int32 + tOTPDeviceRequest *TOTPDeviceRequest } -func (r ApiAuthenticatorsAdminWebauthnUpdateRequest) WebAuthnDeviceRequest(webAuthnDeviceRequest WebAuthnDeviceRequest) ApiAuthenticatorsAdminWebauthnUpdateRequest { - r.webAuthnDeviceRequest = &webAuthnDeviceRequest +func (r ApiAuthenticatorsAdminTotpUpdateRequest) TOTPDeviceRequest(tOTPDeviceRequest TOTPDeviceRequest) ApiAuthenticatorsAdminTotpUpdateRequest { + r.tOTPDeviceRequest = &tOTPDeviceRequest return r } -func (r ApiAuthenticatorsAdminWebauthnUpdateRequest) Execute() (*WebAuthnDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsAdminWebauthnUpdateExecute(r) +func (r ApiAuthenticatorsAdminTotpUpdateRequest) Execute() (*TOTPDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminTotpUpdateExecute(r) } /* -AuthenticatorsAdminWebauthnUpdate Method for AuthenticatorsAdminWebauthnUpdate +AuthenticatorsAdminTotpUpdate Method for AuthenticatorsAdminTotpUpdate -Viewset for WebAuthn authenticator devices (for admins) +Viewset for totp authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this WebAuthn Device. - @return ApiAuthenticatorsAdminWebauthnUpdateRequest + @param id A unique integer value identifying this TOTP Device. + @return ApiAuthenticatorsAdminTotpUpdateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminWebauthnUpdateRequest { - return ApiAuthenticatorsAdminWebauthnUpdateRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminTotpUpdateRequest { + return ApiAuthenticatorsAdminTotpUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -4037,28 +4037,28 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnUpdate(ctx context // Execute executes the request // -// @return WebAuthnDevice -func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnUpdateExecute(r ApiAuthenticatorsAdminWebauthnUpdateRequest) (*WebAuthnDevice, *http.Response, error) { - var ( +// @return TOTPDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminTotpUpdateExecute(r ApiAuthenticatorsAdminTotpUpdateRequest) (*TOTPDevice, *http.Response, error) { + var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *WebAuthnDevice + localVarReturnValue *TOTPDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminWebauthnUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminTotpUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/admin/webauthn/{id}/" + localVarPath := localBasePath + "/authenticators/admin/totp/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.webAuthnDeviceRequest == nil { - return localVarReturnValue, nil, reportError("webAuthnDeviceRequest is required and must be specified") + if r.tOTPDeviceRequest == nil { + return localVarReturnValue, nil, reportError("tOTPDeviceRequest is required and must be specified") } // to determine the Content-Type header @@ -4079,7 +4079,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnUpdateExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.webAuthnDeviceRequest + localVarPostBody = r.tOTPDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -4136,25 +4136,31 @@ func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnUpdateExecute(r Ap return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsAllListRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService +type ApiAuthenticatorsAdminWebauthnCreateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + webAuthnDeviceRequest *WebAuthnDeviceRequest } -func (r ApiAuthenticatorsAllListRequest) Execute() ([]Device, *http.Response, error) { - return r.ApiService.AuthenticatorsAllListExecute(r) +func (r ApiAuthenticatorsAdminWebauthnCreateRequest) WebAuthnDeviceRequest(webAuthnDeviceRequest WebAuthnDeviceRequest) ApiAuthenticatorsAdminWebauthnCreateRequest { + r.webAuthnDeviceRequest = &webAuthnDeviceRequest + return r +} + +func (r ApiAuthenticatorsAdminWebauthnCreateRequest) Execute() (*WebAuthnDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminWebauthnCreateExecute(r) } /* -AuthenticatorsAllList Method for AuthenticatorsAllList +AuthenticatorsAdminWebauthnCreate Method for AuthenticatorsAdminWebauthnCreate -Get all devices for current user +Viewset for WebAuthn authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthenticatorsAllListRequest + @return ApiAuthenticatorsAdminWebauthnCreateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsAllList(ctx context.Context) ApiAuthenticatorsAllListRequest { - return ApiAuthenticatorsAllListRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnCreate(ctx context.Context) ApiAuthenticatorsAdminWebauthnCreateRequest { + return ApiAuthenticatorsAdminWebauthnCreateRequest{ ApiService: a, ctx: ctx, } @@ -4162,28 +4168,31 @@ func (a *AuthenticatorsApiService) AuthenticatorsAllList(ctx context.Context) Ap // Execute executes the request // -// @return []Device -func (a *AuthenticatorsApiService) AuthenticatorsAllListExecute(r ApiAuthenticatorsAllListRequest) ([]Device, *http.Response, error) { +// @return WebAuthnDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnCreateExecute(r ApiAuthenticatorsAdminWebauthnCreateRequest) (*WebAuthnDevice, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue []Device + localVarReturnValue *WebAuthnDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAllList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminWebauthnCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/all/" + localVarPath := localBasePath + "/authenticators/admin/webauthn/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.webAuthnDeviceRequest == nil { + return localVarReturnValue, nil, reportError("webAuthnDeviceRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -4199,6 +4208,8 @@ func (a *AuthenticatorsApiService) AuthenticatorsAllListExecute(r ApiAuthenticat if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.webAuthnDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -4255,27 +4266,27 @@ func (a *AuthenticatorsApiService) AuthenticatorsAllListExecute(r ApiAuthenticat return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsDuoDestroyRequest struct { +type ApiAuthenticatorsAdminWebauthnDestroyRequest struct { ctx context.Context ApiService *AuthenticatorsApiService id int32 } -func (r ApiAuthenticatorsDuoDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.AuthenticatorsDuoDestroyExecute(r) +func (r ApiAuthenticatorsAdminWebauthnDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.AuthenticatorsAdminWebauthnDestroyExecute(r) } /* -AuthenticatorsDuoDestroy Method for AuthenticatorsDuoDestroy +AuthenticatorsAdminWebauthnDestroy Method for AuthenticatorsAdminWebauthnDestroy -Viewset for Duo authenticator devices +Viewset for WebAuthn authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Duo Device. - @return ApiAuthenticatorsDuoDestroyRequest + @param id A unique integer value identifying this WebAuthn Device. + @return ApiAuthenticatorsAdminWebauthnDestroyRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsDuoDestroy(ctx context.Context, id int32) ApiAuthenticatorsDuoDestroyRequest { - return ApiAuthenticatorsDuoDestroyRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnDestroy(ctx context.Context, id int32) ApiAuthenticatorsAdminWebauthnDestroyRequest { + return ApiAuthenticatorsAdminWebauthnDestroyRequest{ ApiService: a, ctx: ctx, id: id, @@ -4283,19 +4294,19 @@ func (a *AuthenticatorsApiService) AuthenticatorsDuoDestroy(ctx context.Context, } // Execute executes the request -func (a *AuthenticatorsApiService) AuthenticatorsDuoDestroyExecute(r ApiAuthenticatorsDuoDestroyRequest) (*http.Response, error) { +func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnDestroyExecute(r ApiAuthenticatorsAdminWebauthnDestroyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsDuoDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminWebauthnDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/duo/{id}/" + localVarPath := localBasePath + "/authenticators/admin/webauthn/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -4366,7 +4377,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsDuoDestroyExecute(r ApiAuthenti return localVarHTTPResponse, nil } -type ApiAuthenticatorsDuoListRequest struct { +type ApiAuthenticatorsAdminWebauthnListRequest struct { ctx context.Context ApiService *AuthenticatorsApiService name *string @@ -4376,49 +4387,49 @@ type ApiAuthenticatorsDuoListRequest struct { search *string } -func (r ApiAuthenticatorsDuoListRequest) Name(name string) ApiAuthenticatorsDuoListRequest { +func (r ApiAuthenticatorsAdminWebauthnListRequest) Name(name string) ApiAuthenticatorsAdminWebauthnListRequest { r.name = &name return r } // Which field to use when ordering the results. -func (r ApiAuthenticatorsDuoListRequest) Ordering(ordering string) ApiAuthenticatorsDuoListRequest { +func (r ApiAuthenticatorsAdminWebauthnListRequest) Ordering(ordering string) ApiAuthenticatorsAdminWebauthnListRequest { r.ordering = &ordering return r } // A page number within the paginated result set. -func (r ApiAuthenticatorsDuoListRequest) Page(page int32) ApiAuthenticatorsDuoListRequest { +func (r ApiAuthenticatorsAdminWebauthnListRequest) Page(page int32) ApiAuthenticatorsAdminWebauthnListRequest { r.page = &page return r } // Number of results to return per page. -func (r ApiAuthenticatorsDuoListRequest) PageSize(pageSize int32) ApiAuthenticatorsDuoListRequest { +func (r ApiAuthenticatorsAdminWebauthnListRequest) PageSize(pageSize int32) ApiAuthenticatorsAdminWebauthnListRequest { r.pageSize = &pageSize return r } // A search term. -func (r ApiAuthenticatorsDuoListRequest) Search(search string) ApiAuthenticatorsDuoListRequest { +func (r ApiAuthenticatorsAdminWebauthnListRequest) Search(search string) ApiAuthenticatorsAdminWebauthnListRequest { r.search = &search return r } -func (r ApiAuthenticatorsDuoListRequest) Execute() (*PaginatedDuoDeviceList, *http.Response, error) { - return r.ApiService.AuthenticatorsDuoListExecute(r) +func (r ApiAuthenticatorsAdminWebauthnListRequest) Execute() (*PaginatedWebAuthnDeviceList, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminWebauthnListExecute(r) } /* -AuthenticatorsDuoList Method for AuthenticatorsDuoList +AuthenticatorsAdminWebauthnList Method for AuthenticatorsAdminWebauthnList -Viewset for Duo authenticator devices +Viewset for WebAuthn authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthenticatorsDuoListRequest + @return ApiAuthenticatorsAdminWebauthnListRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsDuoList(ctx context.Context) ApiAuthenticatorsDuoListRequest { - return ApiAuthenticatorsDuoListRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnList(ctx context.Context) ApiAuthenticatorsAdminWebauthnListRequest { + return ApiAuthenticatorsAdminWebauthnListRequest{ ApiService: a, ctx: ctx, } @@ -4426,21 +4437,21 @@ func (a *AuthenticatorsApiService) AuthenticatorsDuoList(ctx context.Context) Ap // Execute executes the request // -// @return PaginatedDuoDeviceList -func (a *AuthenticatorsApiService) AuthenticatorsDuoListExecute(r ApiAuthenticatorsDuoListRequest) (*PaginatedDuoDeviceList, *http.Response, error) { +// @return PaginatedWebAuthnDeviceList +func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnListExecute(r ApiAuthenticatorsAdminWebauthnListRequest) (*PaginatedWebAuthnDeviceList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedDuoDeviceList + localVarReturnValue *PaginatedWebAuthnDeviceList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsDuoList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminWebauthnList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/duo/" + localVarPath := localBasePath + "/authenticators/admin/webauthn/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4534,33 +4545,33 @@ func (a *AuthenticatorsApiService) AuthenticatorsDuoListExecute(r ApiAuthenticat return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsDuoPartialUpdateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - id int32 - patchedDuoDeviceRequest *PatchedDuoDeviceRequest +type ApiAuthenticatorsAdminWebauthnPartialUpdateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + id int32 + patchedWebAuthnDeviceRequest *PatchedWebAuthnDeviceRequest } -func (r ApiAuthenticatorsDuoPartialUpdateRequest) PatchedDuoDeviceRequest(patchedDuoDeviceRequest PatchedDuoDeviceRequest) ApiAuthenticatorsDuoPartialUpdateRequest { - r.patchedDuoDeviceRequest = &patchedDuoDeviceRequest +func (r ApiAuthenticatorsAdminWebauthnPartialUpdateRequest) PatchedWebAuthnDeviceRequest(patchedWebAuthnDeviceRequest PatchedWebAuthnDeviceRequest) ApiAuthenticatorsAdminWebauthnPartialUpdateRequest { + r.patchedWebAuthnDeviceRequest = &patchedWebAuthnDeviceRequest return r } -func (r ApiAuthenticatorsDuoPartialUpdateRequest) Execute() (*DuoDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsDuoPartialUpdateExecute(r) +func (r ApiAuthenticatorsAdminWebauthnPartialUpdateRequest) Execute() (*WebAuthnDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminWebauthnPartialUpdateExecute(r) } /* -AuthenticatorsDuoPartialUpdate Method for AuthenticatorsDuoPartialUpdate +AuthenticatorsAdminWebauthnPartialUpdate Method for AuthenticatorsAdminWebauthnPartialUpdate -Viewset for Duo authenticator devices +Viewset for WebAuthn authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Duo Device. - @return ApiAuthenticatorsDuoPartialUpdateRequest + @param id A unique integer value identifying this WebAuthn Device. + @return ApiAuthenticatorsAdminWebauthnPartialUpdateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsDuoPartialUpdate(ctx context.Context, id int32) ApiAuthenticatorsDuoPartialUpdateRequest { - return ApiAuthenticatorsDuoPartialUpdateRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnPartialUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminWebauthnPartialUpdateRequest { + return ApiAuthenticatorsAdminWebauthnPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -4569,21 +4580,21 @@ func (a *AuthenticatorsApiService) AuthenticatorsDuoPartialUpdate(ctx context.Co // Execute executes the request // -// @return DuoDevice -func (a *AuthenticatorsApiService) AuthenticatorsDuoPartialUpdateExecute(r ApiAuthenticatorsDuoPartialUpdateRequest) (*DuoDevice, *http.Response, error) { +// @return WebAuthnDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnPartialUpdateExecute(r ApiAuthenticatorsAdminWebauthnPartialUpdateRequest) (*WebAuthnDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DuoDevice + localVarReturnValue *WebAuthnDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsDuoPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminWebauthnPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/duo/{id}/" + localVarPath := localBasePath + "/authenticators/admin/webauthn/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -4608,7 +4619,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsDuoPartialUpdateExecute(r ApiAu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedDuoDeviceRequest + localVarPostBody = r.patchedWebAuthnDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -4665,27 +4676,27 @@ func (a *AuthenticatorsApiService) AuthenticatorsDuoPartialUpdateExecute(r ApiAu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsDuoRetrieveRequest struct { +type ApiAuthenticatorsAdminWebauthnRetrieveRequest struct { ctx context.Context ApiService *AuthenticatorsApiService id int32 } -func (r ApiAuthenticatorsDuoRetrieveRequest) Execute() (*DuoDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsDuoRetrieveExecute(r) +func (r ApiAuthenticatorsAdminWebauthnRetrieveRequest) Execute() (*WebAuthnDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminWebauthnRetrieveExecute(r) } /* -AuthenticatorsDuoRetrieve Method for AuthenticatorsDuoRetrieve +AuthenticatorsAdminWebauthnRetrieve Method for AuthenticatorsAdminWebauthnRetrieve -Viewset for Duo authenticator devices +Viewset for WebAuthn authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Duo Device. - @return ApiAuthenticatorsDuoRetrieveRequest + @param id A unique integer value identifying this WebAuthn Device. + @return ApiAuthenticatorsAdminWebauthnRetrieveRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsDuoRetrieve(ctx context.Context, id int32) ApiAuthenticatorsDuoRetrieveRequest { - return ApiAuthenticatorsDuoRetrieveRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnRetrieve(ctx context.Context, id int32) ApiAuthenticatorsAdminWebauthnRetrieveRequest { + return ApiAuthenticatorsAdminWebauthnRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -4694,21 +4705,21 @@ func (a *AuthenticatorsApiService) AuthenticatorsDuoRetrieve(ctx context.Context // Execute executes the request // -// @return DuoDevice -func (a *AuthenticatorsApiService) AuthenticatorsDuoRetrieveExecute(r ApiAuthenticatorsDuoRetrieveRequest) (*DuoDevice, *http.Response, error) { +// @return WebAuthnDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnRetrieveExecute(r ApiAuthenticatorsAdminWebauthnRetrieveRequest) (*WebAuthnDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DuoDevice + localVarReturnValue *WebAuthnDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsDuoRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminWebauthnRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/duo/{id}/" + localVarPath := localBasePath + "/authenticators/admin/webauthn/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -4788,33 +4799,33 @@ func (a *AuthenticatorsApiService) AuthenticatorsDuoRetrieveExecute(r ApiAuthent return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsDuoUpdateRequest struct { - ctx context.Context - ApiService *AuthenticatorsApiService - id int32 - duoDeviceRequest *DuoDeviceRequest +type ApiAuthenticatorsAdminWebauthnUpdateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + id int32 + webAuthnDeviceRequest *WebAuthnDeviceRequest } -func (r ApiAuthenticatorsDuoUpdateRequest) DuoDeviceRequest(duoDeviceRequest DuoDeviceRequest) ApiAuthenticatorsDuoUpdateRequest { - r.duoDeviceRequest = &duoDeviceRequest +func (r ApiAuthenticatorsAdminWebauthnUpdateRequest) WebAuthnDeviceRequest(webAuthnDeviceRequest WebAuthnDeviceRequest) ApiAuthenticatorsAdminWebauthnUpdateRequest { + r.webAuthnDeviceRequest = &webAuthnDeviceRequest return r } -func (r ApiAuthenticatorsDuoUpdateRequest) Execute() (*DuoDevice, *http.Response, error) { - return r.ApiService.AuthenticatorsDuoUpdateExecute(r) +func (r ApiAuthenticatorsAdminWebauthnUpdateRequest) Execute() (*WebAuthnDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsAdminWebauthnUpdateExecute(r) } /* -AuthenticatorsDuoUpdate Method for AuthenticatorsDuoUpdate +AuthenticatorsAdminWebauthnUpdate Method for AuthenticatorsAdminWebauthnUpdate -Viewset for Duo authenticator devices +Viewset for WebAuthn authenticator devices (for admins) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Duo Device. - @return ApiAuthenticatorsDuoUpdateRequest + @param id A unique integer value identifying this WebAuthn Device. + @return ApiAuthenticatorsAdminWebauthnUpdateRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsDuoUpdate(ctx context.Context, id int32) ApiAuthenticatorsDuoUpdateRequest { - return ApiAuthenticatorsDuoUpdateRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnUpdate(ctx context.Context, id int32) ApiAuthenticatorsAdminWebauthnUpdateRequest { + return ApiAuthenticatorsAdminWebauthnUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -4823,28 +4834,28 @@ func (a *AuthenticatorsApiService) AuthenticatorsDuoUpdate(ctx context.Context, // Execute executes the request // -// @return DuoDevice -func (a *AuthenticatorsApiService) AuthenticatorsDuoUpdateExecute(r ApiAuthenticatorsDuoUpdateRequest) (*DuoDevice, *http.Response, error) { +// @return WebAuthnDevice +func (a *AuthenticatorsApiService) AuthenticatorsAdminWebauthnUpdateExecute(r ApiAuthenticatorsAdminWebauthnUpdateRequest) (*WebAuthnDevice, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *DuoDevice + localVarReturnValue *WebAuthnDevice ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsDuoUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAdminWebauthnUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/duo/{id}/" + localVarPath := localBasePath + "/authenticators/admin/webauthn/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.duoDeviceRequest == nil { - return localVarReturnValue, nil, reportError("duoDeviceRequest is required and must be specified") + if r.webAuthnDeviceRequest == nil { + return localVarReturnValue, nil, reportError("webAuthnDeviceRequest is required and must be specified") } // to determine the Content-Type header @@ -4865,7 +4876,7 @@ func (a *AuthenticatorsApiService) AuthenticatorsDuoUpdateExecute(r ApiAuthentic localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.duoDeviceRequest + localVarPostBody = r.webAuthnDeviceRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -4922,36 +4933,822 @@ func (a *AuthenticatorsApiService) AuthenticatorsDuoUpdateExecute(r ApiAuthentic return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAuthenticatorsDuoUsedByListRequest struct { +type ApiAuthenticatorsAllListRequest struct { ctx context.Context ApiService *AuthenticatorsApiService - id int32 } -func (r ApiAuthenticatorsDuoUsedByListRequest) Execute() ([]UsedBy, *http.Response, error) { - return r.ApiService.AuthenticatorsDuoUsedByListExecute(r) +func (r ApiAuthenticatorsAllListRequest) Execute() ([]Device, *http.Response, error) { + return r.ApiService.AuthenticatorsAllListExecute(r) } /* -AuthenticatorsDuoUsedByList Method for AuthenticatorsDuoUsedByList +AuthenticatorsAllList Method for AuthenticatorsAllList -Get a list of all objects that use this object +Get all devices for current user @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Duo Device. - @return ApiAuthenticatorsDuoUsedByListRequest + @return ApiAuthenticatorsAllListRequest */ -func (a *AuthenticatorsApiService) AuthenticatorsDuoUsedByList(ctx context.Context, id int32) ApiAuthenticatorsDuoUsedByListRequest { - return ApiAuthenticatorsDuoUsedByListRequest{ +func (a *AuthenticatorsApiService) AuthenticatorsAllList(ctx context.Context) ApiAuthenticatorsAllListRequest { + return ApiAuthenticatorsAllListRequest{ ApiService: a, ctx: ctx, - id: id, } } // Execute executes the request // -// @return []UsedBy +// @return []Device +func (a *AuthenticatorsApiService) AuthenticatorsAllListExecute(r ApiAuthenticatorsAllListRequest) ([]Device, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Device + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsAllList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/authenticators/all/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAuthenticatorsDuoDestroyRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + id int32 +} + +func (r ApiAuthenticatorsDuoDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.AuthenticatorsDuoDestroyExecute(r) +} + +/* +AuthenticatorsDuoDestroy Method for AuthenticatorsDuoDestroy + +Viewset for Duo authenticator devices + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Duo Device. + @return ApiAuthenticatorsDuoDestroyRequest +*/ +func (a *AuthenticatorsApiService) AuthenticatorsDuoDestroy(ctx context.Context, id int32) ApiAuthenticatorsDuoDestroyRequest { + return ApiAuthenticatorsDuoDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *AuthenticatorsApiService) AuthenticatorsDuoDestroyExecute(r ApiAuthenticatorsDuoDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsDuoDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/authenticators/duo/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAuthenticatorsDuoListRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + name *string + ordering *string + page *int32 + pageSize *int32 + search *string +} + +func (r ApiAuthenticatorsDuoListRequest) Name(name string) ApiAuthenticatorsDuoListRequest { + r.name = &name + return r +} + +// Which field to use when ordering the results. +func (r ApiAuthenticatorsDuoListRequest) Ordering(ordering string) ApiAuthenticatorsDuoListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiAuthenticatorsDuoListRequest) Page(page int32) ApiAuthenticatorsDuoListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiAuthenticatorsDuoListRequest) PageSize(pageSize int32) ApiAuthenticatorsDuoListRequest { + r.pageSize = &pageSize + return r +} + +// A search term. +func (r ApiAuthenticatorsDuoListRequest) Search(search string) ApiAuthenticatorsDuoListRequest { + r.search = &search + return r +} + +func (r ApiAuthenticatorsDuoListRequest) Execute() (*PaginatedDuoDeviceList, *http.Response, error) { + return r.ApiService.AuthenticatorsDuoListExecute(r) +} + +/* +AuthenticatorsDuoList Method for AuthenticatorsDuoList + +Viewset for Duo authenticator devices + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthenticatorsDuoListRequest +*/ +func (a *AuthenticatorsApiService) AuthenticatorsDuoList(ctx context.Context) ApiAuthenticatorsDuoListRequest { + return ApiAuthenticatorsDuoListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedDuoDeviceList +func (a *AuthenticatorsApiService) AuthenticatorsDuoListExecute(r ApiAuthenticatorsDuoListRequest) (*PaginatedDuoDeviceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDuoDeviceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsDuoList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/authenticators/duo/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.name != nil { + localVarQueryParams.Add("name", parameterToString(*r.name, "")) + } + if r.ordering != nil { + localVarQueryParams.Add("ordering", parameterToString(*r.ordering, "")) + } + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.pageSize != nil { + localVarQueryParams.Add("page_size", parameterToString(*r.pageSize, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAuthenticatorsDuoPartialUpdateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + id int32 + patchedDuoDeviceRequest *PatchedDuoDeviceRequest +} + +func (r ApiAuthenticatorsDuoPartialUpdateRequest) PatchedDuoDeviceRequest(patchedDuoDeviceRequest PatchedDuoDeviceRequest) ApiAuthenticatorsDuoPartialUpdateRequest { + r.patchedDuoDeviceRequest = &patchedDuoDeviceRequest + return r +} + +func (r ApiAuthenticatorsDuoPartialUpdateRequest) Execute() (*DuoDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsDuoPartialUpdateExecute(r) +} + +/* +AuthenticatorsDuoPartialUpdate Method for AuthenticatorsDuoPartialUpdate + +Viewset for Duo authenticator devices + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Duo Device. + @return ApiAuthenticatorsDuoPartialUpdateRequest +*/ +func (a *AuthenticatorsApiService) AuthenticatorsDuoPartialUpdate(ctx context.Context, id int32) ApiAuthenticatorsDuoPartialUpdateRequest { + return ApiAuthenticatorsDuoPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return DuoDevice +func (a *AuthenticatorsApiService) AuthenticatorsDuoPartialUpdateExecute(r ApiAuthenticatorsDuoPartialUpdateRequest) (*DuoDevice, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DuoDevice + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsDuoPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/authenticators/duo/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedDuoDeviceRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAuthenticatorsDuoRetrieveRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + id int32 +} + +func (r ApiAuthenticatorsDuoRetrieveRequest) Execute() (*DuoDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsDuoRetrieveExecute(r) +} + +/* +AuthenticatorsDuoRetrieve Method for AuthenticatorsDuoRetrieve + +Viewset for Duo authenticator devices + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Duo Device. + @return ApiAuthenticatorsDuoRetrieveRequest +*/ +func (a *AuthenticatorsApiService) AuthenticatorsDuoRetrieve(ctx context.Context, id int32) ApiAuthenticatorsDuoRetrieveRequest { + return ApiAuthenticatorsDuoRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return DuoDevice +func (a *AuthenticatorsApiService) AuthenticatorsDuoRetrieveExecute(r ApiAuthenticatorsDuoRetrieveRequest) (*DuoDevice, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DuoDevice + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsDuoRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/authenticators/duo/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAuthenticatorsDuoUpdateRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + id int32 + duoDeviceRequest *DuoDeviceRequest +} + +func (r ApiAuthenticatorsDuoUpdateRequest) DuoDeviceRequest(duoDeviceRequest DuoDeviceRequest) ApiAuthenticatorsDuoUpdateRequest { + r.duoDeviceRequest = &duoDeviceRequest + return r +} + +func (r ApiAuthenticatorsDuoUpdateRequest) Execute() (*DuoDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsDuoUpdateExecute(r) +} + +/* +AuthenticatorsDuoUpdate Method for AuthenticatorsDuoUpdate + +Viewset for Duo authenticator devices + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Duo Device. + @return ApiAuthenticatorsDuoUpdateRequest +*/ +func (a *AuthenticatorsApiService) AuthenticatorsDuoUpdate(ctx context.Context, id int32) ApiAuthenticatorsDuoUpdateRequest { + return ApiAuthenticatorsDuoUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return DuoDevice +func (a *AuthenticatorsApiService) AuthenticatorsDuoUpdateExecute(r ApiAuthenticatorsDuoUpdateRequest) (*DuoDevice, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DuoDevice + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsDuoUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/authenticators/duo/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.duoDeviceRequest == nil { + return localVarReturnValue, nil, reportError("duoDeviceRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.duoDeviceRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAuthenticatorsDuoUsedByListRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + id int32 +} + +func (r ApiAuthenticatorsDuoUsedByListRequest) Execute() ([]UsedBy, *http.Response, error) { + return r.ApiService.AuthenticatorsDuoUsedByListExecute(r) +} + +/* +AuthenticatorsDuoUsedByList Method for AuthenticatorsDuoUsedByList + +Get a list of all objects that use this object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Duo Device. + @return ApiAuthenticatorsDuoUsedByListRequest +*/ +func (a *AuthenticatorsApiService) AuthenticatorsDuoUsedByList(ctx context.Context, id int32) ApiAuthenticatorsDuoUsedByListRequest { + return ApiAuthenticatorsDuoUsedByListRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return []UsedBy func (a *AuthenticatorsApiService) AuthenticatorsDuoUsedByListExecute(r ApiAuthenticatorsDuoUsedByListRequest) ([]UsedBy, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -4960,13 +5757,427 @@ func (a *AuthenticatorsApiService) AuthenticatorsDuoUsedByListExecute(r ApiAuthe localVarReturnValue []UsedBy ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsDuoUsedByList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsDuoUsedByList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/authenticators/duo/{id}/used_by/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAuthenticatorsEndpointListRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + name *string + ordering *string + page *int32 + pageSize *int32 + search *string +} + +func (r ApiAuthenticatorsEndpointListRequest) Name(name string) ApiAuthenticatorsEndpointListRequest { + r.name = &name + return r +} + +// Which field to use when ordering the results. +func (r ApiAuthenticatorsEndpointListRequest) Ordering(ordering string) ApiAuthenticatorsEndpointListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiAuthenticatorsEndpointListRequest) Page(page int32) ApiAuthenticatorsEndpointListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiAuthenticatorsEndpointListRequest) PageSize(pageSize int32) ApiAuthenticatorsEndpointListRequest { + r.pageSize = &pageSize + return r +} + +// A search term. +func (r ApiAuthenticatorsEndpointListRequest) Search(search string) ApiAuthenticatorsEndpointListRequest { + r.search = &search + return r +} + +func (r ApiAuthenticatorsEndpointListRequest) Execute() (*PaginatedEndpointDeviceList, *http.Response, error) { + return r.ApiService.AuthenticatorsEndpointListExecute(r) +} + +/* +AuthenticatorsEndpointList Method for AuthenticatorsEndpointList + +Viewset for Endpoint authenticator devices + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthenticatorsEndpointListRequest +*/ +func (a *AuthenticatorsApiService) AuthenticatorsEndpointList(ctx context.Context) ApiAuthenticatorsEndpointListRequest { + return ApiAuthenticatorsEndpointListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedEndpointDeviceList +func (a *AuthenticatorsApiService) AuthenticatorsEndpointListExecute(r ApiAuthenticatorsEndpointListRequest) (*PaginatedEndpointDeviceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedEndpointDeviceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsEndpointList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/authenticators/endpoint/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.name != nil { + localVarQueryParams.Add("name", parameterToString(*r.name, "")) + } + if r.ordering != nil { + localVarQueryParams.Add("ordering", parameterToString(*r.ordering, "")) + } + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.pageSize != nil { + localVarQueryParams.Add("page_size", parameterToString(*r.pageSize, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAuthenticatorsEndpointRetrieveRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + uuid string +} + +func (r ApiAuthenticatorsEndpointRetrieveRequest) Execute() (*EndpointDevice, *http.Response, error) { + return r.ApiService.AuthenticatorsEndpointRetrieveExecute(r) +} + +/* +AuthenticatorsEndpointRetrieve Method for AuthenticatorsEndpointRetrieve + +Viewset for Endpoint authenticator devices + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid A UUID string identifying this Endpoint Device. + @return ApiAuthenticatorsEndpointRetrieveRequest +*/ +func (a *AuthenticatorsApiService) AuthenticatorsEndpointRetrieve(ctx context.Context, uuid string) ApiAuthenticatorsEndpointRetrieveRequest { + return ApiAuthenticatorsEndpointRetrieveRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return EndpointDevice +func (a *AuthenticatorsApiService) AuthenticatorsEndpointRetrieveExecute(r ApiAuthenticatorsEndpointRetrieveRequest) (*EndpointDevice, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EndpointDevice + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsEndpointRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/authenticators/endpoint/{uuid}/" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterToString(r.uuid, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAuthenticatorsEndpointUsedByListRequest struct { + ctx context.Context + ApiService *AuthenticatorsApiService + uuid string +} + +func (r ApiAuthenticatorsEndpointUsedByListRequest) Execute() ([]UsedBy, *http.Response, error) { + return r.ApiService.AuthenticatorsEndpointUsedByListExecute(r) +} + +/* +AuthenticatorsEndpointUsedByList Method for AuthenticatorsEndpointUsedByList + +Get a list of all objects that use this object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param uuid A UUID string identifying this Endpoint Device. + @return ApiAuthenticatorsEndpointUsedByListRequest +*/ +func (a *AuthenticatorsApiService) AuthenticatorsEndpointUsedByList(ctx context.Context, uuid string) ApiAuthenticatorsEndpointUsedByListRequest { + return ApiAuthenticatorsEndpointUsedByListRequest{ + ApiService: a, + ctx: ctx, + uuid: uuid, + } +} + +// Execute executes the request +// +// @return []UsedBy +func (a *AuthenticatorsApiService) AuthenticatorsEndpointUsedByListExecute(r ApiAuthenticatorsEndpointUsedByListRequest) ([]UsedBy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UsedBy + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthenticatorsApiService.AuthenticatorsEndpointUsedByList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authenticators/duo/{id}/used_by/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath := localBasePath + "/authenticators/endpoint/{uuid}/used_by/" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", url.PathEscape(parameterToString(r.uuid, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/api_stages.go b/api_stages.go index c13573357..7af38c971 100644 --- a/api_stages.go +++ b/api_stages.go @@ -2083,6 +2083,935 @@ func (a *StagesApiService) StagesAuthenticatorDuoUsedByListExecute(r ApiStagesAu return localVarReturnValue, localVarHTTPResponse, nil } +type ApiStagesAuthenticatorEndpointGdtcCreateRequest struct { + ctx context.Context + ApiService *StagesApiService + authenticatorEndpointGDTCStageRequest *AuthenticatorEndpointGDTCStageRequest +} + +func (r ApiStagesAuthenticatorEndpointGdtcCreateRequest) AuthenticatorEndpointGDTCStageRequest(authenticatorEndpointGDTCStageRequest AuthenticatorEndpointGDTCStageRequest) ApiStagesAuthenticatorEndpointGdtcCreateRequest { + r.authenticatorEndpointGDTCStageRequest = &authenticatorEndpointGDTCStageRequest + return r +} + +func (r ApiStagesAuthenticatorEndpointGdtcCreateRequest) Execute() (*AuthenticatorEndpointGDTCStage, *http.Response, error) { + return r.ApiService.StagesAuthenticatorEndpointGdtcCreateExecute(r) +} + +/* +StagesAuthenticatorEndpointGdtcCreate Method for StagesAuthenticatorEndpointGdtcCreate + +AuthenticatorEndpointGDTCStage Viewset + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStagesAuthenticatorEndpointGdtcCreateRequest +*/ +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcCreate(ctx context.Context) ApiStagesAuthenticatorEndpointGdtcCreateRequest { + return ApiStagesAuthenticatorEndpointGdtcCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return AuthenticatorEndpointGDTCStage +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcCreateExecute(r ApiStagesAuthenticatorEndpointGdtcCreateRequest) (*AuthenticatorEndpointGDTCStage, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticatorEndpointGDTCStage + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StagesApiService.StagesAuthenticatorEndpointGdtcCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stages/authenticator/endpoint_gdtc/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authenticatorEndpointGDTCStageRequest == nil { + return localVarReturnValue, nil, reportError("authenticatorEndpointGDTCStageRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.authenticatorEndpointGDTCStageRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiStagesAuthenticatorEndpointGdtcDestroyRequest struct { + ctx context.Context + ApiService *StagesApiService + stageUuid string +} + +func (r ApiStagesAuthenticatorEndpointGdtcDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.StagesAuthenticatorEndpointGdtcDestroyExecute(r) +} + +/* +StagesAuthenticatorEndpointGdtcDestroy Method for StagesAuthenticatorEndpointGdtcDestroy + +AuthenticatorEndpointGDTCStage Viewset + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stageUuid A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. + @return ApiStagesAuthenticatorEndpointGdtcDestroyRequest +*/ +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcDestroy(ctx context.Context, stageUuid string) ApiStagesAuthenticatorEndpointGdtcDestroyRequest { + return ApiStagesAuthenticatorEndpointGdtcDestroyRequest{ + ApiService: a, + ctx: ctx, + stageUuid: stageUuid, + } +} + +// Execute executes the request +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcDestroyExecute(r ApiStagesAuthenticatorEndpointGdtcDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StagesApiService.StagesAuthenticatorEndpointGdtcDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stages/authenticator/endpoint_gdtc/{stage_uuid}/" + localVarPath = strings.Replace(localVarPath, "{"+"stage_uuid"+"}", url.PathEscape(parameterToString(r.stageUuid, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiStagesAuthenticatorEndpointGdtcListRequest struct { + ctx context.Context + ApiService *StagesApiService + configureFlow *string + name *string + ordering *string + page *int32 + pageSize *int32 + search *string +} + +func (r ApiStagesAuthenticatorEndpointGdtcListRequest) ConfigureFlow(configureFlow string) ApiStagesAuthenticatorEndpointGdtcListRequest { + r.configureFlow = &configureFlow + return r +} + +func (r ApiStagesAuthenticatorEndpointGdtcListRequest) Name(name string) ApiStagesAuthenticatorEndpointGdtcListRequest { + r.name = &name + return r +} + +// Which field to use when ordering the results. +func (r ApiStagesAuthenticatorEndpointGdtcListRequest) Ordering(ordering string) ApiStagesAuthenticatorEndpointGdtcListRequest { + r.ordering = &ordering + return r +} + +// A page number within the paginated result set. +func (r ApiStagesAuthenticatorEndpointGdtcListRequest) Page(page int32) ApiStagesAuthenticatorEndpointGdtcListRequest { + r.page = &page + return r +} + +// Number of results to return per page. +func (r ApiStagesAuthenticatorEndpointGdtcListRequest) PageSize(pageSize int32) ApiStagesAuthenticatorEndpointGdtcListRequest { + r.pageSize = &pageSize + return r +} + +// A search term. +func (r ApiStagesAuthenticatorEndpointGdtcListRequest) Search(search string) ApiStagesAuthenticatorEndpointGdtcListRequest { + r.search = &search + return r +} + +func (r ApiStagesAuthenticatorEndpointGdtcListRequest) Execute() (*PaginatedAuthenticatorEndpointGDTCStageList, *http.Response, error) { + return r.ApiService.StagesAuthenticatorEndpointGdtcListExecute(r) +} + +/* +StagesAuthenticatorEndpointGdtcList Method for StagesAuthenticatorEndpointGdtcList + +AuthenticatorEndpointGDTCStage Viewset + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStagesAuthenticatorEndpointGdtcListRequest +*/ +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcList(ctx context.Context) ApiStagesAuthenticatorEndpointGdtcListRequest { + return ApiStagesAuthenticatorEndpointGdtcListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedAuthenticatorEndpointGDTCStageList +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcListExecute(r ApiStagesAuthenticatorEndpointGdtcListRequest) (*PaginatedAuthenticatorEndpointGDTCStageList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedAuthenticatorEndpointGDTCStageList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StagesApiService.StagesAuthenticatorEndpointGdtcList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stages/authenticator/endpoint_gdtc/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.configureFlow != nil { + localVarQueryParams.Add("configure_flow", parameterToString(*r.configureFlow, "")) + } + if r.name != nil { + localVarQueryParams.Add("name", parameterToString(*r.name, "")) + } + if r.ordering != nil { + localVarQueryParams.Add("ordering", parameterToString(*r.ordering, "")) + } + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.pageSize != nil { + localVarQueryParams.Add("page_size", parameterToString(*r.pageSize, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiStagesAuthenticatorEndpointGdtcPartialUpdateRequest struct { + ctx context.Context + ApiService *StagesApiService + stageUuid string + patchedAuthenticatorEndpointGDTCStageRequest *PatchedAuthenticatorEndpointGDTCStageRequest +} + +func (r ApiStagesAuthenticatorEndpointGdtcPartialUpdateRequest) PatchedAuthenticatorEndpointGDTCStageRequest(patchedAuthenticatorEndpointGDTCStageRequest PatchedAuthenticatorEndpointGDTCStageRequest) ApiStagesAuthenticatorEndpointGdtcPartialUpdateRequest { + r.patchedAuthenticatorEndpointGDTCStageRequest = &patchedAuthenticatorEndpointGDTCStageRequest + return r +} + +func (r ApiStagesAuthenticatorEndpointGdtcPartialUpdateRequest) Execute() (*AuthenticatorEndpointGDTCStage, *http.Response, error) { + return r.ApiService.StagesAuthenticatorEndpointGdtcPartialUpdateExecute(r) +} + +/* +StagesAuthenticatorEndpointGdtcPartialUpdate Method for StagesAuthenticatorEndpointGdtcPartialUpdate + +AuthenticatorEndpointGDTCStage Viewset + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stageUuid A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. + @return ApiStagesAuthenticatorEndpointGdtcPartialUpdateRequest +*/ +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcPartialUpdate(ctx context.Context, stageUuid string) ApiStagesAuthenticatorEndpointGdtcPartialUpdateRequest { + return ApiStagesAuthenticatorEndpointGdtcPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + stageUuid: stageUuid, + } +} + +// Execute executes the request +// +// @return AuthenticatorEndpointGDTCStage +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcPartialUpdateExecute(r ApiStagesAuthenticatorEndpointGdtcPartialUpdateRequest) (*AuthenticatorEndpointGDTCStage, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticatorEndpointGDTCStage + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StagesApiService.StagesAuthenticatorEndpointGdtcPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stages/authenticator/endpoint_gdtc/{stage_uuid}/" + localVarPath = strings.Replace(localVarPath, "{"+"stage_uuid"+"}", url.PathEscape(parameterToString(r.stageUuid, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedAuthenticatorEndpointGDTCStageRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiStagesAuthenticatorEndpointGdtcRetrieveRequest struct { + ctx context.Context + ApiService *StagesApiService + stageUuid string +} + +func (r ApiStagesAuthenticatorEndpointGdtcRetrieveRequest) Execute() (*AuthenticatorEndpointGDTCStage, *http.Response, error) { + return r.ApiService.StagesAuthenticatorEndpointGdtcRetrieveExecute(r) +} + +/* +StagesAuthenticatorEndpointGdtcRetrieve Method for StagesAuthenticatorEndpointGdtcRetrieve + +AuthenticatorEndpointGDTCStage Viewset + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stageUuid A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. + @return ApiStagesAuthenticatorEndpointGdtcRetrieveRequest +*/ +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcRetrieve(ctx context.Context, stageUuid string) ApiStagesAuthenticatorEndpointGdtcRetrieveRequest { + return ApiStagesAuthenticatorEndpointGdtcRetrieveRequest{ + ApiService: a, + ctx: ctx, + stageUuid: stageUuid, + } +} + +// Execute executes the request +// +// @return AuthenticatorEndpointGDTCStage +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcRetrieveExecute(r ApiStagesAuthenticatorEndpointGdtcRetrieveRequest) (*AuthenticatorEndpointGDTCStage, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticatorEndpointGDTCStage + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StagesApiService.StagesAuthenticatorEndpointGdtcRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stages/authenticator/endpoint_gdtc/{stage_uuid}/" + localVarPath = strings.Replace(localVarPath, "{"+"stage_uuid"+"}", url.PathEscape(parameterToString(r.stageUuid, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiStagesAuthenticatorEndpointGdtcUpdateRequest struct { + ctx context.Context + ApiService *StagesApiService + stageUuid string + authenticatorEndpointGDTCStageRequest *AuthenticatorEndpointGDTCStageRequest +} + +func (r ApiStagesAuthenticatorEndpointGdtcUpdateRequest) AuthenticatorEndpointGDTCStageRequest(authenticatorEndpointGDTCStageRequest AuthenticatorEndpointGDTCStageRequest) ApiStagesAuthenticatorEndpointGdtcUpdateRequest { + r.authenticatorEndpointGDTCStageRequest = &authenticatorEndpointGDTCStageRequest + return r +} + +func (r ApiStagesAuthenticatorEndpointGdtcUpdateRequest) Execute() (*AuthenticatorEndpointGDTCStage, *http.Response, error) { + return r.ApiService.StagesAuthenticatorEndpointGdtcUpdateExecute(r) +} + +/* +StagesAuthenticatorEndpointGdtcUpdate Method for StagesAuthenticatorEndpointGdtcUpdate + +AuthenticatorEndpointGDTCStage Viewset + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stageUuid A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. + @return ApiStagesAuthenticatorEndpointGdtcUpdateRequest +*/ +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcUpdate(ctx context.Context, stageUuid string) ApiStagesAuthenticatorEndpointGdtcUpdateRequest { + return ApiStagesAuthenticatorEndpointGdtcUpdateRequest{ + ApiService: a, + ctx: ctx, + stageUuid: stageUuid, + } +} + +// Execute executes the request +// +// @return AuthenticatorEndpointGDTCStage +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcUpdateExecute(r ApiStagesAuthenticatorEndpointGdtcUpdateRequest) (*AuthenticatorEndpointGDTCStage, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuthenticatorEndpointGDTCStage + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StagesApiService.StagesAuthenticatorEndpointGdtcUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stages/authenticator/endpoint_gdtc/{stage_uuid}/" + localVarPath = strings.Replace(localVarPath, "{"+"stage_uuid"+"}", url.PathEscape(parameterToString(r.stageUuid, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authenticatorEndpointGDTCStageRequest == nil { + return localVarReturnValue, nil, reportError("authenticatorEndpointGDTCStageRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.authenticatorEndpointGDTCStageRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiStagesAuthenticatorEndpointGdtcUsedByListRequest struct { + ctx context.Context + ApiService *StagesApiService + stageUuid string +} + +func (r ApiStagesAuthenticatorEndpointGdtcUsedByListRequest) Execute() ([]UsedBy, *http.Response, error) { + return r.ApiService.StagesAuthenticatorEndpointGdtcUsedByListExecute(r) +} + +/* +StagesAuthenticatorEndpointGdtcUsedByList Method for StagesAuthenticatorEndpointGdtcUsedByList + +Get a list of all objects that use this object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stageUuid A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. + @return ApiStagesAuthenticatorEndpointGdtcUsedByListRequest +*/ +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcUsedByList(ctx context.Context, stageUuid string) ApiStagesAuthenticatorEndpointGdtcUsedByListRequest { + return ApiStagesAuthenticatorEndpointGdtcUsedByListRequest{ + ApiService: a, + ctx: ctx, + stageUuid: stageUuid, + } +} + +// Execute executes the request +// +// @return []UsedBy +func (a *StagesApiService) StagesAuthenticatorEndpointGdtcUsedByListExecute(r ApiStagesAuthenticatorEndpointGdtcUsedByListRequest) ([]UsedBy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []UsedBy + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StagesApiService.StagesAuthenticatorEndpointGdtcUsedByList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stages/authenticator/endpoint_gdtc/{stage_uuid}/used_by/" + localVarPath = strings.Replace(localVarPath, "{"+"stage_uuid"+"}", url.PathEscape(parameterToString(r.stageUuid, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v GenericError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiStagesAuthenticatorSmsCreateRequest struct { ctx context.Context ApiService *StagesApiService diff --git a/docs/AppEnum.md b/docs/AppEnum.md index ab01d69e1..12c0d1199 100644 --- a/docs/AppEnum.md +++ b/docs/AppEnum.md @@ -113,6 +113,8 @@ * `ENTERPRISE_PROVIDERS_RAC` (value: `"authentik.enterprise.providers.rac"`) +* `ENTERPRISE_STAGES_AUTHENTICATOR_ENDPOINT_GDTC` (value: `"authentik.enterprise.stages.authenticator_endpoint_gdtc"`) + * `ENTERPRISE_STAGES_SOURCE` (value: `"authentik.enterprise.stages.source"`) * `EVENTS` (value: `"authentik.events"`) diff --git a/docs/AuthenticatorEndpointGDTCStage.md b/docs/AuthenticatorEndpointGDTCStage.md new file mode 100644 index 000000000..ee59cb757 --- /dev/null +++ b/docs/AuthenticatorEndpointGDTCStage.md @@ -0,0 +1,285 @@ +# AuthenticatorEndpointGDTCStage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pk** | **string** | | [readonly] +**Name** | **string** | | +**Component** | **string** | Get object type so that we know how to edit the object | [readonly] +**VerboseName** | **string** | Return object's verbose_name | [readonly] +**VerboseNamePlural** | **string** | Return object's plural verbose_name | [readonly] +**MetaModelName** | **string** | Return internal model name | [readonly] +**FlowSet** | Pointer to [**[]FlowSet**](FlowSet.md) | | [optional] +**ConfigureFlow** | Pointer to **NullableString** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] +**FriendlyName** | Pointer to **NullableString** | | [optional] +**Credentials** | **interface{}** | | + +## Methods + +### NewAuthenticatorEndpointGDTCStage + +`func NewAuthenticatorEndpointGDTCStage(pk string, name string, component string, verboseName string, verboseNamePlural string, metaModelName string, credentials interface{}, ) *AuthenticatorEndpointGDTCStage` + +NewAuthenticatorEndpointGDTCStage instantiates a new AuthenticatorEndpointGDTCStage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthenticatorEndpointGDTCStageWithDefaults + +`func NewAuthenticatorEndpointGDTCStageWithDefaults() *AuthenticatorEndpointGDTCStage` + +NewAuthenticatorEndpointGDTCStageWithDefaults instantiates a new AuthenticatorEndpointGDTCStage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPk + +`func (o *AuthenticatorEndpointGDTCStage) GetPk() string` + +GetPk returns the Pk field if non-nil, zero value otherwise. + +### GetPkOk + +`func (o *AuthenticatorEndpointGDTCStage) GetPkOk() (*string, bool)` + +GetPkOk returns a tuple with the Pk field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPk + +`func (o *AuthenticatorEndpointGDTCStage) SetPk(v string)` + +SetPk sets Pk field to given value. + + +### GetName + +`func (o *AuthenticatorEndpointGDTCStage) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AuthenticatorEndpointGDTCStage) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AuthenticatorEndpointGDTCStage) SetName(v string)` + +SetName sets Name field to given value. + + +### GetComponent + +`func (o *AuthenticatorEndpointGDTCStage) GetComponent() string` + +GetComponent returns the Component field if non-nil, zero value otherwise. + +### GetComponentOk + +`func (o *AuthenticatorEndpointGDTCStage) GetComponentOk() (*string, bool)` + +GetComponentOk returns a tuple with the Component field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComponent + +`func (o *AuthenticatorEndpointGDTCStage) SetComponent(v string)` + +SetComponent sets Component field to given value. + + +### GetVerboseName + +`func (o *AuthenticatorEndpointGDTCStage) GetVerboseName() string` + +GetVerboseName returns the VerboseName field if non-nil, zero value otherwise. + +### GetVerboseNameOk + +`func (o *AuthenticatorEndpointGDTCStage) GetVerboseNameOk() (*string, bool)` + +GetVerboseNameOk returns a tuple with the VerboseName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerboseName + +`func (o *AuthenticatorEndpointGDTCStage) SetVerboseName(v string)` + +SetVerboseName sets VerboseName field to given value. + + +### GetVerboseNamePlural + +`func (o *AuthenticatorEndpointGDTCStage) GetVerboseNamePlural() string` + +GetVerboseNamePlural returns the VerboseNamePlural field if non-nil, zero value otherwise. + +### GetVerboseNamePluralOk + +`func (o *AuthenticatorEndpointGDTCStage) GetVerboseNamePluralOk() (*string, bool)` + +GetVerboseNamePluralOk returns a tuple with the VerboseNamePlural field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerboseNamePlural + +`func (o *AuthenticatorEndpointGDTCStage) SetVerboseNamePlural(v string)` + +SetVerboseNamePlural sets VerboseNamePlural field to given value. + + +### GetMetaModelName + +`func (o *AuthenticatorEndpointGDTCStage) GetMetaModelName() string` + +GetMetaModelName returns the MetaModelName field if non-nil, zero value otherwise. + +### GetMetaModelNameOk + +`func (o *AuthenticatorEndpointGDTCStage) GetMetaModelNameOk() (*string, bool)` + +GetMetaModelNameOk returns a tuple with the MetaModelName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetaModelName + +`func (o *AuthenticatorEndpointGDTCStage) SetMetaModelName(v string)` + +SetMetaModelName sets MetaModelName field to given value. + + +### GetFlowSet + +`func (o *AuthenticatorEndpointGDTCStage) GetFlowSet() []FlowSet` + +GetFlowSet returns the FlowSet field if non-nil, zero value otherwise. + +### GetFlowSetOk + +`func (o *AuthenticatorEndpointGDTCStage) GetFlowSetOk() (*[]FlowSet, bool)` + +GetFlowSetOk returns a tuple with the FlowSet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlowSet + +`func (o *AuthenticatorEndpointGDTCStage) SetFlowSet(v []FlowSet)` + +SetFlowSet sets FlowSet field to given value. + +### HasFlowSet + +`func (o *AuthenticatorEndpointGDTCStage) HasFlowSet() bool` + +HasFlowSet returns a boolean if a field has been set. + +### GetConfigureFlow + +`func (o *AuthenticatorEndpointGDTCStage) GetConfigureFlow() string` + +GetConfigureFlow returns the ConfigureFlow field if non-nil, zero value otherwise. + +### GetConfigureFlowOk + +`func (o *AuthenticatorEndpointGDTCStage) GetConfigureFlowOk() (*string, bool)` + +GetConfigureFlowOk returns a tuple with the ConfigureFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigureFlow + +`func (o *AuthenticatorEndpointGDTCStage) SetConfigureFlow(v string)` + +SetConfigureFlow sets ConfigureFlow field to given value. + +### HasConfigureFlow + +`func (o *AuthenticatorEndpointGDTCStage) HasConfigureFlow() bool` + +HasConfigureFlow returns a boolean if a field has been set. + +### SetConfigureFlowNil + +`func (o *AuthenticatorEndpointGDTCStage) SetConfigureFlowNil(b bool)` + + SetConfigureFlowNil sets the value for ConfigureFlow to be an explicit nil + +### UnsetConfigureFlow +`func (o *AuthenticatorEndpointGDTCStage) UnsetConfigureFlow()` + +UnsetConfigureFlow ensures that no value is present for ConfigureFlow, not even an explicit nil +### GetFriendlyName + +`func (o *AuthenticatorEndpointGDTCStage) GetFriendlyName() string` + +GetFriendlyName returns the FriendlyName field if non-nil, zero value otherwise. + +### GetFriendlyNameOk + +`func (o *AuthenticatorEndpointGDTCStage) GetFriendlyNameOk() (*string, bool)` + +GetFriendlyNameOk returns a tuple with the FriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFriendlyName + +`func (o *AuthenticatorEndpointGDTCStage) SetFriendlyName(v string)` + +SetFriendlyName sets FriendlyName field to given value. + +### HasFriendlyName + +`func (o *AuthenticatorEndpointGDTCStage) HasFriendlyName() bool` + +HasFriendlyName returns a boolean if a field has been set. + +### SetFriendlyNameNil + +`func (o *AuthenticatorEndpointGDTCStage) SetFriendlyNameNil(b bool)` + + SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil + +### UnsetFriendlyName +`func (o *AuthenticatorEndpointGDTCStage) UnsetFriendlyName()` + +UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +### GetCredentials + +`func (o *AuthenticatorEndpointGDTCStage) GetCredentials() interface{}` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *AuthenticatorEndpointGDTCStage) GetCredentialsOk() (*interface{}, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *AuthenticatorEndpointGDTCStage) SetCredentials(v interface{})` + +SetCredentials sets Credentials field to given value. + + +### SetCredentialsNil + +`func (o *AuthenticatorEndpointGDTCStage) SetCredentialsNil(b bool)` + + SetCredentialsNil sets the value for Credentials to be an explicit nil + +### UnsetCredentials +`func (o *AuthenticatorEndpointGDTCStage) UnsetCredentials()` + +UnsetCredentials ensures that no value is present for Credentials, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthenticatorEndpointGDTCStageRequest.md b/docs/AuthenticatorEndpointGDTCStageRequest.md new file mode 100644 index 000000000..9b0c8848a --- /dev/null +++ b/docs/AuthenticatorEndpointGDTCStageRequest.md @@ -0,0 +1,180 @@ +# AuthenticatorEndpointGDTCStageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**FlowSet** | Pointer to [**[]FlowSetRequest**](FlowSetRequest.md) | | [optional] +**ConfigureFlow** | Pointer to **NullableString** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] +**FriendlyName** | Pointer to **NullableString** | | [optional] +**Credentials** | **interface{}** | | + +## Methods + +### NewAuthenticatorEndpointGDTCStageRequest + +`func NewAuthenticatorEndpointGDTCStageRequest(name string, credentials interface{}, ) *AuthenticatorEndpointGDTCStageRequest` + +NewAuthenticatorEndpointGDTCStageRequest instantiates a new AuthenticatorEndpointGDTCStageRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthenticatorEndpointGDTCStageRequestWithDefaults + +`func NewAuthenticatorEndpointGDTCStageRequestWithDefaults() *AuthenticatorEndpointGDTCStageRequest` + +NewAuthenticatorEndpointGDTCStageRequestWithDefaults instantiates a new AuthenticatorEndpointGDTCStageRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *AuthenticatorEndpointGDTCStageRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AuthenticatorEndpointGDTCStageRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AuthenticatorEndpointGDTCStageRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetFlowSet + +`func (o *AuthenticatorEndpointGDTCStageRequest) GetFlowSet() []FlowSetRequest` + +GetFlowSet returns the FlowSet field if non-nil, zero value otherwise. + +### GetFlowSetOk + +`func (o *AuthenticatorEndpointGDTCStageRequest) GetFlowSetOk() (*[]FlowSetRequest, bool)` + +GetFlowSetOk returns a tuple with the FlowSet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlowSet + +`func (o *AuthenticatorEndpointGDTCStageRequest) SetFlowSet(v []FlowSetRequest)` + +SetFlowSet sets FlowSet field to given value. + +### HasFlowSet + +`func (o *AuthenticatorEndpointGDTCStageRequest) HasFlowSet() bool` + +HasFlowSet returns a boolean if a field has been set. + +### GetConfigureFlow + +`func (o *AuthenticatorEndpointGDTCStageRequest) GetConfigureFlow() string` + +GetConfigureFlow returns the ConfigureFlow field if non-nil, zero value otherwise. + +### GetConfigureFlowOk + +`func (o *AuthenticatorEndpointGDTCStageRequest) GetConfigureFlowOk() (*string, bool)` + +GetConfigureFlowOk returns a tuple with the ConfigureFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigureFlow + +`func (o *AuthenticatorEndpointGDTCStageRequest) SetConfigureFlow(v string)` + +SetConfigureFlow sets ConfigureFlow field to given value. + +### HasConfigureFlow + +`func (o *AuthenticatorEndpointGDTCStageRequest) HasConfigureFlow() bool` + +HasConfigureFlow returns a boolean if a field has been set. + +### SetConfigureFlowNil + +`func (o *AuthenticatorEndpointGDTCStageRequest) SetConfigureFlowNil(b bool)` + + SetConfigureFlowNil sets the value for ConfigureFlow to be an explicit nil + +### UnsetConfigureFlow +`func (o *AuthenticatorEndpointGDTCStageRequest) UnsetConfigureFlow()` + +UnsetConfigureFlow ensures that no value is present for ConfigureFlow, not even an explicit nil +### GetFriendlyName + +`func (o *AuthenticatorEndpointGDTCStageRequest) GetFriendlyName() string` + +GetFriendlyName returns the FriendlyName field if non-nil, zero value otherwise. + +### GetFriendlyNameOk + +`func (o *AuthenticatorEndpointGDTCStageRequest) GetFriendlyNameOk() (*string, bool)` + +GetFriendlyNameOk returns a tuple with the FriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFriendlyName + +`func (o *AuthenticatorEndpointGDTCStageRequest) SetFriendlyName(v string)` + +SetFriendlyName sets FriendlyName field to given value. + +### HasFriendlyName + +`func (o *AuthenticatorEndpointGDTCStageRequest) HasFriendlyName() bool` + +HasFriendlyName returns a boolean if a field has been set. + +### SetFriendlyNameNil + +`func (o *AuthenticatorEndpointGDTCStageRequest) SetFriendlyNameNil(b bool)` + + SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil + +### UnsetFriendlyName +`func (o *AuthenticatorEndpointGDTCStageRequest) UnsetFriendlyName()` + +UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +### GetCredentials + +`func (o *AuthenticatorEndpointGDTCStageRequest) GetCredentials() interface{}` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *AuthenticatorEndpointGDTCStageRequest) GetCredentialsOk() (*interface{}, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *AuthenticatorEndpointGDTCStageRequest) SetCredentials(v interface{})` + +SetCredentials sets Credentials field to given value. + + +### SetCredentialsNil + +`func (o *AuthenticatorEndpointGDTCStageRequest) SetCredentialsNil(b bool)` + + SetCredentialsNil sets the value for Credentials to be an explicit nil + +### UnsetCredentials +`func (o *AuthenticatorEndpointGDTCStageRequest) UnsetCredentials()` + +UnsetCredentials ensures that no value is present for Credentials, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthenticatorsApi.md b/docs/AuthenticatorsApi.md index c3ee2a398..1e354bab6 100644 --- a/docs/AuthenticatorsApi.md +++ b/docs/AuthenticatorsApi.md @@ -11,6 +11,12 @@ Method | HTTP request | Description [**AuthenticatorsAdminDuoPartialUpdate**](AuthenticatorsApi.md#AuthenticatorsAdminDuoPartialUpdate) | **Patch** /authenticators/admin/duo/{id}/ | [**AuthenticatorsAdminDuoRetrieve**](AuthenticatorsApi.md#AuthenticatorsAdminDuoRetrieve) | **Get** /authenticators/admin/duo/{id}/ | [**AuthenticatorsAdminDuoUpdate**](AuthenticatorsApi.md#AuthenticatorsAdminDuoUpdate) | **Put** /authenticators/admin/duo/{id}/ | +[**AuthenticatorsAdminEndpointCreate**](AuthenticatorsApi.md#AuthenticatorsAdminEndpointCreate) | **Post** /authenticators/admin/endpoint/ | +[**AuthenticatorsAdminEndpointDestroy**](AuthenticatorsApi.md#AuthenticatorsAdminEndpointDestroy) | **Delete** /authenticators/admin/endpoint/{uuid}/ | +[**AuthenticatorsAdminEndpointList**](AuthenticatorsApi.md#AuthenticatorsAdminEndpointList) | **Get** /authenticators/admin/endpoint/ | +[**AuthenticatorsAdminEndpointPartialUpdate**](AuthenticatorsApi.md#AuthenticatorsAdminEndpointPartialUpdate) | **Patch** /authenticators/admin/endpoint/{uuid}/ | +[**AuthenticatorsAdminEndpointRetrieve**](AuthenticatorsApi.md#AuthenticatorsAdminEndpointRetrieve) | **Get** /authenticators/admin/endpoint/{uuid}/ | +[**AuthenticatorsAdminEndpointUpdate**](AuthenticatorsApi.md#AuthenticatorsAdminEndpointUpdate) | **Put** /authenticators/admin/endpoint/{uuid}/ | [**AuthenticatorsAdminSmsCreate**](AuthenticatorsApi.md#AuthenticatorsAdminSmsCreate) | **Post** /authenticators/admin/sms/ | [**AuthenticatorsAdminSmsDestroy**](AuthenticatorsApi.md#AuthenticatorsAdminSmsDestroy) | **Delete** /authenticators/admin/sms/{id}/ | [**AuthenticatorsAdminSmsList**](AuthenticatorsApi.md#AuthenticatorsAdminSmsList) | **Get** /authenticators/admin/sms/ | @@ -42,6 +48,9 @@ Method | HTTP request | Description [**AuthenticatorsDuoRetrieve**](AuthenticatorsApi.md#AuthenticatorsDuoRetrieve) | **Get** /authenticators/duo/{id}/ | [**AuthenticatorsDuoUpdate**](AuthenticatorsApi.md#AuthenticatorsDuoUpdate) | **Put** /authenticators/duo/{id}/ | [**AuthenticatorsDuoUsedByList**](AuthenticatorsApi.md#AuthenticatorsDuoUsedByList) | **Get** /authenticators/duo/{id}/used_by/ | +[**AuthenticatorsEndpointList**](AuthenticatorsApi.md#AuthenticatorsEndpointList) | **Get** /authenticators/endpoint/ | +[**AuthenticatorsEndpointRetrieve**](AuthenticatorsApi.md#AuthenticatorsEndpointRetrieve) | **Get** /authenticators/endpoint/{uuid}/ | +[**AuthenticatorsEndpointUsedByList**](AuthenticatorsApi.md#AuthenticatorsEndpointUsedByList) | **Get** /authenticators/endpoint/{uuid}/used_by/ | [**AuthenticatorsSmsDestroy**](AuthenticatorsApi.md#AuthenticatorsSmsDestroy) | **Delete** /authenticators/sms/{id}/ | [**AuthenticatorsSmsList**](AuthenticatorsApi.md#AuthenticatorsSmsList) | **Get** /authenticators/sms/ | [**AuthenticatorsSmsPartialUpdate**](AuthenticatorsApi.md#AuthenticatorsSmsPartialUpdate) | **Patch** /authenticators/sms/{id}/ | @@ -557,6 +566,428 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## AuthenticatorsAdminEndpointCreate + +> EndpointDevice AuthenticatorsAdminEndpointCreate(ctx).EndpointDeviceRequest(endpointDeviceRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + endpointDeviceRequest := *openapiclient.NewEndpointDeviceRequest("Name_example") // EndpointDeviceRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticatorsApi.AuthenticatorsAdminEndpointCreate(context.Background()).EndpointDeviceRequest(endpointDeviceRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticatorsApi.AuthenticatorsAdminEndpointCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuthenticatorsAdminEndpointCreate`: EndpointDevice + fmt.Fprintf(os.Stdout, "Response from `AuthenticatorsApi.AuthenticatorsAdminEndpointCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuthenticatorsAdminEndpointCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **endpointDeviceRequest** | [**EndpointDeviceRequest**](EndpointDeviceRequest.md) | | + +### Return type + +[**EndpointDevice**](EndpointDevice.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AuthenticatorsAdminEndpointDestroy + +> AuthenticatorsAdminEndpointDestroy(ctx, uuid).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + uuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this Endpoint Device. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticatorsApi.AuthenticatorsAdminEndpointDestroy(context.Background(), uuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticatorsApi.AuthenticatorsAdminEndpointDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | A UUID string identifying this Endpoint Device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuthenticatorsAdminEndpointDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AuthenticatorsAdminEndpointList + +> PaginatedEndpointDeviceList AuthenticatorsAdminEndpointList(ctx).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + search := "search_example" // string | A search term. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticatorsApi.AuthenticatorsAdminEndpointList(context.Background()).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticatorsApi.AuthenticatorsAdminEndpointList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuthenticatorsAdminEndpointList`: PaginatedEndpointDeviceList + fmt.Fprintf(os.Stdout, "Response from `AuthenticatorsApi.AuthenticatorsAdminEndpointList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuthenticatorsAdminEndpointListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **string** | | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **search** | **string** | A search term. | + +### Return type + +[**PaginatedEndpointDeviceList**](PaginatedEndpointDeviceList.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AuthenticatorsAdminEndpointPartialUpdate + +> EndpointDevice AuthenticatorsAdminEndpointPartialUpdate(ctx, uuid).PatchedEndpointDeviceRequest(patchedEndpointDeviceRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + uuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this Endpoint Device. + patchedEndpointDeviceRequest := *openapiclient.NewPatchedEndpointDeviceRequest() // PatchedEndpointDeviceRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticatorsApi.AuthenticatorsAdminEndpointPartialUpdate(context.Background(), uuid).PatchedEndpointDeviceRequest(patchedEndpointDeviceRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticatorsApi.AuthenticatorsAdminEndpointPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuthenticatorsAdminEndpointPartialUpdate`: EndpointDevice + fmt.Fprintf(os.Stdout, "Response from `AuthenticatorsApi.AuthenticatorsAdminEndpointPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | A UUID string identifying this Endpoint Device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuthenticatorsAdminEndpointPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedEndpointDeviceRequest** | [**PatchedEndpointDeviceRequest**](PatchedEndpointDeviceRequest.md) | | + +### Return type + +[**EndpointDevice**](EndpointDevice.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AuthenticatorsAdminEndpointRetrieve + +> EndpointDevice AuthenticatorsAdminEndpointRetrieve(ctx, uuid).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + uuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this Endpoint Device. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticatorsApi.AuthenticatorsAdminEndpointRetrieve(context.Background(), uuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticatorsApi.AuthenticatorsAdminEndpointRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuthenticatorsAdminEndpointRetrieve`: EndpointDevice + fmt.Fprintf(os.Stdout, "Response from `AuthenticatorsApi.AuthenticatorsAdminEndpointRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | A UUID string identifying this Endpoint Device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuthenticatorsAdminEndpointRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**EndpointDevice**](EndpointDevice.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AuthenticatorsAdminEndpointUpdate + +> EndpointDevice AuthenticatorsAdminEndpointUpdate(ctx, uuid).EndpointDeviceRequest(endpointDeviceRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + uuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this Endpoint Device. + endpointDeviceRequest := *openapiclient.NewEndpointDeviceRequest("Name_example") // EndpointDeviceRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticatorsApi.AuthenticatorsAdminEndpointUpdate(context.Background(), uuid).EndpointDeviceRequest(endpointDeviceRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticatorsApi.AuthenticatorsAdminEndpointUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuthenticatorsAdminEndpointUpdate`: EndpointDevice + fmt.Fprintf(os.Stdout, "Response from `AuthenticatorsApi.AuthenticatorsAdminEndpointUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | A UUID string identifying this Endpoint Device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuthenticatorsAdminEndpointUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **endpointDeviceRequest** | [**EndpointDeviceRequest**](EndpointDeviceRequest.md) | | + +### Return type + +[**EndpointDevice**](EndpointDevice.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## AuthenticatorsAdminSmsCreate > SMSDevice AuthenticatorsAdminSmsCreate(ctx).SMSDeviceRequest(sMSDeviceRequest).Execute() @@ -2732,6 +3163,220 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## AuthenticatorsEndpointList + +> PaginatedEndpointDeviceList AuthenticatorsEndpointList(ctx).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + search := "search_example" // string | A search term. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticatorsApi.AuthenticatorsEndpointList(context.Background()).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticatorsApi.AuthenticatorsEndpointList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuthenticatorsEndpointList`: PaginatedEndpointDeviceList + fmt.Fprintf(os.Stdout, "Response from `AuthenticatorsApi.AuthenticatorsEndpointList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuthenticatorsEndpointListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **string** | | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **search** | **string** | A search term. | + +### Return type + +[**PaginatedEndpointDeviceList**](PaginatedEndpointDeviceList.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AuthenticatorsEndpointRetrieve + +> EndpointDevice AuthenticatorsEndpointRetrieve(ctx, uuid).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + uuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this Endpoint Device. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticatorsApi.AuthenticatorsEndpointRetrieve(context.Background(), uuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticatorsApi.AuthenticatorsEndpointRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuthenticatorsEndpointRetrieve`: EndpointDevice + fmt.Fprintf(os.Stdout, "Response from `AuthenticatorsApi.AuthenticatorsEndpointRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | A UUID string identifying this Endpoint Device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuthenticatorsEndpointRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**EndpointDevice**](EndpointDevice.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AuthenticatorsEndpointUsedByList + +> []UsedBy AuthenticatorsEndpointUsedByList(ctx, uuid).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + uuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this Endpoint Device. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthenticatorsApi.AuthenticatorsEndpointUsedByList(context.Background(), uuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthenticatorsApi.AuthenticatorsEndpointUsedByList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuthenticatorsEndpointUsedByList`: []UsedBy + fmt.Fprintf(os.Stdout, "Response from `AuthenticatorsApi.AuthenticatorsEndpointUsedByList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**uuid** | **string** | A UUID string identifying this Endpoint Device. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuthenticatorsEndpointUsedByListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]UsedBy**](UsedBy.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## AuthenticatorsSmsDestroy > AuthenticatorsSmsDestroy(ctx, id).Execute() diff --git a/docs/ChallengeTypes.md b/docs/ChallengeTypes.md index db8777577..5933edb6c 100644 --- a/docs/ChallengeTypes.md +++ b/docs/ChallengeTypes.md @@ -36,6 +36,8 @@ Name | Type | Description | Notes **RequestId** | **string** | | **Error** | Pointer to **string** | | [optional] **Traceback** | Pointer to **string** | | [optional] +**LoadingOverlay** | Pointer to **bool** | | [optional] [default to false] +**LoadingText** | **string** | | **UserFields** | **[]string** | | **PasswordFields** | **bool** | | **AllowShowPassword** | Pointer to **bool** | | [optional] [default to false] @@ -60,7 +62,7 @@ Name | Type | Description | Notes ### NewChallengeTypes -`func NewChallengeTypes(pendingUser string, pendingUserAvatar string, clientId string, scope string, redirectUri string, state string, activationBarcode string, activationCode string, stageUuid string, codes []string, configUrl string, deviceChallenges []DeviceChallenge, configurationStages []SelectableStage, registration map[string]interface{}, url string, attrs map[string]string, siteKey string, jsUrl string, permissions []ConsentPermission, additionalPermissions []ConsentPermission, token string, name string, requestId string, userFields []string, passwordFields bool, flowDesignation FlowDesignationEnum, primaryAction string, showSourceLabels bool, slug string, fields []StagePrompt, to string, brandName string, body string, ) *ChallengeTypes` +`func NewChallengeTypes(pendingUser string, pendingUserAvatar string, clientId string, scope string, redirectUri string, state string, activationBarcode string, activationCode string, stageUuid string, codes []string, configUrl string, deviceChallenges []DeviceChallenge, configurationStages []SelectableStage, registration map[string]interface{}, url string, attrs map[string]string, siteKey string, jsUrl string, permissions []ConsentPermission, additionalPermissions []ConsentPermission, token string, name string, requestId string, loadingText string, userFields []string, passwordFields bool, flowDesignation FlowDesignationEnum, primaryAction string, showSourceLabels bool, slug string, fields []StagePrompt, to string, brandName string, body string, ) *ChallengeTypes` NewChallengeTypes instantiates a new ChallengeTypes object This constructor will assign default values to properties that have it defined, @@ -760,6 +762,51 @@ SetTraceback sets Traceback field to given value. HasTraceback returns a boolean if a field has been set. +### GetLoadingOverlay + +`func (o *ChallengeTypes) GetLoadingOverlay() bool` + +GetLoadingOverlay returns the LoadingOverlay field if non-nil, zero value otherwise. + +### GetLoadingOverlayOk + +`func (o *ChallengeTypes) GetLoadingOverlayOk() (*bool, bool)` + +GetLoadingOverlayOk returns a tuple with the LoadingOverlay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoadingOverlay + +`func (o *ChallengeTypes) SetLoadingOverlay(v bool)` + +SetLoadingOverlay sets LoadingOverlay field to given value. + +### HasLoadingOverlay + +`func (o *ChallengeTypes) HasLoadingOverlay() bool` + +HasLoadingOverlay returns a boolean if a field has been set. + +### GetLoadingText + +`func (o *ChallengeTypes) GetLoadingText() string` + +GetLoadingText returns the LoadingText field if non-nil, zero value otherwise. + +### GetLoadingTextOk + +`func (o *ChallengeTypes) GetLoadingTextOk() (*string, bool)` + +GetLoadingTextOk returns a tuple with the LoadingText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoadingText + +`func (o *ChallengeTypes) SetLoadingText(v string)` + +SetLoadingText sets LoadingText field to given value. + + ### GetUserFields `func (o *ChallengeTypes) GetUserFields() []string` diff --git a/docs/Device.md b/docs/Device.md index 16e53d49a..38d7207db 100644 --- a/docs/Device.md +++ b/docs/Device.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **VerboseName** | **string** | Return object's verbose_name | [readonly] **VerboseNamePlural** | **string** | Return object's plural verbose_name | [readonly] **MetaModelName** | **string** | Return internal model name | [readonly] -**Pk** | **int32** | | +**Pk** | **string** | | **Name** | **string** | | **Type** | **string** | Get type of device | [readonly] **Confirmed** | **bool** | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewDevice -`func NewDevice(verboseName string, verboseNamePlural string, metaModelName string, pk int32, name string, type_ string, confirmed bool, created time.Time, lastUpdated time.Time, lastUsed NullableTime, extraDescription string, ) *Device` +`func NewDevice(verboseName string, verboseNamePlural string, metaModelName string, pk string, name string, type_ string, confirmed bool, created time.Time, lastUpdated time.Time, lastUsed NullableTime, extraDescription string, ) *Device` NewDevice instantiates a new Device object This constructor will assign default values to properties that have it defined, @@ -97,20 +97,20 @@ SetMetaModelName sets MetaModelName field to given value. ### GetPk -`func (o *Device) GetPk() int32` +`func (o *Device) GetPk() string` GetPk returns the Pk field if non-nil, zero value otherwise. ### GetPkOk -`func (o *Device) GetPkOk() (*int32, bool)` +`func (o *Device) GetPkOk() (*string, bool)` GetPkOk returns a tuple with the Pk field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPk -`func (o *Device) SetPk(v int32)` +`func (o *Device) SetPk(v string)` SetPk sets Pk field to given value. diff --git a/docs/EndpointDevice.md b/docs/EndpointDevice.md new file mode 100644 index 000000000..50f3f09bd --- /dev/null +++ b/docs/EndpointDevice.md @@ -0,0 +1,77 @@ +# EndpointDevice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pk** | Pointer to **string** | | [optional] +**Name** | **string** | The human-readable name of this device. | + +## Methods + +### NewEndpointDevice + +`func NewEndpointDevice(name string, ) *EndpointDevice` + +NewEndpointDevice instantiates a new EndpointDevice object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEndpointDeviceWithDefaults + +`func NewEndpointDeviceWithDefaults() *EndpointDevice` + +NewEndpointDeviceWithDefaults instantiates a new EndpointDevice object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPk + +`func (o *EndpointDevice) GetPk() string` + +GetPk returns the Pk field if non-nil, zero value otherwise. + +### GetPkOk + +`func (o *EndpointDevice) GetPkOk() (*string, bool)` + +GetPkOk returns a tuple with the Pk field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPk + +`func (o *EndpointDevice) SetPk(v string)` + +SetPk sets Pk field to given value. + +### HasPk + +`func (o *EndpointDevice) HasPk() bool` + +HasPk returns a boolean if a field has been set. + +### GetName + +`func (o *EndpointDevice) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *EndpointDevice) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *EndpointDevice) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EndpointDeviceRequest.md b/docs/EndpointDeviceRequest.md new file mode 100644 index 000000000..042946b34 --- /dev/null +++ b/docs/EndpointDeviceRequest.md @@ -0,0 +1,77 @@ +# EndpointDeviceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pk** | Pointer to **string** | | [optional] +**Name** | **string** | The human-readable name of this device. | + +## Methods + +### NewEndpointDeviceRequest + +`func NewEndpointDeviceRequest(name string, ) *EndpointDeviceRequest` + +NewEndpointDeviceRequest instantiates a new EndpointDeviceRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEndpointDeviceRequestWithDefaults + +`func NewEndpointDeviceRequestWithDefaults() *EndpointDeviceRequest` + +NewEndpointDeviceRequestWithDefaults instantiates a new EndpointDeviceRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPk + +`func (o *EndpointDeviceRequest) GetPk() string` + +GetPk returns the Pk field if non-nil, zero value otherwise. + +### GetPkOk + +`func (o *EndpointDeviceRequest) GetPkOk() (*string, bool)` + +GetPkOk returns a tuple with the Pk field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPk + +`func (o *EndpointDeviceRequest) SetPk(v string)` + +SetPk sets Pk field to given value. + +### HasPk + +`func (o *EndpointDeviceRequest) HasPk() bool` + +HasPk returns a boolean if a field has been set. + +### GetName + +`func (o *EndpointDeviceRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *EndpointDeviceRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *EndpointDeviceRequest) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrameChallenge.md b/docs/FrameChallenge.md new file mode 100644 index 000000000..cee7084d8 --- /dev/null +++ b/docs/FrameChallenge.md @@ -0,0 +1,176 @@ +# FrameChallenge + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlowInfo** | Pointer to [**ContextualFlowInfo**](ContextualFlowInfo.md) | | [optional] +**Component** | Pointer to **string** | | [optional] [default to "xak-flow-frame"] +**ResponseErrors** | Pointer to [**map[string][]ErrorDetail**](array.md) | | [optional] +**Url** | **string** | | +**LoadingOverlay** | Pointer to **bool** | | [optional] [default to false] +**LoadingText** | **string** | | + +## Methods + +### NewFrameChallenge + +`func NewFrameChallenge(url string, loadingText string, ) *FrameChallenge` + +NewFrameChallenge instantiates a new FrameChallenge object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFrameChallengeWithDefaults + +`func NewFrameChallengeWithDefaults() *FrameChallenge` + +NewFrameChallengeWithDefaults instantiates a new FrameChallenge object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFlowInfo + +`func (o *FrameChallenge) GetFlowInfo() ContextualFlowInfo` + +GetFlowInfo returns the FlowInfo field if non-nil, zero value otherwise. + +### GetFlowInfoOk + +`func (o *FrameChallenge) GetFlowInfoOk() (*ContextualFlowInfo, bool)` + +GetFlowInfoOk returns a tuple with the FlowInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlowInfo + +`func (o *FrameChallenge) SetFlowInfo(v ContextualFlowInfo)` + +SetFlowInfo sets FlowInfo field to given value. + +### HasFlowInfo + +`func (o *FrameChallenge) HasFlowInfo() bool` + +HasFlowInfo returns a boolean if a field has been set. + +### GetComponent + +`func (o *FrameChallenge) GetComponent() string` + +GetComponent returns the Component field if non-nil, zero value otherwise. + +### GetComponentOk + +`func (o *FrameChallenge) GetComponentOk() (*string, bool)` + +GetComponentOk returns a tuple with the Component field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComponent + +`func (o *FrameChallenge) SetComponent(v string)` + +SetComponent sets Component field to given value. + +### HasComponent + +`func (o *FrameChallenge) HasComponent() bool` + +HasComponent returns a boolean if a field has been set. + +### GetResponseErrors + +`func (o *FrameChallenge) GetResponseErrors() map[string][]ErrorDetail` + +GetResponseErrors returns the ResponseErrors field if non-nil, zero value otherwise. + +### GetResponseErrorsOk + +`func (o *FrameChallenge) GetResponseErrorsOk() (*map[string][]ErrorDetail, bool)` + +GetResponseErrorsOk returns a tuple with the ResponseErrors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponseErrors + +`func (o *FrameChallenge) SetResponseErrors(v map[string][]ErrorDetail)` + +SetResponseErrors sets ResponseErrors field to given value. + +### HasResponseErrors + +`func (o *FrameChallenge) HasResponseErrors() bool` + +HasResponseErrors returns a boolean if a field has been set. + +### GetUrl + +`func (o *FrameChallenge) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *FrameChallenge) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *FrameChallenge) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetLoadingOverlay + +`func (o *FrameChallenge) GetLoadingOverlay() bool` + +GetLoadingOverlay returns the LoadingOverlay field if non-nil, zero value otherwise. + +### GetLoadingOverlayOk + +`func (o *FrameChallenge) GetLoadingOverlayOk() (*bool, bool)` + +GetLoadingOverlayOk returns a tuple with the LoadingOverlay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoadingOverlay + +`func (o *FrameChallenge) SetLoadingOverlay(v bool)` + +SetLoadingOverlay sets LoadingOverlay field to given value. + +### HasLoadingOverlay + +`func (o *FrameChallenge) HasLoadingOverlay() bool` + +HasLoadingOverlay returns a boolean if a field has been set. + +### GetLoadingText + +`func (o *FrameChallenge) GetLoadingText() string` + +GetLoadingText returns the LoadingText field if non-nil, zero value otherwise. + +### GetLoadingTextOk + +`func (o *FrameChallenge) GetLoadingTextOk() (*string, bool)` + +GetLoadingTextOk returns a tuple with the LoadingText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoadingText + +`func (o *FrameChallenge) SetLoadingText(v string)` + +SetLoadingText sets LoadingText field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrameChallengeResponseRequest.md b/docs/FrameChallengeResponseRequest.md new file mode 100644 index 000000000..689125c01 --- /dev/null +++ b/docs/FrameChallengeResponseRequest.md @@ -0,0 +1,56 @@ +# FrameChallengeResponseRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Component** | Pointer to **string** | | [optional] [default to "xak-flow-frame"] + +## Methods + +### NewFrameChallengeResponseRequest + +`func NewFrameChallengeResponseRequest() *FrameChallengeResponseRequest` + +NewFrameChallengeResponseRequest instantiates a new FrameChallengeResponseRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFrameChallengeResponseRequestWithDefaults + +`func NewFrameChallengeResponseRequestWithDefaults() *FrameChallengeResponseRequest` + +NewFrameChallengeResponseRequestWithDefaults instantiates a new FrameChallengeResponseRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetComponent + +`func (o *FrameChallengeResponseRequest) GetComponent() string` + +GetComponent returns the Component field if non-nil, zero value otherwise. + +### GetComponentOk + +`func (o *FrameChallengeResponseRequest) GetComponentOk() (*string, bool)` + +GetComponentOk returns a tuple with the Component field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComponent + +`func (o *FrameChallengeResponseRequest) SetComponent(v string)` + +SetComponent sets Component field to given value. + +### HasComponent + +`func (o *FrameChallengeResponseRequest) HasComponent() bool` + +HasComponent returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ModelEnum.md b/docs/ModelEnum.md index 5f8c6bb89..f3bf60cbd 100644 --- a/docs/ModelEnum.md +++ b/docs/ModelEnum.md @@ -169,6 +169,8 @@ * `PROVIDERS_RAC_RACPROPERTYMAPPING` (value: `"authentik_providers_rac.racpropertymapping"`) +* `STAGES_AUTHENTICATOR_ENDPOINT_GDTC_AUTHENTICATORENDPOINTGDTCSTAGE` (value: `"authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage"`) + * `STAGES_SOURCE_SOURCESTAGE` (value: `"authentik_stages_source.sourcestage"`) * `EVENTS_EVENT` (value: `"authentik_events.event"`) diff --git a/docs/PaginatedAuthenticatorEndpointGDTCStageList.md b/docs/PaginatedAuthenticatorEndpointGDTCStageList.md new file mode 100644 index 000000000..bd7f67891 --- /dev/null +++ b/docs/PaginatedAuthenticatorEndpointGDTCStageList.md @@ -0,0 +1,72 @@ +# PaginatedAuthenticatorEndpointGDTCStageList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | [**Pagination**](Pagination.md) | | +**Results** | [**[]AuthenticatorEndpointGDTCStage**](AuthenticatorEndpointGDTCStage.md) | | + +## Methods + +### NewPaginatedAuthenticatorEndpointGDTCStageList + +`func NewPaginatedAuthenticatorEndpointGDTCStageList(pagination Pagination, results []AuthenticatorEndpointGDTCStage, ) *PaginatedAuthenticatorEndpointGDTCStageList` + +NewPaginatedAuthenticatorEndpointGDTCStageList instantiates a new PaginatedAuthenticatorEndpointGDTCStageList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedAuthenticatorEndpointGDTCStageListWithDefaults + +`func NewPaginatedAuthenticatorEndpointGDTCStageListWithDefaults() *PaginatedAuthenticatorEndpointGDTCStageList` + +NewPaginatedAuthenticatorEndpointGDTCStageListWithDefaults instantiates a new PaginatedAuthenticatorEndpointGDTCStageList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *PaginatedAuthenticatorEndpointGDTCStageList) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *PaginatedAuthenticatorEndpointGDTCStageList) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *PaginatedAuthenticatorEndpointGDTCStageList) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + + +### GetResults + +`func (o *PaginatedAuthenticatorEndpointGDTCStageList) GetResults() []AuthenticatorEndpointGDTCStage` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedAuthenticatorEndpointGDTCStageList) GetResultsOk() (*[]AuthenticatorEndpointGDTCStage, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedAuthenticatorEndpointGDTCStageList) SetResults(v []AuthenticatorEndpointGDTCStage)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedEndpointDeviceList.md b/docs/PaginatedEndpointDeviceList.md new file mode 100644 index 000000000..5b287d8be --- /dev/null +++ b/docs/PaginatedEndpointDeviceList.md @@ -0,0 +1,72 @@ +# PaginatedEndpointDeviceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | [**Pagination**](Pagination.md) | | +**Results** | [**[]EndpointDevice**](EndpointDevice.md) | | + +## Methods + +### NewPaginatedEndpointDeviceList + +`func NewPaginatedEndpointDeviceList(pagination Pagination, results []EndpointDevice, ) *PaginatedEndpointDeviceList` + +NewPaginatedEndpointDeviceList instantiates a new PaginatedEndpointDeviceList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedEndpointDeviceListWithDefaults + +`func NewPaginatedEndpointDeviceListWithDefaults() *PaginatedEndpointDeviceList` + +NewPaginatedEndpointDeviceListWithDefaults instantiates a new PaginatedEndpointDeviceList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *PaginatedEndpointDeviceList) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *PaginatedEndpointDeviceList) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *PaginatedEndpointDeviceList) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + + +### GetResults + +`func (o *PaginatedEndpointDeviceList) GetResults() []EndpointDevice` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedEndpointDeviceList) GetResultsOk() (*[]EndpointDevice, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedEndpointDeviceList) SetResults(v []EndpointDevice)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedAuthenticatorEndpointGDTCStageRequest.md b/docs/PatchedAuthenticatorEndpointGDTCStageRequest.md new file mode 100644 index 000000000..34601f148 --- /dev/null +++ b/docs/PatchedAuthenticatorEndpointGDTCStageRequest.md @@ -0,0 +1,190 @@ +# PatchedAuthenticatorEndpointGDTCStageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**FlowSet** | Pointer to [**[]FlowSetRequest**](FlowSetRequest.md) | | [optional] +**ConfigureFlow** | Pointer to **NullableString** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] +**FriendlyName** | Pointer to **NullableString** | | [optional] +**Credentials** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewPatchedAuthenticatorEndpointGDTCStageRequest + +`func NewPatchedAuthenticatorEndpointGDTCStageRequest() *PatchedAuthenticatorEndpointGDTCStageRequest` + +NewPatchedAuthenticatorEndpointGDTCStageRequest instantiates a new PatchedAuthenticatorEndpointGDTCStageRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedAuthenticatorEndpointGDTCStageRequestWithDefaults + +`func NewPatchedAuthenticatorEndpointGDTCStageRequestWithDefaults() *PatchedAuthenticatorEndpointGDTCStageRequest` + +NewPatchedAuthenticatorEndpointGDTCStageRequestWithDefaults instantiates a new PatchedAuthenticatorEndpointGDTCStageRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetFlowSet + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetFlowSet() []FlowSetRequest` + +GetFlowSet returns the FlowSet field if non-nil, zero value otherwise. + +### GetFlowSetOk + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetFlowSetOk() (*[]FlowSetRequest, bool)` + +GetFlowSetOk returns a tuple with the FlowSet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlowSet + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetFlowSet(v []FlowSetRequest)` + +SetFlowSet sets FlowSet field to given value. + +### HasFlowSet + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) HasFlowSet() bool` + +HasFlowSet returns a boolean if a field has been set. + +### GetConfigureFlow + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetConfigureFlow() string` + +GetConfigureFlow returns the ConfigureFlow field if non-nil, zero value otherwise. + +### GetConfigureFlowOk + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetConfigureFlowOk() (*string, bool)` + +GetConfigureFlowOk returns a tuple with the ConfigureFlow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigureFlow + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetConfigureFlow(v string)` + +SetConfigureFlow sets ConfigureFlow field to given value. + +### HasConfigureFlow + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) HasConfigureFlow() bool` + +HasConfigureFlow returns a boolean if a field has been set. + +### SetConfigureFlowNil + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetConfigureFlowNil(b bool)` + + SetConfigureFlowNil sets the value for ConfigureFlow to be an explicit nil + +### UnsetConfigureFlow +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) UnsetConfigureFlow()` + +UnsetConfigureFlow ensures that no value is present for ConfigureFlow, not even an explicit nil +### GetFriendlyName + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetFriendlyName() string` + +GetFriendlyName returns the FriendlyName field if non-nil, zero value otherwise. + +### GetFriendlyNameOk + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetFriendlyNameOk() (*string, bool)` + +GetFriendlyNameOk returns a tuple with the FriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFriendlyName + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetFriendlyName(v string)` + +SetFriendlyName sets FriendlyName field to given value. + +### HasFriendlyName + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) HasFriendlyName() bool` + +HasFriendlyName returns a boolean if a field has been set. + +### SetFriendlyNameNil + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetFriendlyNameNil(b bool)` + + SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil + +### UnsetFriendlyName +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) UnsetFriendlyName()` + +UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +### GetCredentials + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetCredentials() interface{}` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetCredentialsOk() (*interface{}, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetCredentials(v interface{})` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) HasCredentials() bool` + +HasCredentials returns a boolean if a field has been set. + +### SetCredentialsNil + +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetCredentialsNil(b bool)` + + SetCredentialsNil sets the value for Credentials to be an explicit nil + +### UnsetCredentials +`func (o *PatchedAuthenticatorEndpointGDTCStageRequest) UnsetCredentials()` + +UnsetCredentials ensures that no value is present for Credentials, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedEndpointDeviceRequest.md b/docs/PatchedEndpointDeviceRequest.md new file mode 100644 index 000000000..96361af06 --- /dev/null +++ b/docs/PatchedEndpointDeviceRequest.md @@ -0,0 +1,82 @@ +# PatchedEndpointDeviceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pk** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | The human-readable name of this device. | [optional] + +## Methods + +### NewPatchedEndpointDeviceRequest + +`func NewPatchedEndpointDeviceRequest() *PatchedEndpointDeviceRequest` + +NewPatchedEndpointDeviceRequest instantiates a new PatchedEndpointDeviceRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedEndpointDeviceRequestWithDefaults + +`func NewPatchedEndpointDeviceRequestWithDefaults() *PatchedEndpointDeviceRequest` + +NewPatchedEndpointDeviceRequestWithDefaults instantiates a new PatchedEndpointDeviceRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPk + +`func (o *PatchedEndpointDeviceRequest) GetPk() string` + +GetPk returns the Pk field if non-nil, zero value otherwise. + +### GetPkOk + +`func (o *PatchedEndpointDeviceRequest) GetPkOk() (*string, bool)` + +GetPkOk returns a tuple with the Pk field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPk + +`func (o *PatchedEndpointDeviceRequest) SetPk(v string)` + +SetPk sets Pk field to given value. + +### HasPk + +`func (o *PatchedEndpointDeviceRequest) HasPk() bool` + +HasPk returns a boolean if a field has been set. + +### GetName + +`func (o *PatchedEndpointDeviceRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedEndpointDeviceRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PatchedEndpointDeviceRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedEndpointDeviceRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StagesApi.md b/docs/StagesApi.md index be0c2feff..c8bfae20b 100644 --- a/docs/StagesApi.md +++ b/docs/StagesApi.md @@ -20,6 +20,13 @@ Method | HTTP request | Description [**StagesAuthenticatorDuoRetrieve**](StagesApi.md#StagesAuthenticatorDuoRetrieve) | **Get** /stages/authenticator/duo/{stage_uuid}/ | [**StagesAuthenticatorDuoUpdate**](StagesApi.md#StagesAuthenticatorDuoUpdate) | **Put** /stages/authenticator/duo/{stage_uuid}/ | [**StagesAuthenticatorDuoUsedByList**](StagesApi.md#StagesAuthenticatorDuoUsedByList) | **Get** /stages/authenticator/duo/{stage_uuid}/used_by/ | +[**StagesAuthenticatorEndpointGdtcCreate**](StagesApi.md#StagesAuthenticatorEndpointGdtcCreate) | **Post** /stages/authenticator/endpoint_gdtc/ | +[**StagesAuthenticatorEndpointGdtcDestroy**](StagesApi.md#StagesAuthenticatorEndpointGdtcDestroy) | **Delete** /stages/authenticator/endpoint_gdtc/{stage_uuid}/ | +[**StagesAuthenticatorEndpointGdtcList**](StagesApi.md#StagesAuthenticatorEndpointGdtcList) | **Get** /stages/authenticator/endpoint_gdtc/ | +[**StagesAuthenticatorEndpointGdtcPartialUpdate**](StagesApi.md#StagesAuthenticatorEndpointGdtcPartialUpdate) | **Patch** /stages/authenticator/endpoint_gdtc/{stage_uuid}/ | +[**StagesAuthenticatorEndpointGdtcRetrieve**](StagesApi.md#StagesAuthenticatorEndpointGdtcRetrieve) | **Get** /stages/authenticator/endpoint_gdtc/{stage_uuid}/ | +[**StagesAuthenticatorEndpointGdtcUpdate**](StagesApi.md#StagesAuthenticatorEndpointGdtcUpdate) | **Put** /stages/authenticator/endpoint_gdtc/{stage_uuid}/ | +[**StagesAuthenticatorEndpointGdtcUsedByList**](StagesApi.md#StagesAuthenticatorEndpointGdtcUsedByList) | **Get** /stages/authenticator/endpoint_gdtc/{stage_uuid}/used_by/ | [**StagesAuthenticatorSmsCreate**](StagesApi.md#StagesAuthenticatorSmsCreate) | **Post** /stages/authenticator/sms/ | [**StagesAuthenticatorSmsDestroy**](StagesApi.md#StagesAuthenticatorSmsDestroy) | **Delete** /stages/authenticator/sms/{stage_uuid}/ | [**StagesAuthenticatorSmsList**](StagesApi.md#StagesAuthenticatorSmsList) | **Get** /stages/authenticator/sms/ | @@ -1286,6 +1293,500 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## StagesAuthenticatorEndpointGdtcCreate + +> AuthenticatorEndpointGDTCStage StagesAuthenticatorEndpointGdtcCreate(ctx).AuthenticatorEndpointGDTCStageRequest(authenticatorEndpointGDTCStageRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + authenticatorEndpointGDTCStageRequest := *openapiclient.NewAuthenticatorEndpointGDTCStageRequest("Name_example", interface{}(123)) // AuthenticatorEndpointGDTCStageRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StagesApi.StagesAuthenticatorEndpointGdtcCreate(context.Background()).AuthenticatorEndpointGDTCStageRequest(authenticatorEndpointGDTCStageRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StagesApi.StagesAuthenticatorEndpointGdtcCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StagesAuthenticatorEndpointGdtcCreate`: AuthenticatorEndpointGDTCStage + fmt.Fprintf(os.Stdout, "Response from `StagesApi.StagesAuthenticatorEndpointGdtcCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiStagesAuthenticatorEndpointGdtcCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authenticatorEndpointGDTCStageRequest** | [**AuthenticatorEndpointGDTCStageRequest**](AuthenticatorEndpointGDTCStageRequest.md) | | + +### Return type + +[**AuthenticatorEndpointGDTCStage**](AuthenticatorEndpointGDTCStage.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## StagesAuthenticatorEndpointGdtcDestroy + +> StagesAuthenticatorEndpointGdtcDestroy(ctx, stageUuid).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + stageUuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StagesApi.StagesAuthenticatorEndpointGdtcDestroy(context.Background(), stageUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StagesApi.StagesAuthenticatorEndpointGdtcDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stageUuid** | **string** | A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiStagesAuthenticatorEndpointGdtcDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## StagesAuthenticatorEndpointGdtcList + +> PaginatedAuthenticatorEndpointGDTCStageList StagesAuthenticatorEndpointGdtcList(ctx).ConfigureFlow(configureFlow).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + configureFlow := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := "name_example" // string | (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + page := int32(56) // int32 | A page number within the paginated result set. (optional) + pageSize := int32(56) // int32 | Number of results to return per page. (optional) + search := "search_example" // string | A search term. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StagesApi.StagesAuthenticatorEndpointGdtcList(context.Background()).ConfigureFlow(configureFlow).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StagesApi.StagesAuthenticatorEndpointGdtcList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StagesAuthenticatorEndpointGdtcList`: PaginatedAuthenticatorEndpointGDTCStageList + fmt.Fprintf(os.Stdout, "Response from `StagesApi.StagesAuthenticatorEndpointGdtcList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiStagesAuthenticatorEndpointGdtcListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **configureFlow** | **string** | | + **name** | **string** | | + **ordering** | **string** | Which field to use when ordering the results. | + **page** | **int32** | A page number within the paginated result set. | + **pageSize** | **int32** | Number of results to return per page. | + **search** | **string** | A search term. | + +### Return type + +[**PaginatedAuthenticatorEndpointGDTCStageList**](PaginatedAuthenticatorEndpointGDTCStageList.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## StagesAuthenticatorEndpointGdtcPartialUpdate + +> AuthenticatorEndpointGDTCStage StagesAuthenticatorEndpointGdtcPartialUpdate(ctx, stageUuid).PatchedAuthenticatorEndpointGDTCStageRequest(patchedAuthenticatorEndpointGDTCStageRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + stageUuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. + patchedAuthenticatorEndpointGDTCStageRequest := *openapiclient.NewPatchedAuthenticatorEndpointGDTCStageRequest() // PatchedAuthenticatorEndpointGDTCStageRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StagesApi.StagesAuthenticatorEndpointGdtcPartialUpdate(context.Background(), stageUuid).PatchedAuthenticatorEndpointGDTCStageRequest(patchedAuthenticatorEndpointGDTCStageRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StagesApi.StagesAuthenticatorEndpointGdtcPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StagesAuthenticatorEndpointGdtcPartialUpdate`: AuthenticatorEndpointGDTCStage + fmt.Fprintf(os.Stdout, "Response from `StagesApi.StagesAuthenticatorEndpointGdtcPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stageUuid** | **string** | A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiStagesAuthenticatorEndpointGdtcPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedAuthenticatorEndpointGDTCStageRequest** | [**PatchedAuthenticatorEndpointGDTCStageRequest**](PatchedAuthenticatorEndpointGDTCStageRequest.md) | | + +### Return type + +[**AuthenticatorEndpointGDTCStage**](AuthenticatorEndpointGDTCStage.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## StagesAuthenticatorEndpointGdtcRetrieve + +> AuthenticatorEndpointGDTCStage StagesAuthenticatorEndpointGdtcRetrieve(ctx, stageUuid).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + stageUuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StagesApi.StagesAuthenticatorEndpointGdtcRetrieve(context.Background(), stageUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StagesApi.StagesAuthenticatorEndpointGdtcRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StagesAuthenticatorEndpointGdtcRetrieve`: AuthenticatorEndpointGDTCStage + fmt.Fprintf(os.Stdout, "Response from `StagesApi.StagesAuthenticatorEndpointGdtcRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stageUuid** | **string** | A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiStagesAuthenticatorEndpointGdtcRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**AuthenticatorEndpointGDTCStage**](AuthenticatorEndpointGDTCStage.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## StagesAuthenticatorEndpointGdtcUpdate + +> AuthenticatorEndpointGDTCStage StagesAuthenticatorEndpointGdtcUpdate(ctx, stageUuid).AuthenticatorEndpointGDTCStageRequest(authenticatorEndpointGDTCStageRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + stageUuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. + authenticatorEndpointGDTCStageRequest := *openapiclient.NewAuthenticatorEndpointGDTCStageRequest("Name_example", interface{}(123)) // AuthenticatorEndpointGDTCStageRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StagesApi.StagesAuthenticatorEndpointGdtcUpdate(context.Background(), stageUuid).AuthenticatorEndpointGDTCStageRequest(authenticatorEndpointGDTCStageRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StagesApi.StagesAuthenticatorEndpointGdtcUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StagesAuthenticatorEndpointGdtcUpdate`: AuthenticatorEndpointGDTCStage + fmt.Fprintf(os.Stdout, "Response from `StagesApi.StagesAuthenticatorEndpointGdtcUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stageUuid** | **string** | A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiStagesAuthenticatorEndpointGdtcUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authenticatorEndpointGDTCStageRequest** | [**AuthenticatorEndpointGDTCStageRequest**](AuthenticatorEndpointGDTCStageRequest.md) | | + +### Return type + +[**AuthenticatorEndpointGDTCStage**](AuthenticatorEndpointGDTCStage.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## StagesAuthenticatorEndpointGdtcUsedByList + +> []UsedBy StagesAuthenticatorEndpointGdtcUsedByList(ctx, stageUuid).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + stageUuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StagesApi.StagesAuthenticatorEndpointGdtcUsedByList(context.Background(), stageUuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StagesApi.StagesAuthenticatorEndpointGdtcUsedByList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StagesAuthenticatorEndpointGdtcUsedByList`: []UsedBy + fmt.Fprintf(os.Stdout, "Response from `StagesApi.StagesAuthenticatorEndpointGdtcUsedByList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stageUuid** | **string** | A UUID string identifying this Endpoint Authenticator Google Device Trust Connector Stage. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiStagesAuthenticatorEndpointGdtcUsedByListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]UsedBy**](UsedBy.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## StagesAuthenticatorSmsCreate > AuthenticatorSMSStage StagesAuthenticatorSmsCreate(ctx).AuthenticatorSMSStageRequest(authenticatorSMSStageRequest).Execute() diff --git a/model_app_enum.go b/model_app_enum.go index ee0bd0fb4..6e8bb2095 100644 --- a/model_app_enum.go +++ b/model_app_enum.go @@ -21,63 +21,64 @@ type AppEnum string // List of AppEnum const ( - APPENUM_TENANTS AppEnum = "authentik.tenants" - APPENUM_ADMIN AppEnum = "authentik.admin" - APPENUM_API AppEnum = "authentik.api" - APPENUM_CRYPTO AppEnum = "authentik.crypto" - APPENUM_FLOWS AppEnum = "authentik.flows" - APPENUM_OUTPOSTS AppEnum = "authentik.outposts" - APPENUM_POLICIES_DUMMY AppEnum = "authentik.policies.dummy" - APPENUM_POLICIES_EVENT_MATCHER AppEnum = "authentik.policies.event_matcher" - APPENUM_POLICIES_EXPIRY AppEnum = "authentik.policies.expiry" - APPENUM_POLICIES_EXPRESSION AppEnum = "authentik.policies.expression" - APPENUM_POLICIES_GEOIP AppEnum = "authentik.policies.geoip" - APPENUM_POLICIES_PASSWORD AppEnum = "authentik.policies.password" - APPENUM_POLICIES_REPUTATION AppEnum = "authentik.policies.reputation" - APPENUM_POLICIES AppEnum = "authentik.policies" - APPENUM_PROVIDERS_LDAP AppEnum = "authentik.providers.ldap" - APPENUM_PROVIDERS_OAUTH2 AppEnum = "authentik.providers.oauth2" - APPENUM_PROVIDERS_PROXY AppEnum = "authentik.providers.proxy" - APPENUM_PROVIDERS_RADIUS AppEnum = "authentik.providers.radius" - APPENUM_PROVIDERS_SAML AppEnum = "authentik.providers.saml" - APPENUM_PROVIDERS_SCIM AppEnum = "authentik.providers.scim" - APPENUM_RBAC AppEnum = "authentik.rbac" - APPENUM_RECOVERY AppEnum = "authentik.recovery" - APPENUM_SOURCES_LDAP AppEnum = "authentik.sources.ldap" - APPENUM_SOURCES_OAUTH AppEnum = "authentik.sources.oauth" - APPENUM_SOURCES_PLEX AppEnum = "authentik.sources.plex" - APPENUM_SOURCES_SAML AppEnum = "authentik.sources.saml" - APPENUM_SOURCES_SCIM AppEnum = "authentik.sources.scim" - APPENUM_STAGES_AUTHENTICATOR AppEnum = "authentik.stages.authenticator" - APPENUM_STAGES_AUTHENTICATOR_DUO AppEnum = "authentik.stages.authenticator_duo" - APPENUM_STAGES_AUTHENTICATOR_SMS AppEnum = "authentik.stages.authenticator_sms" - APPENUM_STAGES_AUTHENTICATOR_STATIC AppEnum = "authentik.stages.authenticator_static" - APPENUM_STAGES_AUTHENTICATOR_TOTP AppEnum = "authentik.stages.authenticator_totp" - APPENUM_STAGES_AUTHENTICATOR_VALIDATE AppEnum = "authentik.stages.authenticator_validate" - APPENUM_STAGES_AUTHENTICATOR_WEBAUTHN AppEnum = "authentik.stages.authenticator_webauthn" - APPENUM_STAGES_CAPTCHA AppEnum = "authentik.stages.captcha" - APPENUM_STAGES_CONSENT AppEnum = "authentik.stages.consent" - APPENUM_STAGES_DENY AppEnum = "authentik.stages.deny" - APPENUM_STAGES_DUMMY AppEnum = "authentik.stages.dummy" - APPENUM_STAGES_EMAIL AppEnum = "authentik.stages.email" - APPENUM_STAGES_IDENTIFICATION AppEnum = "authentik.stages.identification" - APPENUM_STAGES_INVITATION AppEnum = "authentik.stages.invitation" - APPENUM_STAGES_PASSWORD AppEnum = "authentik.stages.password" - APPENUM_STAGES_PROMPT AppEnum = "authentik.stages.prompt" - APPENUM_STAGES_USER_DELETE AppEnum = "authentik.stages.user_delete" - APPENUM_STAGES_USER_LOGIN AppEnum = "authentik.stages.user_login" - APPENUM_STAGES_USER_LOGOUT AppEnum = "authentik.stages.user_logout" - APPENUM_STAGES_USER_WRITE AppEnum = "authentik.stages.user_write" - APPENUM_BRANDS AppEnum = "authentik.brands" - APPENUM_BLUEPRINTS AppEnum = "authentik.blueprints" - APPENUM_CORE AppEnum = "authentik.core" - APPENUM_ENTERPRISE AppEnum = "authentik.enterprise" - APPENUM_ENTERPRISE_AUDIT AppEnum = "authentik.enterprise.audit" - APPENUM_ENTERPRISE_PROVIDERS_GOOGLE_WORKSPACE AppEnum = "authentik.enterprise.providers.google_workspace" - APPENUM_ENTERPRISE_PROVIDERS_MICROSOFT_ENTRA AppEnum = "authentik.enterprise.providers.microsoft_entra" - APPENUM_ENTERPRISE_PROVIDERS_RAC AppEnum = "authentik.enterprise.providers.rac" - APPENUM_ENTERPRISE_STAGES_SOURCE AppEnum = "authentik.enterprise.stages.source" - APPENUM_EVENTS AppEnum = "authentik.events" + APPENUM_TENANTS AppEnum = "authentik.tenants" + APPENUM_ADMIN AppEnum = "authentik.admin" + APPENUM_API AppEnum = "authentik.api" + APPENUM_CRYPTO AppEnum = "authentik.crypto" + APPENUM_FLOWS AppEnum = "authentik.flows" + APPENUM_OUTPOSTS AppEnum = "authentik.outposts" + APPENUM_POLICIES_DUMMY AppEnum = "authentik.policies.dummy" + APPENUM_POLICIES_EVENT_MATCHER AppEnum = "authentik.policies.event_matcher" + APPENUM_POLICIES_EXPIRY AppEnum = "authentik.policies.expiry" + APPENUM_POLICIES_EXPRESSION AppEnum = "authentik.policies.expression" + APPENUM_POLICIES_GEOIP AppEnum = "authentik.policies.geoip" + APPENUM_POLICIES_PASSWORD AppEnum = "authentik.policies.password" + APPENUM_POLICIES_REPUTATION AppEnum = "authentik.policies.reputation" + APPENUM_POLICIES AppEnum = "authentik.policies" + APPENUM_PROVIDERS_LDAP AppEnum = "authentik.providers.ldap" + APPENUM_PROVIDERS_OAUTH2 AppEnum = "authentik.providers.oauth2" + APPENUM_PROVIDERS_PROXY AppEnum = "authentik.providers.proxy" + APPENUM_PROVIDERS_RADIUS AppEnum = "authentik.providers.radius" + APPENUM_PROVIDERS_SAML AppEnum = "authentik.providers.saml" + APPENUM_PROVIDERS_SCIM AppEnum = "authentik.providers.scim" + APPENUM_RBAC AppEnum = "authentik.rbac" + APPENUM_RECOVERY AppEnum = "authentik.recovery" + APPENUM_SOURCES_LDAP AppEnum = "authentik.sources.ldap" + APPENUM_SOURCES_OAUTH AppEnum = "authentik.sources.oauth" + APPENUM_SOURCES_PLEX AppEnum = "authentik.sources.plex" + APPENUM_SOURCES_SAML AppEnum = "authentik.sources.saml" + APPENUM_SOURCES_SCIM AppEnum = "authentik.sources.scim" + APPENUM_STAGES_AUTHENTICATOR AppEnum = "authentik.stages.authenticator" + APPENUM_STAGES_AUTHENTICATOR_DUO AppEnum = "authentik.stages.authenticator_duo" + APPENUM_STAGES_AUTHENTICATOR_SMS AppEnum = "authentik.stages.authenticator_sms" + APPENUM_STAGES_AUTHENTICATOR_STATIC AppEnum = "authentik.stages.authenticator_static" + APPENUM_STAGES_AUTHENTICATOR_TOTP AppEnum = "authentik.stages.authenticator_totp" + APPENUM_STAGES_AUTHENTICATOR_VALIDATE AppEnum = "authentik.stages.authenticator_validate" + APPENUM_STAGES_AUTHENTICATOR_WEBAUTHN AppEnum = "authentik.stages.authenticator_webauthn" + APPENUM_STAGES_CAPTCHA AppEnum = "authentik.stages.captcha" + APPENUM_STAGES_CONSENT AppEnum = "authentik.stages.consent" + APPENUM_STAGES_DENY AppEnum = "authentik.stages.deny" + APPENUM_STAGES_DUMMY AppEnum = "authentik.stages.dummy" + APPENUM_STAGES_EMAIL AppEnum = "authentik.stages.email" + APPENUM_STAGES_IDENTIFICATION AppEnum = "authentik.stages.identification" + APPENUM_STAGES_INVITATION AppEnum = "authentik.stages.invitation" + APPENUM_STAGES_PASSWORD AppEnum = "authentik.stages.password" + APPENUM_STAGES_PROMPT AppEnum = "authentik.stages.prompt" + APPENUM_STAGES_USER_DELETE AppEnum = "authentik.stages.user_delete" + APPENUM_STAGES_USER_LOGIN AppEnum = "authentik.stages.user_login" + APPENUM_STAGES_USER_LOGOUT AppEnum = "authentik.stages.user_logout" + APPENUM_STAGES_USER_WRITE AppEnum = "authentik.stages.user_write" + APPENUM_BRANDS AppEnum = "authentik.brands" + APPENUM_BLUEPRINTS AppEnum = "authentik.blueprints" + APPENUM_CORE AppEnum = "authentik.core" + APPENUM_ENTERPRISE AppEnum = "authentik.enterprise" + APPENUM_ENTERPRISE_AUDIT AppEnum = "authentik.enterprise.audit" + APPENUM_ENTERPRISE_PROVIDERS_GOOGLE_WORKSPACE AppEnum = "authentik.enterprise.providers.google_workspace" + APPENUM_ENTERPRISE_PROVIDERS_MICROSOFT_ENTRA AppEnum = "authentik.enterprise.providers.microsoft_entra" + APPENUM_ENTERPRISE_PROVIDERS_RAC AppEnum = "authentik.enterprise.providers.rac" + APPENUM_ENTERPRISE_STAGES_AUTHENTICATOR_ENDPOINT_GDTC AppEnum = "authentik.enterprise.stages.authenticator_endpoint_gdtc" + APPENUM_ENTERPRISE_STAGES_SOURCE AppEnum = "authentik.enterprise.stages.source" + APPENUM_EVENTS AppEnum = "authentik.events" ) // All allowed values of AppEnum enum @@ -137,6 +138,7 @@ var AllowedAppEnumEnumValues = []AppEnum{ "authentik.enterprise.providers.google_workspace", "authentik.enterprise.providers.microsoft_entra", "authentik.enterprise.providers.rac", + "authentik.enterprise.stages.authenticator_endpoint_gdtc", "authentik.enterprise.stages.source", "authentik.events", } diff --git a/model_authenticator_endpoint_gdtc_stage.go b/model_authenticator_endpoint_gdtc_stage.go new file mode 100644 index 000000000..1536ee988 --- /dev/null +++ b/model_authenticator_endpoint_gdtc_stage.go @@ -0,0 +1,418 @@ +/* +authentik + +Making authentication simple. + +API version: 2024.8.3 +Contact: hello@goauthentik.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// AuthenticatorEndpointGDTCStage AuthenticatorEndpointGDTCStage Serializer +type AuthenticatorEndpointGDTCStage struct { + Pk string `json:"pk"` + Name string `json:"name"` + // Get object type so that we know how to edit the object + Component string `json:"component"` + // Return object's verbose_name + VerboseName string `json:"verbose_name"` + // Return object's plural verbose_name + VerboseNamePlural string `json:"verbose_name_plural"` + // Return internal model name + MetaModelName string `json:"meta_model_name"` + FlowSet []FlowSet `json:"flow_set,omitempty"` + // Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. + ConfigureFlow NullableString `json:"configure_flow,omitempty"` + FriendlyName NullableString `json:"friendly_name,omitempty"` + Credentials interface{} `json:"credentials"` +} + +// NewAuthenticatorEndpointGDTCStage instantiates a new AuthenticatorEndpointGDTCStage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthenticatorEndpointGDTCStage(pk string, name string, component string, verboseName string, verboseNamePlural string, metaModelName string, credentials interface{}) *AuthenticatorEndpointGDTCStage { + this := AuthenticatorEndpointGDTCStage{} + this.Pk = pk + this.Name = name + this.Component = component + this.VerboseName = verboseName + this.VerboseNamePlural = verboseNamePlural + this.MetaModelName = metaModelName + this.Credentials = credentials + return &this +} + +// NewAuthenticatorEndpointGDTCStageWithDefaults instantiates a new AuthenticatorEndpointGDTCStage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthenticatorEndpointGDTCStageWithDefaults() *AuthenticatorEndpointGDTCStage { + this := AuthenticatorEndpointGDTCStage{} + return &this +} + +// GetPk returns the Pk field value +func (o *AuthenticatorEndpointGDTCStage) GetPk() string { + if o == nil { + var ret string + return ret + } + + return o.Pk +} + +// GetPkOk returns a tuple with the Pk field value +// and a boolean to check if the value has been set. +func (o *AuthenticatorEndpointGDTCStage) GetPkOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Pk, true +} + +// SetPk sets field value +func (o *AuthenticatorEndpointGDTCStage) SetPk(v string) { + o.Pk = v +} + +// GetName returns the Name field value +func (o *AuthenticatorEndpointGDTCStage) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *AuthenticatorEndpointGDTCStage) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AuthenticatorEndpointGDTCStage) SetName(v string) { + o.Name = v +} + +// GetComponent returns the Component field value +func (o *AuthenticatorEndpointGDTCStage) GetComponent() string { + if o == nil { + var ret string + return ret + } + + return o.Component +} + +// GetComponentOk returns a tuple with the Component field value +// and a boolean to check if the value has been set. +func (o *AuthenticatorEndpointGDTCStage) GetComponentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Component, true +} + +// SetComponent sets field value +func (o *AuthenticatorEndpointGDTCStage) SetComponent(v string) { + o.Component = v +} + +// GetVerboseName returns the VerboseName field value +func (o *AuthenticatorEndpointGDTCStage) GetVerboseName() string { + if o == nil { + var ret string + return ret + } + + return o.VerboseName +} + +// GetVerboseNameOk returns a tuple with the VerboseName field value +// and a boolean to check if the value has been set. +func (o *AuthenticatorEndpointGDTCStage) GetVerboseNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.VerboseName, true +} + +// SetVerboseName sets field value +func (o *AuthenticatorEndpointGDTCStage) SetVerboseName(v string) { + o.VerboseName = v +} + +// GetVerboseNamePlural returns the VerboseNamePlural field value +func (o *AuthenticatorEndpointGDTCStage) GetVerboseNamePlural() string { + if o == nil { + var ret string + return ret + } + + return o.VerboseNamePlural +} + +// GetVerboseNamePluralOk returns a tuple with the VerboseNamePlural field value +// and a boolean to check if the value has been set. +func (o *AuthenticatorEndpointGDTCStage) GetVerboseNamePluralOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.VerboseNamePlural, true +} + +// SetVerboseNamePlural sets field value +func (o *AuthenticatorEndpointGDTCStage) SetVerboseNamePlural(v string) { + o.VerboseNamePlural = v +} + +// GetMetaModelName returns the MetaModelName field value +func (o *AuthenticatorEndpointGDTCStage) GetMetaModelName() string { + if o == nil { + var ret string + return ret + } + + return o.MetaModelName +} + +// GetMetaModelNameOk returns a tuple with the MetaModelName field value +// and a boolean to check if the value has been set. +func (o *AuthenticatorEndpointGDTCStage) GetMetaModelNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetaModelName, true +} + +// SetMetaModelName sets field value +func (o *AuthenticatorEndpointGDTCStage) SetMetaModelName(v string) { + o.MetaModelName = v +} + +// GetFlowSet returns the FlowSet field value if set, zero value otherwise. +func (o *AuthenticatorEndpointGDTCStage) GetFlowSet() []FlowSet { + if o == nil || o.FlowSet == nil { + var ret []FlowSet + return ret + } + return o.FlowSet +} + +// GetFlowSetOk returns a tuple with the FlowSet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticatorEndpointGDTCStage) GetFlowSetOk() ([]FlowSet, bool) { + if o == nil || o.FlowSet == nil { + return nil, false + } + return o.FlowSet, true +} + +// HasFlowSet returns a boolean if a field has been set. +func (o *AuthenticatorEndpointGDTCStage) HasFlowSet() bool { + if o != nil && o.FlowSet != nil { + return true + } + + return false +} + +// SetFlowSet gets a reference to the given []FlowSet and assigns it to the FlowSet field. +func (o *AuthenticatorEndpointGDTCStage) SetFlowSet(v []FlowSet) { + o.FlowSet = v +} + +// GetConfigureFlow returns the ConfigureFlow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AuthenticatorEndpointGDTCStage) GetConfigureFlow() string { + if o == nil || o.ConfigureFlow.Get() == nil { + var ret string + return ret + } + return *o.ConfigureFlow.Get() +} + +// GetConfigureFlowOk returns a tuple with the ConfigureFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AuthenticatorEndpointGDTCStage) GetConfigureFlowOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConfigureFlow.Get(), o.ConfigureFlow.IsSet() +} + +// HasConfigureFlow returns a boolean if a field has been set. +func (o *AuthenticatorEndpointGDTCStage) HasConfigureFlow() bool { + if o != nil && o.ConfigureFlow.IsSet() { + return true + } + + return false +} + +// SetConfigureFlow gets a reference to the given NullableString and assigns it to the ConfigureFlow field. +func (o *AuthenticatorEndpointGDTCStage) SetConfigureFlow(v string) { + o.ConfigureFlow.Set(&v) +} + +// SetConfigureFlowNil sets the value for ConfigureFlow to be an explicit nil +func (o *AuthenticatorEndpointGDTCStage) SetConfigureFlowNil() { + o.ConfigureFlow.Set(nil) +} + +// UnsetConfigureFlow ensures that no value is present for ConfigureFlow, not even an explicit nil +func (o *AuthenticatorEndpointGDTCStage) UnsetConfigureFlow() { + o.ConfigureFlow.Unset() +} + +// GetFriendlyName returns the FriendlyName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AuthenticatorEndpointGDTCStage) GetFriendlyName() string { + if o == nil || o.FriendlyName.Get() == nil { + var ret string + return ret + } + return *o.FriendlyName.Get() +} + +// GetFriendlyNameOk returns a tuple with the FriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AuthenticatorEndpointGDTCStage) GetFriendlyNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FriendlyName.Get(), o.FriendlyName.IsSet() +} + +// HasFriendlyName returns a boolean if a field has been set. +func (o *AuthenticatorEndpointGDTCStage) HasFriendlyName() bool { + if o != nil && o.FriendlyName.IsSet() { + return true + } + + return false +} + +// SetFriendlyName gets a reference to the given NullableString and assigns it to the FriendlyName field. +func (o *AuthenticatorEndpointGDTCStage) SetFriendlyName(v string) { + o.FriendlyName.Set(&v) +} + +// SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil +func (o *AuthenticatorEndpointGDTCStage) SetFriendlyNameNil() { + o.FriendlyName.Set(nil) +} + +// UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +func (o *AuthenticatorEndpointGDTCStage) UnsetFriendlyName() { + o.FriendlyName.Unset() +} + +// GetCredentials returns the Credentials field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *AuthenticatorEndpointGDTCStage) GetCredentials() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AuthenticatorEndpointGDTCStage) GetCredentialsOk() (*interface{}, bool) { + if o == nil || o.Credentials == nil { + return nil, false + } + return &o.Credentials, true +} + +// SetCredentials sets field value +func (o *AuthenticatorEndpointGDTCStage) SetCredentials(v interface{}) { + o.Credentials = v +} + +func (o AuthenticatorEndpointGDTCStage) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["pk"] = o.Pk + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["component"] = o.Component + } + if true { + toSerialize["verbose_name"] = o.VerboseName + } + if true { + toSerialize["verbose_name_plural"] = o.VerboseNamePlural + } + if true { + toSerialize["meta_model_name"] = o.MetaModelName + } + if o.FlowSet != nil { + toSerialize["flow_set"] = o.FlowSet + } + if o.ConfigureFlow.IsSet() { + toSerialize["configure_flow"] = o.ConfigureFlow.Get() + } + if o.FriendlyName.IsSet() { + toSerialize["friendly_name"] = o.FriendlyName.Get() + } + if o.Credentials != nil { + toSerialize["credentials"] = o.Credentials + } + return json.Marshal(toSerialize) +} + +type NullableAuthenticatorEndpointGDTCStage struct { + value *AuthenticatorEndpointGDTCStage + isSet bool +} + +func (v NullableAuthenticatorEndpointGDTCStage) Get() *AuthenticatorEndpointGDTCStage { + return v.value +} + +func (v *NullableAuthenticatorEndpointGDTCStage) Set(val *AuthenticatorEndpointGDTCStage) { + v.value = val + v.isSet = true +} + +func (v NullableAuthenticatorEndpointGDTCStage) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthenticatorEndpointGDTCStage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthenticatorEndpointGDTCStage(val *AuthenticatorEndpointGDTCStage) *NullableAuthenticatorEndpointGDTCStage { + return &NullableAuthenticatorEndpointGDTCStage{value: val, isSet: true} +} + +func (v NullableAuthenticatorEndpointGDTCStage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthenticatorEndpointGDTCStage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_authenticator_endpoint_gdtc_stage_request.go b/model_authenticator_endpoint_gdtc_stage_request.go new file mode 100644 index 000000000..08b822df9 --- /dev/null +++ b/model_authenticator_endpoint_gdtc_stage_request.go @@ -0,0 +1,269 @@ +/* +authentik + +Making authentication simple. + +API version: 2024.8.3 +Contact: hello@goauthentik.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// AuthenticatorEndpointGDTCStageRequest AuthenticatorEndpointGDTCStage Serializer +type AuthenticatorEndpointGDTCStageRequest struct { + Name string `json:"name"` + FlowSet []FlowSetRequest `json:"flow_set,omitempty"` + // Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. + ConfigureFlow NullableString `json:"configure_flow,omitempty"` + FriendlyName NullableString `json:"friendly_name,omitempty"` + Credentials interface{} `json:"credentials"` +} + +// NewAuthenticatorEndpointGDTCStageRequest instantiates a new AuthenticatorEndpointGDTCStageRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthenticatorEndpointGDTCStageRequest(name string, credentials interface{}) *AuthenticatorEndpointGDTCStageRequest { + this := AuthenticatorEndpointGDTCStageRequest{} + this.Name = name + this.Credentials = credentials + return &this +} + +// NewAuthenticatorEndpointGDTCStageRequestWithDefaults instantiates a new AuthenticatorEndpointGDTCStageRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthenticatorEndpointGDTCStageRequestWithDefaults() *AuthenticatorEndpointGDTCStageRequest { + this := AuthenticatorEndpointGDTCStageRequest{} + return &this +} + +// GetName returns the Name field value +func (o *AuthenticatorEndpointGDTCStageRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *AuthenticatorEndpointGDTCStageRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AuthenticatorEndpointGDTCStageRequest) SetName(v string) { + o.Name = v +} + +// GetFlowSet returns the FlowSet field value if set, zero value otherwise. +func (o *AuthenticatorEndpointGDTCStageRequest) GetFlowSet() []FlowSetRequest { + if o == nil || o.FlowSet == nil { + var ret []FlowSetRequest + return ret + } + return o.FlowSet +} + +// GetFlowSetOk returns a tuple with the FlowSet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticatorEndpointGDTCStageRequest) GetFlowSetOk() ([]FlowSetRequest, bool) { + if o == nil || o.FlowSet == nil { + return nil, false + } + return o.FlowSet, true +} + +// HasFlowSet returns a boolean if a field has been set. +func (o *AuthenticatorEndpointGDTCStageRequest) HasFlowSet() bool { + if o != nil && o.FlowSet != nil { + return true + } + + return false +} + +// SetFlowSet gets a reference to the given []FlowSetRequest and assigns it to the FlowSet field. +func (o *AuthenticatorEndpointGDTCStageRequest) SetFlowSet(v []FlowSetRequest) { + o.FlowSet = v +} + +// GetConfigureFlow returns the ConfigureFlow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AuthenticatorEndpointGDTCStageRequest) GetConfigureFlow() string { + if o == nil || o.ConfigureFlow.Get() == nil { + var ret string + return ret + } + return *o.ConfigureFlow.Get() +} + +// GetConfigureFlowOk returns a tuple with the ConfigureFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AuthenticatorEndpointGDTCStageRequest) GetConfigureFlowOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConfigureFlow.Get(), o.ConfigureFlow.IsSet() +} + +// HasConfigureFlow returns a boolean if a field has been set. +func (o *AuthenticatorEndpointGDTCStageRequest) HasConfigureFlow() bool { + if o != nil && o.ConfigureFlow.IsSet() { + return true + } + + return false +} + +// SetConfigureFlow gets a reference to the given NullableString and assigns it to the ConfigureFlow field. +func (o *AuthenticatorEndpointGDTCStageRequest) SetConfigureFlow(v string) { + o.ConfigureFlow.Set(&v) +} + +// SetConfigureFlowNil sets the value for ConfigureFlow to be an explicit nil +func (o *AuthenticatorEndpointGDTCStageRequest) SetConfigureFlowNil() { + o.ConfigureFlow.Set(nil) +} + +// UnsetConfigureFlow ensures that no value is present for ConfigureFlow, not even an explicit nil +func (o *AuthenticatorEndpointGDTCStageRequest) UnsetConfigureFlow() { + o.ConfigureFlow.Unset() +} + +// GetFriendlyName returns the FriendlyName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AuthenticatorEndpointGDTCStageRequest) GetFriendlyName() string { + if o == nil || o.FriendlyName.Get() == nil { + var ret string + return ret + } + return *o.FriendlyName.Get() +} + +// GetFriendlyNameOk returns a tuple with the FriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AuthenticatorEndpointGDTCStageRequest) GetFriendlyNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FriendlyName.Get(), o.FriendlyName.IsSet() +} + +// HasFriendlyName returns a boolean if a field has been set. +func (o *AuthenticatorEndpointGDTCStageRequest) HasFriendlyName() bool { + if o != nil && o.FriendlyName.IsSet() { + return true + } + + return false +} + +// SetFriendlyName gets a reference to the given NullableString and assigns it to the FriendlyName field. +func (o *AuthenticatorEndpointGDTCStageRequest) SetFriendlyName(v string) { + o.FriendlyName.Set(&v) +} + +// SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil +func (o *AuthenticatorEndpointGDTCStageRequest) SetFriendlyNameNil() { + o.FriendlyName.Set(nil) +} + +// UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +func (o *AuthenticatorEndpointGDTCStageRequest) UnsetFriendlyName() { + o.FriendlyName.Unset() +} + +// GetCredentials returns the Credentials field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *AuthenticatorEndpointGDTCStageRequest) GetCredentials() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AuthenticatorEndpointGDTCStageRequest) GetCredentialsOk() (*interface{}, bool) { + if o == nil || o.Credentials == nil { + return nil, false + } + return &o.Credentials, true +} + +// SetCredentials sets field value +func (o *AuthenticatorEndpointGDTCStageRequest) SetCredentials(v interface{}) { + o.Credentials = v +} + +func (o AuthenticatorEndpointGDTCStageRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.FlowSet != nil { + toSerialize["flow_set"] = o.FlowSet + } + if o.ConfigureFlow.IsSet() { + toSerialize["configure_flow"] = o.ConfigureFlow.Get() + } + if o.FriendlyName.IsSet() { + toSerialize["friendly_name"] = o.FriendlyName.Get() + } + if o.Credentials != nil { + toSerialize["credentials"] = o.Credentials + } + return json.Marshal(toSerialize) +} + +type NullableAuthenticatorEndpointGDTCStageRequest struct { + value *AuthenticatorEndpointGDTCStageRequest + isSet bool +} + +func (v NullableAuthenticatorEndpointGDTCStageRequest) Get() *AuthenticatorEndpointGDTCStageRequest { + return v.value +} + +func (v *NullableAuthenticatorEndpointGDTCStageRequest) Set(val *AuthenticatorEndpointGDTCStageRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAuthenticatorEndpointGDTCStageRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthenticatorEndpointGDTCStageRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthenticatorEndpointGDTCStageRequest(val *AuthenticatorEndpointGDTCStageRequest) *NullableAuthenticatorEndpointGDTCStageRequest { + return &NullableAuthenticatorEndpointGDTCStageRequest{value: val, isSet: true} +} + +func (v NullableAuthenticatorEndpointGDTCStageRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthenticatorEndpointGDTCStageRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_challenge_types.go b/model_challenge_types.go index 23f0c3ab7..9382dc88a 100644 --- a/model_challenge_types.go +++ b/model_challenge_types.go @@ -32,6 +32,7 @@ type ChallengeTypes struct { DummyChallenge *DummyChallenge EmailChallenge *EmailChallenge FlowErrorChallenge *FlowErrorChallenge + FrameChallenge *FrameChallenge IdentificationChallenge *IdentificationChallenge OAuthDeviceCodeChallenge *OAuthDeviceCodeChallenge OAuthDeviceCodeFinishChallenge *OAuthDeviceCodeFinishChallenge @@ -142,6 +143,13 @@ func FlowErrorChallengeAsChallengeTypes(v *FlowErrorChallenge) ChallengeTypes { } } +// FrameChallengeAsChallengeTypes is a convenience function that returns FrameChallenge wrapped in ChallengeTypes +func FrameChallengeAsChallengeTypes(v *FrameChallenge) ChallengeTypes { + return ChallengeTypes{ + FrameChallenge: v, + } +} + // IdentificationChallengeAsChallengeTypes is a convenience function that returns IdentificationChallenge wrapped in ChallengeTypes func IdentificationChallengeAsChallengeTypes(v *IdentificationChallenge) ChallengeTypes { return ChallengeTypes{ @@ -390,6 +398,18 @@ func (dst *ChallengeTypes) UnmarshalJSON(data []byte) error { } } + // check if the discriminator value is 'FrameChallenge' + if jsonDict["component"] == "FrameChallenge" { + // try to unmarshal JSON data into FrameChallenge + err = json.Unmarshal(data, &dst.FrameChallenge) + if err == nil { + return nil // data stored in dst.FrameChallenge, return on the first match + } else { + dst.FrameChallenge = nil + return fmt.Errorf("Failed to unmarshal ChallengeTypes as FrameChallenge: %s", err.Error()) + } + } + // check if the discriminator value is 'IdentificationChallenge' if jsonDict["component"] == "IdentificationChallenge" { // try to unmarshal JSON data into IdentificationChallenge @@ -774,6 +794,18 @@ func (dst *ChallengeTypes) UnmarshalJSON(data []byte) error { } } + // check if the discriminator value is 'xak-flow-frame' + if jsonDict["component"] == "xak-flow-frame" { + // try to unmarshal JSON data into FrameChallenge + err = json.Unmarshal(data, &dst.FrameChallenge) + if err == nil { + return nil // data stored in dst.FrameChallenge, return on the first match + } else { + dst.FrameChallenge = nil + return fmt.Errorf("Failed to unmarshal ChallengeTypes as FrameChallenge: %s", err.Error()) + } + } + // check if the discriminator value is 'xak-flow-redirect' if jsonDict["component"] == "xak-flow-redirect" { // try to unmarshal JSON data into RedirectChallenge @@ -859,6 +891,10 @@ func (src ChallengeTypes) MarshalJSON() ([]byte, error) { return json.Marshal(&src.FlowErrorChallenge) } + if src.FrameChallenge != nil { + return json.Marshal(&src.FrameChallenge) + } + if src.IdentificationChallenge != nil { return json.Marshal(&src.IdentificationChallenge) } @@ -963,6 +999,10 @@ func (obj *ChallengeTypes) GetActualInstance() interface{} { return obj.FlowErrorChallenge } + if obj.FrameChallenge != nil { + return obj.FrameChallenge + } + if obj.IdentificationChallenge != nil { return obj.IdentificationChallenge } diff --git a/model_device.go b/model_device.go index 9062ab5dc..86951118d 100644 --- a/model_device.go +++ b/model_device.go @@ -24,7 +24,7 @@ type Device struct { VerboseNamePlural string `json:"verbose_name_plural"` // Return internal model name MetaModelName string `json:"meta_model_name"` - Pk int32 `json:"pk"` + Pk string `json:"pk"` Name string `json:"name"` // Get type of device Type string `json:"type"` @@ -40,7 +40,7 @@ type Device struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDevice(verboseName string, verboseNamePlural string, metaModelName string, pk int32, name string, type_ string, confirmed bool, created time.Time, lastUpdated time.Time, lastUsed NullableTime, extraDescription string) *Device { +func NewDevice(verboseName string, verboseNamePlural string, metaModelName string, pk string, name string, type_ string, confirmed bool, created time.Time, lastUpdated time.Time, lastUsed NullableTime, extraDescription string) *Device { this := Device{} this.VerboseName = verboseName this.VerboseNamePlural = verboseNamePlural @@ -137,9 +137,9 @@ func (o *Device) SetMetaModelName(v string) { } // GetPk returns the Pk field value -func (o *Device) GetPk() int32 { +func (o *Device) GetPk() string { if o == nil { - var ret int32 + var ret string return ret } @@ -148,7 +148,7 @@ func (o *Device) GetPk() int32 { // GetPkOk returns a tuple with the Pk field value // and a boolean to check if the value has been set. -func (o *Device) GetPkOk() (*int32, bool) { +func (o *Device) GetPkOk() (*string, bool) { if o == nil { return nil, false } @@ -156,7 +156,7 @@ func (o *Device) GetPkOk() (*int32, bool) { } // SetPk sets field value -func (o *Device) SetPk(v int32) { +func (o *Device) SetPk(v string) { o.Pk = v } diff --git a/model_endpoint_device.go b/model_endpoint_device.go new file mode 100644 index 000000000..4ffe3b5bb --- /dev/null +++ b/model_endpoint_device.go @@ -0,0 +1,144 @@ +/* +authentik + +Making authentication simple. + +API version: 2024.8.3 +Contact: hello@goauthentik.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// EndpointDevice Serializer for Endpoint authenticator devices +type EndpointDevice struct { + Pk *string `json:"pk,omitempty"` + // The human-readable name of this device. + Name string `json:"name"` +} + +// NewEndpointDevice instantiates a new EndpointDevice object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEndpointDevice(name string) *EndpointDevice { + this := EndpointDevice{} + this.Name = name + return &this +} + +// NewEndpointDeviceWithDefaults instantiates a new EndpointDevice object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEndpointDeviceWithDefaults() *EndpointDevice { + this := EndpointDevice{} + return &this +} + +// GetPk returns the Pk field value if set, zero value otherwise. +func (o *EndpointDevice) GetPk() string { + if o == nil || o.Pk == nil { + var ret string + return ret + } + return *o.Pk +} + +// GetPkOk returns a tuple with the Pk field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EndpointDevice) GetPkOk() (*string, bool) { + if o == nil || o.Pk == nil { + return nil, false + } + return o.Pk, true +} + +// HasPk returns a boolean if a field has been set. +func (o *EndpointDevice) HasPk() bool { + if o != nil && o.Pk != nil { + return true + } + + return false +} + +// SetPk gets a reference to the given string and assigns it to the Pk field. +func (o *EndpointDevice) SetPk(v string) { + o.Pk = &v +} + +// GetName returns the Name field value +func (o *EndpointDevice) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *EndpointDevice) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *EndpointDevice) SetName(v string) { + o.Name = v +} + +func (o EndpointDevice) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Pk != nil { + toSerialize["pk"] = o.Pk + } + if true { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableEndpointDevice struct { + value *EndpointDevice + isSet bool +} + +func (v NullableEndpointDevice) Get() *EndpointDevice { + return v.value +} + +func (v *NullableEndpointDevice) Set(val *EndpointDevice) { + v.value = val + v.isSet = true +} + +func (v NullableEndpointDevice) IsSet() bool { + return v.isSet +} + +func (v *NullableEndpointDevice) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEndpointDevice(val *EndpointDevice) *NullableEndpointDevice { + return &NullableEndpointDevice{value: val, isSet: true} +} + +func (v NullableEndpointDevice) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEndpointDevice) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_endpoint_device_request.go b/model_endpoint_device_request.go new file mode 100644 index 000000000..7f732dfbf --- /dev/null +++ b/model_endpoint_device_request.go @@ -0,0 +1,144 @@ +/* +authentik + +Making authentication simple. + +API version: 2024.8.3 +Contact: hello@goauthentik.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// EndpointDeviceRequest Serializer for Endpoint authenticator devices +type EndpointDeviceRequest struct { + Pk *string `json:"pk,omitempty"` + // The human-readable name of this device. + Name string `json:"name"` +} + +// NewEndpointDeviceRequest instantiates a new EndpointDeviceRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEndpointDeviceRequest(name string) *EndpointDeviceRequest { + this := EndpointDeviceRequest{} + this.Name = name + return &this +} + +// NewEndpointDeviceRequestWithDefaults instantiates a new EndpointDeviceRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEndpointDeviceRequestWithDefaults() *EndpointDeviceRequest { + this := EndpointDeviceRequest{} + return &this +} + +// GetPk returns the Pk field value if set, zero value otherwise. +func (o *EndpointDeviceRequest) GetPk() string { + if o == nil || o.Pk == nil { + var ret string + return ret + } + return *o.Pk +} + +// GetPkOk returns a tuple with the Pk field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EndpointDeviceRequest) GetPkOk() (*string, bool) { + if o == nil || o.Pk == nil { + return nil, false + } + return o.Pk, true +} + +// HasPk returns a boolean if a field has been set. +func (o *EndpointDeviceRequest) HasPk() bool { + if o != nil && o.Pk != nil { + return true + } + + return false +} + +// SetPk gets a reference to the given string and assigns it to the Pk field. +func (o *EndpointDeviceRequest) SetPk(v string) { + o.Pk = &v +} + +// GetName returns the Name field value +func (o *EndpointDeviceRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *EndpointDeviceRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *EndpointDeviceRequest) SetName(v string) { + o.Name = v +} + +func (o EndpointDeviceRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Pk != nil { + toSerialize["pk"] = o.Pk + } + if true { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableEndpointDeviceRequest struct { + value *EndpointDeviceRequest + isSet bool +} + +func (v NullableEndpointDeviceRequest) Get() *EndpointDeviceRequest { + return v.value +} + +func (v *NullableEndpointDeviceRequest) Set(val *EndpointDeviceRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEndpointDeviceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEndpointDeviceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEndpointDeviceRequest(val *EndpointDeviceRequest) *NullableEndpointDeviceRequest { + return &NullableEndpointDeviceRequest{value: val, isSet: true} +} + +func (v NullableEndpointDeviceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEndpointDeviceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_flow_challenge_response_request.go b/model_flow_challenge_response_request.go index 00d9e288f..1f61566de 100644 --- a/model_flow_challenge_response_request.go +++ b/model_flow_challenge_response_request.go @@ -30,6 +30,7 @@ type FlowChallengeResponseRequest struct { ConsentChallengeResponseRequest *ConsentChallengeResponseRequest DummyChallengeResponseRequest *DummyChallengeResponseRequest EmailChallengeResponseRequest *EmailChallengeResponseRequest + FrameChallengeResponseRequest *FrameChallengeResponseRequest IdentificationChallengeResponseRequest *IdentificationChallengeResponseRequest OAuthDeviceCodeChallengeResponseRequest *OAuthDeviceCodeChallengeResponseRequest OAuthDeviceCodeFinishChallengeResponseRequest *OAuthDeviceCodeFinishChallengeResponseRequest @@ -123,6 +124,13 @@ func EmailChallengeResponseRequestAsFlowChallengeResponseRequest(v *EmailChallen } } +// FrameChallengeResponseRequestAsFlowChallengeResponseRequest is a convenience function that returns FrameChallengeResponseRequest wrapped in FlowChallengeResponseRequest +func FrameChallengeResponseRequestAsFlowChallengeResponseRequest(v *FrameChallengeResponseRequest) FlowChallengeResponseRequest { + return FlowChallengeResponseRequest{ + FrameChallengeResponseRequest: v, + } +} + // IdentificationChallengeResponseRequestAsFlowChallengeResponseRequest is a convenience function that returns IdentificationChallengeResponseRequest wrapped in FlowChallengeResponseRequest func IdentificationChallengeResponseRequestAsFlowChallengeResponseRequest(v *IdentificationChallengeResponseRequest) FlowChallengeResponseRequest { return FlowChallengeResponseRequest{ @@ -326,6 +334,18 @@ func (dst *FlowChallengeResponseRequest) UnmarshalJSON(data []byte) error { } } + // check if the discriminator value is 'FrameChallengeResponseRequest' + if jsonDict["component"] == "FrameChallengeResponseRequest" { + // try to unmarshal JSON data into FrameChallengeResponseRequest + err = json.Unmarshal(data, &dst.FrameChallengeResponseRequest) + if err == nil { + return nil // data stored in dst.FrameChallengeResponseRequest, return on the first match + } else { + dst.FrameChallengeResponseRequest = nil + return fmt.Errorf("Failed to unmarshal FlowChallengeResponseRequest as FrameChallengeResponseRequest: %s", err.Error()) + } + } + // check if the discriminator value is 'IdentificationChallengeResponseRequest' if jsonDict["component"] == "IdentificationChallengeResponseRequest" { // try to unmarshal JSON data into IdentificationChallengeResponseRequest @@ -638,6 +658,18 @@ func (dst *FlowChallengeResponseRequest) UnmarshalJSON(data []byte) error { } } + // check if the discriminator value is 'xak-flow-frame' + if jsonDict["component"] == "xak-flow-frame" { + // try to unmarshal JSON data into FrameChallengeResponseRequest + err = json.Unmarshal(data, &dst.FrameChallengeResponseRequest) + if err == nil { + return nil // data stored in dst.FrameChallengeResponseRequest, return on the first match + } else { + dst.FrameChallengeResponseRequest = nil + return fmt.Errorf("Failed to unmarshal FlowChallengeResponseRequest as FrameChallengeResponseRequest: %s", err.Error()) + } + } + return nil } @@ -691,6 +723,10 @@ func (src FlowChallengeResponseRequest) MarshalJSON() ([]byte, error) { return json.Marshal(&src.EmailChallengeResponseRequest) } + if src.FrameChallengeResponseRequest != nil { + return json.Marshal(&src.FrameChallengeResponseRequest) + } + if src.IdentificationChallengeResponseRequest != nil { return json.Marshal(&src.IdentificationChallengeResponseRequest) } @@ -775,6 +811,10 @@ func (obj *FlowChallengeResponseRequest) GetActualInstance() interface{} { return obj.EmailChallengeResponseRequest } + if obj.FrameChallengeResponseRequest != nil { + return obj.FrameChallengeResponseRequest + } + if obj.IdentificationChallengeResponseRequest != nil { return obj.IdentificationChallengeResponseRequest } diff --git a/model_frame_challenge.go b/model_frame_challenge.go new file mode 100644 index 000000000..5320adfff --- /dev/null +++ b/model_frame_challenge.go @@ -0,0 +1,288 @@ +/* +authentik + +Making authentication simple. + +API version: 2024.8.3 +Contact: hello@goauthentik.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// FrameChallenge Challenge type to render a frame +type FrameChallenge struct { + FlowInfo *ContextualFlowInfo `json:"flow_info,omitempty"` + Component *string `json:"component,omitempty"` + ResponseErrors *map[string][]ErrorDetail `json:"response_errors,omitempty"` + Url string `json:"url"` + LoadingOverlay *bool `json:"loading_overlay,omitempty"` + LoadingText string `json:"loading_text"` +} + +// NewFrameChallenge instantiates a new FrameChallenge object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFrameChallenge(url string, loadingText string) *FrameChallenge { + this := FrameChallenge{} + var component string = "xak-flow-frame" + this.Component = &component + this.Url = url + var loadingOverlay bool = false + this.LoadingOverlay = &loadingOverlay + this.LoadingText = loadingText + return &this +} + +// NewFrameChallengeWithDefaults instantiates a new FrameChallenge object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFrameChallengeWithDefaults() *FrameChallenge { + this := FrameChallenge{} + var component string = "xak-flow-frame" + this.Component = &component + var loadingOverlay bool = false + this.LoadingOverlay = &loadingOverlay + return &this +} + +// GetFlowInfo returns the FlowInfo field value if set, zero value otherwise. +func (o *FrameChallenge) GetFlowInfo() ContextualFlowInfo { + if o == nil || o.FlowInfo == nil { + var ret ContextualFlowInfo + return ret + } + return *o.FlowInfo +} + +// GetFlowInfoOk returns a tuple with the FlowInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FrameChallenge) GetFlowInfoOk() (*ContextualFlowInfo, bool) { + if o == nil || o.FlowInfo == nil { + return nil, false + } + return o.FlowInfo, true +} + +// HasFlowInfo returns a boolean if a field has been set. +func (o *FrameChallenge) HasFlowInfo() bool { + if o != nil && o.FlowInfo != nil { + return true + } + + return false +} + +// SetFlowInfo gets a reference to the given ContextualFlowInfo and assigns it to the FlowInfo field. +func (o *FrameChallenge) SetFlowInfo(v ContextualFlowInfo) { + o.FlowInfo = &v +} + +// GetComponent returns the Component field value if set, zero value otherwise. +func (o *FrameChallenge) GetComponent() string { + if o == nil || o.Component == nil { + var ret string + return ret + } + return *o.Component +} + +// GetComponentOk returns a tuple with the Component field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FrameChallenge) GetComponentOk() (*string, bool) { + if o == nil || o.Component == nil { + return nil, false + } + return o.Component, true +} + +// HasComponent returns a boolean if a field has been set. +func (o *FrameChallenge) HasComponent() bool { + if o != nil && o.Component != nil { + return true + } + + return false +} + +// SetComponent gets a reference to the given string and assigns it to the Component field. +func (o *FrameChallenge) SetComponent(v string) { + o.Component = &v +} + +// GetResponseErrors returns the ResponseErrors field value if set, zero value otherwise. +func (o *FrameChallenge) GetResponseErrors() map[string][]ErrorDetail { + if o == nil || o.ResponseErrors == nil { + var ret map[string][]ErrorDetail + return ret + } + return *o.ResponseErrors +} + +// GetResponseErrorsOk returns a tuple with the ResponseErrors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FrameChallenge) GetResponseErrorsOk() (*map[string][]ErrorDetail, bool) { + if o == nil || o.ResponseErrors == nil { + return nil, false + } + return o.ResponseErrors, true +} + +// HasResponseErrors returns a boolean if a field has been set. +func (o *FrameChallenge) HasResponseErrors() bool { + if o != nil && o.ResponseErrors != nil { + return true + } + + return false +} + +// SetResponseErrors gets a reference to the given map[string][]ErrorDetail and assigns it to the ResponseErrors field. +func (o *FrameChallenge) SetResponseErrors(v map[string][]ErrorDetail) { + o.ResponseErrors = &v +} + +// GetUrl returns the Url field value +func (o *FrameChallenge) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *FrameChallenge) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *FrameChallenge) SetUrl(v string) { + o.Url = v +} + +// GetLoadingOverlay returns the LoadingOverlay field value if set, zero value otherwise. +func (o *FrameChallenge) GetLoadingOverlay() bool { + if o == nil || o.LoadingOverlay == nil { + var ret bool + return ret + } + return *o.LoadingOverlay +} + +// GetLoadingOverlayOk returns a tuple with the LoadingOverlay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FrameChallenge) GetLoadingOverlayOk() (*bool, bool) { + if o == nil || o.LoadingOverlay == nil { + return nil, false + } + return o.LoadingOverlay, true +} + +// HasLoadingOverlay returns a boolean if a field has been set. +func (o *FrameChallenge) HasLoadingOverlay() bool { + if o != nil && o.LoadingOverlay != nil { + return true + } + + return false +} + +// SetLoadingOverlay gets a reference to the given bool and assigns it to the LoadingOverlay field. +func (o *FrameChallenge) SetLoadingOverlay(v bool) { + o.LoadingOverlay = &v +} + +// GetLoadingText returns the LoadingText field value +func (o *FrameChallenge) GetLoadingText() string { + if o == nil { + var ret string + return ret + } + + return o.LoadingText +} + +// GetLoadingTextOk returns a tuple with the LoadingText field value +// and a boolean to check if the value has been set. +func (o *FrameChallenge) GetLoadingTextOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LoadingText, true +} + +// SetLoadingText sets field value +func (o *FrameChallenge) SetLoadingText(v string) { + o.LoadingText = v +} + +func (o FrameChallenge) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.FlowInfo != nil { + toSerialize["flow_info"] = o.FlowInfo + } + if o.Component != nil { + toSerialize["component"] = o.Component + } + if o.ResponseErrors != nil { + toSerialize["response_errors"] = o.ResponseErrors + } + if true { + toSerialize["url"] = o.Url + } + if o.LoadingOverlay != nil { + toSerialize["loading_overlay"] = o.LoadingOverlay + } + if true { + toSerialize["loading_text"] = o.LoadingText + } + return json.Marshal(toSerialize) +} + +type NullableFrameChallenge struct { + value *FrameChallenge + isSet bool +} + +func (v NullableFrameChallenge) Get() *FrameChallenge { + return v.value +} + +func (v *NullableFrameChallenge) Set(val *FrameChallenge) { + v.value = val + v.isSet = true +} + +func (v NullableFrameChallenge) IsSet() bool { + return v.isSet +} + +func (v *NullableFrameChallenge) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFrameChallenge(val *FrameChallenge) *NullableFrameChallenge { + return &NullableFrameChallenge{value: val, isSet: true} +} + +func (v NullableFrameChallenge) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFrameChallenge) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_frame_challenge_response_request.go b/model_frame_challenge_response_request.go new file mode 100644 index 000000000..c3b894853 --- /dev/null +++ b/model_frame_challenge_response_request.go @@ -0,0 +1,118 @@ +/* +authentik + +Making authentication simple. + +API version: 2024.8.3 +Contact: hello@goauthentik.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// FrameChallengeResponseRequest Base class for all challenge responses +type FrameChallengeResponseRequest struct { + Component *string `json:"component,omitempty"` +} + +// NewFrameChallengeResponseRequest instantiates a new FrameChallengeResponseRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFrameChallengeResponseRequest() *FrameChallengeResponseRequest { + this := FrameChallengeResponseRequest{} + var component string = "xak-flow-frame" + this.Component = &component + return &this +} + +// NewFrameChallengeResponseRequestWithDefaults instantiates a new FrameChallengeResponseRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFrameChallengeResponseRequestWithDefaults() *FrameChallengeResponseRequest { + this := FrameChallengeResponseRequest{} + var component string = "xak-flow-frame" + this.Component = &component + return &this +} + +// GetComponent returns the Component field value if set, zero value otherwise. +func (o *FrameChallengeResponseRequest) GetComponent() string { + if o == nil || o.Component == nil { + var ret string + return ret + } + return *o.Component +} + +// GetComponentOk returns a tuple with the Component field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FrameChallengeResponseRequest) GetComponentOk() (*string, bool) { + if o == nil || o.Component == nil { + return nil, false + } + return o.Component, true +} + +// HasComponent returns a boolean if a field has been set. +func (o *FrameChallengeResponseRequest) HasComponent() bool { + if o != nil && o.Component != nil { + return true + } + + return false +} + +// SetComponent gets a reference to the given string and assigns it to the Component field. +func (o *FrameChallengeResponseRequest) SetComponent(v string) { + o.Component = &v +} + +func (o FrameChallengeResponseRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Component != nil { + toSerialize["component"] = o.Component + } + return json.Marshal(toSerialize) +} + +type NullableFrameChallengeResponseRequest struct { + value *FrameChallengeResponseRequest + isSet bool +} + +func (v NullableFrameChallengeResponseRequest) Get() *FrameChallengeResponseRequest { + return v.value +} + +func (v *NullableFrameChallengeResponseRequest) Set(val *FrameChallengeResponseRequest) { + v.value = val + v.isSet = true +} + +func (v NullableFrameChallengeResponseRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableFrameChallengeResponseRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFrameChallengeResponseRequest(val *FrameChallengeResponseRequest) *NullableFrameChallengeResponseRequest { + return &NullableFrameChallengeResponseRequest{value: val, isSet: true} +} + +func (v NullableFrameChallengeResponseRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFrameChallengeResponseRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_model_enum.go b/model_model_enum.go index f1e7e3216..e3d3a52fd 100644 --- a/model_model_enum.go +++ b/model_model_enum.go @@ -21,95 +21,96 @@ type ModelEnum string // List of ModelEnum const ( - MODELENUM_TENANTS_DOMAIN ModelEnum = "authentik_tenants.domain" - MODELENUM_CRYPTO_CERTIFICATEKEYPAIR ModelEnum = "authentik_crypto.certificatekeypair" - MODELENUM_FLOWS_FLOW ModelEnum = "authentik_flows.flow" - MODELENUM_FLOWS_FLOWSTAGEBINDING ModelEnum = "authentik_flows.flowstagebinding" - MODELENUM_OUTPOSTS_DOCKERSERVICECONNECTION ModelEnum = "authentik_outposts.dockerserviceconnection" - MODELENUM_OUTPOSTS_KUBERNETESSERVICECONNECTION ModelEnum = "authentik_outposts.kubernetesserviceconnection" - MODELENUM_OUTPOSTS_OUTPOST ModelEnum = "authentik_outposts.outpost" - MODELENUM_POLICIES_DUMMY_DUMMYPOLICY ModelEnum = "authentik_policies_dummy.dummypolicy" - MODELENUM_POLICIES_EVENT_MATCHER_EVENTMATCHERPOLICY ModelEnum = "authentik_policies_event_matcher.eventmatcherpolicy" - MODELENUM_POLICIES_EXPIRY_PASSWORDEXPIRYPOLICY ModelEnum = "authentik_policies_expiry.passwordexpirypolicy" - MODELENUM_POLICIES_EXPRESSION_EXPRESSIONPOLICY ModelEnum = "authentik_policies_expression.expressionpolicy" - MODELENUM_POLICIES_GEOIP_GEOIPPOLICY ModelEnum = "authentik_policies_geoip.geoippolicy" - MODELENUM_POLICIES_PASSWORD_PASSWORDPOLICY ModelEnum = "authentik_policies_password.passwordpolicy" - MODELENUM_POLICIES_REPUTATION_REPUTATIONPOLICY ModelEnum = "authentik_policies_reputation.reputationpolicy" - MODELENUM_POLICIES_POLICYBINDING ModelEnum = "authentik_policies.policybinding" - MODELENUM_PROVIDERS_LDAP_LDAPPROVIDER ModelEnum = "authentik_providers_ldap.ldapprovider" - MODELENUM_PROVIDERS_OAUTH2_SCOPEMAPPING ModelEnum = "authentik_providers_oauth2.scopemapping" - MODELENUM_PROVIDERS_OAUTH2_OAUTH2PROVIDER ModelEnum = "authentik_providers_oauth2.oauth2provider" - MODELENUM_PROVIDERS_PROXY_PROXYPROVIDER ModelEnum = "authentik_providers_proxy.proxyprovider" - MODELENUM_PROVIDERS_RADIUS_RADIUSPROVIDER ModelEnum = "authentik_providers_radius.radiusprovider" - MODELENUM_PROVIDERS_RADIUS_RADIUSPROVIDERPROPERTYMAPPING ModelEnum = "authentik_providers_radius.radiusproviderpropertymapping" - MODELENUM_PROVIDERS_SAML_SAMLPROVIDER ModelEnum = "authentik_providers_saml.samlprovider" - MODELENUM_PROVIDERS_SAML_SAMLPROPERTYMAPPING ModelEnum = "authentik_providers_saml.samlpropertymapping" - MODELENUM_PROVIDERS_SCIM_SCIMPROVIDER ModelEnum = "authentik_providers_scim.scimprovider" - MODELENUM_PROVIDERS_SCIM_SCIMMAPPING ModelEnum = "authentik_providers_scim.scimmapping" - MODELENUM_RBAC_ROLE ModelEnum = "authentik_rbac.role" - MODELENUM_SOURCES_LDAP_LDAPSOURCE ModelEnum = "authentik_sources_ldap.ldapsource" - MODELENUM_SOURCES_LDAP_LDAPSOURCEPROPERTYMAPPING ModelEnum = "authentik_sources_ldap.ldapsourcepropertymapping" - MODELENUM_SOURCES_OAUTH_OAUTHSOURCE ModelEnum = "authentik_sources_oauth.oauthsource" - MODELENUM_SOURCES_OAUTH_OAUTHSOURCEPROPERTYMAPPING ModelEnum = "authentik_sources_oauth.oauthsourcepropertymapping" - MODELENUM_SOURCES_OAUTH_USEROAUTHSOURCECONNECTION ModelEnum = "authentik_sources_oauth.useroauthsourceconnection" - MODELENUM_SOURCES_OAUTH_GROUPOAUTHSOURCECONNECTION ModelEnum = "authentik_sources_oauth.groupoauthsourceconnection" - MODELENUM_SOURCES_PLEX_PLEXSOURCE ModelEnum = "authentik_sources_plex.plexsource" - MODELENUM_SOURCES_PLEX_PLEXSOURCEPROPERTYMAPPING ModelEnum = "authentik_sources_plex.plexsourcepropertymapping" - MODELENUM_SOURCES_PLEX_USERPLEXSOURCECONNECTION ModelEnum = "authentik_sources_plex.userplexsourceconnection" - MODELENUM_SOURCES_PLEX_GROUPPLEXSOURCECONNECTION ModelEnum = "authentik_sources_plex.groupplexsourceconnection" - MODELENUM_SOURCES_SAML_SAMLSOURCE ModelEnum = "authentik_sources_saml.samlsource" - MODELENUM_SOURCES_SAML_SAMLSOURCEPROPERTYMAPPING ModelEnum = "authentik_sources_saml.samlsourcepropertymapping" - MODELENUM_SOURCES_SAML_USERSAMLSOURCECONNECTION ModelEnum = "authentik_sources_saml.usersamlsourceconnection" - MODELENUM_SOURCES_SAML_GROUPSAMLSOURCECONNECTION ModelEnum = "authentik_sources_saml.groupsamlsourceconnection" - MODELENUM_SOURCES_SCIM_SCIMSOURCE ModelEnum = "authentik_sources_scim.scimsource" - MODELENUM_SOURCES_SCIM_SCIMSOURCEPROPERTYMAPPING ModelEnum = "authentik_sources_scim.scimsourcepropertymapping" - MODELENUM_STAGES_AUTHENTICATOR_DUO_AUTHENTICATORDUOSTAGE ModelEnum = "authentik_stages_authenticator_duo.authenticatorduostage" - MODELENUM_STAGES_AUTHENTICATOR_DUO_DUODEVICE ModelEnum = "authentik_stages_authenticator_duo.duodevice" - MODELENUM_STAGES_AUTHENTICATOR_SMS_AUTHENTICATORSMSSTAGE ModelEnum = "authentik_stages_authenticator_sms.authenticatorsmsstage" - MODELENUM_STAGES_AUTHENTICATOR_SMS_SMSDEVICE ModelEnum = "authentik_stages_authenticator_sms.smsdevice" - MODELENUM_STAGES_AUTHENTICATOR_STATIC_AUTHENTICATORSTATICSTAGE ModelEnum = "authentik_stages_authenticator_static.authenticatorstaticstage" - MODELENUM_STAGES_AUTHENTICATOR_STATIC_STATICDEVICE ModelEnum = "authentik_stages_authenticator_static.staticdevice" - MODELENUM_STAGES_AUTHENTICATOR_TOTP_AUTHENTICATORTOTPSTAGE ModelEnum = "authentik_stages_authenticator_totp.authenticatortotpstage" - MODELENUM_STAGES_AUTHENTICATOR_TOTP_TOTPDEVICE ModelEnum = "authentik_stages_authenticator_totp.totpdevice" - MODELENUM_STAGES_AUTHENTICATOR_VALIDATE_AUTHENTICATORVALIDATESTAGE ModelEnum = "authentik_stages_authenticator_validate.authenticatorvalidatestage" - MODELENUM_STAGES_AUTHENTICATOR_WEBAUTHN_AUTHENTICATORWEBAUTHNSTAGE ModelEnum = "authentik_stages_authenticator_webauthn.authenticatorwebauthnstage" - MODELENUM_STAGES_AUTHENTICATOR_WEBAUTHN_WEBAUTHNDEVICE ModelEnum = "authentik_stages_authenticator_webauthn.webauthndevice" - MODELENUM_STAGES_CAPTCHA_CAPTCHASTAGE ModelEnum = "authentik_stages_captcha.captchastage" - MODELENUM_STAGES_CONSENT_CONSENTSTAGE ModelEnum = "authentik_stages_consent.consentstage" - MODELENUM_STAGES_CONSENT_USERCONSENT ModelEnum = "authentik_stages_consent.userconsent" - MODELENUM_STAGES_DENY_DENYSTAGE ModelEnum = "authentik_stages_deny.denystage" - MODELENUM_STAGES_DUMMY_DUMMYSTAGE ModelEnum = "authentik_stages_dummy.dummystage" - MODELENUM_STAGES_EMAIL_EMAILSTAGE ModelEnum = "authentik_stages_email.emailstage" - MODELENUM_STAGES_IDENTIFICATION_IDENTIFICATIONSTAGE ModelEnum = "authentik_stages_identification.identificationstage" - MODELENUM_STAGES_INVITATION_INVITATIONSTAGE ModelEnum = "authentik_stages_invitation.invitationstage" - MODELENUM_STAGES_INVITATION_INVITATION ModelEnum = "authentik_stages_invitation.invitation" - MODELENUM_STAGES_PASSWORD_PASSWORDSTAGE ModelEnum = "authentik_stages_password.passwordstage" - MODELENUM_STAGES_PROMPT_PROMPT ModelEnum = "authentik_stages_prompt.prompt" - MODELENUM_STAGES_PROMPT_PROMPTSTAGE ModelEnum = "authentik_stages_prompt.promptstage" - MODELENUM_STAGES_USER_DELETE_USERDELETESTAGE ModelEnum = "authentik_stages_user_delete.userdeletestage" - MODELENUM_STAGES_USER_LOGIN_USERLOGINSTAGE ModelEnum = "authentik_stages_user_login.userloginstage" - MODELENUM_STAGES_USER_LOGOUT_USERLOGOUTSTAGE ModelEnum = "authentik_stages_user_logout.userlogoutstage" - MODELENUM_STAGES_USER_WRITE_USERWRITESTAGE ModelEnum = "authentik_stages_user_write.userwritestage" - MODELENUM_BRANDS_BRAND ModelEnum = "authentik_brands.brand" - MODELENUM_BLUEPRINTS_BLUEPRINTINSTANCE ModelEnum = "authentik_blueprints.blueprintinstance" - MODELENUM_CORE_GROUP ModelEnum = "authentik_core.group" - MODELENUM_CORE_USER ModelEnum = "authentik_core.user" - MODELENUM_CORE_APPLICATION ModelEnum = "authentik_core.application" - MODELENUM_CORE_TOKEN ModelEnum = "authentik_core.token" - MODELENUM_ENTERPRISE_LICENSE ModelEnum = "authentik_enterprise.license" - MODELENUM_PROVIDERS_GOOGLE_WORKSPACE_GOOGLEWORKSPACEPROVIDER ModelEnum = "authentik_providers_google_workspace.googleworkspaceprovider" - MODELENUM_PROVIDERS_GOOGLE_WORKSPACE_GOOGLEWORKSPACEPROVIDERMAPPING ModelEnum = "authentik_providers_google_workspace.googleworkspaceprovidermapping" - MODELENUM_PROVIDERS_MICROSOFT_ENTRA_MICROSOFTENTRAPROVIDER ModelEnum = "authentik_providers_microsoft_entra.microsoftentraprovider" - MODELENUM_PROVIDERS_MICROSOFT_ENTRA_MICROSOFTENTRAPROVIDERMAPPING ModelEnum = "authentik_providers_microsoft_entra.microsoftentraprovidermapping" - MODELENUM_PROVIDERS_RAC_RACPROVIDER ModelEnum = "authentik_providers_rac.racprovider" - MODELENUM_PROVIDERS_RAC_ENDPOINT ModelEnum = "authentik_providers_rac.endpoint" - MODELENUM_PROVIDERS_RAC_RACPROPERTYMAPPING ModelEnum = "authentik_providers_rac.racpropertymapping" - MODELENUM_STAGES_SOURCE_SOURCESTAGE ModelEnum = "authentik_stages_source.sourcestage" - MODELENUM_EVENTS_EVENT ModelEnum = "authentik_events.event" - MODELENUM_EVENTS_NOTIFICATIONTRANSPORT ModelEnum = "authentik_events.notificationtransport" - MODELENUM_EVENTS_NOTIFICATION ModelEnum = "authentik_events.notification" - MODELENUM_EVENTS_NOTIFICATIONRULE ModelEnum = "authentik_events.notificationrule" - MODELENUM_EVENTS_NOTIFICATIONWEBHOOKMAPPING ModelEnum = "authentik_events.notificationwebhookmapping" + MODELENUM_TENANTS_DOMAIN ModelEnum = "authentik_tenants.domain" + MODELENUM_CRYPTO_CERTIFICATEKEYPAIR ModelEnum = "authentik_crypto.certificatekeypair" + MODELENUM_FLOWS_FLOW ModelEnum = "authentik_flows.flow" + MODELENUM_FLOWS_FLOWSTAGEBINDING ModelEnum = "authentik_flows.flowstagebinding" + MODELENUM_OUTPOSTS_DOCKERSERVICECONNECTION ModelEnum = "authentik_outposts.dockerserviceconnection" + MODELENUM_OUTPOSTS_KUBERNETESSERVICECONNECTION ModelEnum = "authentik_outposts.kubernetesserviceconnection" + MODELENUM_OUTPOSTS_OUTPOST ModelEnum = "authentik_outposts.outpost" + MODELENUM_POLICIES_DUMMY_DUMMYPOLICY ModelEnum = "authentik_policies_dummy.dummypolicy" + MODELENUM_POLICIES_EVENT_MATCHER_EVENTMATCHERPOLICY ModelEnum = "authentik_policies_event_matcher.eventmatcherpolicy" + MODELENUM_POLICIES_EXPIRY_PASSWORDEXPIRYPOLICY ModelEnum = "authentik_policies_expiry.passwordexpirypolicy" + MODELENUM_POLICIES_EXPRESSION_EXPRESSIONPOLICY ModelEnum = "authentik_policies_expression.expressionpolicy" + MODELENUM_POLICIES_GEOIP_GEOIPPOLICY ModelEnum = "authentik_policies_geoip.geoippolicy" + MODELENUM_POLICIES_PASSWORD_PASSWORDPOLICY ModelEnum = "authentik_policies_password.passwordpolicy" + MODELENUM_POLICIES_REPUTATION_REPUTATIONPOLICY ModelEnum = "authentik_policies_reputation.reputationpolicy" + MODELENUM_POLICIES_POLICYBINDING ModelEnum = "authentik_policies.policybinding" + MODELENUM_PROVIDERS_LDAP_LDAPPROVIDER ModelEnum = "authentik_providers_ldap.ldapprovider" + MODELENUM_PROVIDERS_OAUTH2_SCOPEMAPPING ModelEnum = "authentik_providers_oauth2.scopemapping" + MODELENUM_PROVIDERS_OAUTH2_OAUTH2PROVIDER ModelEnum = "authentik_providers_oauth2.oauth2provider" + MODELENUM_PROVIDERS_PROXY_PROXYPROVIDER ModelEnum = "authentik_providers_proxy.proxyprovider" + MODELENUM_PROVIDERS_RADIUS_RADIUSPROVIDER ModelEnum = "authentik_providers_radius.radiusprovider" + MODELENUM_PROVIDERS_RADIUS_RADIUSPROVIDERPROPERTYMAPPING ModelEnum = "authentik_providers_radius.radiusproviderpropertymapping" + MODELENUM_PROVIDERS_SAML_SAMLPROVIDER ModelEnum = "authentik_providers_saml.samlprovider" + MODELENUM_PROVIDERS_SAML_SAMLPROPERTYMAPPING ModelEnum = "authentik_providers_saml.samlpropertymapping" + MODELENUM_PROVIDERS_SCIM_SCIMPROVIDER ModelEnum = "authentik_providers_scim.scimprovider" + MODELENUM_PROVIDERS_SCIM_SCIMMAPPING ModelEnum = "authentik_providers_scim.scimmapping" + MODELENUM_RBAC_ROLE ModelEnum = "authentik_rbac.role" + MODELENUM_SOURCES_LDAP_LDAPSOURCE ModelEnum = "authentik_sources_ldap.ldapsource" + MODELENUM_SOURCES_LDAP_LDAPSOURCEPROPERTYMAPPING ModelEnum = "authentik_sources_ldap.ldapsourcepropertymapping" + MODELENUM_SOURCES_OAUTH_OAUTHSOURCE ModelEnum = "authentik_sources_oauth.oauthsource" + MODELENUM_SOURCES_OAUTH_OAUTHSOURCEPROPERTYMAPPING ModelEnum = "authentik_sources_oauth.oauthsourcepropertymapping" + MODELENUM_SOURCES_OAUTH_USEROAUTHSOURCECONNECTION ModelEnum = "authentik_sources_oauth.useroauthsourceconnection" + MODELENUM_SOURCES_OAUTH_GROUPOAUTHSOURCECONNECTION ModelEnum = "authentik_sources_oauth.groupoauthsourceconnection" + MODELENUM_SOURCES_PLEX_PLEXSOURCE ModelEnum = "authentik_sources_plex.plexsource" + MODELENUM_SOURCES_PLEX_PLEXSOURCEPROPERTYMAPPING ModelEnum = "authentik_sources_plex.plexsourcepropertymapping" + MODELENUM_SOURCES_PLEX_USERPLEXSOURCECONNECTION ModelEnum = "authentik_sources_plex.userplexsourceconnection" + MODELENUM_SOURCES_PLEX_GROUPPLEXSOURCECONNECTION ModelEnum = "authentik_sources_plex.groupplexsourceconnection" + MODELENUM_SOURCES_SAML_SAMLSOURCE ModelEnum = "authentik_sources_saml.samlsource" + MODELENUM_SOURCES_SAML_SAMLSOURCEPROPERTYMAPPING ModelEnum = "authentik_sources_saml.samlsourcepropertymapping" + MODELENUM_SOURCES_SAML_USERSAMLSOURCECONNECTION ModelEnum = "authentik_sources_saml.usersamlsourceconnection" + MODELENUM_SOURCES_SAML_GROUPSAMLSOURCECONNECTION ModelEnum = "authentik_sources_saml.groupsamlsourceconnection" + MODELENUM_SOURCES_SCIM_SCIMSOURCE ModelEnum = "authentik_sources_scim.scimsource" + MODELENUM_SOURCES_SCIM_SCIMSOURCEPROPERTYMAPPING ModelEnum = "authentik_sources_scim.scimsourcepropertymapping" + MODELENUM_STAGES_AUTHENTICATOR_DUO_AUTHENTICATORDUOSTAGE ModelEnum = "authentik_stages_authenticator_duo.authenticatorduostage" + MODELENUM_STAGES_AUTHENTICATOR_DUO_DUODEVICE ModelEnum = "authentik_stages_authenticator_duo.duodevice" + MODELENUM_STAGES_AUTHENTICATOR_SMS_AUTHENTICATORSMSSTAGE ModelEnum = "authentik_stages_authenticator_sms.authenticatorsmsstage" + MODELENUM_STAGES_AUTHENTICATOR_SMS_SMSDEVICE ModelEnum = "authentik_stages_authenticator_sms.smsdevice" + MODELENUM_STAGES_AUTHENTICATOR_STATIC_AUTHENTICATORSTATICSTAGE ModelEnum = "authentik_stages_authenticator_static.authenticatorstaticstage" + MODELENUM_STAGES_AUTHENTICATOR_STATIC_STATICDEVICE ModelEnum = "authentik_stages_authenticator_static.staticdevice" + MODELENUM_STAGES_AUTHENTICATOR_TOTP_AUTHENTICATORTOTPSTAGE ModelEnum = "authentik_stages_authenticator_totp.authenticatortotpstage" + MODELENUM_STAGES_AUTHENTICATOR_TOTP_TOTPDEVICE ModelEnum = "authentik_stages_authenticator_totp.totpdevice" + MODELENUM_STAGES_AUTHENTICATOR_VALIDATE_AUTHENTICATORVALIDATESTAGE ModelEnum = "authentik_stages_authenticator_validate.authenticatorvalidatestage" + MODELENUM_STAGES_AUTHENTICATOR_WEBAUTHN_AUTHENTICATORWEBAUTHNSTAGE ModelEnum = "authentik_stages_authenticator_webauthn.authenticatorwebauthnstage" + MODELENUM_STAGES_AUTHENTICATOR_WEBAUTHN_WEBAUTHNDEVICE ModelEnum = "authentik_stages_authenticator_webauthn.webauthndevice" + MODELENUM_STAGES_CAPTCHA_CAPTCHASTAGE ModelEnum = "authentik_stages_captcha.captchastage" + MODELENUM_STAGES_CONSENT_CONSENTSTAGE ModelEnum = "authentik_stages_consent.consentstage" + MODELENUM_STAGES_CONSENT_USERCONSENT ModelEnum = "authentik_stages_consent.userconsent" + MODELENUM_STAGES_DENY_DENYSTAGE ModelEnum = "authentik_stages_deny.denystage" + MODELENUM_STAGES_DUMMY_DUMMYSTAGE ModelEnum = "authentik_stages_dummy.dummystage" + MODELENUM_STAGES_EMAIL_EMAILSTAGE ModelEnum = "authentik_stages_email.emailstage" + MODELENUM_STAGES_IDENTIFICATION_IDENTIFICATIONSTAGE ModelEnum = "authentik_stages_identification.identificationstage" + MODELENUM_STAGES_INVITATION_INVITATIONSTAGE ModelEnum = "authentik_stages_invitation.invitationstage" + MODELENUM_STAGES_INVITATION_INVITATION ModelEnum = "authentik_stages_invitation.invitation" + MODELENUM_STAGES_PASSWORD_PASSWORDSTAGE ModelEnum = "authentik_stages_password.passwordstage" + MODELENUM_STAGES_PROMPT_PROMPT ModelEnum = "authentik_stages_prompt.prompt" + MODELENUM_STAGES_PROMPT_PROMPTSTAGE ModelEnum = "authentik_stages_prompt.promptstage" + MODELENUM_STAGES_USER_DELETE_USERDELETESTAGE ModelEnum = "authentik_stages_user_delete.userdeletestage" + MODELENUM_STAGES_USER_LOGIN_USERLOGINSTAGE ModelEnum = "authentik_stages_user_login.userloginstage" + MODELENUM_STAGES_USER_LOGOUT_USERLOGOUTSTAGE ModelEnum = "authentik_stages_user_logout.userlogoutstage" + MODELENUM_STAGES_USER_WRITE_USERWRITESTAGE ModelEnum = "authentik_stages_user_write.userwritestage" + MODELENUM_BRANDS_BRAND ModelEnum = "authentik_brands.brand" + MODELENUM_BLUEPRINTS_BLUEPRINTINSTANCE ModelEnum = "authentik_blueprints.blueprintinstance" + MODELENUM_CORE_GROUP ModelEnum = "authentik_core.group" + MODELENUM_CORE_USER ModelEnum = "authentik_core.user" + MODELENUM_CORE_APPLICATION ModelEnum = "authentik_core.application" + MODELENUM_CORE_TOKEN ModelEnum = "authentik_core.token" + MODELENUM_ENTERPRISE_LICENSE ModelEnum = "authentik_enterprise.license" + MODELENUM_PROVIDERS_GOOGLE_WORKSPACE_GOOGLEWORKSPACEPROVIDER ModelEnum = "authentik_providers_google_workspace.googleworkspaceprovider" + MODELENUM_PROVIDERS_GOOGLE_WORKSPACE_GOOGLEWORKSPACEPROVIDERMAPPING ModelEnum = "authentik_providers_google_workspace.googleworkspaceprovidermapping" + MODELENUM_PROVIDERS_MICROSOFT_ENTRA_MICROSOFTENTRAPROVIDER ModelEnum = "authentik_providers_microsoft_entra.microsoftentraprovider" + MODELENUM_PROVIDERS_MICROSOFT_ENTRA_MICROSOFTENTRAPROVIDERMAPPING ModelEnum = "authentik_providers_microsoft_entra.microsoftentraprovidermapping" + MODELENUM_PROVIDERS_RAC_RACPROVIDER ModelEnum = "authentik_providers_rac.racprovider" + MODELENUM_PROVIDERS_RAC_ENDPOINT ModelEnum = "authentik_providers_rac.endpoint" + MODELENUM_PROVIDERS_RAC_RACPROPERTYMAPPING ModelEnum = "authentik_providers_rac.racpropertymapping" + MODELENUM_STAGES_AUTHENTICATOR_ENDPOINT_GDTC_AUTHENTICATORENDPOINTGDTCSTAGE ModelEnum = "authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage" + MODELENUM_STAGES_SOURCE_SOURCESTAGE ModelEnum = "authentik_stages_source.sourcestage" + MODELENUM_EVENTS_EVENT ModelEnum = "authentik_events.event" + MODELENUM_EVENTS_NOTIFICATIONTRANSPORT ModelEnum = "authentik_events.notificationtransport" + MODELENUM_EVENTS_NOTIFICATION ModelEnum = "authentik_events.notification" + MODELENUM_EVENTS_NOTIFICATIONRULE ModelEnum = "authentik_events.notificationrule" + MODELENUM_EVENTS_NOTIFICATIONWEBHOOKMAPPING ModelEnum = "authentik_events.notificationwebhookmapping" ) // All allowed values of ModelEnum enum @@ -197,6 +198,7 @@ var AllowedModelEnumEnumValues = []ModelEnum{ "authentik_providers_rac.racprovider", "authentik_providers_rac.endpoint", "authentik_providers_rac.racpropertymapping", + "authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage", "authentik_stages_source.sourcestage", "authentik_events.event", "authentik_events.notificationtransport", diff --git a/model_paginated_authenticator_endpoint_gdtc_stage_list.go b/model_paginated_authenticator_endpoint_gdtc_stage_list.go new file mode 100644 index 000000000..b3884fc97 --- /dev/null +++ b/model_paginated_authenticator_endpoint_gdtc_stage_list.go @@ -0,0 +1,136 @@ +/* +authentik + +Making authentication simple. + +API version: 2024.8.3 +Contact: hello@goauthentik.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// PaginatedAuthenticatorEndpointGDTCStageList struct for PaginatedAuthenticatorEndpointGDTCStageList +type PaginatedAuthenticatorEndpointGDTCStageList struct { + Pagination Pagination `json:"pagination"` + Results []AuthenticatorEndpointGDTCStage `json:"results"` +} + +// NewPaginatedAuthenticatorEndpointGDTCStageList instantiates a new PaginatedAuthenticatorEndpointGDTCStageList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedAuthenticatorEndpointGDTCStageList(pagination Pagination, results []AuthenticatorEndpointGDTCStage) *PaginatedAuthenticatorEndpointGDTCStageList { + this := PaginatedAuthenticatorEndpointGDTCStageList{} + this.Pagination = pagination + this.Results = results + return &this +} + +// NewPaginatedAuthenticatorEndpointGDTCStageListWithDefaults instantiates a new PaginatedAuthenticatorEndpointGDTCStageList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedAuthenticatorEndpointGDTCStageListWithDefaults() *PaginatedAuthenticatorEndpointGDTCStageList { + this := PaginatedAuthenticatorEndpointGDTCStageList{} + return &this +} + +// GetPagination returns the Pagination field value +func (o *PaginatedAuthenticatorEndpointGDTCStageList) GetPagination() Pagination { + if o == nil { + var ret Pagination + return ret + } + + return o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value +// and a boolean to check if the value has been set. +func (o *PaginatedAuthenticatorEndpointGDTCStageList) GetPaginationOk() (*Pagination, bool) { + if o == nil { + return nil, false + } + return &o.Pagination, true +} + +// SetPagination sets field value +func (o *PaginatedAuthenticatorEndpointGDTCStageList) SetPagination(v Pagination) { + o.Pagination = v +} + +// GetResults returns the Results field value +func (o *PaginatedAuthenticatorEndpointGDTCStageList) GetResults() []AuthenticatorEndpointGDTCStage { + if o == nil { + var ret []AuthenticatorEndpointGDTCStage + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedAuthenticatorEndpointGDTCStageList) GetResultsOk() ([]AuthenticatorEndpointGDTCStage, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedAuthenticatorEndpointGDTCStageList) SetResults(v []AuthenticatorEndpointGDTCStage) { + o.Results = v +} + +func (o PaginatedAuthenticatorEndpointGDTCStageList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["pagination"] = o.Pagination + } + if true { + toSerialize["results"] = o.Results + } + return json.Marshal(toSerialize) +} + +type NullablePaginatedAuthenticatorEndpointGDTCStageList struct { + value *PaginatedAuthenticatorEndpointGDTCStageList + isSet bool +} + +func (v NullablePaginatedAuthenticatorEndpointGDTCStageList) Get() *PaginatedAuthenticatorEndpointGDTCStageList { + return v.value +} + +func (v *NullablePaginatedAuthenticatorEndpointGDTCStageList) Set(val *PaginatedAuthenticatorEndpointGDTCStageList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedAuthenticatorEndpointGDTCStageList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedAuthenticatorEndpointGDTCStageList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedAuthenticatorEndpointGDTCStageList(val *PaginatedAuthenticatorEndpointGDTCStageList) *NullablePaginatedAuthenticatorEndpointGDTCStageList { + return &NullablePaginatedAuthenticatorEndpointGDTCStageList{value: val, isSet: true} +} + +func (v NullablePaginatedAuthenticatorEndpointGDTCStageList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedAuthenticatorEndpointGDTCStageList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_paginated_endpoint_device_list.go b/model_paginated_endpoint_device_list.go new file mode 100644 index 000000000..08d907eac --- /dev/null +++ b/model_paginated_endpoint_device_list.go @@ -0,0 +1,136 @@ +/* +authentik + +Making authentication simple. + +API version: 2024.8.3 +Contact: hello@goauthentik.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// PaginatedEndpointDeviceList struct for PaginatedEndpointDeviceList +type PaginatedEndpointDeviceList struct { + Pagination Pagination `json:"pagination"` + Results []EndpointDevice `json:"results"` +} + +// NewPaginatedEndpointDeviceList instantiates a new PaginatedEndpointDeviceList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedEndpointDeviceList(pagination Pagination, results []EndpointDevice) *PaginatedEndpointDeviceList { + this := PaginatedEndpointDeviceList{} + this.Pagination = pagination + this.Results = results + return &this +} + +// NewPaginatedEndpointDeviceListWithDefaults instantiates a new PaginatedEndpointDeviceList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedEndpointDeviceListWithDefaults() *PaginatedEndpointDeviceList { + this := PaginatedEndpointDeviceList{} + return &this +} + +// GetPagination returns the Pagination field value +func (o *PaginatedEndpointDeviceList) GetPagination() Pagination { + if o == nil { + var ret Pagination + return ret + } + + return o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value +// and a boolean to check if the value has been set. +func (o *PaginatedEndpointDeviceList) GetPaginationOk() (*Pagination, bool) { + if o == nil { + return nil, false + } + return &o.Pagination, true +} + +// SetPagination sets field value +func (o *PaginatedEndpointDeviceList) SetPagination(v Pagination) { + o.Pagination = v +} + +// GetResults returns the Results field value +func (o *PaginatedEndpointDeviceList) GetResults() []EndpointDevice { + if o == nil { + var ret []EndpointDevice + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedEndpointDeviceList) GetResultsOk() ([]EndpointDevice, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedEndpointDeviceList) SetResults(v []EndpointDevice) { + o.Results = v +} + +func (o PaginatedEndpointDeviceList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["pagination"] = o.Pagination + } + if true { + toSerialize["results"] = o.Results + } + return json.Marshal(toSerialize) +} + +type NullablePaginatedEndpointDeviceList struct { + value *PaginatedEndpointDeviceList + isSet bool +} + +func (v NullablePaginatedEndpointDeviceList) Get() *PaginatedEndpointDeviceList { + return v.value +} + +func (v *NullablePaginatedEndpointDeviceList) Set(val *PaginatedEndpointDeviceList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedEndpointDeviceList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedEndpointDeviceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedEndpointDeviceList(val *PaginatedEndpointDeviceList) *NullablePaginatedEndpointDeviceList { + return &NullablePaginatedEndpointDeviceList{value: val, isSet: true} +} + +func (v NullablePaginatedEndpointDeviceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedEndpointDeviceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_patched_authenticator_endpoint_gdtc_stage_request.go b/model_patched_authenticator_endpoint_gdtc_stage_request.go new file mode 100644 index 000000000..2b55f75e9 --- /dev/null +++ b/model_patched_authenticator_endpoint_gdtc_stage_request.go @@ -0,0 +1,282 @@ +/* +authentik + +Making authentication simple. + +API version: 2024.8.3 +Contact: hello@goauthentik.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// PatchedAuthenticatorEndpointGDTCStageRequest AuthenticatorEndpointGDTCStage Serializer +type PatchedAuthenticatorEndpointGDTCStageRequest struct { + Name *string `json:"name,omitempty"` + FlowSet []FlowSetRequest `json:"flow_set,omitempty"` + // Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. + ConfigureFlow NullableString `json:"configure_flow,omitempty"` + FriendlyName NullableString `json:"friendly_name,omitempty"` + Credentials interface{} `json:"credentials,omitempty"` +} + +// NewPatchedAuthenticatorEndpointGDTCStageRequest instantiates a new PatchedAuthenticatorEndpointGDTCStageRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedAuthenticatorEndpointGDTCStageRequest() *PatchedAuthenticatorEndpointGDTCStageRequest { + this := PatchedAuthenticatorEndpointGDTCStageRequest{} + return &this +} + +// NewPatchedAuthenticatorEndpointGDTCStageRequestWithDefaults instantiates a new PatchedAuthenticatorEndpointGDTCStageRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedAuthenticatorEndpointGDTCStageRequestWithDefaults() *PatchedAuthenticatorEndpointGDTCStageRequest { + this := PatchedAuthenticatorEndpointGDTCStageRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetName(v string) { + o.Name = &v +} + +// GetFlowSet returns the FlowSet field value if set, zero value otherwise. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetFlowSet() []FlowSetRequest { + if o == nil || o.FlowSet == nil { + var ret []FlowSetRequest + return ret + } + return o.FlowSet +} + +// GetFlowSetOk returns a tuple with the FlowSet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetFlowSetOk() ([]FlowSetRequest, bool) { + if o == nil || o.FlowSet == nil { + return nil, false + } + return o.FlowSet, true +} + +// HasFlowSet returns a boolean if a field has been set. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) HasFlowSet() bool { + if o != nil && o.FlowSet != nil { + return true + } + + return false +} + +// SetFlowSet gets a reference to the given []FlowSetRequest and assigns it to the FlowSet field. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetFlowSet(v []FlowSetRequest) { + o.FlowSet = v +} + +// GetConfigureFlow returns the ConfigureFlow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetConfigureFlow() string { + if o == nil || o.ConfigureFlow.Get() == nil { + var ret string + return ret + } + return *o.ConfigureFlow.Get() +} + +// GetConfigureFlowOk returns a tuple with the ConfigureFlow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetConfigureFlowOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConfigureFlow.Get(), o.ConfigureFlow.IsSet() +} + +// HasConfigureFlow returns a boolean if a field has been set. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) HasConfigureFlow() bool { + if o != nil && o.ConfigureFlow.IsSet() { + return true + } + + return false +} + +// SetConfigureFlow gets a reference to the given NullableString and assigns it to the ConfigureFlow field. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetConfigureFlow(v string) { + o.ConfigureFlow.Set(&v) +} + +// SetConfigureFlowNil sets the value for ConfigureFlow to be an explicit nil +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetConfigureFlowNil() { + o.ConfigureFlow.Set(nil) +} + +// UnsetConfigureFlow ensures that no value is present for ConfigureFlow, not even an explicit nil +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) UnsetConfigureFlow() { + o.ConfigureFlow.Unset() +} + +// GetFriendlyName returns the FriendlyName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetFriendlyName() string { + if o == nil || o.FriendlyName.Get() == nil { + var ret string + return ret + } + return *o.FriendlyName.Get() +} + +// GetFriendlyNameOk returns a tuple with the FriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetFriendlyNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FriendlyName.Get(), o.FriendlyName.IsSet() +} + +// HasFriendlyName returns a boolean if a field has been set. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) HasFriendlyName() bool { + if o != nil && o.FriendlyName.IsSet() { + return true + } + + return false +} + +// SetFriendlyName gets a reference to the given NullableString and assigns it to the FriendlyName field. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetFriendlyName(v string) { + o.FriendlyName.Set(&v) +} + +// SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetFriendlyNameNil() { + o.FriendlyName.Set(nil) +} + +// UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) UnsetFriendlyName() { + o.FriendlyName.Unset() +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetCredentials() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) GetCredentialsOk() (*interface{}, bool) { + if o == nil || o.Credentials == nil { + return nil, false + } + return &o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) HasCredentials() bool { + if o != nil && o.Credentials != nil { + return true + } + + return false +} + +// SetCredentials gets a reference to the given interface{} and assigns it to the Credentials field. +func (o *PatchedAuthenticatorEndpointGDTCStageRequest) SetCredentials(v interface{}) { + o.Credentials = v +} + +func (o PatchedAuthenticatorEndpointGDTCStageRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.FlowSet != nil { + toSerialize["flow_set"] = o.FlowSet + } + if o.ConfigureFlow.IsSet() { + toSerialize["configure_flow"] = o.ConfigureFlow.Get() + } + if o.FriendlyName.IsSet() { + toSerialize["friendly_name"] = o.FriendlyName.Get() + } + if o.Credentials != nil { + toSerialize["credentials"] = o.Credentials + } + return json.Marshal(toSerialize) +} + +type NullablePatchedAuthenticatorEndpointGDTCStageRequest struct { + value *PatchedAuthenticatorEndpointGDTCStageRequest + isSet bool +} + +func (v NullablePatchedAuthenticatorEndpointGDTCStageRequest) Get() *PatchedAuthenticatorEndpointGDTCStageRequest { + return v.value +} + +func (v *NullablePatchedAuthenticatorEndpointGDTCStageRequest) Set(val *PatchedAuthenticatorEndpointGDTCStageRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedAuthenticatorEndpointGDTCStageRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedAuthenticatorEndpointGDTCStageRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedAuthenticatorEndpointGDTCStageRequest(val *PatchedAuthenticatorEndpointGDTCStageRequest) *NullablePatchedAuthenticatorEndpointGDTCStageRequest { + return &NullablePatchedAuthenticatorEndpointGDTCStageRequest{value: val, isSet: true} +} + +func (v NullablePatchedAuthenticatorEndpointGDTCStageRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedAuthenticatorEndpointGDTCStageRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_patched_endpoint_device_request.go b/model_patched_endpoint_device_request.go new file mode 100644 index 000000000..5e3a7ce2c --- /dev/null +++ b/model_patched_endpoint_device_request.go @@ -0,0 +1,151 @@ +/* +authentik + +Making authentication simple. + +API version: 2024.8.3 +Contact: hello@goauthentik.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// PatchedEndpointDeviceRequest Serializer for Endpoint authenticator devices +type PatchedEndpointDeviceRequest struct { + Pk *string `json:"pk,omitempty"` + // The human-readable name of this device. + Name *string `json:"name,omitempty"` +} + +// NewPatchedEndpointDeviceRequest instantiates a new PatchedEndpointDeviceRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedEndpointDeviceRequest() *PatchedEndpointDeviceRequest { + this := PatchedEndpointDeviceRequest{} + return &this +} + +// NewPatchedEndpointDeviceRequestWithDefaults instantiates a new PatchedEndpointDeviceRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedEndpointDeviceRequestWithDefaults() *PatchedEndpointDeviceRequest { + this := PatchedEndpointDeviceRequest{} + return &this +} + +// GetPk returns the Pk field value if set, zero value otherwise. +func (o *PatchedEndpointDeviceRequest) GetPk() string { + if o == nil || o.Pk == nil { + var ret string + return ret + } + return *o.Pk +} + +// GetPkOk returns a tuple with the Pk field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedEndpointDeviceRequest) GetPkOk() (*string, bool) { + if o == nil || o.Pk == nil { + return nil, false + } + return o.Pk, true +} + +// HasPk returns a boolean if a field has been set. +func (o *PatchedEndpointDeviceRequest) HasPk() bool { + if o != nil && o.Pk != nil { + return true + } + + return false +} + +// SetPk gets a reference to the given string and assigns it to the Pk field. +func (o *PatchedEndpointDeviceRequest) SetPk(v string) { + o.Pk = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PatchedEndpointDeviceRequest) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedEndpointDeviceRequest) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PatchedEndpointDeviceRequest) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PatchedEndpointDeviceRequest) SetName(v string) { + o.Name = &v +} + +func (o PatchedEndpointDeviceRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Pk != nil { + toSerialize["pk"] = o.Pk + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullablePatchedEndpointDeviceRequest struct { + value *PatchedEndpointDeviceRequest + isSet bool +} + +func (v NullablePatchedEndpointDeviceRequest) Get() *PatchedEndpointDeviceRequest { + return v.value +} + +func (v *NullablePatchedEndpointDeviceRequest) Set(val *PatchedEndpointDeviceRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedEndpointDeviceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedEndpointDeviceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedEndpointDeviceRequest(val *PatchedEndpointDeviceRequest) *NullablePatchedEndpointDeviceRequest { + return &NullablePatchedEndpointDeviceRequest{value: val, isSet: true} +} + +func (v NullablePatchedEndpointDeviceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedEndpointDeviceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/schema.yml b/schema.yml index f8b547286..23bb4140b 100644 --- a/schema.yml +++ b/schema.yml @@ -636,6 +636,238 @@ paths: schema: $ref: '#/components/schemas/GenericError' description: '' + /authenticators/admin/endpoint/: + get: + operationId: authenticators_admin_endpoint_list + description: Viewset for Endpoint authenticator devices (for admins) + parameters: + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: A search term. + schema: + type: string + tags: + - authenticators + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedEndpointDeviceList' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + post: + operationId: authenticators_admin_endpoint_create + description: Viewset for Endpoint authenticator devices (for admins) + tags: + - authenticators + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointDeviceRequest' + required: true + security: + - authentik: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointDevice' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + /authenticators/admin/endpoint/{uuid}/: + get: + operationId: authenticators_admin_endpoint_retrieve + description: Viewset for Endpoint authenticator devices (for admins) + parameters: + - in: path + name: uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Endpoint Device. + required: true + tags: + - authenticators + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointDevice' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + put: + operationId: authenticators_admin_endpoint_update + description: Viewset for Endpoint authenticator devices (for admins) + parameters: + - in: path + name: uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Endpoint Device. + required: true + tags: + - authenticators + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointDeviceRequest' + required: true + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointDevice' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + patch: + operationId: authenticators_admin_endpoint_partial_update + description: Viewset for Endpoint authenticator devices (for admins) + parameters: + - in: path + name: uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Endpoint Device. + required: true + tags: + - authenticators + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedEndpointDeviceRequest' + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointDevice' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + delete: + operationId: authenticators_admin_endpoint_destroy + description: Viewset for Endpoint authenticator devices (for admins) + parameters: + - in: path + name: uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Endpoint Device. + required: true + tags: + - authenticators + security: + - authentik: [] + responses: + '204': + description: No response body + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' /authenticators/admin/sms/: get: operationId: authenticators_admin_sms_list @@ -1809,10 +2041,10 @@ paths: schema: $ref: '#/components/schemas/GenericError' description: '' - /authenticators/sms/: + /authenticators/endpoint/: get: - operationId: authenticators_sms_list - description: Viewset for sms authenticator devices + operationId: authenticators_endpoint_list + description: Viewset for Endpoint authenticator devices parameters: - in: query name: name @@ -1851,7 +2083,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSMSDeviceList' + $ref: '#/components/schemas/PaginatedEndpointDeviceList' description: '' '400': content: @@ -1865,16 +2097,17 @@ paths: schema: $ref: '#/components/schemas/GenericError' description: '' - /authenticators/sms/{id}/: + /authenticators/endpoint/{uuid}/: get: - operationId: authenticators_sms_retrieve - description: Viewset for sms authenticator devices + operationId: authenticators_endpoint_retrieve + description: Viewset for Endpoint authenticator devices parameters: - in: path - name: id + name: uuid schema: - type: integer - description: A unique integer value identifying this SMS Device. + type: string + format: uuid + description: A UUID string identifying this Endpoint Device. required: true tags: - authenticators @@ -1885,7 +2118,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SMSDevice' + $ref: '#/components/schemas/EndpointDevice' description: '' '400': content: @@ -1899,24 +2132,20 @@ paths: schema: $ref: '#/components/schemas/GenericError' description: '' - put: - operationId: authenticators_sms_update - description: Viewset for sms authenticator devices + /authenticators/endpoint/{uuid}/used_by/: + get: + operationId: authenticators_endpoint_used_by_list + description: Get a list of all objects that use this object parameters: - in: path - name: id + name: uuid schema: - type: integer - description: A unique integer value identifying this SMS Device. + type: string + format: uuid + description: A UUID string identifying this Endpoint Device. required: true tags: - authenticators - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SMSDeviceRequest' - required: true security: - authentik: [] responses: @@ -1924,7 +2153,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SMSDevice' + type: array + items: + $ref: '#/components/schemas/UsedBy' description: '' '400': content: @@ -1938,8 +2169,65 @@ paths: schema: $ref: '#/components/schemas/GenericError' description: '' - patch: - operationId: authenticators_sms_partial_update + /authenticators/sms/: + get: + operationId: authenticators_sms_list + description: Viewset for sms authenticator devices + parameters: + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: A search term. + schema: + type: string + tags: + - authenticators + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedSMSDeviceList' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + /authenticators/sms/{id}/: + get: + operationId: authenticators_sms_retrieve description: Viewset for sms authenticator devices parameters: - in: path @@ -1950,11 +2238,83 @@ paths: required: true tags: - authenticators - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedSMSDeviceRequest' + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/SMSDevice' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + put: + operationId: authenticators_sms_update + description: Viewset for sms authenticator devices + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this SMS Device. + required: true + tags: + - authenticators + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SMSDeviceRequest' + required: true + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/SMSDevice' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + patch: + operationId: authenticators_sms_partial_update + description: Viewset for sms authenticator devices + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this SMS Device. + required: true + tags: + - authenticators + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedSMSDeviceRequest' security: - authentik: [] responses: @@ -22725,6 +23085,7 @@ paths: - authentik_sources_scim.scimsourcepropertymapping - authentik_stages_authenticator_duo.authenticatorduostage - authentik_stages_authenticator_duo.duodevice + - authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage - authentik_stages_authenticator_sms.authenticatorsmsstage - authentik_stages_authenticator_sms.smsdevice - authentik_stages_authenticator_static.authenticatorstaticstage @@ -22959,6 +23320,7 @@ paths: - authentik_sources_scim.scimsourcepropertymapping - authentik_stages_authenticator_duo.authenticatorduostage - authentik_stages_authenticator_duo.duodevice + - authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage - authentik_stages_authenticator_sms.authenticatorsmsstage - authentik_stages_authenticator_sms.smsdevice - authentik_stages_authenticator_static.authenticatorstaticstage @@ -28705,7 +29067,380 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedAuthenticatorDuoStageList' + $ref: '#/components/schemas/PaginatedAuthenticatorDuoStageList' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + post: + operationId: stages_authenticator_duo_create + description: AuthenticatorDuoStage Viewset + tags: + - stages + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStageRequest' + required: true + security: + - authentik: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStage' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + /stages/authenticator/duo/{stage_uuid}/: + get: + operationId: stages_authenticator_duo_retrieve + description: AuthenticatorDuoStage Viewset + parameters: + - in: path + name: stage_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Duo Authenticator Setup Stage. + required: true + tags: + - stages + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStage' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + put: + operationId: stages_authenticator_duo_update + description: AuthenticatorDuoStage Viewset + parameters: + - in: path + name: stage_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Duo Authenticator Setup Stage. + required: true + tags: + - stages + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStageRequest' + required: true + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStage' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + patch: + operationId: stages_authenticator_duo_partial_update + description: AuthenticatorDuoStage Viewset + parameters: + - in: path + name: stage_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Duo Authenticator Setup Stage. + required: true + tags: + - stages + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedAuthenticatorDuoStageRequest' + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStage' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + delete: + operationId: stages_authenticator_duo_destroy + description: AuthenticatorDuoStage Viewset + parameters: + - in: path + name: stage_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Duo Authenticator Setup Stage. + required: true + tags: + - stages + security: + - authentik: [] + responses: + '204': + description: No response body + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + /stages/authenticator/duo/{stage_uuid}/enrollment_status/: + post: + operationId: stages_authenticator_duo_enrollment_status_create + description: Check enrollment status of user details in current session + parameters: + - in: path + name: stage_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Duo Authenticator Setup Stage. + required: true + tags: + - stages + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DuoDeviceEnrollmentStatus' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + /stages/authenticator/duo/{stage_uuid}/import_device_manual/: + post: + operationId: stages_authenticator_duo_import_device_manual_create + description: Import duo devices into authentik + parameters: + - in: path + name: stage_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Duo Authenticator Setup Stage. + required: true + tags: + - stages + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStageManualDeviceImportRequest' + required: true + security: + - authentik: [] + responses: + '204': + description: Enrollment successful + '400': + description: Bad request + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + /stages/authenticator/duo/{stage_uuid}/import_devices_automatic/: + post: + operationId: stages_authenticator_duo_import_devices_automatic_create + description: Import duo devices into authentik + parameters: + - in: path + name: stage_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Duo Authenticator Setup Stage. + required: true + tags: + - stages + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorDuoStageDeviceImportResponse' + description: '' + '400': + description: Bad request + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + /stages/authenticator/duo/{stage_uuid}/used_by/: + get: + operationId: stages_authenticator_duo_used_by_list + description: Get a list of all objects that use this object + parameters: + - in: path + name: stage_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Duo Authenticator Setup Stage. + required: true + tags: + - stages + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UsedBy' + description: '' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + description: '' + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: '' + /stages/authenticator/endpoint_gdtc/: + get: + operationId: stages_authenticator_endpoint_gdtc_list + description: AuthenticatorEndpointGDTCStage Viewset + parameters: + - in: query + name: configure_flow + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: string + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - name: page + required: false + in: query + description: A page number within the paginated result set. + schema: + type: integer + - name: page_size + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: search + required: false + in: query + description: A search term. + schema: + type: string + tags: + - stages + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedAuthenticatorEndpointGDTCStageList' description: '' '400': content: @@ -28720,15 +29455,15 @@ paths: $ref: '#/components/schemas/GenericError' description: '' post: - operationId: stages_authenticator_duo_create - description: AuthenticatorDuoStage Viewset + operationId: stages_authenticator_endpoint_gdtc_create + description: AuthenticatorEndpointGDTCStage Viewset tags: - stages requestBody: content: application/json: schema: - $ref: '#/components/schemas/AuthenticatorDuoStageRequest' + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStageRequest' required: true security: - authentik: [] @@ -28737,7 +29472,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuthenticatorDuoStage' + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStage' description: '' '400': content: @@ -28751,17 +29486,18 @@ paths: schema: $ref: '#/components/schemas/GenericError' description: '' - /stages/authenticator/duo/{stage_uuid}/: + /stages/authenticator/endpoint_gdtc/{stage_uuid}/: get: - operationId: stages_authenticator_duo_retrieve - description: AuthenticatorDuoStage Viewset + operationId: stages_authenticator_endpoint_gdtc_retrieve + description: AuthenticatorEndpointGDTCStage Viewset parameters: - in: path name: stage_uuid schema: type: string format: uuid - description: A UUID string identifying this Duo Authenticator Setup Stage. + description: A UUID string identifying this Endpoint Authenticator Google + Device Trust Connector Stage. required: true tags: - stages @@ -28772,7 +29508,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuthenticatorDuoStage' + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStage' description: '' '400': content: @@ -28787,15 +29523,16 @@ paths: $ref: '#/components/schemas/GenericError' description: '' put: - operationId: stages_authenticator_duo_update - description: AuthenticatorDuoStage Viewset + operationId: stages_authenticator_endpoint_gdtc_update + description: AuthenticatorEndpointGDTCStage Viewset parameters: - in: path name: stage_uuid schema: type: string format: uuid - description: A UUID string identifying this Duo Authenticator Setup Stage. + description: A UUID string identifying this Endpoint Authenticator Google + Device Trust Connector Stage. required: true tags: - stages @@ -28803,7 +29540,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuthenticatorDuoStageRequest' + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStageRequest' required: true security: - authentik: [] @@ -28812,7 +29549,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuthenticatorDuoStage' + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStage' description: '' '400': content: @@ -28827,15 +29564,16 @@ paths: $ref: '#/components/schemas/GenericError' description: '' patch: - operationId: stages_authenticator_duo_partial_update - description: AuthenticatorDuoStage Viewset + operationId: stages_authenticator_endpoint_gdtc_partial_update + description: AuthenticatorEndpointGDTCStage Viewset parameters: - in: path name: stage_uuid schema: type: string format: uuid - description: A UUID string identifying this Duo Authenticator Setup Stage. + description: A UUID string identifying this Endpoint Authenticator Google + Device Trust Connector Stage. required: true tags: - stages @@ -28843,7 +29581,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedAuthenticatorDuoStageRequest' + $ref: '#/components/schemas/PatchedAuthenticatorEndpointGDTCStageRequest' security: - authentik: [] responses: @@ -28851,7 +29589,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuthenticatorDuoStage' + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStage' description: '' '400': content: @@ -28866,15 +29604,16 @@ paths: $ref: '#/components/schemas/GenericError' description: '' delete: - operationId: stages_authenticator_duo_destroy - description: AuthenticatorDuoStage Viewset + operationId: stages_authenticator_endpoint_gdtc_destroy + description: AuthenticatorEndpointGDTCStage Viewset parameters: - in: path name: stage_uuid schema: type: string format: uuid - description: A UUID string identifying this Duo Authenticator Setup Stage. + description: A UUID string identifying this Endpoint Authenticator Google + Device Trust Connector Stage. required: true tags: - stages @@ -28895,108 +29634,9 @@ paths: schema: $ref: '#/components/schemas/GenericError' description: '' - /stages/authenticator/duo/{stage_uuid}/enrollment_status/: - post: - operationId: stages_authenticator_duo_enrollment_status_create - description: Check enrollment status of user details in current session - parameters: - - in: path - name: stage_uuid - schema: - type: string - format: uuid - description: A UUID string identifying this Duo Authenticator Setup Stage. - required: true - tags: - - stages - security: - - authentik: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DuoDeviceEnrollmentStatus' - description: '' - '400': - content: - application/json: - schema: - $ref: '#/components/schemas/ValidationError' - description: '' - '403': - content: - application/json: - schema: - $ref: '#/components/schemas/GenericError' - description: '' - /stages/authenticator/duo/{stage_uuid}/import_device_manual/: - post: - operationId: stages_authenticator_duo_import_device_manual_create - description: Import duo devices into authentik - parameters: - - in: path - name: stage_uuid - schema: - type: string - format: uuid - description: A UUID string identifying this Duo Authenticator Setup Stage. - required: true - tags: - - stages - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticatorDuoStageManualDeviceImportRequest' - required: true - security: - - authentik: [] - responses: - '204': - description: Enrollment successful - '400': - description: Bad request - '403': - content: - application/json: - schema: - $ref: '#/components/schemas/GenericError' - description: '' - /stages/authenticator/duo/{stage_uuid}/import_devices_automatic/: - post: - operationId: stages_authenticator_duo_import_devices_automatic_create - description: Import duo devices into authentik - parameters: - - in: path - name: stage_uuid - schema: - type: string - format: uuid - description: A UUID string identifying this Duo Authenticator Setup Stage. - required: true - tags: - - stages - security: - - authentik: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticatorDuoStageDeviceImportResponse' - description: '' - '400': - description: Bad request - '403': - content: - application/json: - schema: - $ref: '#/components/schemas/GenericError' - description: '' - /stages/authenticator/duo/{stage_uuid}/used_by/: + /stages/authenticator/endpoint_gdtc/{stage_uuid}/used_by/: get: - operationId: stages_authenticator_duo_used_by_list + operationId: stages_authenticator_endpoint_gdtc_used_by_list description: Get a list of all objects that use this object parameters: - in: path @@ -29004,7 +29644,8 @@ paths: schema: type: string format: uuid - description: A UUID string identifying this Duo Authenticator Setup Stage. + description: A UUID string identifying this Endpoint Authenticator Google + Device Trust Connector Stage. required: true tags: - stages @@ -35915,6 +36556,7 @@ components: - authentik.enterprise.providers.google_workspace - authentik.enterprise.providers.microsoft_entra - authentik.enterprise.providers.rac + - authentik.enterprise.stages.authenticator_endpoint_gdtc - authentik.enterprise.stages.source - authentik.events type: string @@ -36380,6 +37022,80 @@ components: - client_id - client_secret - name + AuthenticatorEndpointGDTCStage: + type: object + description: AuthenticatorEndpointGDTCStage Serializer + properties: + pk: + type: string + format: uuid + readOnly: true + title: Stage uuid + name: + type: string + component: + type: string + description: Get object type so that we know how to edit the object + readOnly: true + verbose_name: + type: string + description: Return object's verbose_name + readOnly: true + verbose_name_plural: + type: string + description: Return object's plural verbose_name + readOnly: true + meta_model_name: + type: string + description: Return internal model name + readOnly: true + flow_set: + type: array + items: + $ref: '#/components/schemas/FlowSet' + configure_flow: + type: string + format: uuid + nullable: true + description: Flow used by an authenticated user to configure this Stage. + If empty, user will not be able to configure this stage. + friendly_name: + type: string + nullable: true + credentials: {} + required: + - component + - credentials + - meta_model_name + - name + - pk + - verbose_name + - verbose_name_plural + AuthenticatorEndpointGDTCStageRequest: + type: object + description: AuthenticatorEndpointGDTCStage Serializer + properties: + name: + type: string + minLength: 1 + flow_set: + type: array + items: + $ref: '#/components/schemas/FlowSetRequest' + configure_flow: + type: string + format: uuid + nullable: true + description: Flow used by an authenticated user to configure this Stage. + If empty, user will not be able to configure this stage. + friendly_name: + type: string + nullable: true + minLength: 1 + credentials: {} + required: + - credentials + - name AuthenticatorSMSChallenge: type: object description: SMS Setup challenge @@ -37629,6 +38345,7 @@ components: - $ref: '#/components/schemas/DummyChallenge' - $ref: '#/components/schemas/EmailChallenge' - $ref: '#/components/schemas/FlowErrorChallenge' + - $ref: '#/components/schemas/FrameChallenge' - $ref: '#/components/schemas/IdentificationChallenge' - $ref: '#/components/schemas/OAuthDeviceCodeChallenge' - $ref: '#/components/schemas/OAuthDeviceCodeFinishChallenge' @@ -37656,6 +38373,7 @@ components: ak-stage-dummy: '#/components/schemas/DummyChallenge' ak-stage-email: '#/components/schemas/EmailChallenge' ak-stage-flow-error: '#/components/schemas/FlowErrorChallenge' + xak-flow-frame: '#/components/schemas/FrameChallenge' ak-stage-identification: '#/components/schemas/IdentificationChallenge' ak-provider-oauth2-device-code: '#/components/schemas/OAuthDeviceCodeChallenge' ak-provider-oauth2-device-code-finish: '#/components/schemas/OAuthDeviceCodeFinishChallenge' @@ -38316,7 +39034,7 @@ components: description: Return internal model name readOnly: true pk: - type: integer + type: string name: type: string type: @@ -38929,6 +39647,35 @@ components: - protocol - provider - provider_obj + EndpointDevice: + type: object + description: Serializer for Endpoint authenticator devices + properties: + pk: + type: string + format: uuid + title: Uuid + name: + type: string + description: The human-readable name of this device. + maxLength: 64 + required: + - name + EndpointDeviceRequest: + type: object + description: Serializer for Endpoint authenticator devices + properties: + pk: + type: string + format: uuid + title: Uuid + name: + type: string + minLength: 1 + description: The human-readable name of this device. + maxLength: 64 + required: + - name EndpointRequest: type: object description: Endpoint Serializer @@ -39525,6 +40272,7 @@ components: - $ref: '#/components/schemas/ConsentChallengeResponseRequest' - $ref: '#/components/schemas/DummyChallengeResponseRequest' - $ref: '#/components/schemas/EmailChallengeResponseRequest' + - $ref: '#/components/schemas/FrameChallengeResponseRequest' - $ref: '#/components/schemas/IdentificationChallengeResponseRequest' - $ref: '#/components/schemas/OAuthDeviceCodeChallengeResponseRequest' - $ref: '#/components/schemas/OAuthDeviceCodeFinishChallengeResponseRequest' @@ -39547,6 +40295,7 @@ components: ak-stage-consent: '#/components/schemas/ConsentChallengeResponseRequest' ak-stage-dummy: '#/components/schemas/DummyChallengeResponseRequest' ak-stage-email: '#/components/schemas/EmailChallengeResponseRequest' + xak-flow-frame: '#/components/schemas/FrameChallengeResponseRequest' ak-stage-identification: '#/components/schemas/IdentificationChallengeResponseRequest' ak-provider-oauth2-device-code: '#/components/schemas/OAuthDeviceCodeChallengeResponseRequest' ak-provider-oauth2-device-code-finish: '#/components/schemas/OAuthDeviceCodeFinishChallengeResponseRequest' @@ -39903,6 +40652,39 @@ components: required: - href - name + FrameChallenge: + type: object + description: Challenge type to render a frame + properties: + flow_info: + $ref: '#/components/schemas/ContextualFlowInfo' + component: + type: string + default: xak-flow-frame + response_errors: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/ErrorDetail' + url: + type: string + loading_overlay: + type: boolean + default: false + loading_text: + type: string + required: + - loading_text + - url + FrameChallengeResponseRequest: + type: object + description: Base class for all challenge responses + properties: + component: + type: string + minLength: 1 + default: xak-flow-frame GenericError: type: object description: Generic API Error @@ -42142,6 +42924,7 @@ components: - authentik_providers_rac.racprovider - authentik_providers_rac.endpoint - authentik_providers_rac.racpropertymapping + - authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage - authentik_stages_source.sourcestage - authentik_events.event - authentik_events.notificationtransport @@ -43235,6 +44018,18 @@ components: required: - pagination - results + PaginatedAuthenticatorEndpointGDTCStageList: + type: object + properties: + pagination: + $ref: '#/components/schemas/Pagination' + results: + type: array + items: + $ref: '#/components/schemas/AuthenticatorEndpointGDTCStage' + required: + - pagination + - results PaginatedAuthenticatorSMSStageList: type: object properties: @@ -43451,6 +44246,18 @@ components: required: - pagination - results + PaginatedEndpointDeviceList: + type: object + properties: + pagination: + $ref: '#/components/schemas/Pagination' + results: + type: array + items: + $ref: '#/components/schemas/EndpointDevice' + required: + - pagination + - results PaginatedEndpointList: type: object properties: @@ -45088,6 +45895,28 @@ components: admin_secret_key: type: string writeOnly: true + PatchedAuthenticatorEndpointGDTCStageRequest: + type: object + description: AuthenticatorEndpointGDTCStage Serializer + properties: + name: + type: string + minLength: 1 + flow_set: + type: array + items: + $ref: '#/components/schemas/FlowSetRequest' + configure_flow: + type: string + format: uuid + nullable: true + description: Flow used by an authenticated user to configure this Stage. + If empty, user will not be able to configure this stage. + friendly_name: + type: string + nullable: true + minLength: 1 + credentials: {} PatchedAuthenticatorSMSStageRequest: type: object description: AuthenticatorSMSStage Serializer @@ -45569,6 +46398,19 @@ components: activate_user_on_success: type: boolean description: Activate users upon completion of stage. + PatchedEndpointDeviceRequest: + type: object + description: Serializer for Endpoint authenticator devices + properties: + pk: + type: string + format: uuid + title: Uuid + name: + type: string + minLength: 1 + description: The human-readable name of this device. + maxLength: 64 PatchedEndpointRequest: type: object description: Endpoint Serializer