dtz-core 2.3.5

a generated client for the DTZ Core API
Documentation
/*
 * DTZ Core Api
 *
 * a generated client for the DTZ Core API
 *
 * Contact: jens@apimeister.com
 * Generated by: https://openapi-generator.tech
 */

#[allow(unused_imports)]
use crate::models;
#[allow(unused_imports)]
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IngressResponse {
    #[serde(rename = "domain")]
    pub domain: String,
    #[serde(rename = "pathPrefix")]
    pub path_prefix: String,
    /// owning realm, changes can only be performed within the realm
    #[serde(rename = "realm", skip_serializing_if = "Option::is_none")]
    pub realm: Option<String>,
    #[serde(rename = "validity", skip_serializing_if = "Option::is_none")]
    pub validity: Option<Box<models::Validity>>,
    #[serde(rename = "login", skip_serializing_if = "Option::is_none")]
    pub login: Option<Box<models::Login>>,
    #[serde(rename = "rewrite", skip_serializing_if = "Option::is_none")]
    pub rewrite: Option<Box<models::Rewrite>>,
    #[serde(rename = "container", skip_serializing_if = "Option::is_none")]
    pub container: Option<Box<models::Container>>,
    #[serde(rename = "staticContent", skip_serializing_if = "Option::is_none")]
    pub static_content: Option<Box<models::StaticContent>>,
    #[serde(rename = "singletonProcessor", skip_serializing_if = "Option::is_none")]
    pub singleton_processor: Option<bool>,
    /// source artifact that this ingress is attached to
    #[serde(rename = "sourceId", skip_serializing_if = "Option::is_none")]
    pub source_id: Option<String>,
}

impl IngressResponse {
    pub fn new(domain: String, path_prefix: String) -> IngressResponse {
        IngressResponse {
            domain,
            path_prefix,
            realm: None,
            validity: None,
            login: None,
            rewrite: None,
            container: None,
            static_content: None,
            singleton_processor: None,
            source_id: None,
        }
    }
}