Struct google_api_proto::google::cloud::filestore::v1::NetworkConfig
source · pub struct NetworkConfig {
pub network: String,
pub modes: Vec<i32>,
pub reserved_ip_range: String,
pub ip_addresses: Vec<String>,
pub connect_mode: i32,
}
Expand description
Network configuration for the instance.
Fields§
§network: String
The name of the Google Compute Engine VPC network to which the instance is connected.
modes: Vec<i32>
Internet protocol versions for which the instance has IP addresses assigned. For this version, only MODE_IPV4 is supported.
reserved_ip_range: String
Optional, reserved_ip_range can have one of the following two types of values.
- CIDR range value when using DIRECT_PEERING connect mode.
- Allocated IP address range when using PRIVATE_SERVICE_ACCESS connect mode.
When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the internal IP address ranges that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The range you specify can’t overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.
ip_addresses: Vec<String>
Output only. IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4}
or IPv6 addresses in the format
{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}
.
connect_mode: i32
The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.
Implementations§
source§impl NetworkConfig
impl NetworkConfig
sourcepub fn modes(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<AddressMode>>
pub fn modes( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<AddressMode>>
Returns an iterator which yields the valid enum values contained in modes
.
sourcepub fn push_modes(&mut self, value: AddressMode)
pub fn push_modes(&mut self, value: AddressMode)
Appends the provided enum value to modes
.
sourcepub fn connect_mode(&self) -> ConnectMode
pub fn connect_mode(&self) -> ConnectMode
Returns the enum value of connect_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_connect_mode(&mut self, value: ConnectMode)
pub fn set_connect_mode(&mut self, value: ConnectMode)
Sets connect_mode
to the provided enum value.
Trait Implementations§
source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
source§fn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NetworkConfig
impl Debug for NetworkConfig
source§impl Default for NetworkConfig
impl Default for NetworkConfig
source§impl Message for NetworkConfig
impl Message for NetworkConfig
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 NetworkConfig
impl PartialEq for NetworkConfig
source§fn eq(&self, other: &NetworkConfig) -> bool
fn eq(&self, other: &NetworkConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NetworkConfig
Auto Trait Implementations§
impl Freeze for NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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