Skip to main content

RouterStatusBgpPeerStatus

Struct RouterStatusBgpPeerStatus 

Source
#[non_exhaustive]
pub struct RouterStatusBgpPeerStatus {
Show 20 fields pub advertised_routes: Vec<Route>, pub bfd_status: Option<BfdStatus>, pub enable_ipv_4: Option<bool>, pub enable_ipv_6: Option<bool>, pub ip_address: Option<String>, pub ipv_4_nexthop_address: Option<String>, pub ipv_6_nexthop_address: Option<String>, pub linked_vpn_tunnel: Option<String>, pub md_5_auth_enabled: Option<bool>, pub name: Option<String>, pub num_learned_routes: Option<u32>, pub peer_ip_address: Option<String>, pub peer_ipv_4_nexthop_address: Option<String>, pub peer_ipv_6_nexthop_address: Option<String>, pub router_appliance_instance: Option<String>, pub state: Option<String>, pub status: Option<Status>, pub status_reason: Option<StatusReason>, pub uptime: Option<String>, pub uptime_seconds: Option<String>, /* private fields */
}
Available on crate feature routers only.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§advertised_routes: Vec<Route>

Routes that were advertised to the remote BGP peer

§bfd_status: Option<BfdStatus>§enable_ipv_4: Option<bool>

Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4.

§enable_ipv_6: Option<bool>

Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6.

§ip_address: Option<String>

Output only. IP address of the local BGP interface.

§ipv_4_nexthop_address: Option<String>

Output only. IPv4 address of the local BGP interface.

§ipv_6_nexthop_address: Option<String>

Output only. IPv6 address of the local BGP interface.

§linked_vpn_tunnel: Option<String>

Output only. URL of the VPN tunnel that this BGP peer controls.

§md_5_auth_enabled: Option<bool>

Informs whether MD5 authentication is enabled on this BGP peer.

§name: Option<String>

Output only. Name of this BGP peer. Unique within the Routers resource.

§num_learned_routes: Option<u32>

Output only. Number of routes learned from the remote BGP Peer.

§peer_ip_address: Option<String>

Output only. IP address of the remote BGP interface.

§peer_ipv_4_nexthop_address: Option<String>

Output only. IPv4 address of the remote BGP interface.

§peer_ipv_6_nexthop_address: Option<String>

Output only. IPv6 address of the remote BGP interface.

§router_appliance_instance: Option<String>

Output only. [Output only] 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 is the peer side of the BGP session.

§state: Option<String>

Output only. The state of the BGP session. For a list of possible values for this field, seeBGP session states.

§status: Option<Status>

Output only. Status of the BGP peer: {UP, DOWN}

§status_reason: Option<StatusReason>

Indicates why particular status was returned.

§uptime: Option<String>

Output only. Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds

§uptime_seconds: Option<String>

Output only. Time this session has been up, in seconds. Format: 145

Implementations§

Source§

impl RouterStatusBgpPeerStatus

Source

pub fn new() -> Self

Source

pub fn set_advertised_routes<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<Route>,

Sets the value of advertised_routes.

§Example
use google_cloud_compute_v1::model::Route;
let x = RouterStatusBgpPeerStatus::new()
    .set_advertised_routes([
        Route::default()/* use setters */,
        Route::default()/* use (different) setters */,
    ]);
Source

pub fn set_bfd_status<T>(self, v: T) -> Self
where T: Into<BfdStatus>,

Sets the value of bfd_status.

§Example
use google_cloud_compute_v1::model::BfdStatus;
let x = RouterStatusBgpPeerStatus::new().set_bfd_status(BfdStatus::default()/* use setters */);
Source

pub fn set_or_clear_bfd_status<T>(self, v: Option<T>) -> Self
where T: Into<BfdStatus>,

Sets or clears the value of bfd_status.

§Example
use google_cloud_compute_v1::model::BfdStatus;
let x = RouterStatusBgpPeerStatus::new().set_or_clear_bfd_status(Some(BfdStatus::default()/* use setters */));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_bfd_status(None::<BfdStatus>);
Source

pub fn set_enable_ipv_4<T>(self, v: T) -> Self
where T: Into<bool>,

Sets the value of enable_ipv_4.

§Example
let x = RouterStatusBgpPeerStatus::new().set_enable_ipv_4(true);
Source

pub fn set_or_clear_enable_ipv_4<T>(self, v: Option<T>) -> Self
where T: Into<bool>,

