Class: Google::Apis::DatastoreV1::RunAggregationQueryRequest

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

Overview

The request for Datastore.RunAggregationQuery.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RunAggregationQueryRequest

Returns a new instance of RunAggregationQueryRequest.

[View source]

2679
2680
2681
# File 'lib/google/apis/datastore_v1/classes.rb', line 2679

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

Instance Attribute Details

#aggregation_queryGoogle::Apis::DatastoreV1::AggregationQuery

Datastore query for running an aggregation over a Query. Corresponds to the JSON property aggregationQuery


2642
2643
2644
# File 'lib/google/apis/datastore_v1/classes.rb', line 2642

def aggregation_query
  @aggregation_query
end

#database_idString

The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database. Corresponds to the JSON property databaseId

Returns:

  • (String)

2648
2649
2650
# File 'lib/google/apis/datastore_v1/classes.rb', line 2648

def database_id
  @database_id
end

#explain_optionsGoogle::Apis::DatastoreV1::ExplainOptions

Explain options for the query. Corresponds to the JSON property explainOptions


2653
2654
2655
# File 'lib/google/apis/datastore_v1/classes.rb', line 2653

def explain_options
  @explain_options
end

#gql_queryGoogle::Apis::DatastoreV1::GqlQuery

A GQL query. Corresponds to the JSON property gqlQuery


2658
2659
2660
# File 'lib/google/apis/datastore_v1/classes.rb', line 2658

def gql_query
  @gql_query
end

#partition_idGoogle::Apis::DatastoreV1::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`

2672
2673
2674
# File 'lib/google/apis/datastore_v1/classes.rb', line 2672

def partition_id
  @partition_id
end

#read_optionsGoogle::Apis::DatastoreV1::ReadOptions

The options shared by read requests. Corresponds to the JSON property readOptions


2677
2678
2679
# File 'lib/google/apis/datastore_v1/classes.rb', line 2677

def read_options
  @read_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

2684
2685
2686
2687
2688
2689
2690
2691
# File 'lib/google/apis/datastore_v1/classes.rb', line 2684

def update!(**args)
  @aggregation_query = args[:aggregation_query] if args.key?(:aggregation_query)
  @database_id = args[:database_id] if args.key?(:database_id)
  @explain_options = args[:explain_options] if args.key?(:explain_options)
  @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