Struct google_api_proto::google::cloud::compute::v1::NetworkPeering
source · pub struct NetworkPeering {
pub auto_create_routes: Option<bool>,
pub exchange_subnet_routes: Option<bool>,
pub export_custom_routes: Option<bool>,
pub export_subnet_routes_with_public_ip: Option<bool>,
pub import_custom_routes: Option<bool>,
pub import_subnet_routes_with_public_ip: Option<bool>,
pub name: Option<String>,
pub network: Option<String>,
pub peer_mtu: Option<i32>,
pub stack_type: Option<String>,
pub state: Option<String>,
pub state_details: Option<String>,
}
Expand description
A network peering attached to a network resource. The message includes the peering name, peer network, peering state, and a flag indicating whether Google Compute Engine should automatically create routes for the peering.
Fields§
§auto_create_routes: Option<bool>
This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
exchange_subnet_routes: Option<bool>
Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.
export_custom_routes: Option<bool>
Whether to export the custom routes to peer network. The default value is false.
export_subnet_routes_with_public_ip: Option<bool>
Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field.
import_custom_routes: Option<bool>
Whether to import the custom routes from peer network. The default value is false.
import_subnet_routes_with_public_ip: Option<bool>
Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field.
name: Option<String>
Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression [a-z](\[-a-z0-9\]*[a-z0-9])?
. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
network: Option<String>
The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.
peer_mtu: Option<i32>
Maximum Transmission Unit in bytes.
stack_type: Option<String>
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY. Check the StackType enum for the list of possible values.
state: Option<String>
[Output Only] State for the peering, either ACTIVE
or INACTIVE
. The peering is ACTIVE
when there’s a matching configuration in the peer network.
Check the State enum for the list of possible values.
state_details: Option<String>
[Output Only] Details about the current state of the peering.
Implementations§
source§impl NetworkPeering
impl NetworkPeering
sourcepub fn import_subnet_routes_with_public_ip(&self) -> bool
pub fn import_subnet_routes_with_public_ip(&self) -> bool
Returns the value of import_subnet_routes_with_public_ip
, or the default value if import_subnet_routes_with_public_ip
is unset.
sourcepub fn exchange_subnet_routes(&self) -> bool
pub fn exchange_subnet_routes(&self) -> bool
Returns the value of exchange_subnet_routes
, or the default value if exchange_subnet_routes
is unset.
sourcepub fn auto_create_routes(&self) -> bool
pub fn auto_create_routes(&self) -> bool
Returns the value of auto_create_routes
, or the default value if auto_create_routes
is unset.
sourcepub fn export_custom_routes(&self) -> bool
pub fn export_custom_routes(&self) -> bool
Returns the value of export_custom_routes
, or the default value if export_custom_routes
is unset.
sourcepub fn peer_mtu(&self) -> i32
pub fn peer_mtu(&self) -> i32
Returns the value of peer_mtu
, or the default value if peer_mtu
is unset.
sourcepub fn state_details(&self) -> &str
pub fn state_details(&self) -> &str
Returns the value of state_details
, or the default value if state_details
is unset.
sourcepub fn export_subnet_routes_with_public_ip(&self) -> bool
pub fn export_subnet_routes_with_public_ip(&self) -> bool
Returns the value of export_subnet_routes_with_public_ip
, or the default value if export_subnet_routes_with_public_ip
is unset.
sourcepub fn state(&self) -> &str
pub fn state(&self) -> &str
Returns the value of state
, or the default value if state
is unset.
sourcepub fn import_custom_routes(&self) -> bool
pub fn import_custom_routes(&self) -> bool
Returns the value of import_custom_routes
, or the default value if import_custom_routes
is unset.
sourcepub fn network(&self) -> &str
pub fn network(&self) -> &str
Returns the value of network
, or the default value if network
is unset.
sourcepub fn stack_type(&self) -> &str
pub fn stack_type(&self) -> &str
Returns the value of stack_type
, or the default value if stack_type
is unset.
Trait Implementations§
source§impl Clone for NetworkPeering
impl Clone for NetworkPeering
source§fn clone(&self) -> NetworkPeering
fn clone(&self) -> NetworkPeering
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NetworkPeering
impl Debug for NetworkPeering
source§impl Default for NetworkPeering
impl Default for NetworkPeering
source§impl Message for NetworkPeering
impl Message for NetworkPeering
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 NetworkPeering
impl PartialEq for NetworkPeering
source§fn eq(&self, other: &NetworkPeering) -> bool
fn eq(&self, other: &NetworkPeering) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NetworkPeering
Auto Trait Implementations§
impl Freeze for NetworkPeering
impl RefUnwindSafe for NetworkPeering
impl Send for NetworkPeering
impl Sync for NetworkPeering
impl Unpin for NetworkPeering
impl UnwindSafe for NetworkPeering
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