google-cloud-datastore 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +2 -4
- data/lib/google-cloud-datastore.rb +12 -10
- data/lib/google/cloud/datastore.rb +35 -31
- data/lib/google/cloud/datastore/convert.rb +0 -11
- data/lib/google/cloud/datastore/credentials.rb +28 -9
- data/lib/google/cloud/datastore/dataset.rb +7 -6
- data/lib/google/cloud/datastore/key.rb +2 -0
- data/lib/google/cloud/datastore/properties.rb +4 -8
- data/lib/google/cloud/datastore/service.rb +4 -3
- data/lib/google/cloud/datastore/v1/datastore_client.rb +168 -80
- data/lib/google/cloud/datastore/v1/datastore_client_config.json +5 -0
- data/lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb +72 -20
- data/lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb +10 -10
- data/lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb +7 -7
- data/lib/google/cloud/datastore/v1/doc/overview.rb +54 -0
- data/lib/google/cloud/datastore/version.rb +1 -1
- data/lib/google/datastore/v1/datastore_pb.rb +24 -0
- data/lib/google/datastore/v1/datastore_services_pb.rb +4 -1
- metadata +10 -9
@@ -14,8 +14,19 @@
|
|
14
14
|
|
15
15
|
module Google
|
16
16
|
module Datastore
|
17
|
+
##
|
18
|
+
# # Google Cloud Datastore API Contents
|
19
|
+
#
|
20
|
+
# | Class | Description |
|
21
|
+
# | ----- | ----------- |
|
22
|
+
# | [DatastoreClient][] | Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. |
|
23
|
+
# | [Data Types][] | Data types for Google::Cloud::Datastore::V1 |
|
24
|
+
#
|
25
|
+
# [DatastoreClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-datastore/latest/google/datastore/v1/datastoreclient
|
26
|
+
# [Data Types]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-datastore/latest/google/datastore/v1/datatypes
|
27
|
+
#
|
17
28
|
module V1
|
18
|
-
# The request for Datastore::Lookup.
|
29
|
+
# The request for {Google::Datastore::V1::Datastore::Lookup Datastore::Lookup}.
|
19
30
|
# @!attribute [rw] project_id
|
20
31
|
# @return [String]
|
21
32
|
# The ID of the project against which to make the request.
|
@@ -27,7 +38,7 @@ module Google
|
|
27
38
|
# Keys of entities to look up.
|
28
39
|
class LookupRequest; end
|
29
40
|
|
30
|
-
# The response for Datastore::Lookup.
|
41
|
+
# The response for {Google::Datastore::V1::Datastore::Lookup Datastore::Lookup}.
|
31
42
|
# @!attribute [rw] found
|
32
43
|
# @return [Array<Google::Datastore::V1::EntityResult>]
|
33
44
|
# Entities found as +ResultType.FULL+ entities. The order of results in this
|
@@ -45,7 +56,7 @@ module Google
|
|
45
56
|
# order of the keys in the input.
|
46
57
|
class LookupResponse; end
|
47
58
|
|
48
|
-
# The request for Datastore::RunQuery.
|
59
|
+
# The request for {Google::Datastore::V1::Datastore::RunQuery Datastore::RunQuery}.
|
49
60
|
# @!attribute [rw] project_id
|
50
61
|
# @return [String]
|
51
62
|
# The ID of the project against which to make the request.
|
@@ -66,7 +77,7 @@ module Google
|
|
66
77
|
# The GQL query to run.
|
67
78
|
class RunQueryRequest; end
|
68
79
|
|
69
|
-
# The response for Datastore::RunQuery.
|
80
|
+
# The response for {Google::Datastore::V1::Datastore::RunQuery Datastore::RunQuery}.
|
70
81
|
# @!attribute [rw] batch
|
71
82
|
# @return [Google::Datastore::V1::QueryResultBatch]
|
72
83
|
# A batch of query results (always present).
|
@@ -75,33 +86,36 @@ module Google
|
|
75
86
|
# The parsed form of the +GqlQuery+ from the request, if it was set.
|
76
87
|
class RunQueryResponse; end
|
77
88
|
|
78
|
-
# The request for Datastore::BeginTransaction.
|
89
|
+
# The request for {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}.
|
79
90
|
# @!attribute [rw] project_id
|
80
91
|
# @return [String]
|
81
92
|
# The ID of the project against which to make the request.
|
93
|
+
# @!attribute [rw] transaction_options
|
94
|
+
# @return [Google::Datastore::V1::TransactionOptions]
|
95
|
+
# Options for a new transaction.
|
82
96
|
class BeginTransactionRequest; end
|
83
97
|
|
84
|
-
# The response for Datastore::BeginTransaction.
|
98
|
+
# The response for {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}.
|
85
99
|
# @!attribute [rw] transaction
|
86
100
|
# @return [String]
|
87
101
|
# The transaction identifier (always present).
|
88
102
|
class BeginTransactionResponse; end
|
89
103
|
|
90
|
-
# The request for Datastore::Rollback.
|
104
|
+
# The request for {Google::Datastore::V1::Datastore::Rollback Datastore::Rollback}.
|
91
105
|
# @!attribute [rw] project_id
|
92
106
|
# @return [String]
|
93
107
|
# The ID of the project against which to make the request.
|
94
108
|
# @!attribute [rw] transaction
|
95
109
|
# @return [String]
|
96
110
|
# The transaction identifier, returned by a call to
|
97
|
-
# Datastore::BeginTransaction.
|
111
|
+
# {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}.
|
98
112
|
class RollbackRequest; end
|
99
113
|
|
100
|
-
# The response for Datastore::Rollback.
|
114
|
+
# The response for {Google::Datastore::V1::Datastore::Rollback Datastore::Rollback}.
|
101
115
|
# (an empty message).
|
102
116
|
class RollbackResponse; end
|
103
117
|
|
104
|
-
# The request for Datastore::Commit.
|
118
|
+
# The request for {Google::Datastore::V1::Datastore::Commit Datastore::Commit}.
|
105
119
|
# @!attribute [rw] project_id
|
106
120
|
# @return [String]
|
107
121
|
# The ID of the project against which to make the request.
|
@@ -112,7 +126,7 @@ module Google
|
|
112
126
|
# @return [String]
|
113
127
|
# The identifier of the transaction associated with the commit. A
|
114
128
|
# transaction identifier is returned by a call to
|
115
|
-
# Datastore::BeginTransaction.
|
129
|
+
# {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}.
|
116
130
|
# @!attribute [rw] mutations
|
117
131
|
# @return [Array<Google::Datastore::V1::Mutation>]
|
118
132
|
# The mutations to perform.
|
@@ -121,10 +135,10 @@ module Google
|
|
121
135
|
# applied in order. The following sequences of mutations affecting a single
|
122
136
|
# entity are not permitted in a single +Commit+ request:
|
123
137
|
#
|
124
|
-
#
|
125
|
-
#
|
126
|
-
#
|
127
|
-
#
|
138
|
+
# * +insert+ followed by +insert+
|
139
|
+
# * +update+ followed by +insert+
|
140
|
+
# * +upsert+ followed by +insert+
|
141
|
+
# * +delete+ followed by +update+
|
128
142
|
#
|
129
143
|
# When mode is +NON_TRANSACTIONAL+, no two mutations may affect a single
|
130
144
|
# entity.
|
@@ -135,7 +149,7 @@ module Google
|
|
135
149
|
MODE_UNSPECIFIED = 0
|
136
150
|
|
137
151
|
# Transactional: The mutations are either all applied, or none are applied.
|
138
|
-
# Learn about transactions
|
152
|
+
# Learn about transactions [here](https://cloud.google.com/datastore/docs/concepts/transactions).
|
139
153
|
TRANSACTIONAL = 1
|
140
154
|
|
141
155
|
# Non-transactional: The mutations may not apply as all or none.
|
@@ -143,7 +157,7 @@ module Google
|
|
143
157
|
end
|
144
158
|
end
|
145
159
|
|
146
|
-
# The response for Datastore::Commit.
|
160
|
+
# The response for {Google::Datastore::V1::Datastore::Commit Datastore::Commit}.
|
147
161
|
# @!attribute [rw] mutation_results
|
148
162
|
# @return [Array<Google::Datastore::V1::MutationResult>]
|
149
163
|
# The result of performing the mutations.
|
@@ -154,7 +168,7 @@ module Google
|
|
154
168
|
# updated.
|
155
169
|
class CommitResponse; end
|
156
170
|
|
157
|
-
# The request for Datastore::AllocateIds.
|
171
|
+
# The request for {Google::Datastore::V1::Datastore::AllocateIds Datastore::AllocateIds}.
|
158
172
|
# @!attribute [rw] project_id
|
159
173
|
# @return [String]
|
160
174
|
# The ID of the project against which to make the request.
|
@@ -164,13 +178,29 @@ module Google
|
|
164
178
|
# No key may be reserved/read-only.
|
165
179
|
class AllocateIdsRequest; end
|
166
180
|
|
167
|
-
# The response for Datastore::AllocateIds.
|
181
|
+
# The response for {Google::Datastore::V1::Datastore::AllocateIds Datastore::AllocateIds}.
|
168
182
|
# @!attribute [rw] keys
|
169
183
|
# @return [Array<Google::Datastore::V1::Key>]
|
170
184
|
# The keys specified in the request (in the same order), each with
|
171
185
|
# its key path completed with a newly allocated ID.
|
172
186
|
class AllocateIdsResponse; end
|
173
187
|
|
188
|
+
# The request for {Google::Datastore::V1::Datastore::ReserveIds Datastore::ReserveIds}.
|
189
|
+
# @!attribute [rw] project_id
|
190
|
+
# @return [String]
|
191
|
+
# The ID of the project against which to make the request.
|
192
|
+
# @!attribute [rw] database_id
|
193
|
+
# @return [String]
|
194
|
+
# If not empty, the ID of the database against which to make the request.
|
195
|
+
# @!attribute [rw] keys
|
196
|
+
# @return [Array<Google::Datastore::V1::Key>]
|
197
|
+
# A list of keys with complete key paths whose numeric IDs should not be
|
198
|
+
# auto-allocated.
|
199
|
+
class ReserveIdsRequest; end
|
200
|
+
|
201
|
+
# The response for {Google::Datastore::V1::Datastore::ReserveIds Datastore::ReserveIds}.
|
202
|
+
class ReserveIdsResponse; end
|
203
|
+
|
174
204
|
# A mutation to apply to an entity.
|
175
205
|
# @!attribute [rw] insert
|
176
206
|
# @return [Google::Datastore::V1::Entity]
|
@@ -221,7 +251,7 @@ module Google
|
|
221
251
|
# @return [String]
|
222
252
|
# The identifier of the transaction in which to read. A
|
223
253
|
# transaction identifier is returned by a call to
|
224
|
-
# Datastore::BeginTransaction.
|
254
|
+
# {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}.
|
225
255
|
class ReadOptions
|
226
256
|
# The possible values for read consistencies.
|
227
257
|
module ReadConsistency
|
@@ -235,6 +265,28 @@ module Google
|
|
235
265
|
EVENTUAL = 2
|
236
266
|
end
|
237
267
|
end
|
268
|
+
|
269
|
+
# Options for beginning a new transaction.
|
270
|
+
#
|
271
|
+
# Transactions can be created explicitly with calls to
|
272
|
+
# {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction} or implicitly by setting
|
273
|
+
# {Google::Datastore::V1::ReadOptions#new_transaction ReadOptions#new_transaction} in read requests.
|
274
|
+
# @!attribute [rw] read_write
|
275
|
+
# @return [Google::Datastore::V1::TransactionOptions::ReadWrite]
|
276
|
+
# The transaction should allow both reads and writes.
|
277
|
+
# @!attribute [rw] read_only
|
278
|
+
# @return [Google::Datastore::V1::TransactionOptions::ReadOnly]
|
279
|
+
# The transaction should only allow reads.
|
280
|
+
class TransactionOptions
|
281
|
+
# Options specific to read / write transactions.
|
282
|
+
# @!attribute [rw] previous_transaction
|
283
|
+
# @return [String]
|
284
|
+
# The transaction identifier of the transaction being retried.
|
285
|
+
class ReadWrite; end
|
286
|
+
|
287
|
+
# Options specific to read-only transactions.
|
288
|
+
class ReadOnly; end
|
289
|
+
end
|
238
290
|
end
|
239
291
|
end
|
240
292
|
end
|
@@ -23,13 +23,13 @@ module Google
|
|
23
23
|
#
|
24
24
|
# Partition dimensions:
|
25
25
|
#
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
26
|
+
# * May be +""+.
|
27
|
+
# * Must be valid UTF-8 bytes.
|
28
|
+
# * Must have values that match regex +[A-Za-z\d\.\-_]{1,100}+
|
29
|
+
# If the value of any dimension matches regex +__.*__+, the partition is
|
30
|
+
# reserved/read-only.
|
31
|
+
# A reserved/read-only partition ID is forbidden in certain documented
|
32
|
+
# contexts.
|
33
33
|
#
|
34
34
|
# Foreign partition IDs (in which the project ID does
|
35
35
|
# not match the context project ID ) are discouraged.
|
@@ -142,9 +142,9 @@ module Google
|
|
142
142
|
# @return [Google::Datastore::V1::Entity]
|
143
143
|
# An entity value.
|
144
144
|
#
|
145
|
-
#
|
146
|
-
#
|
147
|
-
#
|
145
|
+
# * May have no key.
|
146
|
+
# * May have a key with an incomplete key path.
|
147
|
+
# * May have a reserved/read-only key.
|
148
148
|
# @!attribute [rw] array_value
|
149
149
|
# @return [Google::Datastore::V1::ArrayValue]
|
150
150
|
# An array value.
|
@@ -24,10 +24,10 @@ module Google
|
|
24
24
|
# The version of the entity, a strictly positive number that monotonically
|
25
25
|
# increases with changes to the entity.
|
26
26
|
#
|
27
|
-
# This field is set for +FULL+ entity
|
27
|
+
# This field is set for {Google::Datastore::V1::EntityResult::ResultType::FULL +FULL+} entity
|
28
28
|
# results.
|
29
29
|
#
|
30
|
-
# For
|
30
|
+
# For {Google::Datastore::V1::LookupResponse#missing missing} entities in +LookupResponse+, this
|
31
31
|
# is the version of the snapshot that was used to look up the entity, and it
|
32
32
|
# is always set except for eventually consistent reads.
|
33
33
|
# @!attribute [rw] cursor
|
@@ -78,12 +78,12 @@ module Google
|
|
78
78
|
# @return [String]
|
79
79
|
# A starting point for the query results. Query cursors are
|
80
80
|
# returned in query result batches and
|
81
|
-
#
|
81
|
+
# [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
82
82
|
# @!attribute [rw] end_cursor
|
83
83
|
# @return [String]
|
84
84
|
# An ending point for the query results. Query cursors are
|
85
85
|
# returned in query result batches and
|
86
|
-
#
|
86
|
+
# [can only be used to limit the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
87
87
|
# @!attribute [rw] offset
|
88
88
|
# @return [Integer]
|
89
89
|
# The number of results to skip. Applies before limit, but after all other
|
@@ -200,11 +200,11 @@ module Google
|
|
200
200
|
end
|
201
201
|
end
|
202
202
|
|
203
|
-
# A
|
203
|
+
# A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
204
204
|
# @!attribute [rw] query_string
|
205
205
|
# @return [String]
|
206
206
|
# A string of the format described
|
207
|
-
#
|
207
|
+
# [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
208
208
|
# @!attribute [rw] allow_literals
|
209
209
|
# @return [true, false]
|
210
210
|
# When false, the query string must not contain any literals and instead must
|
@@ -284,7 +284,7 @@ module Google
|
|
284
284
|
# cursor.
|
285
285
|
MORE_RESULTS_AFTER_CURSOR = 4
|
286
286
|
|
287
|
-
# The query
|
287
|
+
# The query is finished, and there are no more results.
|
288
288
|
NO_MORE_RESULTS = 3
|
289
289
|
end
|
290
290
|
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# Copyright 2017, Google Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Cloud
|
17
|
+
# rubocop:disable LineLength
|
18
|
+
|
19
|
+
##
|
20
|
+
# # Ruby Client for Google Cloud Datastore API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
|
21
|
+
#
|
22
|
+
# [Google Cloud Datastore API][Product Documentation]:
|
23
|
+
# Accesses the schemaless NoSQL database to provide fully managed, robust,
|
24
|
+
# scalable storage for your application.
|
25
|
+
# - [Product Documentation][]
|
26
|
+
#
|
27
|
+
# ## Quick Start
|
28
|
+
# In order to use this library, you first need to go through the following
|
29
|
+
# steps:
|
30
|
+
#
|
31
|
+
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
32
|
+
# 2. [Enable the Google Cloud Datastore API.](https://console.cloud.google.com/apis/api/datastore)
|
33
|
+
# 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
34
|
+
#
|
35
|
+
# ### Installation
|
36
|
+
# ```
|
37
|
+
# $ gem install google-cloud-datastore
|
38
|
+
# ```
|
39
|
+
#
|
40
|
+
# ### Next Steps
|
41
|
+
# - Read the [Google Cloud Datastore API Product documentation][Product Documentation]
|
42
|
+
# to learn more about the product and see How-to Guides.
|
43
|
+
# - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
|
44
|
+
# to see the full list of Cloud APIs that we cover.
|
45
|
+
#
|
46
|
+
# [Product Documentation]: https://cloud.google.com/datastore
|
47
|
+
#
|
48
|
+
#
|
49
|
+
module Datastore
|
50
|
+
module V1
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -32,6 +32,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
32
32
|
end
|
33
33
|
add_message "google.datastore.v1.BeginTransactionRequest" do
|
34
34
|
optional :project_id, :string, 8
|
35
|
+
optional :transaction_options, :message, 10, "google.datastore.v1.TransactionOptions"
|
35
36
|
end
|
36
37
|
add_message "google.datastore.v1.BeginTransactionResponse" do
|
37
38
|
optional :transaction, :bytes, 1
|
@@ -66,6 +67,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
66
67
|
add_message "google.datastore.v1.AllocateIdsResponse" do
|
67
68
|
repeated :keys, :message, 1, "google.datastore.v1.Key"
|
68
69
|
end
|
70
|
+
add_message "google.datastore.v1.ReserveIdsRequest" do
|
71
|
+
optional :project_id, :string, 8
|
72
|
+
optional :database_id, :string, 9
|
73
|
+
repeated :keys, :message, 1, "google.datastore.v1.Key"
|
74
|
+
end
|
75
|
+
add_message "google.datastore.v1.ReserveIdsResponse" do
|
76
|
+
end
|
69
77
|
add_message "google.datastore.v1.Mutation" do
|
70
78
|
oneof :operation do
|
71
79
|
optional :insert, :message, 4, "google.datastore.v1.Entity"
|
@@ -93,6 +101,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
93
101
|
value :STRONG, 1
|
94
102
|
value :EVENTUAL, 2
|
95
103
|
end
|
104
|
+
add_message "google.datastore.v1.TransactionOptions" do
|
105
|
+
oneof :mode do
|
106
|
+
optional :read_write, :message, 1, "google.datastore.v1.TransactionOptions.ReadWrite"
|
107
|
+
optional :read_only, :message, 2, "google.datastore.v1.TransactionOptions.ReadOnly"
|
108
|
+
end
|
109
|
+
end
|
110
|
+
add_message "google.datastore.v1.TransactionOptions.ReadWrite" do
|
111
|
+
optional :previous_transaction, :bytes, 1
|
112
|
+
end
|
113
|
+
add_message "google.datastore.v1.TransactionOptions.ReadOnly" do
|
114
|
+
end
|
96
115
|
end
|
97
116
|
|
98
117
|
module Google
|
@@ -111,10 +130,15 @@ module Google
|
|
111
130
|
CommitResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.CommitResponse").msgclass
|
112
131
|
AllocateIdsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.AllocateIdsRequest").msgclass
|
113
132
|
AllocateIdsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.AllocateIdsResponse").msgclass
|
133
|
+
ReserveIdsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ReserveIdsRequest").msgclass
|
134
|
+
ReserveIdsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ReserveIdsResponse").msgclass
|
114
135
|
Mutation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Mutation").msgclass
|
115
136
|
MutationResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.MutationResult").msgclass
|
116
137
|
ReadOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ReadOptions").msgclass
|
117
138
|
ReadOptions::ReadConsistency = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ReadOptions.ReadConsistency").enummodule
|
139
|
+
TransactionOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.TransactionOptions").msgclass
|
140
|
+
TransactionOptions::ReadWrite = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.TransactionOptions.ReadWrite").msgclass
|
141
|
+
TransactionOptions::ReadOnly = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.TransactionOptions.ReadOnly").msgclass
|
118
142
|
end
|
119
143
|
end
|
120
144
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/datastore/v1/datastore.proto for package 'google.datastore.v1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2017 Google Inc.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -52,6 +52,9 @@ module Google
|
|
52
52
|
# Allocates IDs for the given keys, which is useful for referencing an entity
|
53
53
|
# before it is inserted.
|
54
54
|
rpc :AllocateIds, AllocateIdsRequest, AllocateIdsResponse
|
55
|
+
# Prevents the supplied keys' IDs from being auto-allocated by Cloud
|
56
|
+
# Datastore.
|
57
|
+
rpc :ReserveIds, ReserveIdsRequest, ReserveIdsResponse
|
55
58
|
end
|
56
59
|
|
57
60
|
Stub = Service.rpc_stub_class
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-datastore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-11-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -17,42 +17,42 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
20
|
+
version: '1.1'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1.
|
27
|
+
version: '1.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: google-gax
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.
|
34
|
+
version: 0.10.1
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
41
|
+
version: 0.10.1
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: google-protobuf
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 3.
|
48
|
+
version: '3.3'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 3.
|
55
|
+
version: '3.3'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: minitest
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -214,6 +214,7 @@ files:
|
|
214
214
|
- lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb
|
215
215
|
- lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb
|
216
216
|
- lib/google/cloud/datastore/v1/doc/google/protobuf/wrappers.rb
|
217
|
+
- lib/google/cloud/datastore/v1/doc/overview.rb
|
217
218
|
- lib/google/cloud/datastore/version.rb
|
218
219
|
- lib/google/datastore/v1/datastore_pb.rb
|
219
220
|
- lib/google/datastore/v1/datastore_services_pb.rb
|
@@ -239,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
240
|
version: '0'
|
240
241
|
requirements: []
|
241
242
|
rubyforge_project:
|
242
|
-
rubygems_version: 2.
|
243
|
+
rubygems_version: 2.7.2
|
243
244
|
signing_key:
|
244
245
|
specification_version: 4
|
245
246
|
summary: API Client library for Google Cloud Datastore
|