Class: Google::Apis::GkeonpremV1::BareMetalBgpLbConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalBgpLbConfig
- 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
BareMetalBgpLbConfig represents configuration parameters for a Border Gateway Protocol (BGP) load balancer.
Instance Attribute Summary collapse
-
#address_pools ⇒ Array<Google::Apis::GkeonpremV1::BareMetalLoadBalancerAddressPool>
Required.
-
#asn ⇒ Fixnum
Required.
-
#bgp_peer_configs ⇒ Array<Google::Apis::GkeonpremV1::BareMetalBgpPeerConfig>
Required.
-
#load_balancer_node_pool_config ⇒ Google::Apis::GkeonpremV1::BareMetalLoadBalancerNodePoolConfig
Specifies the load balancer's node pool configuration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalBgpLbConfig
constructor
A new instance of BareMetalBgpLbConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalBgpLbConfig
Returns a new instance of BareMetalBgpLbConfig.
1001 1002 1003 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1001 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address_pools ⇒ Array<Google::Apis::GkeonpremV1::BareMetalLoadBalancerAddressPool>
Required. AddressPools is a list of non-overlapping IP pools used by load
balancer typed services. All addresses must be routable to load balancer nodes.
IngressVIP must be included in the pools.
Corresponds to the JSON property addressPools
979 980 981 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 979 def address_pools @address_pools end |
#asn ⇒ Fixnum
Required. BGP autonomous system number (ASN) of the cluster. This field can be
updated after cluster creation.
Corresponds to the JSON property asn
985 986 987 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 985 def asn @asn end |
#bgp_peer_configs ⇒ Array<Google::Apis::GkeonpremV1::BareMetalBgpPeerConfig>
Required. The list of BGP peers that the cluster will connect to. At least one
peer must be configured for each control plane node. Control plane nodes will
connect to these peers to advertise the control plane VIP. The Services load
balancer also uses these peers by default. This field can be updated after
cluster creation.
Corresponds to the JSON property bgpPeerConfigs
994 995 996 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 994 def bgp_peer_configs @bgp_peer_configs end |
#load_balancer_node_pool_config ⇒ Google::Apis::GkeonpremV1::BareMetalLoadBalancerNodePoolConfig
Specifies the load balancer's node pool configuration.
Corresponds to the JSON property loadBalancerNodePoolConfig
999 1000 1001 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 999 def load_balancer_node_pool_config @load_balancer_node_pool_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1006 1007 1008 1009 1010 1011 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1006 def update!(**args) @address_pools = args[:address_pools] if args.key?(:address_pools) @asn = args[:asn] if args.key?(:asn) @bgp_peer_configs = args[:bgp_peer_configs] if args.key?(:bgp_peer_configs) @load_balancer_node_pool_config = args[:load_balancer_node_pool_config] if args.key?(:load_balancer_node_pool_config) end |