Class: Google::Apis::DatastoreV1::LookupRequest

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.Lookup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LookupRequest

Returns a new instance of LookupRequest.



1454
1455
1456
# File 'lib/google/apis/datastore_v1/classes.rb', line 1454

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

Instance Attribute Details

#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)


1442
1443
1444
# File 'lib/google/apis/datastore_v1/classes.rb', line 1442

def database_id
  @database_id
end

#keysArray<Google::Apis::DatastoreV1::Key>

Required. Keys of entities to look up. Corresponds to the JSON property keys

Returns:



1447
1448
1449
# File 'lib/google/apis/datastore_v1/classes.rb', line 1447

def keys
  @keys
end

#read_optionsGoogle::Apis::DatastoreV1::ReadOptions

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



1452
1453
1454
# File 'lib/google/apis/datastore_v1/classes.rb', line 1452

def read_options
  @read_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1459
1460
1461
1462
1463
# File 'lib/google/apis/datastore_v1/classes.rb', line 1459

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