/*
* Linkbreakers API
*
* This is a documentation of all the APIs of Linkbreakers ## Entry points `GET https://api.linkbreakers.com/` and `GET https://api.linkbreakers.com/v1` answer without credentials with the API's name, version and links. This document is served at `https://api.linkbreakers.com/openapi.json`. ## Rate limits Every response describes where the caller stands in the IETF `RateLimit-Policy` and `RateLimit` header fields (draft-ietf-httpapi-ratelimit-headers), and in `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset` and `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (a Unix timestamp) for clients that read those. A request past the limit gets `429 Too Many Requests` with `Retry-After` in seconds. - Workspace API token: 600 requests per 60 seconds, per token. - Dashboard session or OAuth token: 500 requests per 60 seconds, per token. - No credentials: 300 requests per 60 seconds, per client IP. Each plan also includes a number of API calls per billing cycle. Past it, calls answer `429` with the code `MAX_PUBLIC_API_QUERIED_REACHED` until the cycle renews or the plan changes.
*
* The version of the OpenAPI document: 1.150.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// CustomDomainStatus : The status of a custom domain - STATUS_UNSPECIFIED: The status is not specified - STATUS_INACTIVE: The domain is inactive. It was created but not checked yet. - STATUS_DOMAIN_PENDING: The domain is pending. Last time it was checked, it was not pointing to the correct Linkbreakers subdomain. - STATUS_VERIFICATION_PENDING: The domain is pending verification. Please verify through TXT record. - STATUS_CERTIFICATE_PENDING: The domain is pending certificate. The SSL certificate is not yet ready. - STATUS_ACTIVE: The domain is fully active - STATUS_RENEWAL_PENDING: The domain is still serving traffic on a valid certificate, but the renewal of that certificate cannot be validated. It stops working at certificate_expires_at. - STATUS_EXPIRED: The certificate expired or was withdrawn. The domain no longer serves HTTPS.
/// The status of a custom domain - STATUS_UNSPECIFIED: The status is not specified - STATUS_INACTIVE: The domain is inactive. It was created but not checked yet. - STATUS_DOMAIN_PENDING: The domain is pending. Last time it was checked, it was not pointing to the correct Linkbreakers subdomain. - STATUS_VERIFICATION_PENDING: The domain is pending verification. Please verify through TXT record. - STATUS_CERTIFICATE_PENDING: The domain is pending certificate. The SSL certificate is not yet ready. - STATUS_ACTIVE: The domain is fully active - STATUS_RENEWAL_PENDING: The domain is still serving traffic on a valid certificate, but the renewal of that certificate cannot be validated. It stops working at certificate_expires_at. - STATUS_EXPIRED: The certificate expired or was withdrawn. The domain no longer serves HTTPS.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CustomDomainStatus {
#[serde(rename = "STATUS_UNSPECIFIED")]
StatusUnspecified,
#[serde(rename = "STATUS_INACTIVE")]
StatusInactive,
#[serde(rename = "STATUS_DOMAIN_PENDING")]
StatusDomainPending,
#[serde(rename = "STATUS_VERIFICATION_PENDING")]
StatusVerificationPending,
#[serde(rename = "STATUS_CERTIFICATE_PENDING")]
StatusCertificatePending,
#[serde(rename = "STATUS_ACTIVE")]
StatusActive,
#[serde(rename = "STATUS_RENEWAL_PENDING")]
StatusRenewalPending,
#[serde(rename = "STATUS_EXPIRED")]
StatusExpired,
}
impl std::fmt::Display for CustomDomainStatus {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::StatusUnspecified => write!(f, "STATUS_UNSPECIFIED"),
Self::StatusInactive => write!(f, "STATUS_INACTIVE"),
Self::StatusDomainPending => write!(f, "STATUS_DOMAIN_PENDING"),
Self::StatusVerificationPending => write!(f, "STATUS_VERIFICATION_PENDING"),
Self::StatusCertificatePending => write!(f, "STATUS_CERTIFICATE_PENDING"),
Self::StatusActive => write!(f, "STATUS_ACTIVE"),
Self::StatusRenewalPending => write!(f, "STATUS_RENEWAL_PENDING"),
Self::StatusExpired => write!(f, "STATUS_EXPIRED"),
}
}
}
impl Default for CustomDomainStatus {
fn default() -> CustomDomainStatus {
Self::StatusUnspecified
}
}