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



16297
16298
16299
# File 'generated/google/apis/compute_alpha/classes.rb', line 16297

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

Instance Attribute Details

#indexFixnum

Corresponds to the JSON property index

Returns:

  • (Fixnum)


16275
16276
16277
# File 'generated/google/apis/compute_alpha/classes.rb', line 16275

def index
  @index
end

#instancesArray<String>

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

Returns:

  • (Array<String>)


16280
16281
16282
# File 'generated/google/apis/compute_alpha/classes.rb', line 16280

def instances
  @instances
end

#nameString

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

Returns:

  • (String)


16285
16286
16287
# File 'generated/google/apis/compute_alpha/classes.rb', line 16285

def name
  @name
end

#node_typeString

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

Returns:

  • (String)


16290
16291
16292
# File 'generated/google/apis/compute_alpha/classes.rb', line 16290

def node_type
  @node_type
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


16295
16296
16297
# File 'generated/google/apis/compute_alpha/classes.rb', line 16295

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16302
16303
16304
16305
16306
16307
16308
# File 'generated/google/apis/compute_alpha/classes.rb', line 16302

def update!(**args)
  @index = args[:index] if args.key?(:index)
  @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