Class: Google::Apis::SpannerV1::UpdateInstanceRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateInstanceRequest

Returns a new instance of UpdateInstanceRequest.



5185
5186
5187
# File 'lib/google/apis/spanner_v1/classes.rb', line 5185

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

Instance Attribute Details

#field_maskString

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

Returns:

  • (String)


5178
5179
5180
# File 'lib/google/apis/spanner_v1/classes.rb', line 5178

def field_mask
  @field_mask
end

#instanceGoogle::Apis::SpannerV1::Instance

An isolated set of Cloud Spanner resources on which databases can be hosted. Corresponds to the JSON property instance



5183
5184
5185
# File 'lib/google/apis/spanner_v1/classes.rb', line 5183

def instance
  @instance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5190
5191
5192
5193
# File 'lib/google/apis/spanner_v1/classes.rb', line 5190

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