Class: Google::Apis::GkeonpremV1::BareMetalMetalLbConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalMetalLbConfig
- 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
-
#address_pools ⇒ Array<Google::Apis::GkeonpremV1::BareMetalLoadBalancerAddressPool>
Required.
-
#load_balancer_node_pool_config ⇒ Google::Apis::GkeonpremV1::BareMetalLoadBalancerNodePoolConfig
Specifies the load balancer's node pool configuration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalMetalLbConfig
constructor
A new instance of BareMetalMetalLbConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_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
1555 1556 1557 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1555 def address_pools @address_pools end |
#load_balancer_node_pool_config ⇒ Google::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 |