1use crate::models;
12
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum ModelEnum {
17 #[serde(rename = "authentik_tenants.domain")]
18 TenantsPeriodDomain,
19 #[serde(rename = "authentik_crypto.certificatekeypair")]
20 CryptoPeriodCertificatekeypair,
21 #[serde(rename = "authentik_flows.flow")]
22 FlowsPeriodFlow,
23 #[serde(rename = "authentik_flows.flowstagebinding")]
24 FlowsPeriodFlowstagebinding,
25 #[serde(rename = "authentik_outposts.dockerserviceconnection")]
26 OutpostsPeriodDockerserviceconnection,
27 #[serde(rename = "authentik_outposts.kubernetesserviceconnection")]
28 OutpostsPeriodKubernetesserviceconnection,
29 #[serde(rename = "authentik_outposts.outpost")]
30 OutpostsPeriodOutpost,
31 #[serde(rename = "authentik_policies_dummy.dummypolicy")]
32 PoliciesDummyPeriodDummypolicy,
33 #[serde(rename = "authentik_policies_event_matcher.eventmatcherpolicy")]
34 PoliciesEventMatcherPeriodEventmatcherpolicy,
35 #[serde(rename = "authentik_policies_expiry.passwordexpirypolicy")]
36 PoliciesExpiryPeriodPasswordexpirypolicy,
37 #[serde(rename = "authentik_policies_expression.expressionpolicy")]
38 PoliciesExpressionPeriodExpressionpolicy,
39 #[serde(rename = "authentik_policies_password.passwordpolicy")]
40 PoliciesPasswordPeriodPasswordpolicy,
41 #[serde(rename = "authentik_policies_reputation.reputationpolicy")]
42 PoliciesReputationPeriodReputationpolicy,
43 #[serde(rename = "authentik_policies.policybinding")]
44 PoliciesPeriodPolicybinding,
45 #[serde(rename = "authentik_providers_ldap.ldapprovider")]
46 ProvidersLdapPeriodLdapprovider,
47 #[serde(rename = "authentik_providers_oauth2.scopemapping")]
48 ProvidersOauth2PeriodScopemapping,
49 #[serde(rename = "authentik_providers_oauth2.oauth2provider")]
50 ProvidersOauth2PeriodOauth2provider,
51 #[serde(rename = "authentik_providers_proxy.proxyprovider")]
52 ProvidersProxyPeriodProxyprovider,
53 #[serde(rename = "authentik_providers_radius.radiusprovider")]
54 ProvidersRadiusPeriodRadiusprovider,
55 #[serde(rename = "authentik_providers_saml.samlprovider")]
56 ProvidersSamlPeriodSamlprovider,
57 #[serde(rename = "authentik_providers_saml.samlpropertymapping")]
58 ProvidersSamlPeriodSamlpropertymapping,
59 #[serde(rename = "authentik_providers_scim.scimprovider")]
60 ProvidersScimPeriodScimprovider,
61 #[serde(rename = "authentik_providers_scim.scimmapping")]
62 ProvidersScimPeriodScimmapping,
63 #[serde(rename = "authentik_rbac.role")]
64 RbacPeriodRole,
65 #[serde(rename = "authentik_sources_ldap.ldapsource")]
66 SourcesLdapPeriodLdapsource,
67 #[serde(rename = "authentik_sources_ldap.ldappropertymapping")]
68 SourcesLdapPeriodLdappropertymapping,
69 #[serde(rename = "authentik_sources_oauth.oauthsource")]
70 SourcesOauthPeriodOauthsource,
71 #[serde(rename = "authentik_sources_oauth.useroauthsourceconnection")]
72 SourcesOauthPeriodUseroauthsourceconnection,
73 #[serde(rename = "authentik_sources_plex.plexsource")]
74 SourcesPlexPeriodPlexsource,
75 #[serde(rename = "authentik_sources_plex.plexsourceconnection")]
76 SourcesPlexPeriodPlexsourceconnection,
77 #[serde(rename = "authentik_sources_saml.samlsource")]
78 SourcesSamlPeriodSamlsource,
79 #[serde(rename = "authentik_sources_saml.usersamlsourceconnection")]
80 SourcesSamlPeriodUsersamlsourceconnection,
81 #[serde(rename = "authentik_stages_authenticator_duo.authenticatorduostage")]
82 StagesAuthenticatorDuoPeriodAuthenticatorduostage,
83 #[serde(rename = "authentik_stages_authenticator_duo.duodevice")]
84 StagesAuthenticatorDuoPeriodDuodevice,
85 #[serde(rename = "authentik_stages_authenticator_sms.authenticatorsmsstage")]
86 StagesAuthenticatorSmsPeriodAuthenticatorsmsstage,
87 #[serde(rename = "authentik_stages_authenticator_sms.smsdevice")]
88 StagesAuthenticatorSmsPeriodSmsdevice,
89 #[serde(rename = "authentik_stages_authenticator_static.authenticatorstaticstage")]
90 StagesAuthenticatorStaticPeriodAuthenticatorstaticstage,
91 #[serde(rename = "authentik_stages_authenticator_static.staticdevice")]
92 StagesAuthenticatorStaticPeriodStaticdevice,
93 #[serde(rename = "authentik_stages_authenticator_totp.authenticatortotpstage")]
94 StagesAuthenticatorTotpPeriodAuthenticatortotpstage,
95 #[serde(rename = "authentik_stages_authenticator_totp.totpdevice")]
96 StagesAuthenticatorTotpPeriodTotpdevice,
97 #[serde(rename = "authentik_stages_authenticator_validate.authenticatorvalidatestage")]
98 StagesAuthenticatorValidatePeriodAuthenticatorvalidatestage,
99 #[serde(rename = "authentik_stages_authenticator_webauthn.authenticatewebauthnstage")]
100 StagesAuthenticatorWebauthnPeriodAuthenticatewebauthnstage,
101 #[serde(rename = "authentik_stages_authenticator_webauthn.webauthndevice")]
102 StagesAuthenticatorWebauthnPeriodWebauthndevice,
103 #[serde(rename = "authentik_stages_captcha.captchastage")]
104 StagesCaptchaPeriodCaptchastage,
105 #[serde(rename = "authentik_stages_consent.consentstage")]
106 StagesConsentPeriodConsentstage,
107 #[serde(rename = "authentik_stages_consent.userconsent")]
108 StagesConsentPeriodUserconsent,
109 #[serde(rename = "authentik_stages_deny.denystage")]
110 StagesDenyPeriodDenystage,
111 #[serde(rename = "authentik_stages_dummy.dummystage")]
112 StagesDummyPeriodDummystage,
113 #[serde(rename = "authentik_stages_email.emailstage")]
114 StagesEmailPeriodEmailstage,
115 #[serde(rename = "authentik_stages_identification.identificationstage")]
116 StagesIdentificationPeriodIdentificationstage,
117 #[serde(rename = "authentik_stages_invitation.invitationstage")]
118 StagesInvitationPeriodInvitationstage,
119 #[serde(rename = "authentik_stages_invitation.invitation")]
120 StagesInvitationPeriodInvitation,
121 #[serde(rename = "authentik_stages_password.passwordstage")]
122 StagesPasswordPeriodPasswordstage,
123 #[serde(rename = "authentik_stages_prompt.prompt")]
124 StagesPromptPeriodPrompt,
125 #[serde(rename = "authentik_stages_prompt.promptstage")]
126 StagesPromptPeriodPromptstage,
127 #[serde(rename = "authentik_stages_user_delete.userdeletestage")]
128 StagesUserDeletePeriodUserdeletestage,
129 #[serde(rename = "authentik_stages_user_login.userloginstage")]
130 StagesUserLoginPeriodUserloginstage,
131 #[serde(rename = "authentik_stages_user_logout.userlogoutstage")]
132 StagesUserLogoutPeriodUserlogoutstage,
133 #[serde(rename = "authentik_stages_user_write.userwritestage")]
134 StagesUserWritePeriodUserwritestage,
135 #[serde(rename = "authentik_brands.brand")]
136 BrandsPeriodBrand,
137 #[serde(rename = "authentik_blueprints.blueprintinstance")]
138 BlueprintsPeriodBlueprintinstance,
139 #[serde(rename = "authentik_core.group")]
140 CorePeriodGroup,
141 #[serde(rename = "authentik_core.user")]
142 CorePeriodUser,
143 #[serde(rename = "authentik_core.application")]
144 CorePeriodApplication,
145 #[serde(rename = "authentik_core.token")]
146 CorePeriodToken,
147 #[serde(rename = "authentik_enterprise.license")]
148 EnterprisePeriodLicense,
149 #[serde(rename = "authentik_providers_rac.racprovider")]
150 ProvidersRacPeriodRacprovider,
151 #[serde(rename = "authentik_providers_rac.endpoint")]
152 ProvidersRacPeriodEndpoint,
153 #[serde(rename = "authentik_providers_rac.racpropertymapping")]
154 ProvidersRacPeriodRacpropertymapping,
155 #[serde(rename = "authentik_events.event")]
156 EventsPeriodEvent,
157 #[serde(rename = "authentik_events.notificationtransport")]
158 EventsPeriodNotificationtransport,
159 #[serde(rename = "authentik_events.notification")]
160 EventsPeriodNotification,
161 #[serde(rename = "authentik_events.notificationrule")]
162 EventsPeriodNotificationrule,
163 #[serde(rename = "authentik_events.notificationwebhookmapping")]
164 EventsPeriodNotificationwebhookmapping,
165
166}
167
168impl ToString for ModelEnum {
169 fn to_string(&self) -> String {
170 match self {
171 Self::TenantsPeriodDomain => String::from("authentik_tenants.domain"),
172 Self::CryptoPeriodCertificatekeypair => String::from("authentik_crypto.certificatekeypair"),
173 Self::FlowsPeriodFlow => String::from("authentik_flows.flow"),
174 Self::FlowsPeriodFlowstagebinding => String::from("authentik_flows.flowstagebinding"),
175 Self::OutpostsPeriodDockerserviceconnection => String::from("authentik_outposts.dockerserviceconnection"),
176 Self::OutpostsPeriodKubernetesserviceconnection => String::from("authentik_outposts.kubernetesserviceconnection"),
177 Self::OutpostsPeriodOutpost => String::from("authentik_outposts.outpost"),
178 Self::PoliciesDummyPeriodDummypolicy => String::from("authentik_policies_dummy.dummypolicy"),
179 Self::PoliciesEventMatcherPeriodEventmatcherpolicy => String::from("authentik_policies_event_matcher.eventmatcherpolicy"),
180 Self::PoliciesExpiryPeriodPasswordexpirypolicy => String::from("authentik_policies_expiry.passwordexpirypolicy"),
181 Self::PoliciesExpressionPeriodExpressionpolicy => String::from("authentik_policies_expression.expressionpolicy"),
182 Self::PoliciesPasswordPeriodPasswordpolicy => String::from("authentik_policies_password.passwordpolicy"),
183 Self::PoliciesReputationPeriodReputationpolicy => String::from("authentik_policies_reputation.reputationpolicy"),
184 Self::PoliciesPeriodPolicybinding => String::from("authentik_policies.policybinding"),
185 Self::ProvidersLdapPeriodLdapprovider => String::from("authentik_providers_ldap.ldapprovider"),
186 Self::ProvidersOauth2PeriodScopemapping => String::from("authentik_providers_oauth2.scopemapping"),
187 Self::ProvidersOauth2PeriodOauth2provider => String::from("authentik_providers_oauth2.oauth2provider"),
188 Self::ProvidersProxyPeriodProxyprovider => String::from("authentik_providers_proxy.proxyprovider"),
189 Self::ProvidersRadiusPeriodRadiusprovider => String::from("authentik_providers_radius.radiusprovider"),
190 Self::ProvidersSamlPeriodSamlprovider => String::from("authentik_providers_saml.samlprovider"),
191 Self::ProvidersSamlPeriodSamlpropertymapping => String::from("authentik_providers_saml.samlpropertymapping"),
192 Self::ProvidersScimPeriodScimprovider => String::from("authentik_providers_scim.scimprovider"),
193 Self::ProvidersScimPeriodScimmapping => String::from("authentik_providers_scim.scimmapping"),
194 Self::RbacPeriodRole => String::from("authentik_rbac.role"),
195 Self::SourcesLdapPeriodLdapsource => String::from("authentik_sources_ldap.ldapsource"),
196 Self::SourcesLdapPeriodLdappropertymapping => String::from("authentik_sources_ldap.ldappropertymapping"),
197 Self::SourcesOauthPeriodOauthsource => String::from("authentik_sources_oauth.oauthsource"),
198 Self::SourcesOauthPeriodUseroauthsourceconnection => String::from("authentik_sources_oauth.useroauthsourceconnection"),
199 Self::SourcesPlexPeriodPlexsource => String::from("authentik_sources_plex.plexsource"),
200 Self::SourcesPlexPeriodPlexsourceconnection => String::from("authentik_sources_plex.plexsourceconnection"),
201 Self::SourcesSamlPeriodSamlsource => String::from("authentik_sources_saml.samlsource"),
202 Self::SourcesSamlPeriodUsersamlsourceconnection => String::from("authentik_sources_saml.usersamlsourceconnection"),
203 Self::StagesAuthenticatorDuoPeriodAuthenticatorduostage => String::from("authentik_stages_authenticator_duo.authenticatorduostage"),
204 Self::StagesAuthenticatorDuoPeriodDuodevice => String::from("authentik_stages_authenticator_duo.duodevice"),
205 Self::StagesAuthenticatorSmsPeriodAuthenticatorsmsstage => String::from("authentik_stages_authenticator_sms.authenticatorsmsstage"),
206 Self::StagesAuthenticatorSmsPeriodSmsdevice => String::from("authentik_stages_authenticator_sms.smsdevice"),
207 Self::StagesAuthenticatorStaticPeriodAuthenticatorstaticstage => String::from("authentik_stages_authenticator_static.authenticatorstaticstage"),
208 Self::StagesAuthenticatorStaticPeriodStaticdevice => String::from("authentik_stages_authenticator_static.staticdevice"),
209 Self::StagesAuthenticatorTotpPeriodAuthenticatortotpstage => String::from("authentik_stages_authenticator_totp.authenticatortotpstage"),
210 Self::StagesAuthenticatorTotpPeriodTotpdevice => String::from("authentik_stages_authenticator_totp.totpdevice"),
211 Self::StagesAuthenticatorValidatePeriodAuthenticatorvalidatestage => String::from("authentik_stages_authenticator_validate.authenticatorvalidatestage"),
212 Self::StagesAuthenticatorWebauthnPeriodAuthenticatewebauthnstage => String::from("authentik_stages_authenticator_webauthn.authenticatewebauthnstage"),
213 Self::StagesAuthenticatorWebauthnPeriodWebauthndevice => String::from("authentik_stages_authenticator_webauthn.webauthndevice"),
214 Self::StagesCaptchaPeriodCaptchastage => String::from("authentik_stages_captcha.captchastage"),
215 Self::StagesConsentPeriodConsentstage => String::from("authentik_stages_consent.consentstage"),
216 Self::StagesConsentPeriodUserconsent => String::from("authentik_stages_consent.userconsent"),
217 Self::StagesDenyPeriodDenystage => String::from("authentik_stages_deny.denystage"),
218 Self::StagesDummyPeriodDummystage => String::from("authentik_stages_dummy.dummystage"),
219 Self::StagesEmailPeriodEmailstage => String::from("authentik_stages_email.emailstage"),
220 Self::StagesIdentificationPeriodIdentificationstage => String::from("authentik_stages_identification.identificationstage"),
221 Self::StagesInvitationPeriodInvitationstage => String::from("authentik_stages_invitation.invitationstage"),
222 Self::StagesInvitationPeriodInvitation => String::from("authentik_stages_invitation.invitation"),
223 Self::StagesPasswordPeriodPasswordstage => String::from("authentik_stages_password.passwordstage"),
224 Self::StagesPromptPeriodPrompt => String::from("authentik_stages_prompt.prompt"),
225 Self::StagesPromptPeriodPromptstage => String::from("authentik_stages_prompt.promptstage"),
226 Self::StagesUserDeletePeriodUserdeletestage => String::from("authentik_stages_user_delete.userdeletestage"),
227 Self::StagesUserLoginPeriodUserloginstage => String::from("authentik_stages_user_login.userloginstage"),
228 Self::StagesUserLogoutPeriodUserlogoutstage => String::from("authentik_stages_user_logout.userlogoutstage"),
229 Self::StagesUserWritePeriodUserwritestage => String::from("authentik_stages_user_write.userwritestage"),
230 Self::BrandsPeriodBrand => String::from("authentik_brands.brand"),
231 Self::BlueprintsPeriodBlueprintinstance => String::from("authentik_blueprints.blueprintinstance"),
232 Self::CorePeriodGroup => String::from("authentik_core.group"),
233 Self::CorePeriodUser => String::from("authentik_core.user"),
234 Self::CorePeriodApplication => String::from("authentik_core.application"),
235 Self::CorePeriodToken => String::from("authentik_core.token"),
236 Self::EnterprisePeriodLicense => String::from("authentik_enterprise.license"),
237 Self::ProvidersRacPeriodRacprovider => String::from("authentik_providers_rac.racprovider"),
238 Self::ProvidersRacPeriodEndpoint => String::from("authentik_providers_rac.endpoint"),
239 Self::ProvidersRacPeriodRacpropertymapping => String::from("authentik_providers_rac.racpropertymapping"),
240 Self::EventsPeriodEvent => String::from("authentik_events.event"),
241 Self::EventsPeriodNotificationtransport => String::from("authentik_events.notificationtransport"),
242 Self::EventsPeriodNotification => String::from("authentik_events.notification"),
243 Self::EventsPeriodNotificationrule => String::from("authentik_events.notificationrule"),
244 Self::EventsPeriodNotificationwebhookmapping => String::from("authentik_events.notificationwebhookmapping"),
245 }
246 }
247}
248
249impl Default for ModelEnum {
250 fn default() -> ModelEnum {
251 Self::TenantsPeriodDomain
252 }
253}
254