Sets or clears the value of enable_ipv_4.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_enable_ipv_4(Some(false));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_enable_ipv_4(None::<bool>);
Source

pub fn set_enable_ipv_6<T>(self, v: T) -> Self
where T: Into<bool>,

Sets the value of enable_ipv_6.

§Example
let x = RouterStatusBgpPeerStatus::new().set_enable_ipv_6(true);
Source

pub fn set_or_clear_enable_ipv_6<T>(self, v: Option<T>) -> Self
where T: Into<bool>,

Sets or clears the value of enable_ipv_6.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_enable_ipv_6(Some(false));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_enable_ipv_6(None::<bool>);
Source

pub fn set_ip_address<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of ip_address.

§Example
let x = RouterStatusBgpPeerStatus::new().set_ip_address("example");
Source

pub fn set_or_clear_ip_address<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of ip_address.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_ip_address(Some("example"));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_ip_address(None::<String>);
Source

pub fn set_ipv_4_nexthop_address<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of ipv_4_nexthop_address.

§Example
let x = RouterStatusBgpPeerStatus::new().set_ipv_4_nexthop_address("example");
Source

pub fn set_or_clear_ipv_4_nexthop_address<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of ipv_4_nexthop_address.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_ipv_4_nexthop_address(Some("example"));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_ipv_4_nexthop_address(None::<String>);
Source

pub fn set_ipv_6_nexthop_address<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of ipv_6_nexthop_address.

§Example
let x = RouterStatusBgpPeerStatus::new().set_ipv_6_nexthop_address("example");
Source

pub fn set_or_clear_ipv_6_nexthop_address<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of ipv_6_nexthop_address.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_ipv_6_nexthop_address(Some("example"));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_ipv_6_nexthop_address(None::<String>);
Source

pub fn set_linked_vpn_tunnel<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of linked_vpn_tunnel.

§Example
let x = RouterStatusBgpPeerStatus::new().set_linked_vpn_tunnel("example");
Source

pub fn set_or_clear_linked_vpn_tunnel<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of linked_vpn_tunnel.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_linked_vpn_tunnel(Some("example"));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_linked_vpn_tunnel(None::<String>);
Source

pub fn set_md_5_auth_enabled<T>(self, v: T) -> Self
where T: Into<bool>,

Sets the value of md_5_auth_enabled.

§Example
let x = RouterStatusBgpPeerStatus::new().set_md_5_auth_enabled(true);
Source

pub fn set_or_clear_md_5_auth_enabled<T>(self, v: Option<T>) -> Self
where T: Into<bool>,

Sets or clears the value of md_5_auth_enabled.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_md_5_auth_enabled(Some(false));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_md_5_auth_enabled(None::<bool>);
Source

pub fn set_name<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of name.

§Example
let x = RouterStatusBgpPeerStatus::new().set_name("example");
Source

pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of name.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_name(Some("example"));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_name(None::<String>);
Source

pub fn set_num_learned_routes<T>(self, v: T) -> Self
where T: Into<u32>,

Sets the value of num_learned_routes.

§Example
let x = RouterStatusBgpPeerStatus::new().set_num_learned_routes(42_u32);
Source

pub fn set_or_clear_num_learned_routes<T>(self, v: Option<T>) -> Self
where T: Into<u32>,

Sets or clears the value of num_learned_routes.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_num_learned_routes(Some(42_u32));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_num_learned_routes(None::<u32>);
Source

pub fn set_peer_ip_address<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of peer_ip_address.

§Example
let x = RouterStatusBgpPeerStatus::new().set_peer_ip_address("example");
Source

pub fn set_or_clear_peer_ip_address<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of peer_ip_address.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_peer_ip_address(Some("example"));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_peer_ip_address(None::<String>);
Source

pub fn set_peer_ipv_4_nexthop_address<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of peer_ipv_4_nexthop_address.

§Example
let x = RouterStatusBgpPeerStatus::new().set_peer_ipv_4_nexthop_address("example");
Source

pub fn set_or_clear_peer_ipv_4_nexthop_address<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of peer_ipv_4_nexthop_address.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_peer_ipv_4_nexthop_address(Some("example"));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_peer_ipv_4_nexthop_address(None::<String>);
Source

pub fn set_peer_ipv_6_nexthop_address<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of peer_ipv_6_nexthop_address.

§Example
let x = RouterStatusBgpPeerStatus::new().set_peer_ipv_6_nexthop_address("example");
Source

