#[non_exhaustive]pub struct RouterNatRuleAction {
pub source_nat_active_ips: Vec<String>,
pub source_nat_active_ranges: Vec<String>,
pub source_nat_drain_ips: Vec<String>,
pub source_nat_drain_ranges: Vec<String>,
/* private fields */
}routers only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_nat_active_ips: Vec<String>A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT.
source_nat_active_ranges: Vec<String>A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to PRIVATE_NAT. This field is used for private NAT.
source_nat_drain_ips: Vec<String>A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT.
source_nat_drain_ranges: Vec<String>A list of URLs of subnetworks representing source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule. This field is used for private NAT.
Implementations§
Source§impl RouterNatRuleAction
impl RouterNatRuleAction
pub fn new() -> Self
Sourcepub fn set_source_nat_active_ips<T, V>(self, v: T) -> Self
pub fn set_source_nat_active_ips<T, V>(self, v: T) -> Self
Sets the value of source_nat_active_ips.
§Example
let x = RouterNatRuleAction::new().set_source_nat_active_ips(["a", "b", "c"]);Sourcepub fn set_source_nat_active_ranges<T, V>(self, v: T) -> Self
pub fn set_source_nat_active_ranges<T, V>(self, v: T) -> Self
Sets the value of source_nat_active_ranges.
§Example
let x = RouterNatRuleAction::new().set_source_nat_active_ranges(["a", "b", "c"]);Sourcepub fn set_source_nat_drain_ips<T, V>(self, v: T) -> Self
pub fn set_source_nat_drain_ips<T, V>(self, v: T) -> Self
Sets the value of source_nat_drain_ips.
§Example
let x = RouterNatRuleAction::new().set_source_nat_drain_ips(["a", "b", "c"]);Sourcepub fn set_source_nat_drain_ranges<T, V>(self, v: T) -> Self
pub fn set_source_nat_drain_ranges<T, V>(self, v: T) -> Self
Sets the value of source_nat_drain_ranges.
§Example
let x = RouterNatRuleAction::new().set_source_nat_drain_ranges(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for RouterNatRuleAction
impl Clone for RouterNatRuleAction
Source§fn clone(&self) -> RouterNatRuleAction
fn clone(&self) -> RouterNatRuleAction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more