Skip to main content

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

1use serde_derive::{Serialize, Deserialize};
2
3#[derive(Serialize, Deserialize, Default, Debug)]
4pub struct VpcNat {
5    pub name: String,
6    pub natIpAllocateOption: String,
7    pub natIps: Vec<String>,
8    //pub targetVpnGateways: Vec<_>,
9    pub sourceSubnetworkIpRangesToNat: Vec<String>,
10    pub minPortsPerVm: i32,
11    pub logConfig: VpcNatLogConfig
12}
13
14#[derive(Serialize, Deserialize, Default, Debug)]
15pub struct VpcNatLogConfig {
16    pub enable: bool,
17    pub filter: String
18}
19