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

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

Overview

The request for UpdateInstance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UpdateInstanceRequest

Returns a new instance of UpdateInstanceRequest



3590
3591
3592
# File 'generated/google/apis/spanner_v1/classes.rb', line 3590

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

Instance Attribute Details

#field_maskString

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

Returns:

  • (String)


3583
3584
3585
# File 'generated/google/apis/spanner_v1/classes.rb', line 3583

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



3588
3589
3590
# File 'generated/google/apis/spanner_v1/classes.rb', line 3588

def instance
  @instance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3595
3596
3597
3598
# File 'generated/google/apis/spanner_v1/classes.rb', line 3595

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