Struct google_api_proto::google::cloud::compute::v1::VmEndpointNatMappingsInterfaceNatMappings
source · pub struct VmEndpointNatMappingsInterfaceNatMappings {
pub drain_nat_ip_port_ranges: Vec<String>,
pub nat_ip_port_ranges: Vec<String>,
pub num_total_drain_nat_ports: Option<i32>,
pub num_total_nat_ports: Option<i32>,
pub rule_mappings: Vec<VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>,
pub source_alias_ip_range: Option<String>,
pub source_virtual_ip: Option<String>,
}
Expand description
Contain information of Nat mapping for an interface of this endpoint.
Fields§
§drain_nat_ip_port_ranges: Vec<String>
List of all drain IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: [“2.2.2.2:12345-12355”, “1.1.1.1:2234-2234”].
nat_ip_port_ranges: Vec<String>
A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: [“2.2.2.2:12345-12355”, “1.1.1.1:2234-2234”].
num_total_drain_nat_ports: Option<i32>
Total number of drain ports across all NAT IPs allocated to this interface. It equals to the aggregated port number in the field drain_nat_ip_port_ranges.
num_total_nat_ports: Option<i32>
Total number of ports across all NAT IPs allocated to this interface. It equals to the aggregated port number in the field nat_ip_port_ranges.
rule_mappings: Vec<VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>
Information about mappings provided by rules in this NAT.
source_alias_ip_range: Option<String>
Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: “10.33.4.55/32”, or “192.168.5.0/24”.
source_virtual_ip: Option<String>
Primary IP of the VM for this NIC.
Implementations§
source§impl VmEndpointNatMappingsInterfaceNatMappings
impl VmEndpointNatMappingsInterfaceNatMappings
sourcepub fn source_virtual_ip(&self) -> &str
pub fn source_virtual_ip(&self) -> &str
Returns the value of source_virtual_ip
, or the default value if source_virtual_ip
is unset.
sourcepub fn num_total_nat_ports(&self) -> i32
pub fn num_total_nat_ports(&self) -> i32
Returns the value of num_total_nat_ports
, or the default value if num_total_nat_ports
is unset.
sourcepub fn num_total_drain_nat_ports(&self) -> i32
pub fn num_total_drain_nat_ports(&self) -> i32
Returns the value of num_total_drain_nat_ports
, or the default value if num_total_drain_nat_ports
is unset.
sourcepub fn source_alias_ip_range(&self) -> &str
pub fn source_alias_ip_range(&self) -> &str
Returns the value of source_alias_ip_range
, or the default value if source_alias_ip_range
is unset.
Trait Implementations§
source§impl Clone for VmEndpointNatMappingsInterfaceNatMappings
impl Clone for VmEndpointNatMappingsInterfaceNatMappings
source§fn clone(&self) -> VmEndpointNatMappingsInterfaceNatMappings
fn clone(&self) -> VmEndpointNatMappingsInterfaceNatMappings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for VmEndpointNatMappingsInterfaceNatMappings
impl Message for VmEndpointNatMappingsInterfaceNatMappings
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 VmEndpointNatMappingsInterfaceNatMappings
impl PartialEq for VmEndpointNatMappingsInterfaceNatMappings
source§fn eq(&self, other: &VmEndpointNatMappingsInterfaceNatMappings) -> bool
fn eq(&self, other: &VmEndpointNatMappingsInterfaceNatMappings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VmEndpointNatMappingsInterfaceNatMappings
Auto Trait Implementations§
impl Freeze for VmEndpointNatMappingsInterfaceNatMappings
impl RefUnwindSafe for VmEndpointNatMappingsInterfaceNatMappings
impl Send for VmEndpointNatMappingsInterfaceNatMappings
impl Sync for VmEndpointNatMappingsInterfaceNatMappings
impl Unpin for VmEndpointNatMappingsInterfaceNatMappings
impl UnwindSafe for VmEndpointNatMappingsInterfaceNatMappings
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