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.
816 817 818 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 816 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
794 795 796 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 794 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
800 801 802 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 800 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
809 810 811 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 809 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
814 815 816 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 814 def load_balancer_node_pool_config @load_balancer_node_pool_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
821 822 823 824 825 826 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 821 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 |