Class: Google::Apis::HypercomputeclusterV1::UpdatePartition

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 updated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdatePartition

Returns a new instance of UpdatePartition.



2159
2160
2161
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 2159

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

Instance Attribute Details

#partitionsArray<String>

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

Returns:

  • (Array<String>)


2157
2158
2159
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 2157

def partitions
  @partitions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2164
2165
2166
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 2164

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