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.



1554
1555
1556
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1554

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



1547
1548
1549
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1547

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



1552
1553
1554
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1552

def load_balancer_node_pool_config
  @load_balancer_node_pool_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1559
1560
1561
1562
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1559

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