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.



1517
1518
1519
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1517

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



1510
1511
1512
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1510

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



1515
1516
1517
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1515

def load_balancer_node_pool_config
  @load_balancer_node_pool_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1522
1523
1524
1525
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1522

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