Skip to main content

devops_armory/cloud/gcp/vpc/address/
models.rs

1use serde_derive::{Serialize, Deserialize};
2
3#[derive(Default, Deserialize, Serialize, Debug)]
4pub struct IPName {
5    pub name: String,
6}
7
8#[derive(Default, Deserialize, Serialize, Debug)]
9pub struct IpAddress {
10    pub name: String,
11    pub address: String,
12    pub prefixLength: String,
13    pub networkTier: String,
14    pub ipVersion: String,
15    pub addressType: String,
16    pub purpose: String,
17    pub network: String,
18}
19
20#[derive(Default, Deserialize, Serialize, Debug)]
21pub struct IpAddressRegion {
22    pub name: String,
23    pub networkTier: String,
24    ///Not supported in regional version
25    //pub ipVersion: String,
26    pub addressType: String,
27}