Class: Google::Apis::DatastoreV1::ReserveIdsRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReserveIdsRequest

Returns a new instance of ReserveIdsRequest.



2033
2034
2035
# File 'lib/google/apis/datastore_v1/classes.rb', line 2033

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)


2025
2026
2027
# File 'lib/google/apis/datastore_v1/classes.rb', line 2025

def database_id
  @database_id
end

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

Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated. Corresponds to the JSON property keys

Returns:



2031
2032
2033
# File 'lib/google/apis/datastore_v1/classes.rb', line 2031

def keys
  @keys
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2038
2039
2040
2041
# File 'lib/google/apis/datastore_v1/classes.rb', line 2038

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