Class: Google::Apis::DatastoreV1beta3::RunAggregationQueryRequest
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta3::RunAggregationQueryRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastore_v1beta3/classes.rb,
lib/google/apis/datastore_v1beta3/representations.rb,
lib/google/apis/datastore_v1beta3/representations.rb
Overview
The request for Datastore.RunAggregationQuery.
Instance Attribute Summary collapse
-
#aggregation_query ⇒ Google::Apis::DatastoreV1beta3::AggregationQuery
Datastore query for running an aggregation over a Query.
-
#gql_query ⇒ Google::Apis::DatastoreV1beta3::GqlQuery
A GQL query.
-
#partition_id ⇒ Google::Apis::DatastoreV1beta3::PartitionId
A partition ID identifies a grouping of entities.
-
#read_options ⇒ Google::Apis::DatastoreV1beta3::ReadOptions
The options shared by read requests.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RunAggregationQueryRequest
constructor
A new instance of RunAggregationQueryRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RunAggregationQueryRequest
Returns a new instance of RunAggregationQueryRequest.
1949 1950 1951 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1949 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aggregation_query ⇒ Google::Apis::DatastoreV1beta3::AggregationQuery
Datastore query for running an aggregation over a Query.
Corresponds to the JSON property aggregationQuery
1923 1924 1925 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1923 def aggregation_query @aggregation_query end |
#gql_query ⇒ Google::Apis::DatastoreV1beta3::GqlQuery
A GQL query.
Corresponds to the JSON property gqlQuery
1928 1929 1930 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1928 def gql_query @gql_query end |
#partition_id ⇒ Google::Apis::DatastoreV1beta3::PartitionId
A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions:
- May be
"". - Must be valid UTF-8 bytes. - Must have values that match regex[A-Za-z\d\.\-_]1,100`If the value of any dimension matches regex. *, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. Corresponds to the JSON propertypartitionId`
1942 1943 1944 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1942 def partition_id @partition_id end |
#read_options ⇒ Google::Apis::DatastoreV1beta3::ReadOptions
The options shared by read requests.
Corresponds to the JSON property readOptions
1947 1948 1949 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1947 def @read_options end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1954 1955 1956 1957 1958 1959 |
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1954 def update!(**args) @aggregation_query = args[:aggregation_query] if args.key?(:aggregation_query) @gql_query = args[:gql_query] if args.key?(:gql_query) @partition_id = args[:partition_id] if args.key?(:partition_id) @read_options = args[:read_options] if args.key?(:read_options) end |