pub fn set_or_clear_peer_ipv_6_nexthop_address<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of peer_ipv_6_nexthop_address.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_peer_ipv_6_nexthop_address(Some("example"));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_peer_ipv_6_nexthop_address(None::<String>);
Source

pub fn set_router_appliance_instance<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of router_appliance_instance.

§Example
let x = RouterStatusBgpPeerStatus::new().set_router_appliance_instance("example");
Source

pub fn set_or_clear_router_appliance_instance<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of router_appliance_instance.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_router_appliance_instance(Some("example"));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_router_appliance_instance(None::<String>);
Source

pub fn set_state<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of state.

§Example
let x = RouterStatusBgpPeerStatus::new().set_state("example");
Source

pub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of state.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_state(Some("example"));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_state(None::<String>);
Source

pub fn set_status<T>(self, v: T) -> Self
where T: Into<Status>,

Sets the value of status.

§Example
use google_cloud_compute_v1::model::router_status_bgp_peer_status::Status;
let x0 = RouterStatusBgpPeerStatus::new().set_status(Status::Unknown);
let x1 = RouterStatusBgpPeerStatus::new().set_status(Status::Up);
Source

pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
where T: Into<Status>,

Sets or clears the value of status.

§Example
use google_cloud_compute_v1::model::router_status_bgp_peer_status::Status;
let x0 = RouterStatusBgpPeerStatus::new().set_or_clear_status(Some(Status::Unknown));
let x1 = RouterStatusBgpPeerStatus::new().set_or_clear_status(Some(Status::Up));
let x_none = RouterStatusBgpPeerStatus::new().set_or_clear_status(None::<Status>);
Source

pub fn set_status_reason<T>(self, v: T) -> Self
where T: Into<StatusReason>,

Sets the value of status_reason.

§Example
use google_cloud_compute_v1::model::router_status_bgp_peer_status::StatusReason;
let x0 = RouterStatusBgpPeerStatus::new().set_status_reason(StatusReason::Ipv6PeerOnIpv4OnlyConnection);
let x1 = RouterStatusBgpPeerStatus::new().set_status_reason(StatusReason::Md5AuthInternalProblem);
let x2 = RouterStatusBgpPeerStatus::new().set_status_reason(StatusReason::Unspecified);
Source

pub fn set_or_clear_status_reason<T>(self, v: Option<T>) -> Self
where T: Into<StatusReason>,

Sets or clears the value of status_reason.

§Example
use google_cloud_compute_v1::model::router_status_bgp_peer_status::StatusReason;
let x0 = RouterStatusBgpPeerStatus::new().set_or_clear_status_reason(Some(StatusReason::Ipv6PeerOnIpv4OnlyConnection));
let x1 = RouterStatusBgpPeerStatus::new().set_or_clear_status_reason(Some(StatusReason::Md5AuthInternalProblem));
let x2 = RouterStatusBgpPeerStatus::new().set_or_clear_status_reason(Some(StatusReason::Unspecified));
let x_none = RouterStatusBgpPeerStatus::new().set_or_clear_status_reason(None::<StatusReason>);
Source

pub fn set_uptime<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of uptime.

§Example
let x = RouterStatusBgpPeerStatus::new().set_uptime("example");
Source

pub fn set_or_clear_uptime<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of uptime.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_uptime(Some("example"));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_uptime(None::<String>);
Source

pub fn set_uptime_seconds<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of uptime_seconds.

§Example
let x = RouterStatusBgpPeerStatus::new().set_uptime_seconds("example");
Source

pub fn set_or_clear_uptime_seconds<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of uptime_seconds.

§Example
let x = RouterStatusBgpPeerStatus::new().set_or_clear_uptime_seconds(Some("example"));
let x = RouterStatusBgpPeerStatus::new().set_or_clear_uptime_seconds(None::<String>);

Trait Implementations§

Source§

impl Clone for RouterStatusBgpPeerStatus

Source§

fn clone(&self) -> RouterStatusBgpPeerStatus

Returns a duplicate 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 RouterStatusBgpPeerStatus

Source§

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

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

impl Default for RouterStatusBgpPeerStatus

Source§

fn default() -> RouterStatusBgpPeerStatus

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

impl Message for RouterStatusBgpPeerStatus

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for RouterStatusBgpPeerStatus

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for RouterStatusBgpPeerStatus

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

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

Source§

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>,

Source§

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>,

Source§

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.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,