Class: Google::Apis::DatastoreV1::AllocateIdsResponse

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

Overview

The response for Datastore.AllocateIds.

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

Returns a new instance of AllocateIdsResponse



386
387
388
# File 'generated/google/apis/datastore_v1/classes.rb', line 386

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

Instance Attribute Details

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

The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID. Corresponds to the JSON property keys

Returns:



384
385
386
# File 'generated/google/apis/datastore_v1/classes.rb', line 384

def keys
  @keys
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



391
392
393
# File 'generated/google/apis/datastore_v1/classes.rb', line 391

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