Class: Google::Apis::HypercomputeclusterV1::CreatePartition

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/hypercomputecluster_v1/classes.rb,
lib/google/apis/hypercomputecluster_v1/representations.rb,
lib/google/apis/hypercomputecluster_v1/representations.rb

Overview

When set in OperationStep, indicates that a partition should be created.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreatePartition

Returns a new instance of CreatePartition.



431
432
433
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 431

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

Instance Attribute Details

#partitionsArray<String>

Output only. Name of the partition to create Corresponds to the JSON property partitions

Returns:

  • (Array<String>)


429
430
431
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 429

def partitions
  @partitions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



436
437
438
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 436

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