Class: Google::Apis::ComputeAlpha::NodeGroupNode

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/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



16272
16273
16274
# File 'generated/google/apis/compute_alpha/classes.rb', line 16272

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

Instance Attribute Details

#indexFixnum

Corresponds to the JSON property index

Returns:

  • (Fixnum)


16260
16261
16262
# File 'generated/google/apis/compute_alpha/classes.rb', line 16260

def index
  @index
end

#instancesArray<String>

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

Returns:

  • (Array<String>)


16265
16266
16267
# File 'generated/google/apis/compute_alpha/classes.rb', line 16265

def instances
  @instances
end

#node_typeString

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

Returns:

  • (String)


16270
16271
16272
# File 'generated/google/apis/compute_alpha/classes.rb', line 16270

def node_type
  @node_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16277
16278
16279
16280
16281
# File 'generated/google/apis/compute_alpha/classes.rb', line 16277

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