tembo_api_client/models/autoscaling_storage.rs
1/*
2 * Tembo Cloud
3 *
4 * Platform API for Tembo Cloud </br> </br> To find a Tembo Data API, please find it here: </br> </br> [AWS US East 1](https://api.data-1.use1.tembo.io/swagger-ui/)
5 *
6 * The version of the OpenAPI document: v1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AutoscalingStorage : AutoscalingStorage configures the automatic scaling of instance storage.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AutoscalingStorage {
17 /// Enable autoscaling for storage
18 #[serde(rename = "enabled")]
19 pub enabled: bool,
20 #[serde(
21 rename = "maximum",
22 default,
23 with = "::serde_with::rust::double_option",
24 skip_serializing_if = "Option::is_none"
25 )]
26 pub maximum: Option<Option<models::Storage>>,
27}
28
29impl AutoscalingStorage {
30 /// AutoscalingStorage configures the automatic scaling of instance storage.
31 pub fn new(enabled: bool) -> AutoscalingStorage {
32 AutoscalingStorage {
33 enabled,
34 maximum: None,
35 }
36 }
37}