Class: Google::Apis::DatastoreV1beta3::ReserveIdsRequest

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

Overview

The request for Datastore.ReserveIds.

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

Returns a new instance of ReserveIdsRequest



1608
1609
1610
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1608

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

Instance Attribute Details

#database_idString

If not empty, the ID of the database against which to make the request. Corresponds to the JSON property databaseId

Returns:

  • (String)


1600
1601
1602
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1600

def database_id
  @database_id
end

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

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



1606
1607
1608
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1606

def keys
  @keys
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1613
1614
1615
1616
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1613

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