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
There is no detailed description.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- add peering networks (request)
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.
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§fn default() -> NetworksAddPeeringRequest
fn default() -> NetworksAddPeeringRequest
Source§impl<'de> Deserialize<'de> for NetworksAddPeeringRequest
impl<'de> Deserialize<'de> for NetworksAddPeeringRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more