Class: Google::Apis::DatastoreV1beta2::LookupRequest

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) ⇒ LookupRequest

Returns a new instance of LookupRequest



460
461
462
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 460

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

Instance Attribute Details

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

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



453
454
455
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 453

def keys
  @keys
end

#read_optionsGoogle::Apis::DatastoreV1beta2::ReadOptions

Options for this lookup request. Optional. Corresponds to the JSON property readOptions



458
459
460
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 458

def read_options
  @read_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



465
466
467
468
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 465

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