Class: Google::Apis::SpannerV1::UpdateInstancePartitionRequest

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

Overview

The request for UpdateInstancePartition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateInstancePartitionRequest

Returns a new instance of UpdateInstancePartitionRequest.



7251
7252
7253
# File 'lib/google/apis/spanner_v1/classes.rb', line 7251

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

Instance Attribute Details

#field_maskString

Required. A mask specifying which fields in InstancePartition should be updated. The field mask must always be specified; this prevents any future fields in InstancePartition from being erased accidentally by clients that do not know about them. Corresponds to the JSON property fieldMask

Returns:

  • (String)


7243
7244
7245
# File 'lib/google/apis/spanner_v1/classes.rb', line 7243

def field_mask
  @field_mask
end

#instance_partitionGoogle::Apis::SpannerV1::InstancePartition

An isolated set of Cloud Spanner resources that databases can define placements on. Corresponds to the JSON property instancePartition



7249
7250
7251
# File 'lib/google/apis/spanner_v1/classes.rb', line 7249

def instance_partition
  @instance_partition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7256
7257
7258
7259
# File 'lib/google/apis/spanner_v1/classes.rb', line 7256

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