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

Returns a new instance of VmwareHostIp.



4587
4588
4589
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4587

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

Returns:

  • (String)


4580
4581
4582
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4580

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

Returns:

  • (String)


4585
4586
4587
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4585

def ip
  @ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4592
4593
4594
4595
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4592

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