Struct google_api_proto::google::cloud::compute::v1::NetworksAddPeeringRequest
source · pub struct NetworksAddPeeringRequest {
pub auto_create_routes: Option<bool>,
pub name: Option<String>,
pub network_peering: Option<NetworkPeering>,
pub peer_network: Option<String>,
}
Expand description
Fields§
§auto_create_routes: Option<bool>
This field will be deprecated soon. Use exchange_subnet_routes in network_peering 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.
name: Option<String>
Name of the peering, which should conform to RFC1035.
network_peering: Option<NetworkPeering>
Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.
peer_network: Option<String>
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.
Implementations§
source§impl NetworksAddPeeringRequest
impl NetworksAddPeeringRequest
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 peer_network(&self) -> &str
pub fn peer_network(&self) -> &str
Returns the value of peer_network
, or the default value if peer_network
is unset.
Trait Implementations§
source§impl Clone for NetworksAddPeeringRequest
impl Clone for NetworksAddPeeringRequest
source§fn clone(&self) -> NetworksAddPeeringRequest
fn clone(&self) -> NetworksAddPeeringRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NetworksAddPeeringRequest
impl Debug for NetworksAddPeeringRequest
source§impl Default for NetworksAddPeeringRequest
impl Default for NetworksAddPeeringRequest
source§impl Message for NetworksAddPeeringRequest
impl Message for NetworksAddPeeringRequest
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 NetworksAddPeeringRequest
impl PartialEq for NetworksAddPeeringRequest
source§fn eq(&self, other: &NetworksAddPeeringRequest) -> bool
fn eq(&self, other: &NetworksAddPeeringRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NetworksAddPeeringRequest
Auto Trait Implementations§
impl Freeze for NetworksAddPeeringRequest
impl RefUnwindSafe for NetworksAddPeeringRequest
impl Send for NetworksAddPeeringRequest
impl Sync for NetworksAddPeeringRequest
impl Unpin for NetworksAddPeeringRequest
impl UnwindSafe for NetworksAddPeeringRequest
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