Struct google_api_proto::google::cloud::compute::v1::RouterBgpPeer
source · pub struct RouterBgpPeer {Show 24 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 custom_learned_ip_ranges: Vec<RouterBgpPeerCustomLearnedIpRange>,
pub custom_learned_route_priority: Option<i32>,
pub enable: Option<String>,
pub enable_ipv4: Option<bool>,
pub enable_ipv6: Option<bool>,
pub export_policies: Vec<String>,
pub import_policies: Vec<String>,
pub interface_name: Option<String>,
pub ip_address: Option<String>,
pub ipv4_nexthop_address: Option<String>,
pub ipv6_nexthop_address: Option<String>,
pub management_type: Option<String>,
pub md5_authentication_key_name: Option<String>,
pub name: Option<String>,
pub peer_asn: Option<u32>,
pub peer_ip_address: Option<String>,
pub peer_ipv4_nexthop_address: Option<String>,
pub peer_ipv6_nexthop_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 currently supports the following option: - ALL_SUBNETS: Advertises all of the router’s own VPC subnets. This excludes any routes learned for subnets that use VPC Network Peering. 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.
custom_learned_ip_ranges: Vec<RouterBgpPeerCustomLearnedIpRange>
A list of user-defined custom learned route IP address ranges for a BGP session.
custom_learned_route_priority: Option<i32>
The user-defined custom learned route priority for a BGP session. This value is applied to all custom learned route ranges for the session. You can choose a value from 0
to 65335
. If you don’t provide a value, Google Cloud assigns a priority of 100
to the ranges.
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.
enable_ipv4: Option<bool>
Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4.
enable_ipv6: Option<bool>
Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6.
export_policies: Vec<String>
List of export policies applied to this peer, in the order they must be evaluated. The name must correspond to an existing policy that has ROUTE_POLICY_TYPE_EXPORT type. Note that Route Policies are currently available in preview. Please use Beta API to use Route Policies.
import_policies: Vec<String>
List of import policies applied to this peer, in the order they must be evaluated. The name must correspond to an existing policy that has ROUTE_POLICY_TYPE_IMPORT type. Note that Route Policies are currently available in preview. Please use Beta API to use Route Policies.
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.
ipv4_nexthop_address: Option<String>
IPv4 address of the interface inside Google Cloud Platform.
ipv6_nexthop_address: Option<String>
IPv6 address of the interface inside Google Cloud Platform.
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.
md5_authentication_key_name: Option<String>
Present if MD5 authentication is enabled for the peering. Must be the name of one of the entries in the Router.md5_authentication_keys. The field must comply with RFC1035.
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.
peer_ipv4_nexthop_address: Option<String>
IPv4 address of the BGP interface outside Google Cloud Platform.
peer_ipv6_nexthop_address: Option<String>
IPv6 address of the BGP interface outside Google Cloud Platform.
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§
source§impl RouterBgpPeer
impl RouterBgpPeer
sourcepub fn ipv4_nexthop_address(&self) -> &str
pub fn ipv4_nexthop_address(&self) -> &str
Returns the value of ipv4_nexthop_address
, or the default value if ipv4_nexthop_address
is unset.
sourcepub fn ipv6_nexthop_address(&self) -> &str
pub fn ipv6_nexthop_address(&self) -> &str
Returns the value of ipv6_nexthop_address
, or the default value if ipv6_nexthop_address
is unset.
sourcepub fn peer_asn(&self) -> u32
pub fn peer_asn(&self) -> u32
Returns the value of peer_asn
, or the default value if peer_asn
is unset.
sourcepub fn management_type(&self) -> &str
pub fn management_type(&self) -> &str
Returns the value of management_type
, or the default value if management_type
is unset.
sourcepub fn enable_ipv4(&self) -> bool
pub fn enable_ipv4(&self) -> bool
Returns the value of enable_ipv4
, or the default value if enable_ipv4
is unset.
sourcepub fn enable_ipv6(&self) -> bool
pub fn enable_ipv6(&self) -> bool
Returns the value of enable_ipv6
, or the default value if enable_ipv6
is unset.
sourcepub fn advertised_route_priority(&self) -> u32
pub fn advertised_route_priority(&self) -> u32
Returns the value of advertised_route_priority
, or the default value if advertised_route_priority
is unset.
sourcepub fn peer_ip_address(&self) -> &str
pub fn peer_ip_address(&self) -> &str
Returns the value of peer_ip_address
, or the default value if peer_ip_address
is unset.
sourcepub fn md5_authentication_key_name(&self) -> &str
pub fn md5_authentication_key_name(&self) -> &str
Returns the value of md5_authentication_key_name
, or the default value if md5_authentication_key_name
is unset.
sourcepub fn enable(&self) -> &str
pub fn enable(&self) -> &str
Returns the value of enable
, or the default value if enable
is unset.
sourcepub fn advertise_mode(&self) -> &str
pub fn advertise_mode(&self) -> &str
Returns the value of advertise_mode
, or the default value if advertise_mode
is unset.
sourcepub fn custom_learned_route_priority(&self) -> i32
pub fn custom_learned_route_priority(&self) -> i32
Returns the value of custom_learned_route_priority
, or the default value if custom_learned_route_priority
is unset.
sourcepub fn ip_address(&self) -> &str
pub fn ip_address(&self) -> &str
Returns the value of ip_address
, or the default value if ip_address
is unset.
sourcepub fn interface_name(&self) -> &str
pub fn interface_name(&self) -> &str
Returns the value of interface_name
, or the default value if interface_name
is unset.
sourcepub fn router_appliance_instance(&self) -> &str
pub fn router_appliance_instance(&self) -> &str
Returns the value of router_appliance_instance
, or the default value if router_appliance_instance
is unset.
sourcepub fn peer_ipv4_nexthop_address(&self) -> &str
pub fn peer_ipv4_nexthop_address(&self) -> &str
Returns the value of peer_ipv4_nexthop_address
, or the default value if peer_ipv4_nexthop_address
is unset.
sourcepub fn peer_ipv6_nexthop_address(&self) -> &str
pub fn peer_ipv6_nexthop_address(&self) -> &str
Returns the value of peer_ipv6_nexthop_address
, or the default value if peer_ipv6_nexthop_address
is unset.
Trait Implementations§
source§impl Clone for RouterBgpPeer
impl Clone for RouterBgpPeer
source§fn clone(&self) -> RouterBgpPeer
fn clone(&self) -> RouterBgpPeer
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RouterBgpPeer
impl Debug for RouterBgpPeer
source§impl Default for RouterBgpPeer
impl Default for RouterBgpPeer
source§impl Message for RouterBgpPeer
impl Message for RouterBgpPeer
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 RouterBgpPeer
impl PartialEq for RouterBgpPeer
source§fn eq(&self, other: &RouterBgpPeer) -> bool
fn eq(&self, other: &RouterBgpPeer) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RouterBgpPeer
Auto Trait Implementations§
impl Freeze for RouterBgpPeer
impl RefUnwindSafe for RouterBgpPeer
impl Send for RouterBgpPeer
impl Sync for RouterBgpPeer
impl Unpin for RouterBgpPeer
impl UnwindSafe for RouterBgpPeer
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