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

source

pub fn name(&self) -> &str

Returns the value of name, or the default value if name is unset.

source

pub fn ipv4_nexthop_address(&self) -> &str

Returns the value of ipv4_nexthop_address, or the default value if ipv4_nexthop_address is unset.

source

pub fn ipv6_nexthop_address(&self) -> &str

Returns the value of ipv6_nexthop_address, or the default value if ipv6_nexthop_address is unset.

source

pub fn peer_asn(&self) -> u32

Returns the value of peer_asn, or the default value if peer_asn is unset.

source

pub fn management_type(&self) -> &str

Returns the value of management_type, or the default value if management_type is unset.

source

pub fn enable_ipv4(&self) -> bool

Returns the value of enable_ipv4, or the default value if enable_ipv4 is unset.

source

pub fn enable_ipv6(&self) -> bool

Returns the value of enable_ipv6, or the default value if enable_ipv6 is unset.

source

pub fn advertised_route_priority(&self) -> u32

Returns the value of advertised_route_priority, or the default value if advertised_route_priority is unset.

source

pub fn peer_ip_address(&self) -> &str

Returns the value of peer_ip_address, or the default value if peer_ip_address is unset.

source

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.

source

pub fn enable(&self) -> &str

Returns the value of enable, or the default value if enable is unset.

source

pub fn advertise_mode(&self) -> &str

Returns the value of advertise_mode, or the default value if advertise_mode is unset.

source

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.

source

pub fn ip_address(&self) -> &str

Returns the value of ip_address, or the default value if ip_address is unset.

source

pub fn interface_name(&self) -> &str

Returns the value of interface_name, or the default value if interface_name is unset.

source

pub fn router_appliance_instance(&self) -> &str

Returns the value of router_appliance_instance, or the default value if router_appliance_instance is unset.

source

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.

source

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

source§

fn clone(&self) -> RouterBgpPeer

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RouterBgpPeer

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for RouterBgpPeer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Message for RouterBgpPeer

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for RouterBgpPeer

source§

fn eq(&self, other: &RouterBgpPeer) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for RouterBgpPeer

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more