Class: Google::Apis::DatastoreV1::RunQueryRequest

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

Overview

The request for Datastore.RunQuery.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RunQueryRequest

Returns a new instance of RunQueryRequest.



2131
2132
2133
# File 'lib/google/apis/datastore_v1/classes.rb', line 2131

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

Instance Attribute Details

#database_idString

If not empty, the ID of the database against which to make the request. Corresponds to the JSON property databaseId

Returns:

  • (String)


2100
2101
2102
# File 'lib/google/apis/datastore_v1/classes.rb', line 2100

def database_id
  @database_id
end

#gql_queryGoogle::Apis::DatastoreV1::GqlQuery

A GQL query. Corresponds to the JSON property gqlQuery



2105
2106
2107
# File 'lib/google/apis/datastore_v1/classes.rb', line 2105

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`


2119
2120
2121
# File 'lib/google/apis/datastore_v1/classes.rb', line 2119

def partition_id
  @partition_id
end

#queryGoogle::Apis::DatastoreV1::Query

A query for entities. Corresponds to the JSON property query



2124
2125
2126
# File 'lib/google/apis/datastore_v1/classes.rb', line 2124

def query
  @query
end

#read_optionsGoogle::Apis::DatastoreV1::ReadOptions

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



2129
2130
2131
# File 'lib/google/apis/datastore_v1/classes.rb', line 2129

def read_options
  @read_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2136
2137
2138
2139
2140
2141
2142
# File 'lib/google/apis/datastore_v1/classes.rb', line 2136

def update!(**args)
  @database_id = args[:database_id] if args.key?(:database_id)
  @gql_query = args[:gql_query] if args.key?(:gql_query)
  @partition_id = args[:partition_id] if args.key?(:partition_id)
  @query = args[:query] if args.key?(:query)
  @read_options = args[:read_options] if args.key?(:read_options)
end