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.



1562
1563
1564
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1562

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



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

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



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

def load_balancer_node_pool_config
  @load_balancer_node_pool_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1567
1568
1569
1570
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1567

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