class Google::Apis::ComputeV1::RouterStatusBgpPeerStatus

Attributes

advertised_routes[RW]

Routes that were advertised to the remote BGP peer Corresponds to the JSON property `advertisedRoutes` @return [Array<Google::Apis::ComputeV1::Route>]

bfd_status[RW]

Next free: 15 Corresponds to the JSON property `bfdStatus` @return [Google::Apis::ComputeV1::BfdStatus]

ip_address[RW]

IP address of the local BGP interface. Corresponds to the JSON property `ipAddress` @return [String]

linked_vpn_tunnel[RW]

URL of the VPN tunnel that this BGP peer controls. Corresponds to the JSON property `linkedVpnTunnel` @return [String]

name[RW]

Name of this BGP peer. Unique within the Routers resource. Corresponds to the JSON property `name` @return [String]

num_learned_routes[RW]

Number of routes learned from the remote BGP Peer. Corresponds to the JSON property `numLearnedRoutes` @return [Fixnum]

peer_ip_address[RW]

IP address of the remote BGP interface. Corresponds to the JSON property `peerIpAddress` @return [String]

router_appliance_instance[RW]
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. Corresponds to the JSON property `routerApplianceInstance` @return [String]

state[RW]

The state of the BGP session. For a list of possible values for this field, see BGP session states. Corresponds to the JSON property `state` @return [String]

status[RW]

Status of the BGP peer: `UP, DOWN` Corresponds to the JSON property `status` @return [String]

uptime[RW]

Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds Corresponds to the JSON property `uptime` @return [String]

uptime_seconds[RW]

Time this session has been up, in seconds. Format: 145 Corresponds to the JSON property `uptimeSeconds` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 30664
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 30669
def update!(**args)
  @advertised_routes = args[:advertised_routes] if args.key?(:advertised_routes)
  @bfd_status = args[:bfd_status] if args.key?(:bfd_status)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @linked_vpn_tunnel = args[:linked_vpn_tunnel] if args.key?(:linked_vpn_tunnel)
  @name = args[:name] if args.key?(:name)
  @num_learned_routes = args[:num_learned_routes] if args.key?(:num_learned_routes)
  @peer_ip_address = args[:peer_ip_address] if args.key?(:peer_ip_address)
  @router_appliance_instance = args[:router_appliance_instance] if args.key?(:router_appliance_instance)
  @state = args[:state] if args.key?(:state)
  @status = args[:status] if args.key?(:status)
  @uptime = args[:uptime] if args.key?(:uptime)
  @uptime_seconds = args[:uptime_seconds] if args.key?(:uptime_seconds)
end