ash_api 0.1.7

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Hai (Ash API) specifications.
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.1.7
 * Contact: E36 Knots
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct NewAvalancheSubnetResource {
    /// Resource name
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "resourceType")]
    pub resource_type: Box<crate::models::ResourceType>,
    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
    pub size: Option<crate::models::Size>,
    /// ID (or name) of the cloud region that the resource belongs to
    #[serde(rename = "cloudRegionId")]
    pub cloud_region_id: String,
    /// IDs (or names) of node resources that are part of the Subnet
    #[serde(rename = "subnetNodesResourceIds", skip_serializing_if = "Option::is_none")]
    pub subnet_nodes_resource_ids: Option<Vec<String>>,
    #[serde(rename = "subnetConfig", skip_serializing_if = "Option::is_none")]
    pub subnet_config: Option<Box<crate::models::AvalancheSubnetResourceBaseSubnetConfig>>,
    /// ID (or name) of the secret containing the Subnet control key
    #[serde(rename = "subnetControlKeySecretId", skip_serializing_if = "Option::is_none")]
    pub subnet_control_key_secret_id: Option<String>,
    #[serde(rename = "subnetStatus", skip_serializing_if = "Option::is_none")]
    pub subnet_status: Option<Box<crate::models::AvalancheSubnetResourceBaseSubnetStatus>>,
}

impl NewAvalancheSubnetResource {
    pub fn new(name: String, resource_type: crate::models::ResourceType, cloud_region_id: String) -> NewAvalancheSubnetResource {
        NewAvalancheSubnetResource {
            name,
            resource_type: Box::new(resource_type),
            size: None,
            cloud_region_id,
            subnet_nodes_resource_ids: None,
            subnet_config: None,
            subnet_control_key_secret_id: None,
            subnet_status: None,
        }
    }
}