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(rename = "name", skip_serializing_if = "Option::is_none")]
15	pub name: Option<String>,
16	/// The domain to use for the new SAML Connection
17	#[serde(rename = "domain", skip_serializing_if = "Option::is_none")]
18	pub domain: Option<String>,
19	/// The entity id as provided by the IdP
20	#[serde(rename = "idp_entity_id", skip_serializing_if = "Option::is_none")]
21	pub idp_entity_id: Option<String>,
22	/// The SSO url as provided by the IdP
23	#[serde(rename = "idp_sso_url", skip_serializing_if = "Option::is_none")]
24	pub idp_sso_url: Option<String>,
25	/// The x509 certificated as provided by the IdP
26	#[serde(rename = "idp_certificate", skip_serializing_if = "Option::is_none")]
27	pub idp_certificate: Option<String>,
28	/// Activate or de-activate the SAML Connection
29	#[serde(rename = "active", skip_serializing_if = "Option::is_none")]
30	pub active: Option<bool>,
31	/// Controls whether to update the user's attributes in each sign-in
32	#[serde(rename = "sync_user_attributes", skip_serializing_if = "Option::is_none")]
33	pub sync_user_attributes: Option<bool>,
34}
35
36impl UpdateSamlConnectionRequest {
37	pub fn new() -> UpdateSamlConnectionRequest {
38		UpdateSamlConnectionRequest {
39			name: None,
40			domain: None,
41			idp_entity_id: None,
42			idp_sso_url: None,
43			idp_certificate: None,
44			active: None,
45			sync_user_attributes: None,
46		}
47	}
48}