fusionauth_rust_client/models/
tenant.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Tenant {
17 #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
18 pub data: Option<std::collections::HashMap<String, serde_json::Value>>,
19 #[serde(rename = "accessControlConfiguration", skip_serializing_if = "Option::is_none")]
20 pub access_control_configuration: Option<Box<models::TenantAccessControlConfiguration>>,
21 #[serde(rename = "captchaConfiguration", skip_serializing_if = "Option::is_none")]
22 pub captcha_configuration: Option<Box<models::TenantCaptchaConfiguration>>,
23 #[serde(rename = "configured", skip_serializing_if = "Option::is_none")]
24 pub configured: Option<bool>,
25 #[serde(rename = "connectorPolicies", skip_serializing_if = "Option::is_none")]
26 pub connector_policies: Option<Vec<models::ConnectorPolicy>>,
27 #[serde(rename = "emailConfiguration", skip_serializing_if = "Option::is_none")]
28 pub email_configuration: Option<Box<models::EmailConfiguration>>,
29 #[serde(rename = "eventConfiguration", skip_serializing_if = "Option::is_none")]
30 pub event_configuration: Option<Box<models::EventConfiguration>>,
31 #[serde(rename = "externalIdentifierConfiguration", skip_serializing_if = "Option::is_none")]
32 pub external_identifier_configuration: Option<Box<models::ExternalIdentifierConfiguration>>,
33 #[serde(rename = "failedAuthenticationConfiguration", skip_serializing_if = "Option::is_none")]
34 pub failed_authentication_configuration: Option<Box<models::FailedAuthenticationConfiguration>>,
35 #[serde(rename = "familyConfiguration", skip_serializing_if = "Option::is_none")]
36 pub family_configuration: Option<Box<models::FamilyConfiguration>>,
37 #[serde(rename = "formConfiguration", skip_serializing_if = "Option::is_none")]
38 pub form_configuration: Option<Box<models::TenantFormConfiguration>>,
39 #[serde(rename = "httpSessionMaxInactiveInterval", skip_serializing_if = "Option::is_none")]
40 pub http_session_max_inactive_interval: Option<i32>,
41 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
42 pub id: Option<uuid::Uuid>,
43 #[serde(rename = "insertInstant", skip_serializing_if = "Option::is_none")]
45 pub insert_instant: Option<i64>,
46 #[serde(rename = "issuer", skip_serializing_if = "Option::is_none")]
47 pub issuer: Option<String>,
48 #[serde(rename = "jwtConfiguration", skip_serializing_if = "Option::is_none")]
49 pub jwt_configuration: Option<Box<models::JwtConfiguration>>,
50 #[serde(rename = "lambdaConfiguration", skip_serializing_if = "Option::is_none")]
51 pub lambda_configuration: Option<Box<models::TenantLambdaConfiguration>>,
52 #[serde(rename = "lastUpdateInstant", skip_serializing_if = "Option::is_none")]
54 pub last_update_instant: Option<i64>,
55 #[serde(rename = "loginConfiguration", skip_serializing_if = "Option::is_none")]
56 pub login_configuration: Option<Box<models::TenantLoginConfiguration>>,
57 #[serde(rename = "logoutURL", skip_serializing_if = "Option::is_none")]
58 pub logout_url: Option<String>,
59 #[serde(rename = "maximumPasswordAge", skip_serializing_if = "Option::is_none")]
60 pub maximum_password_age: Option<Box<models::MaximumPasswordAge>>,
61 #[serde(rename = "minimumPasswordAge", skip_serializing_if = "Option::is_none")]
62 pub minimum_password_age: Option<Box<models::MinimumPasswordAge>>,
63 #[serde(rename = "multiFactorConfiguration", skip_serializing_if = "Option::is_none")]
64 pub multi_factor_configuration: Option<Box<models::TenantMultiFactorConfiguration>>,
65 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
66 pub name: Option<String>,
67 #[serde(rename = "oauthConfiguration", skip_serializing_if = "Option::is_none")]
68 pub oauth_configuration: Option<Box<models::TenantOAuth2Configuration>>,
69 #[serde(rename = "passwordEncryptionConfiguration", skip_serializing_if = "Option::is_none")]
70 pub password_encryption_configuration: Option<Box<models::PasswordEncryptionConfiguration>>,
71 #[serde(rename = "passwordValidationRules", skip_serializing_if = "Option::is_none")]
72 pub password_validation_rules: Option<Box<models::PasswordValidationRules>>,
73 #[serde(rename = "phoneConfiguration", skip_serializing_if = "Option::is_none")]
74 pub phone_configuration: Option<Box<models::TenantPhoneConfiguration>>,
75 #[serde(rename = "rateLimitConfiguration", skip_serializing_if = "Option::is_none")]
76 pub rate_limit_configuration: Option<Box<models::TenantRateLimitConfiguration>>,
77 #[serde(rename = "registrationConfiguration", skip_serializing_if = "Option::is_none")]
78 pub registration_configuration: Option<Box<models::TenantRegistrationConfiguration>>,
79 #[serde(rename = "scimServerConfiguration", skip_serializing_if = "Option::is_none")]
80 pub scim_server_configuration: Option<Box<models::TenantScimServerConfiguration>>,
81 #[serde(rename = "ssoConfiguration", skip_serializing_if = "Option::is_none")]
82 pub sso_configuration: Option<Box<models::TenantSsoConfiguration>>,
83 #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
84 pub state: Option<models::ObjectState>,
85 #[serde(rename = "themeId", skip_serializing_if = "Option::is_none")]
86 pub theme_id: Option<uuid::Uuid>,
87 #[serde(rename = "userDeletePolicy", skip_serializing_if = "Option::is_none")]
88 pub user_delete_policy: Option<Box<models::TenantUserDeletePolicy>>,
89 #[serde(rename = "usernameConfiguration", skip_serializing_if = "Option::is_none")]
90 pub username_configuration: Option<Box<models::TenantUsernameConfiguration>>,
91 #[serde(rename = "webAuthnConfiguration", skip_serializing_if = "Option::is_none")]
92 pub web_authn_configuration: Option<Box<models::TenantWebAuthnConfiguration>>,
93}
94
95impl Tenant {
96 pub fn new() -> Tenant {
98 Tenant {
99 data: None,
100 access_control_configuration: None,
101 captcha_configuration: None,
102 configured: None,
103 connector_policies: None,
104 email_configuration: None,
105 event_configuration: None,
106 external_identifier_configuration: None,
107 failed_authentication_configuration: None,
108 family_configuration: None,
109 form_configuration: None,
110 http_session_max_inactive_interval: None,
111 id: None,
112 insert_instant: None,
113 issuer: None,
114 jwt_configuration: None,
115 lambda_configuration: None,
116 last_update_instant: None,
117 login_configuration: None,
118 logout_url: None,
119 maximum_password_age: None,
120 minimum_password_age: None,
121 multi_factor_configuration: None,
122 name: None,
123 oauth_configuration: None,
124 password_encryption_configuration: None,
125 password_validation_rules: None,
126 phone_configuration: None,
127 rate_limit_configuration: None,
128 registration_configuration: None,
129 scim_server_configuration: None,
130 sso_configuration: None,
131 state: None,
132 theme_id: None,
133 user_delete_policy: None,
134 username_configuration: None,
135 web_authn_configuration: None,
136 }
137 }
138}
139