Class: Google::Apis::FirestoreV1beta1::DocumentTransform
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::FirestoreV1beta1::DocumentTransform
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firestore_v1beta1/classes.rb,
 generated/google/apis/firestore_v1beta1/representations.rb,
 generated/google/apis/firestore_v1beta1/representations.rb
Overview
A transformation of a document.
Instance Attribute Summary collapse
- 
  
    
      #document  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the document to transform. 
- 
  
    
      #field_transforms  ⇒ Array<Google::Apis::FirestoreV1beta1::FieldTransform> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The list of transformations to apply to the fields of the document, in order. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ DocumentTransform 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of DocumentTransform. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DocumentTransform
Returns a new instance of DocumentTransform
| 530 531 532 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 530 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#document ⇒ String
The name of the document to transform.
Corresponds to the JSON property document
| 521 522 523 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 521 def document @document end | 
#field_transforms ⇒ Array<Google::Apis::FirestoreV1beta1::FieldTransform>
The list of transformations to apply to the fields of the document, in
order.
This must not be empty.
Corresponds to the JSON property fieldTransforms
| 528 529 530 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 528 def field_transforms @field_transforms end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 535 536 537 538 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 535 def update!(**args) @document = args[:document] if args.key?(:document) @field_transforms = args[:field_transforms] if args.key?(:field_transforms) end |