Class: Google::Apis::GkeonpremV1::BareMetalBgpPeerConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalBgpPeerConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkeonprem_v1/classes.rb,
lib/google/apis/gkeonprem_v1/representations.rb,
lib/google/apis/gkeonprem_v1/representations.rb
Overview
BareMetalBgpPeerConfig represents configuration parameters for a Border Gateway Protocol (BGP) peer.
Instance Attribute Summary collapse
-
#asn ⇒ Fixnum
Required.
-
#control_plane_nodes ⇒ Array<String>
The IP address of the control plane node that connects to the external peer.
-
#ip_address ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalBgpPeerConfig
constructor
A new instance of BareMetalBgpPeerConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalBgpPeerConfig
Returns a new instance of BareMetalBgpPeerConfig.
1038 1039 1040 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1038 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asn ⇒ Fixnum
Required. BGP autonomous system number (ASN) for the network that contains the
external peer device.
Corresponds to the JSON property asn
1023 1024 1025 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1023 def asn @asn end |
#control_plane_nodes ⇒ Array<String>
The IP address of the control plane node that connects to the external peer.
If you don't specify any control plane nodes, all control plane nodes can
connect to the external peer. If you specify one or more IP addresses, only
the nodes specified participate in peering sessions.
Corresponds to the JSON property controlPlaneNodes
1031 1032 1033 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1031 def control_plane_nodes @control_plane_nodes end |
#ip_address ⇒ String
Required. The IP address of the external peer device.
Corresponds to the JSON property ipAddress
1036 1037 1038 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1036 def ip_address @ip_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1043 1044 1045 1046 1047 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1043 def update!(**args) @asn = args[:asn] if args.key?(:asn) @control_plane_nodes = args[:control_plane_nodes] if args.key?(:control_plane_nodes) @ip_address = args[:ip_address] if args.key?(:ip_address) end |