Class: Google::Apis::DatastoreV1beta3::RunQueryRequest

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

Overview

The request for Datastore.RunQuery.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RunQueryRequest

Returns a new instance of RunQueryRequest



1706
1707
1708
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1706

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

Instance Attribute Details

#gql_queryGoogle::Apis::DatastoreV1beta3::GqlQuery

A GQL query. Corresponds to the JSON property gqlQuery



1674
1675
1676
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1674

def gql_query
  @gql_query
end

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


1694
1695
1696
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1694

def partition_id
  @partition_id
end

#queryGoogle::Apis::DatastoreV1beta3::Query

A query for entities. Corresponds to the JSON property query



1699
1700
1701
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1699

def query
  @query
end

#read_optionsGoogle::Apis::DatastoreV1beta3::ReadOptions

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



1704
1705
1706
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1704

def read_options
  @read_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1711
1712
1713
1714
1715
1716
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1711

def update!(**args)
  @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