/*
* Ory APIs
*
* # Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
*
* The version of the OpenAPI document: v1.22.41
* Contact: support@ory.sh
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OnboardingPortalLink {
/// AppleMapper specifies the JSONNet code snippet which uses Apple's profile information to hydrate the identity's data.
#[serde(rename = "apple_mapper_url", skip_serializing_if = "Option::is_none")]
pub apple_mapper_url: Option<String>,
/// Auth0Mapper specifies the JSONNet code snippet which uses Auth0's profile information to hydrate the identity's data.
#[serde(rename = "auth0_mapper_url", skip_serializing_if = "Option::is_none")]
pub auth0_mapper_url: Option<String>,
/// The onboarding portal link's creation date
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
#[serde(rename = "custom_hostname_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub custom_hostname_id: Option<Option<String>>,
/// Feature flag to enable SCIM configuration
#[serde(rename = "enable_scim", skip_serializing_if = "Option::is_none")]
pub enable_scim: Option<bool>,
/// Feature flag to enable SSO configuration
#[serde(rename = "enable_sso", skip_serializing_if = "Option::is_none")]
pub enable_sso: Option<bool>,
/// The onboarding portal link's expiry date
#[serde(rename = "expires_at")]
pub expires_at: String,
/// FacebookMapper specifies the JSONNet code snippet which uses Facebook's profile information to hydrate the identity's data.
#[serde(rename = "facebook_mapper_url", skip_serializing_if = "Option::is_none")]
pub facebook_mapper_url: Option<String>,
/// GenericOIDCMapper specifies the JSONNet code snippet which uses the OIDC Provider's profile information to hydrate the identity's data.
#[serde(rename = "generic_oidc_mapper_url", skip_serializing_if = "Option::is_none")]
pub generic_oidc_mapper_url: Option<String>,
/// GithubMapper specifies the JSONNet code snippet which uses GitHub's profile information to hydrate the identity's data.
#[serde(rename = "github_mapper_url", skip_serializing_if = "Option::is_none")]
pub github_mapper_url: Option<String>,
/// GitLabMapper specifies the JSONNet code snippet which uses GitLab's profile information to hydrate the identity's data.
#[serde(rename = "gitlab_mapper_url", skip_serializing_if = "Option::is_none")]
pub gitlab_mapper_url: Option<String>,
/// GoogleMapper specifies the JSONNet code snippet which uses Google's profile information to hydrate the identity's data.
#[serde(rename = "google_mapper_url", skip_serializing_if = "Option::is_none")]
pub google_mapper_url: Option<String>,
/// The onboarding portal link's ID.
#[serde(rename = "id")]
pub id: String,
/// MicrosoftMapper specifies the JSONNet code snippet which uses Microsoft's profile information to hydrate the identity's data.
#[serde(rename = "microsoft_mapper_url", skip_serializing_if = "Option::is_none")]
pub microsoft_mapper_url: Option<String>,
/// NetIDMapper specifies the JSONNet code snippet which uses NetID's profile information to hydrate the identity's data.
#[serde(rename = "netid_mapper_url", skip_serializing_if = "Option::is_none")]
pub netid_mapper_url: Option<String>,
/// The onboarding portal link's organization ID
#[serde(rename = "organization_id")]
pub organization_id: String,
/// The onboarding portal link's project ID
#[serde(rename = "project_id")]
pub project_id: String,
/// Proxy ACS URL if overriding with a customer-controlled URL
#[serde(rename = "proxy_acs_url", skip_serializing_if = "Option::is_none")]
pub proxy_acs_url: Option<String>,
/// Proxy OIDC Redirect URL if overriding with a customer-controlled URL
#[serde(rename = "proxy_oidc_redirect_url", skip_serializing_if = "Option::is_none")]
pub proxy_oidc_redirect_url: Option<String>,
/// SAML Audience Override if overriding with a customer-controlled one
#[serde(rename = "proxy_saml_audience_override", skip_serializing_if = "Option::is_none")]
pub proxy_saml_audience_override: Option<String>,
/// Proxy SCIM Server URL if overriding with a customer-controlled URL
#[serde(rename = "proxy_scim_server_url", skip_serializing_if = "Option::is_none")]
pub proxy_scim_server_url: Option<String>,
/// SAMLMapper specifies the JSONNet code snippet which uses the SAML Provider's profile information to hydrate the identity's data.
#[serde(rename = "saml_mapper_url", skip_serializing_if = "Option::is_none")]
pub saml_mapper_url: Option<String>,
/// SCIMMapper specifies the JSONNet code snippet which uses the SCIM Provider's profile information to hydrate the identity's data.
#[serde(rename = "scim_mapper_url", skip_serializing_if = "Option::is_none")]
pub scim_mapper_url: Option<String>,
/// The onboarding portal link's value
#[serde(rename = "value")]
pub value: String,
}
impl OnboardingPortalLink {
pub fn new(expires_at: String, id: String, organization_id: String, project_id: String, value: String) -> OnboardingPortalLink {
OnboardingPortalLink {
apple_mapper_url: None,
auth0_mapper_url: None,
created_at: None,
custom_hostname_id: None,
enable_scim: None,
enable_sso: None,
expires_at,
facebook_mapper_url: None,
generic_oidc_mapper_url: None,
github_mapper_url: None,
gitlab_mapper_url: None,
google_mapper_url: None,
id,
microsoft_mapper_url: None,
netid_mapper_url: None,
organization_id,
project_id,
proxy_acs_url: None,
proxy_oidc_redirect_url: None,
proxy_saml_audience_override: None,
proxy_scim_server_url: None,
saml_mapper_url: None,
scim_mapper_url: None,
value,
}
}
}