Struct googapis::google::cloud::compute::v1::NetworkPeering [−][src]
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 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.
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.
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.
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
Returns the value of import_subnet_routes_with_public_ip
, or the default value if import_subnet_routes_with_public_ip
is unset.
Returns the value of exchange_subnet_routes
, or the default value if exchange_subnet_routes
is unset.
Returns the value of auto_create_routes
, or the default value if auto_create_routes
is unset.
Returns the value of export_custom_routes
, or the default value if export_custom_routes
is unset.
Returns the value of peer_mtu
, or the default value if peer_mtu
is unset.
Returns the value of state_details
, or the default value if state_details
is unset.
Returns the value of export_subnet_routes_with_public_ip
, or the default value if export_subnet_routes_with_public_ip
is unset.
Returns the value of import_custom_routes
, or the default value if import_custom_routes
is unset.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for NetworkPeering
impl Send for NetworkPeering
impl Sync for NetworkPeering
impl Unpin for NetworkPeering
impl UnwindSafe for NetworkPeering
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more