Class: Google::Apis::GkeonpremV1::VmwareAdminMetalLbConfig

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
more...

Overview

VmwareAdminMetalLbConfig represents configuration parameters for a MetalLB load balancer. For admin clusters, currently no configurations is needed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmwareAdminMetalLbConfig

Returns a new instance of VmwareAdminMetalLbConfig.

[View source]

4163
4164
4165
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4163

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Whether MetalLB is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)

4160
4161
4162
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4160

def enabled
  @enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

4168
4169
4170
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4168

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