Class: Google::Apis::SpannerV1::MutationGroup
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::MutationGroup
- 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
A group of mutations to be committed together. Related mutations should be placed in a group. For example, two mutations inserting rows with the same primary key prefix in both parent and child tables are related.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ MutationGroup
constructor
A new instance of MutationGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MutationGroup
Returns a new instance of MutationGroup.
4637 4638 4639 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 4637 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mutations ⇒ Array<Google::Apis::SpannerV1::Mutation>
Required. The mutations in this group.
Corresponds to the JSON property mutations
4635 4636 4637 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 4635 def mutations @mutations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4642 4643 4644 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 4642 def update!(**args) @mutations = args[:mutations] if args.key?(:mutations) end |