Class: Google::Apis::FirestoreV1::DocumentMask

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

Overview

A set of field paths on a document. Used to restrict a get or update operation on a document to a subset of its fields. This is different from standard field masks, as this is always scoped to a Document, and takes in account the dynamic nature of Value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DocumentMask

Returns a new instance of DocumentMask.



719
720
721
# File 'lib/google/apis/firestore_v1/classes.rb', line 719

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

Instance Attribute Details

#field_pathsArray<String>

The list of field paths in the mask. See Document.fields for a field path syntax reference. Corresponds to the JSON property fieldPaths

Returns:

  • (Array<String>)


717
718
719
# File 'lib/google/apis/firestore_v1/classes.rb', line 717

def field_paths
  @field_paths
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



724
725
726
# File 'lib/google/apis/firestore_v1/classes.rb', line 724

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