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.



4481
4482
4483
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4481

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)


4474
4475
4476
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4474

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)


4479
4480
4481
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4479

def ip
  @ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4486
4487
4488
4489
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4486

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