class Google::Apis::ComputeBeta::RouterBgpPeer
BGP information that needs to be configured into the routing stack to establish the BGP peering. It must specify peer ASN and either interface name, IP, or peer IP. Reference: tools.ietf.org/html/rfc4273
Attributes
The priority of routes advertised to this BGP peer. In the case where there is more than one matching route of maximum length, the routes with lowest priority value win. Corresponds to the JSON property `advertisedRoutePriority` @return [Fixnum]
Name of the interface the BGP peer is associated with. Corresponds to the JSON property `interfaceName` @return [String]
IP address of the interface inside Google Cloud Platform. Corresponds to the JSON property `ipAddress` @return [String]
Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. Corresponds to the JSON property `name` @return [String]
Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be different for every tunnel. Corresponds to the JSON property `peerAsn` @return [Fixnum]
IP address of the BGP interface outside Google cloud. Corresponds to the JSON property `peerIpAddress` @return [String]
Public Class Methods
# File generated/google/apis/compute_beta/classes.rb, line 6857 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/compute_beta/classes.rb, line 6862 def update!(**args) @advertised_route_priority = args[:advertised_route_priority] if args.key?(:advertised_route_priority) @interface_name = args[:interface_name] if args.key?(:interface_name) @ip_address = args[:ip_address] if args.key?(:ip_address) @name = args[:name] if args.key?(:name) @peer_asn = args[:peer_asn] if args.key?(:peer_asn) @peer_ip_address = args[:peer_ip_address] if args.key?(:peer_ip_address) end