hanzo_client/models/pool_scale.rs
1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PoolScale {
16 /// ClusterID is the cluster holding the pool, from the URL path.
17 #[serde(rename = "clusterId", skip_serializing_if = "Option::is_none")]
18 pub cluster_id: Option<String>,
19 /// Count is the node count to scale TO — an absolute target, not a delta, and never negative.
20 #[serde(rename = "count", skip_serializing_if = "Option::is_none")]
21 pub count: Option<i32>,
22 /// PoolID is the pool to resize, from the URL path — the `poolId` a cluster read reports for it. Required.
23 #[serde(rename = "poolId", skip_serializing_if = "Option::is_none")]
24 pub pool_id: Option<String>,
25 /// Provider is the cloud the cluster lives on. Required; body or ?provider=.
26 #[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
27 pub provider: Option<String>,
28}
29
30impl PoolScale {
31 pub fn new() -> PoolScale {
32 PoolScale {
33 cluster_id: None,
34 count: None,
35 pool_id: None,
36 provider: None,
37 }
38 }
39}
40