/*
* 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.38
* 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 OnboardingPortalOrganization {
/// 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>,
#[serde(rename = "base_url")]
pub base_url: 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>,
#[serde(rename = "kratos_selfservice_methods_oidc_config_providers")]
pub kratos_selfservice_methods_oidc_config_providers: Vec<models::NormalizedProjectRevisionThirdPartyProvider>,
#[serde(rename = "kratos_selfservice_methods_saml_config_providers")]
pub kratos_selfservice_methods_saml_config_providers: Vec<models::NormalizedProjectRevisionSamlProvider>,
/// 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>,
#[serde(rename = "oidc_sso_enabled", skip_serializing_if = "Option::is_none")]
pub oidc_sso_enabled: Option<bool>,
#[serde(rename = "organization_id")]
pub organization_id: String,
/// Organization Label
#[serde(rename = "organization_label", skip_serializing_if = "Option::is_none")]
pub organization_label: Option<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>,
#[serde(rename = "revision_id")]
pub revision_id: 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>,
#[serde(rename = "saml_sso_enabled", skip_serializing_if = "Option::is_none")]
pub saml_sso_enabled: Option<bool>,
#[serde(rename = "scim_clients")]
pub scim_clients: Vec<models::NormalizedProjectRevisionScimClient>,
#[serde(rename = "scim_enabled")]
pub scim_enabled: bool,
/// 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>,
#[serde(rename = "sso_enabled")]
pub sso_enabled: bool,
}
impl OnboardingPortalOrganization {
pub fn new(base_url: String, kratos_selfservice_methods_oidc_config_providers: Vec<models::NormalizedProjectRevisionThirdPartyProvider>, kratos_selfservice_methods_saml_config_providers: Vec<models::NormalizedProjectRevisionSamlProvider>, organization_id: String, revision_id: String, scim_clients: Vec<models::NormalizedProjectRevisionScimClient>, scim_enabled: bool, sso_enabled: bool) -> OnboardingPortalOrganization {
OnboardingPortalOrganization {
apple_mapper_url: None,
auth0_mapper_url: None,
base_url,
facebook_mapper_url: None,
generic_oidc_mapper_url: None,
github_mapper_url: None,
gitlab_mapper_url: None,
google_mapper_url: None,
kratos_selfservice_methods_oidc_config_providers,
kratos_selfservice_methods_saml_config_providers,
microsoft_mapper_url: None,
netid_mapper_url: None,
oidc_sso_enabled: None,
organization_id,
organization_label: None,
proxy_acs_url: None,
proxy_oidc_redirect_url: None,
proxy_saml_audience_override: None,
proxy_scim_server_url: None,
revision_id,
saml_mapper_url: None,
saml_sso_enabled: None,
scim_clients,
scim_enabled,
scim_mapper_url: None,
sso_enabled,
}
}
}