# Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::RouterStatusBgpPeerStatus (v3.7.0)

3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.22.0 2.21.1 2.20.0 2.19.1 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.2 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.10.0 1.9.0 1.8.0 1.7.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.5.0 Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::RouterStatusBgpPeerStatus.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #advertised_routes

    def advertised_routes() -> ::Array<::Google::Cloud::Compute::V1::Route>

**Returns**

- (::Array\<[::Google::Cloud::Compute::V1::Route](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-Route)\>) --- Routes that were advertised to the remote BGP peer

### #advertised_routes=

    def advertised_routes=(value) -> ::Array<::Google::Cloud::Compute::V1::Route>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Compute::V1::Route](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-Route)\>) --- Routes that were advertised to the remote BGP peer
**Returns**

- (::Array\<[::Google::Cloud::Compute::V1::Route](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-Route)\>) --- Routes that were advertised to the remote BGP peer

### #bfd_status

    def bfd_status() -> ::Google::Cloud::Compute::V1::BfdStatus

**Returns**

- ([::Google::Cloud::Compute::V1::BfdStatus](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-BfdStatus))

### #bfd_status=

    def bfd_status=(value) -> ::Google::Cloud::Compute::V1::BfdStatus

**Parameter**

- **value** ([::Google::Cloud::Compute::V1::BfdStatus](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-BfdStatus))
**Returns**

- ([::Google::Cloud::Compute::V1::BfdStatus](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-BfdStatus))

### #enable_ipv4

    def enable_ipv4() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4.

### #enable_ipv4=

    def enable_ipv4=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4.
**Returns**

- (::Boolean) --- Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4.

### #enable_ipv6

    def enable_ipv6() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6.

### #enable_ipv6=

    def enable_ipv6=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6.
**Returns**

- (::Boolean) --- Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6.

### #ip_address

    def ip_address() -> ::String

**Returns**

- (::String) --- Output only. IP address of the local BGP interface.

### #ip_address=

    def ip_address=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. IP address of the local BGP interface.
**Returns**

- (::String) --- Output only. IP address of the local BGP interface.

### #ipv4_nexthop_address

    def ipv4_nexthop_address() -> ::String

**Returns**

- (::String) --- Output only. IPv4 address of the local BGP interface.

### #ipv4_nexthop_address=

    def ipv4_nexthop_address=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. IPv4 address of the local BGP interface.
**Returns**

- (::String) --- Output only. IPv4 address of the local BGP interface.

### #ipv6_nexthop_address

    def ipv6_nexthop_address() -> ::String

**Returns**

- (::String) --- Output only. IPv6 address of the local BGP interface.

### #ipv6_nexthop_address=

    def ipv6_nexthop_address=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. IPv6 address of the local BGP interface.
**Returns**

- (::String) --- Output only. IPv6 address of the local BGP interface.

### #linked_vpn_tunnel

    def linked_vpn_tunnel() -> ::String

**Returns**

- (::String) --- Output only. URL of the VPN tunnel that this BGP peer controls.

### #linked_vpn_tunnel=

    def linked_vpn_tunnel=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. URL of the VPN tunnel that this BGP peer controls.
**Returns**

- (::String) --- Output only. URL of the VPN tunnel that this BGP peer controls.

### #md5_auth_enabled

    def md5_auth_enabled() -> ::Boolean

**Returns**

- (::Boolean) --- Informs whether MD5 authentication is enabled on this BGP peer.

### #md5_auth_enabled=

    def md5_auth_enabled=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Informs whether MD5 authentication is enabled on this BGP peer.
**Returns**

- (::Boolean) --- Informs whether MD5 authentication is enabled on this BGP peer.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. Name of this BGP peer. Unique within the Routers resource.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. Name of this BGP peer. Unique within the Routers resource.
**Returns**

- (::String) --- Output only. Name of this BGP peer. Unique within the Routers resource.

### #num_learned_routes

    def num_learned_routes() -> ::Integer

**Returns**

- (::Integer) --- Output only. Number of routes learned from the remote BGP Peer.

### #num_learned_routes=

    def num_learned_routes=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Output only. Number of routes learned from the remote BGP Peer.
**Returns**

- (::Integer) --- Output only. Number of routes learned from the remote BGP Peer.

### #peer_ip_address

    def peer_ip_address() -> ::String

**Returns**

- (::String) --- Output only. IP address of the remote BGP interface.

### #peer_ip_address=

    def peer_ip_address=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. IP address of the remote BGP interface.
**Returns**

- (::String) --- Output only. IP address of the remote BGP interface.

### #peer_ipv4_nexthop_address

    def peer_ipv4_nexthop_address() -> ::String

**Returns**

- (::String) --- Output only. IPv4 address of the remote BGP interface.

### #peer_ipv4_nexthop_address=

    def peer_ipv4_nexthop_address=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. IPv4 address of the remote BGP interface.
**Returns**

- (::String) --- Output only. IPv4 address of the remote BGP interface.

### #peer_ipv6_nexthop_address

    def peer_ipv6_nexthop_address() -> ::String

**Returns**

- (::String) --- Output only. IPv6 address of the remote BGP interface.

### #peer_ipv6_nexthop_address=

    def peer_ipv6_nexthop_address=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. IPv6 address of the remote BGP interface.
**Returns**

- (::String) --- Output only. IPv6 address of the remote BGP interface.

### #router_appliance_instance

    def router_appliance_instance() -> ::String

**Returns**

- (::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.

### #router_appliance_instance=

    def router_appliance_instance=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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

    def state() -> ::String

**Returns**

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

### #state=

    def state=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. The state of the BGP session. For a list of possible values for this field, seeBGP session states.
**Returns**

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

### #status

    def status() -> ::String

**Returns**

- (::String) --- Output only. Status of the BGP peer: {UP, DOWN} Check the Status enum for the list of possible values.

### #status=

    def status=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. Status of the BGP peer: {UP, DOWN} Check the Status enum for the list of possible values.
**Returns**

- (::String) --- Output only. Status of the BGP peer: {UP, DOWN} Check the Status enum for the list of possible values.

### #status_reason

    def status_reason() -> ::String

**Returns**

- (::String) --- Indicates why particular status was returned. Check the StatusReason enum for the list of possible values.

### #status_reason=

    def status_reason=(value) -> ::String

**Parameter**

- **value** (::String) --- Indicates why particular status was returned. Check the StatusReason enum for the list of possible values.
**Returns**

- (::String) --- Indicates why particular status was returned. Check the StatusReason enum for the list of possible values.

### #uptime

    def uptime() -> ::String

**Returns**

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

### #uptime=

    def uptime=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds
**Returns**

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

### #uptime_seconds

    def uptime_seconds() -> ::String

**Returns**

- (::String) --- Output only. Time this session has been up, in seconds. Format: 145

### #uptime_seconds=

    def uptime_seconds=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. Time this session has been up, in seconds. Format: 145
**Returns**

- (::String) --- Output only. Time this session has been up, in seconds. Format: 145