clerk_rs/models/
create_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 CreateSamlConnectionRequest {
13	/// The name to use as a label for this SAML Connection
14	#[serde(rename = "name")]
15	pub name: String,
16	/// The domain of your organization. Sign in flows using an email with this domain, will use this SAML Connection.
17	#[serde(rename = "domain")]
18	pub domain: 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 Single-Sign On 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 X.509 certificate as provided by the IdP
26	#[serde(rename = "idp_certificate", skip_serializing_if = "Option::is_none")]
27	pub idp_certificate: Option<String>,
28}
29
30impl CreateSamlConnectionRequest {
31	pub fn new(name: String, domain: String) -> CreateSamlConnectionRequest {
32		CreateSamlConnectionRequest {
33			name,
34			domain,
35			idp_entity_id: None,
36			idp_sso_url: None,
37			idp_certificate: None,
38		}
39	}
40}