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

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.



5244
5245
5246
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5244

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)


5232
5233
5234
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5232

def datastore
  @datastore
end

#storage_policy_nameString

The name of the vCenter storage policy. Inherited from the user cluster. Corresponds to the JSON property storagePolicyName

Returns:

  • (String)


5237
5238
5239
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5237

def storage_policy_name
  @storage_policy_name
end

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

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



5242
5243
5244
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5242

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5249
5250
5251
5252
5253
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5249

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