Struct googapis::google::cloud::compute::v1::RouterBgpPeer [−][src]
pub struct RouterBgpPeer {Show 13 fields
pub advertise_mode: Option<String>,
pub advertised_groups: Vec<String>,
pub advertised_ip_ranges: Vec<RouterAdvertisedIpRange>,
pub advertised_route_priority: Option<u32>,
pub bfd: Option<RouterBgpPeerBfd>,
pub enable: Option<String>,
pub interface_name: Option<String>,
pub ip_address: Option<String>,
pub management_type: Option<String>,
pub name: Option<String>,
pub peer_asn: Option<u32>,
pub peer_ip_address: Option<String>,
pub router_appliance_instance: Option<String>,
}
Expand description
Fields
advertise_mode: Option<String>
User-specified flag to indicate which mode to use for advertisement. Check the AdvertiseMode enum for the list of possible values.
advertised_groups: Vec<String>
User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. - ALL_VPC_SUBNETS: Advertises the router’s own VPC subnets. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the “bgp” message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. Check the AdvertisedGroups enum for the list of possible values.
advertised_ip_ranges: Vec<RouterAdvertisedIpRange>
User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the “bgp” message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges.
advertised_route_priority: Option<u32>
The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win.
bfd: Option<RouterBgpPeerBfd>
BFD configuration for the BGP peering.
enable: Option<String>
The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing information. The default is TRUE. Check the Enable enum for the list of possible values.
interface_name: Option<String>
Name of the interface the BGP peer is associated with.
ip_address: Option<String>
IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.
management_type: Option<String>
[Output Only] The resource that configures and manages this BGP peer. - MANAGED_BY_USER is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. Check the ManagementType enum for the list of possible values.
name: Option<String>
Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression \[a-z]([-a-z0-9]*[a-z0-9\])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
peer_asn: Option<u32>
Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.
peer_ip_address: Option<String>
IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported.
router_appliance_instance: Option<String>
URI of the VM instance that is used as third-party router appliances such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance must be located in zones contained in the same region as this Cloud Router. The VM instance is the peer side of the BGP session.
Implementations
Returns the value of peer_asn
, or the default value if peer_asn
is unset.
Returns the value of management_type
, or the default value if management_type
is unset.
Returns the value of advertised_route_priority
, or the default value if advertised_route_priority
is unset.
Returns the value of peer_ip_address
, or the default value if peer_ip_address
is unset.
Returns the value of enable
, or the default value if enable
is unset.
Returns the value of advertise_mode
, or the default value if advertise_mode
is unset.
Returns the value of ip_address
, or the default value if ip_address
is unset.
Returns the value of interface_name
, or the default value if interface_name
is unset.
Returns the value of router_appliance_instance
, or the default value if router_appliance_instance
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 RouterBgpPeer
impl Send for RouterBgpPeer
impl Sync for RouterBgpPeer
impl Unpin for RouterBgpPeer
impl UnwindSafe for RouterBgpPeer
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