ory_client/models/custom_domain.rs
1/*
2 * Ory APIs
3 *
4 * # 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) |
5 *
6 * The version of the OpenAPI document: v1.22.78
7 * Contact: support@ory.sh
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// CustomDomain : Custom Hostname
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CustomDomain {
17 #[serde(rename = "cookie_domain", skip_serializing_if = "Option::is_none")]
18 pub cookie_domain: Option<String>,
19 #[serde(rename = "cors_allowed_origins", skip_serializing_if = "Option::is_none")]
20 pub cors_allowed_origins: Option<Vec<String>>,
21 #[serde(rename = "cors_enabled", skip_serializing_if = "Option::is_none")]
22 pub cors_enabled: Option<bool>,
23 #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
24 pub created_at: Option<String>,
25 #[serde(rename = "custom_ui_base_url", skip_serializing_if = "Option::is_none")]
26 pub custom_ui_base_url: Option<String>,
27 #[serde(rename = "hostname", skip_serializing_if = "Option::is_none")]
28 pub hostname: Option<String>,
29 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
30 pub id: Option<String>,
31 /// initializing _ pending_validation _ deleted _ pending_issuance _ pending_deployment _ pending_deletion _ pending_expiration _ expired _ active _ initializing_timed_out _ validation_timed_out _ issuance_timed_out _ deployment_timed_out _ deletion_timed_out _ pending_cleanup _ staging_deployment _ staging_active _ deactivating _ inactive _ backup_issued _ holding_deployment _ _ Cloudflare sometimes returns an empty string.
32 #[serde(rename = "ssl_status", skip_serializing_if = "Option::is_none")]
33 pub ssl_status: Option<SslStatusEnum>,
34 #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
35 pub updated_at: Option<String>,
36 #[serde(rename = "verification_errors", skip_serializing_if = "Option::is_none")]
37 pub verification_errors: Option<Vec<String>>,
38 #[serde(rename = "verification_status", skip_serializing_if = "Option::is_none")]
39 pub verification_status: Option<String>,
40}
41
42impl CustomDomain {
43 /// Custom Hostname
44 pub fn new() -> CustomDomain {
45 CustomDomain {
46 cookie_domain: None,
47 cors_allowed_origins: None,
48 cors_enabled: None,
49 created_at: None,
50 custom_ui_base_url: None,
51 hostname: None,
52 id: None,
53 ssl_status: None,
54 updated_at: None,
55 verification_errors: None,
56 verification_status: None,
57 }
58 }
59}
60/// initializing _ pending_validation _ deleted _ pending_issuance _ pending_deployment _ pending_deletion _ pending_expiration _ expired _ active _ initializing_timed_out _ validation_timed_out _ issuance_timed_out _ deployment_timed_out _ deletion_timed_out _ pending_cleanup _ staging_deployment _ staging_active _ deactivating _ inactive _ backup_issued _ holding_deployment _ _ Cloudflare sometimes returns an empty string.
61#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
62pub enum SslStatusEnum {
63 #[serde(rename = "initializing")]
64 Initializing,
65 #[serde(rename = "pending_validation")]
66 PendingValidation,
67 #[serde(rename = "deleted")]
68 Deleted,
69 #[serde(rename = "pending_issuance")]
70 PendingIssuance,
71 #[serde(rename = "pending_deployment")]
72 PendingDeployment,
73 #[serde(rename = "pending_deletion")]
74 PendingDeletion,
75 #[serde(rename = "pending_expiration")]
76 PendingExpiration,
77 #[serde(rename = "expired")]
78 Expired,
79 #[serde(rename = "active")]
80 Active,
81 #[serde(rename = "initializing_timed_out")]
82 InitializingTimedOut,
83 #[serde(rename = "validation_timed_out")]
84 ValidationTimedOut,
85 #[serde(rename = "issuance_timed_out")]
86 IssuanceTimedOut,
87 #[serde(rename = "deployment_timed_out")]
88 DeploymentTimedOut,
89 #[serde(rename = "deletion_timed_out")]
90 DeletionTimedOut,
91 #[serde(rename = "pending_cleanup")]
92 PendingCleanup,
93 #[serde(rename = "staging_deployment")]
94 StagingDeployment,
95 #[serde(rename = "staging_active")]
96 StagingActive,
97 #[serde(rename = "deactivating")]
98 Deactivating,
99 #[serde(rename = "inactive")]
100 Inactive,
101 #[serde(rename = "backup_issued")]
102 BackupIssued,
103 #[serde(rename = "holding_deployment")]
104 HoldingDeployment,
105 #[serde(rename = "")]
106 Empty,
107}
108
109impl Default for SslStatusEnum {
110 fn default() -> SslStatusEnum {
111 Self::Initializing
112 }
113}
114