Class: Google::Apis::GkeonpremV1::VmwareHostIp
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::VmwareHostIp
- 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
-
#hostname ⇒ String
Hostname of the machine.
-
#ip ⇒ String
IP could be an IP address (like 1.2.3.4) or a CIDR (like 1.2.3.0/24).
Instance Method Summary collapse
-
#initialize(**args) ⇒ VmwareHostIp
constructor
A new instance of VmwareHostIp.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VmwareHostIp
Returns a new instance of VmwareHostIp.
4975 4976 4977 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4975 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hostname ⇒ String
Hostname of the machine. VM's name will be used if this field is empty.
Corresponds to the JSON property hostname
4968 4969 4970 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4968 def hostname @hostname end |
#ip ⇒ String
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
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
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 |