scaleway_api_rs 0.1.8

Generated library to interact with Scaleway API.
Documentation
/*
 * Account API
 *
 * # Introduction  The Account API allows you to manage projects. Project is Scaleway’s resource management feature. Designed to help you organize your infrastructure and cloud services, the feature allows resources to be isolated and grouped into specific projects.
 *
 * The version of the OpenAPI document: v2
 *
 * Generated by: https://openapi-generator.tech
 */

/// ScalewayRdbV1InstanceEndpoint : Endpoint of the instance

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ScalewayRdbV1InstanceEndpoint {
    /// UUID of the endpoint (UUID format)
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// IPv4 address of the endpoint (IP address)
    #[serde(
        rename = "ip",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub ip: Option<Option<String>>,
    /// TCP port of the endpoint
    #[serde(rename = "port", skip_serializing_if = "Option::is_none")]
    pub port: Option<i32>,
    /// Name of the endpoint
    #[serde(
        rename = "name",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub name: Option<Option<String>>,
    #[serde(rename = "private_network", skip_serializing_if = "Option::is_none")]
    pub private_network: Option<Box<crate::models::ScalewayRdbV1EndpointPrivateNetwork>>,
    /// Load balancer details. Public endpoint for RDB instances which is systematically present. One per RDB instance
    #[serde(rename = "load_balancer", skip_serializing_if = "Option::is_none")]
    pub load_balancer: Option<serde_json::Value>,
    /// Direct access details. Public endpoint reserved for read replicas. One per read replica
    #[serde(rename = "direct_access", skip_serializing_if = "Option::is_none")]
    pub direct_access: Option<serde_json::Value>,
    /// Hostname of the endpoint
    #[serde(rename = "hostname", skip_serializing_if = "Option::is_none")]
    pub hostname: Option<String>,
}

impl ScalewayRdbV1InstanceEndpoint {
    /// Endpoint of the instance
    pub fn new() -> ScalewayRdbV1InstanceEndpoint {
        ScalewayRdbV1InstanceEndpoint {
            id: None,
            ip: None,
            port: None,
            name: None,
            private_network: None,
            load_balancer: None,
            direct_access: None,
            hostname: None,
        }
    }
}