Class: Google::Apis::FirestoreV1beta1::QueryTarget
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta1::QueryTarget
- 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 target specified by a query.
Instance Attribute Summary collapse
-
#parent ⇒ String
The parent resource name.
-
#structured_query ⇒ Google::Apis::FirestoreV1beta1::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.
Constructor Details
#initialize(**args) ⇒ QueryTarget
Returns a new instance of QueryTarget.
2128 2129 2130 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2128 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/documentsorprojects/my-project/databases/my-database/documents/
chatrooms/my-chatroom
Corresponds to the JSON propertyparent`
2120 2121 2122 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2120 def parent @parent end |
#structured_query ⇒ Google::Apis::FirestoreV1beta1::StructuredQuery
A Firestore query. The query stages are executed in the following order: 1.
from 2. where 3. select 4. order_by + start_at + end_at 5. offset 6. limit
Corresponds to the JSON property structuredQuery
2126 2127 2128 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2126 def structured_query @structured_query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2133 2134 2135 2136 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2133 def update!(**args) @parent = args[:parent] if args.key?(:parent) @structured_query = args[:structured_query] if args.key?(:structured_query) end |