Class: Google::Apis::SpannerV1::Mutation
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::SpannerV1::Mutation
 
- 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
A modification to one or more Cloud Spanner rows. Mutations can be applied to a Cloud Spanner database by sending them in a Commit call.
Instance Attribute Summary collapse
- 
  
    
      #delete  ⇒ Google::Apis::SpannerV1::Delete 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Arguments to delete operations. 
- 
  
    
      #insert  ⇒ Google::Apis::SpannerV1::Write 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Arguments to insert, update, insert_or_update, and replace operations. 
- 
  
    
      #insert_or_update  ⇒ Google::Apis::SpannerV1::Write 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Arguments to insert, update, insert_or_update, and replace operations. 
- 
  
    
      #replace  ⇒ Google::Apis::SpannerV1::Write 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Arguments to insert, update, insert_or_update, and replace operations. 
- 
  
    
      #update  ⇒ Google::Apis::SpannerV1::Write 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Arguments to insert, update, insert_or_update, and replace operations. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Mutation 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Mutation. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Mutation
Returns a new instance of Mutation
| 1304 1305 1306 | # File 'generated/google/apis/spanner_v1/classes.rb', line 1304 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#delete ⇒ Google::Apis::SpannerV1::Delete
Arguments to delete operations.
Corresponds to the JSON property delete
| 1278 1279 1280 | # File 'generated/google/apis/spanner_v1/classes.rb', line 1278 def delete @delete end | 
#insert ⇒ Google::Apis::SpannerV1::Write
Arguments to insert, update, insert_or_update, and
replace operations.
Corresponds to the JSON property insert
| 1284 1285 1286 | # File 'generated/google/apis/spanner_v1/classes.rb', line 1284 def insert @insert end | 
#insert_or_update ⇒ Google::Apis::SpannerV1::Write
Arguments to insert, update, insert_or_update, and
replace operations.
Corresponds to the JSON property insertOrUpdate
| 1290 1291 1292 | # File 'generated/google/apis/spanner_v1/classes.rb', line 1290 def insert_or_update @insert_or_update end | 
#replace ⇒ Google::Apis::SpannerV1::Write
Arguments to insert, update, insert_or_update, and
replace operations.
Corresponds to the JSON property replace
| 1296 1297 1298 | # File 'generated/google/apis/spanner_v1/classes.rb', line 1296 def replace @replace end | 
#update ⇒ Google::Apis::SpannerV1::Write
Arguments to insert, update, insert_or_update, and
replace operations.
Corresponds to the JSON property update
| 1302 1303 1304 | # File 'generated/google/apis/spanner_v1/classes.rb', line 1302 def update @update end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1309 1310 1311 1312 1313 1314 1315 | # File 'generated/google/apis/spanner_v1/classes.rb', line 1309 def update!(**args) @delete = args[:delete] if args.key?(:delete) @insert = args[:insert] if args.key?(:insert) @insert_or_update = args[:insert_or_update] if args.key?(:insert_or_update) @replace = args[:replace] if args.key?(:replace) @update = args[:update] if args.key?(:update) end |