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
more...

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.

[View source]

4975
4976
4977
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4975

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)

4968
4969
4970
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4968

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)

4973
4974
4975
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4973

def ip
  @ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

4980
4981
4982
4983
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4980

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