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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firestore_v1/classes.rb,
generated/google/apis/firestore_v1/representations.rb,
generated/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.



504
505
506
# File 'generated/google/apis/firestore_v1/classes.rb', line 504

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>)


502
503
504
# File 'generated/google/apis/firestore_v1/classes.rb', line 502

def field_paths
  @field_paths
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



509
510
511
# File 'generated/google/apis/firestore_v1/classes.rb', line 509

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