/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// CreateClusterReqNodePool : NodePool is the ONE pool the cluster is born with — a cluster with no nodes runs nothing, so it is not optional. More pools are added afterwards through POST /v1/visor/clusters/:clusterId/pools.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateClusterReqNodePool {
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
pub count: Option<i32>,
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "size", skip_serializing_if = "Option::is_none")]
pub size: Option<String>,
}
impl CreateClusterReqNodePool {
/// NodePool is the ONE pool the cluster is born with — a cluster with no nodes runs nothing, so it is not optional. More pools are added afterwards through POST /v1/visor/clusters/:clusterId/pools.
pub fn new() -> CreateClusterReqNodePool {
CreateClusterReqNodePool {
count: None,
name: None,
size: None,
}
}
}