Class: Google::Apis::GkeonpremV1::VmwareControlPlaneNodeConfig

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

Specifies control plane node config for the VMware user cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmwareControlPlaneNodeConfig

Returns a new instance of VmwareControlPlaneNodeConfig.



4393
4394
4395
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4393

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

Instance Attribute Details

#auto_resize_configGoogle::Apis::GkeonpremV1::VmwareAutoResizeConfig

Represents auto resizing configurations for the VMware user cluster. Corresponds to the JSON property autoResizeConfig



4368
4369
4370
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4368

def auto_resize_config
  @auto_resize_config
end

#cpusFixnum

The number of CPUs for each admin cluster node that serve as control planes for this VMware user cluster. (default: 4 CPUs) Corresponds to the JSON property cpus

Returns:

  • (Fixnum)


4374
4375
4376
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4374

def cpus
  @cpus
end

#memoryFixnum

The megabytes of memory for each admin cluster node that serves as a control plane for this VMware user cluster (default: 8192 MB memory). Corresponds to the JSON property memory

Returns:

  • (Fixnum)


4380
4381
4382
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4380

def memory
  @memory
end

#replicasFixnum

The number of control plane nodes for this VMware user cluster. (default: 1 replica). Corresponds to the JSON property replicas

Returns:

  • (Fixnum)


4386
4387
4388
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4386

def replicas
  @replicas
end

#vsphere_configGoogle::Apis::GkeonpremV1::VmwareControlPlaneVsphereConfig

Specifies control plane node config. Corresponds to the JSON property vsphereConfig



4391
4392
4393
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4391

def vsphere_config
  @vsphere_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4398
4399
4400
4401
4402
4403
4404
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4398

def update!(**args)
  @auto_resize_config = args[:auto_resize_config] if args.key?(:auto_resize_config)
  @cpus = args[:cpus] if args.key?(:cpus)
  @memory = args[:memory] if args.key?(:memory)
  @replicas = args[:replicas] if args.key?(:replicas)
  @vsphere_config = args[:vsphere_config] if args.key?(:vsphere_config)
end