Class: Google::Apis::GkeonpremV1::VmwareVsphereConfig

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

VmwareVsphereConfig represents configuration for the VMware VCenter for node pool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmwareVsphereConfig

Returns a new instance of VmwareVsphereConfig.

[View source]

5727
5728
5729
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5727

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

Instance Attribute Details

#datastoreString

The name of the vCenter datastore. Inherited from the user cluster. Corresponds to the JSON property datastore

Returns:

  • (String)

5715
5716
5717
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5715

def datastore
  @datastore
end

#host_groupsArray<String>

Vsphere host groups to apply to all VMs in the node pool Corresponds to the JSON property hostGroups

Returns:

  • (Array<String>)

5720
5721
5722
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5720

def host_groups
  @host_groups
end

#tagsArray<Google::Apis::GkeonpremV1::VmwareVsphereTag>

Tags to apply to VMs. Corresponds to the JSON property tags


5725
5726
5727
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5725

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

5732
5733
5734
5735
5736
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5732

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