Class: Google::Apis::GkeonpremV1::BareMetalMetalLbConfig

Inherits:
Object
  • Object
show all
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

Represents configuration parameters for a MetalLB load balancer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalMetalLbConfig

Returns a new instance of BareMetalMetalLbConfig.



1753
1754
1755
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1753

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#address_poolsArray<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



1746
1747
1748
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1746

def address_pools
  @address_pools
end

#load_balancer_node_pool_configGoogle::Apis::GkeonpremV1::BareMetalLoadBalancerNodePoolConfig

Specifies the load balancer's node pool configuration. Corresponds to the JSON property loadBalancerNodePoolConfig



1751
1752
1753
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1751

def load_balancer_node_pool_config
  @load_balancer_node_pool_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1758
1759
1760
1761
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1758

def update!(**args)
  @address_pools = args[:address_pools] if args.key?(:address_pools)
  @load_balancer_node_pool_config = args[:load_balancer_node_pool_config] if args.key?(:load_balancer_node_pool_config)
end