Class: Google::Apis::DatastoreV1beta2::RunQueryRequest

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

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.


1050
1051
1052
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 1050

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

Instance Attribute Details

#gql_queryGoogle::Apis::DatastoreV1beta2::GqlQuery

A GQL query. Corresponds to the JSON property gqlQuery


1031
1032
1033
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 1031

def gql_query
  @gql_query
end

#partition_idGoogle::Apis::DatastoreV1beta2::PartitionId

An identifier for a particular subset of entities. Entities are partitioned into various subsets, each used by different datasets and different namespaces within a dataset and so forth. Corresponds to the JSON property partitionId


1038
1039
1040
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 1038

def partition_id
  @partition_id
end

#queryGoogle::Apis::DatastoreV1beta2::Query

A query. Corresponds to the JSON property query


1043
1044
1045
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 1043

def query
  @query
end

#read_optionsGoogle::Apis::DatastoreV1beta2::ReadOptions

The options for this query. Corresponds to the JSON property readOptions


1048
1049
1050
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 1048

def read_options
  @read_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1055
1056
1057
1058
1059
1060
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 1055

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