Class: Google::Apis::HypercomputeclusterV1::CreatePartition
- Inherits:
-
Object
- Object
- Google::Apis::HypercomputeclusterV1::CreatePartition
- 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
-
#partitions ⇒ Array<String>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreatePartition
constructor
A new instance of CreatePartition.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#partitions ⇒ Array<String>
Output only. Name of the partition to create
Corresponds to the JSON property partitions
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 |