clerk_rs/models/
update_saml_connection_request.rs

1/*
2 * Clerk Backend API
3 *
4 * The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
5 *
6 * The version of the OpenAPI document: v1
7 * Contact: support@clerk.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct UpdateSamlConnectionRequest {
13	/// The name of the new SAML Connection
14	#[serde(
15		rename = "name",
16		default,
17		with = "::serde_with::rust::double_option",
18		skip_serializing_if = "Option::is_none"
19	)]
20	pub name: Option<Option<String>>,
21	/// The domain to use for the new SAML Connection
22	#[serde(
23		rename = "domain",
24		default,
25		with = "::serde_with::rust::double_option",
26		skip_serializing_if = "Option::is_none"
27	)]
28	pub domain: Option<Option<String>>,
29	/// The entity id as provided by the IdP
30	#[serde(
31		rename = "idp_entity_id",
32		default,
33		with = "::serde_with::rust::double_option",
34		skip_serializing_if = "Option::is_none"
35	)]
36	pub idp_entity_id: Option<Option<String>>,
37	/// The SSO url as provided by the IdP
38	#[serde(
39		rename = "idp_sso_url",
40		default,
41		with = "::serde_with::rust::double_option",
42		skip_serializing_if = "Option::is_none"
43	)]
44	pub idp_sso_url: Option<Option<String>>,
45	/// The x509 certificated as provided by the IdP
46	#[serde(
47		rename = "idp_certificate",
48		default,
49		with = "::serde_with::rust::double_option",
50		skip_serializing_if = "Option::is_none"
51	)]
52	pub idp_certificate: Option<Option<String>>,
53	/// Activate or de-activate the SAML Connection
54	#[serde(
55		rename = "active",
56		default,
57		with = "::serde_with::rust::double_option",
58		skip_serializing_if = "Option::is_none"
59	)]
60	pub active: Option<Option<bool>>,
61	/// Controls whether to update the user's attributes in each sign-in
62	#[serde(
63		rename = "sync_user_attributes",
64		default,
65		with = "::serde_with::rust::double_option",
66		skip_serializing_if = "Option::is_none"
67	)]
68	pub sync_user_attributes: Option<Option<bool>>,
69}
70
71impl UpdateSamlConnectionRequest {
72	pub fn new() -> UpdateSamlConnectionRequest {
73		UpdateSamlConnectionRequest {
74			name: None,
75			domain: None,
76			idp_entity_id: None,
77			idp_sso_url: None,
78			idp_certificate: None,
79			active: None,
80			sync_user_attributes: None,
81		}
82	}
83}