Class: Google::Apis::FirestoreV1beta1::DocumentTransform

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

Overview

A transformation of a document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DocumentTransform

Returns a new instance of DocumentTransform.



804
805
806
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 804

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

Instance Attribute Details

#documentString

The name of the document to transform. Corresponds to the JSON property document

Returns:

  • (String)


796
797
798
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 796

def document
  @document
end

#field_transformsArray<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



802
803
804
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 802

def field_transforms
  @field_transforms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



809
810
811
812
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 809

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