Class: Google::Apis::FirestoreV1::QueryTarget
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::QueryTarget
- 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 target specified by a query.
Instance Attribute Summary collapse
-
#parent ⇒ String
The parent resource name.
-
#structured_query ⇒ Google::Apis::FirestoreV1::StructuredQuery
A Firestore query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryTarget
constructor
A new instance of QueryTarget.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ QueryTarget
Returns a new instance of QueryTarget
1880 1881 1882 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 1880 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parent ⇒ String
The parent resource name. In the format:
projects/
project_id/databases/
database_id/documents
or
projects/
project_id/databases/
database_id/documents/
document_path`.
For example:
projects/my-project/databases/my-database/documentsor
projects/my-project/databases/my-database/documents/chatrooms/my-chatroom
Corresponds to the JSON property
parent`
1873 1874 1875 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 1873 def parent @parent end |
#structured_query ⇒ Google::Apis::FirestoreV1::StructuredQuery
A Firestore query.
Corresponds to the JSON property structuredQuery
1878 1879 1880 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 1878 def structured_query @structured_query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1885 1886 1887 1888 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 1885 def update!(**args) @parent = args[:parent] if args.key?(:parent) @structured_query = args[:structured_query] if args.key?(:structured_query) end |