1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
use serde::{Deserialize, Serialize}; /*
* Cloud SQL Admin API
*
* API for Cloud SQL database instance management
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::google_rest_apis::sqladmin_v1::models;
/// Tier : A Google Cloud SQL service tier resource.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Tier {
/// The maximum disk size of this tier in bytes.
#[serde(rename = "DiskQuota", skip_serializing_if = "Option::is_none")]
pub disk_quota: Option<String>,
/// The maximum RAM usage of this tier in bytes.
#[serde(rename = "RAM", skip_serializing_if = "Option::is_none")]
pub ram: Option<String>,
/// This is always `sql#tier`.
#[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
pub kind: Option<String>,
/// The applicable regions for this tier.
#[serde(rename = "region", skip_serializing_if = "Option::is_none")]
pub region: Option<Vec<String>>,
/// An identifier for the machine type, for example, `db-custom-1-3840`. For related information, see [Pricing](/sql/pricing).
#[serde(rename = "tier", skip_serializing_if = "Option::is_none")]
pub tier: Option<String>,
}
impl Tier {
/// A Google Cloud SQL service tier resource.
pub fn new() -> Tier {
Tier {
disk_quota: None,
ram: None,
kind: None,
region: None,
tier: None,
}
}
}