Class: Google::Apis::DatastoreV1beta3::ReserveIdsRequest
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta3::ReserveIdsRequest
- 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
-
#database_id ⇒ String
If not empty, the ID of the database against which to make the request.
-
#keys ⇒ Array<Google::Apis::DatastoreV1beta3::Key>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReserveIdsRequest
constructor
A new instance of ReserveIdsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReserveIdsRequest
Returns a new instance of ReserveIdsRequest.
1612 1613 1614 |
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1612 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database_id ⇒ String
If not empty, the ID of the database against which to make the request.
Corresponds to the JSON property databaseId
1603 1604 1605 |
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1603 def database_id @database_id end |
#keys ⇒ Array<Google::Apis::DatastoreV1beta3::Key>
Required. A list of keys with complete key paths whose numeric IDs should not
be
auto-allocated.
Corresponds to the JSON property keys
1610 1611 1612 |
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1610 def keys @keys end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1617 1618 1619 1620 |
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1617 def update!(**args) @database_id = args[:database_id] if args.key?(:database_id) @keys = args[:keys] if args.key?(:keys) end |