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

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

Overview

The response for Datastore.AllocateIds.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AllocateIdsResponse

Returns a new instance of AllocateIdsResponse.

[View source]

206
207
208
# File 'lib/google/apis/datastore_v1/classes.rb', line 206

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:


204
205
206
# File 'lib/google/apis/datastore_v1/classes.rb', line 204

def keys
  @keys
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

211
212
213
# File 'lib/google/apis/datastore_v1/classes.rb', line 211

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