Class: Google::Apis::GkeonpremV1::VmwareHostIp

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

Represents VMware user cluster node’s network configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmwareHostIp



5264
5265
5266
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5264

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

Instance Attribute Details

#hostnameString

Hostname of the machine. VM’s name will be used if this field is empty. Corresponds to the JSON property hostname



5257
5258
5259
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5257

def hostname
  @hostname
end

#ipString

IP could be an IP address (like 1.2.3.4) or a CIDR (like 1.2.3.0/24). Corresponds to the JSON property ip



5262
5263
5264
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5262

def ip
  @ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5269
5270
5271
5272
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5269

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