Struct google_api_proto::google::cloud::compute::v1::RouterStatusNatStatus
source · pub struct RouterStatusNatStatus {
pub auto_allocated_nat_ips: Vec<String>,
pub drain_auto_allocated_nat_ips: Vec<String>,
pub drain_user_allocated_nat_ips: Vec<String>,
pub min_extra_nat_ips_needed: Option<i32>,
pub name: Option<String>,
pub num_vm_endpoints_with_nat_mappings: Option<i32>,
pub rule_status: Vec<RouterStatusNatStatusNatRuleStatus>,
pub user_allocated_nat_ip_resources: Vec<String>,
pub user_allocated_nat_ips: Vec<String>,
}
Expand description
Status of a NAT contained in this router.
Fields§
§auto_allocated_nat_ips: Vec<String>
A list of IPs auto-allocated for NAT. Example: [“1.1.1.1”, “129.2.16.89”]
drain_auto_allocated_nat_ips: Vec<String>
A list of IPs auto-allocated for NAT that are in drain mode. Example: [“1.1.1.1”, “179.12.26.133”].
drain_user_allocated_nat_ips: Vec<String>
A list of IPs user-allocated for NAT that are in drain mode. Example: [“1.1.1.1”, “179.12.26.133”].
min_extra_nat_ips_needed: Option<i32>
The number of extra IPs to allocate. This will be greater than 0 only if user-specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful only when auto-allocation of NAT IPs is not used.
name: Option<String>
Unique name of this NAT.
num_vm_endpoints_with_nat_mappings: Option<i32>
Number of VM endpoints (i.e., Nics) that can use NAT.
rule_status: Vec<RouterStatusNatStatusNatRuleStatus>
Status of rules in this NAT.
user_allocated_nat_ip_resources: Vec<String>
A list of fully qualified URLs of reserved IP address resources.
user_allocated_nat_ips: Vec<String>
A list of IPs user-allocated for NAT. They will be raw IP strings like “179.12.26.133”.
Implementations§
source§impl RouterStatusNatStatus
impl RouterStatusNatStatus
sourcepub fn min_extra_nat_ips_needed(&self) -> i32
pub fn min_extra_nat_ips_needed(&self) -> i32
Returns the value of min_extra_nat_ips_needed
, or the default value if min_extra_nat_ips_needed
is unset.
sourcepub fn num_vm_endpoints_with_nat_mappings(&self) -> i32
pub fn num_vm_endpoints_with_nat_mappings(&self) -> i32
Returns the value of num_vm_endpoints_with_nat_mappings
, or the default value if num_vm_endpoints_with_nat_mappings
is unset.
Trait Implementations§
source§impl Clone for RouterStatusNatStatus
impl Clone for RouterStatusNatStatus
source§fn clone(&self) -> RouterStatusNatStatus
fn clone(&self) -> RouterStatusNatStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RouterStatusNatStatus
impl Debug for RouterStatusNatStatus
source§impl Default for RouterStatusNatStatus
impl Default for RouterStatusNatStatus
source§impl Message for RouterStatusNatStatus
impl Message for RouterStatusNatStatus
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for RouterStatusNatStatus
impl PartialEq for RouterStatusNatStatus
source§fn eq(&self, other: &RouterStatusNatStatus) -> bool
fn eq(&self, other: &RouterStatusNatStatus) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RouterStatusNatStatus
Auto Trait Implementations§
impl Freeze for RouterStatusNatStatus
impl RefUnwindSafe for RouterStatusNatStatus
impl Send for RouterStatusNatStatus
impl Sync for RouterStatusNatStatus
impl Unpin for RouterStatusNatStatus
impl UnwindSafe for RouterStatusNatStatus
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request