Class: Google::Apis::GkeonpremV1::BareMetalDrainingMachine

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 a machine that is currently draining.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalDrainingMachine

Returns a new instance of BareMetalDrainingMachine.



1216
1217
1218
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1216

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

Instance Attribute Details

#node_ipString

Draining machine IP address. Corresponds to the JSON property nodeIp

Returns:

  • (String)


1209
1210
1211
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1209

def node_ip
  @node_ip
end

#pod_countFixnum

The count of pods yet to drain. Corresponds to the JSON property podCount

Returns:

  • (Fixnum)


1214
1215
1216
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1214

def pod_count
  @pod_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1221
1222
1223
1224
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1221

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