Class: Google::Apis::SpannerV1::UpdateInstanceRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::UpdateInstanceRequest
- 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
-
#field_mask ⇒ String
Required.
-
#instance ⇒ Google::Apis::SpannerV1::Instance
An isolated set of Cloud Spanner resources on which databases can be hosted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateInstanceRequest
constructor
A new instance of UpdateInstanceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdateInstanceRequest
Returns a new instance of UpdateInstanceRequest
1566 1567 1568 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1566 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field_mask ⇒ String
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
1564 1565 1566 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1564 def field_mask @field_mask end |
#instance ⇒ Google::Apis::SpannerV1::Instance
An isolated set of Cloud Spanner resources on which databases can be hosted.
Corresponds to the JSON property instance
1554 1555 1556 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1554 def instance @instance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1571 1572 1573 1574 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1571 def update!(**args) @instance = args[:instance] if args.key?(:instance) @field_mask = args[:field_mask] if args.key?(:field_mask) end |