Class: Google::Apis::HypercomputeclusterV1::UpdatePartition
- Inherits:
-
Object
- Object
- Google::Apis::HypercomputeclusterV1::UpdatePartition
- 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 updated.
Instance Attribute Summary collapse
-
#partitions ⇒ Array<String>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdatePartition
constructor
A new instance of UpdatePartition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpdatePartition
Returns a new instance of UpdatePartition.
2150 2151 2152 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 2150 def initialize(**args) update!(**args) end |
Instance Attribute Details
#partitions ⇒ Array<String>
Output only. Name of the partition to update
Corresponds to the JSON property partitions
2148 2149 2150 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 2148 def partitions @partitions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2155 2156 2157 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 2155 def update!(**args) @partitions = args[:partitions] if args.key?(:partitions) end |