Class: Google::Apis::GkeonpremV1::BareMetalAdminLoadBalancerConfig

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

BareMetalAdminLoadBalancerConfig specifies the load balancer configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalAdminLoadBalancerConfig

Returns a new instance of BareMetalAdminLoadBalancerConfig.



458
459
460
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 458

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

Instance Attribute Details

#manual_lb_configGoogle::Apis::GkeonpremV1::BareMetalAdminManualLbConfig

BareMetalAdminManualLbConfig represents configuration parameters for a manual load balancer. Corresponds to the JSON property manualLbConfig



446
447
448
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 446

def manual_lb_config
  @manual_lb_config
end

#port_configGoogle::Apis::GkeonpremV1::BareMetalAdminPortConfig

BareMetalAdminPortConfig is the specification of load balancer ports. Corresponds to the JSON property portConfig



451
452
453
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 451

def port_config
  @port_config
end

#vip_configGoogle::Apis::GkeonpremV1::BareMetalAdminVipConfig

BareMetalAdminVipConfig for bare metal load balancer configurations. Corresponds to the JSON property vipConfig



456
457
458
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 456

def vip_config
  @vip_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



463
464
465
466
467
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 463

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