Class: Google::Apis::GkeonpremV1::VmwareVsphereTag

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

VmwareVsphereTag describes a vSphere tag to be placed on VMs in the node pool. For more information, see https://docs.vmware.com/en/VMware-vSphere/7.0/com. vmware.vsphere.vcenterhost.doc/GUID-E8E854DD-AA97-4E0C-8419-CE84F93C4058.html

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmwareVsphereTag

Returns a new instance of VmwareVsphereTag.



6044
6045
6046
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 6044

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

Instance Attribute Details

#categoryString

The Vsphere tag category. Corresponds to the JSON property category

Returns:

  • (String)


6037
6038
6039
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 6037

def category
  @category
end

#tagString

The Vsphere tag name. Corresponds to the JSON property tag

Returns:

  • (String)


6042
6043
6044
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 6042

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6049
6050
6051
6052
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 6049

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