Class: Google::Apis::ComputeBeta::NodeGroupNode

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NodeGroupNode

Returns a new instance of NodeGroupNode



14112
14113
14114
# File 'generated/google/apis/compute_beta/classes.rb', line 14112

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

Instance Attribute Details

#instancesArray<String>

Instances scheduled on this node. Corresponds to the JSON property instances

Returns:

  • (Array<String>)


14095
14096
14097
# File 'generated/google/apis/compute_beta/classes.rb', line 14095

def instances
  @instances
end

#nameString

The name of the node. Corresponds to the JSON property name

Returns:

  • (String)


14100
14101
14102
# File 'generated/google/apis/compute_beta/classes.rb', line 14100

def name
  @name
end

#node_typeString

The type of this node. Corresponds to the JSON property nodeType

Returns:

  • (String)


14105
14106
14107
# File 'generated/google/apis/compute_beta/classes.rb', line 14105

def node_type
  @node_type
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


14110
14111
14112
# File 'generated/google/apis/compute_beta/classes.rb', line 14110

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14117
14118
14119
14120
14121
14122
# File 'generated/google/apis/compute_beta/classes.rb', line 14117

def update!(**args)
  @instances = args[:instances] if args.key?(:instances)
  @name = args[:name] if args.key?(:name)
  @node_type = args[:node_type] if args.key?(:node_type)
  @status = args[:status] if args.key?(:status)
end