Class: Google::Apis::DatastoreV1beta2::LookupResponse

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

Returns a new instance of LookupResponse.



495
496
497
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 495

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

Instance Attribute Details

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

A list of keys that were not looked up due to resource constraints. Corresponds to the JSON property deferred



478
479
480
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 478

def deferred
  @deferred
end

#foundArray<Google::Apis::DatastoreV1beta2::EntityResult>

Entities found. Corresponds to the JSON property found



483
484
485
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 483

def found
  @found
end

#headerGoogle::Apis::DatastoreV1beta2::ResponseHeader

Corresponds to the JSON property header



488
489
490
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 488

def header
  @header
end

#missingArray<Google::Apis::DatastoreV1beta2::EntityResult>

Entities not found, with only the key populated. Corresponds to the JSON property missing



493
494
495
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 493

def missing
  @missing
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



500
501
502
503
504
505
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 500

def update!(**args)
  @deferred = args[:deferred] if args.key?(:deferred)
  @found = args[:found] if args.key?(:found)
  @header = args[:header] if args.key?(:header)
  @missing = args[:missing] if args.key?(:missing)
end