google-cloud-datastore 1.7.1 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d609665c2857145f66bc2c74a6cd06c444ee70c919ddb191a6204c4fdb91b5b
4
- data.tar.gz: '018f3738beaaa8227b901766c27d348a6bdb0333d6eb06aba620104b01923a10'
3
+ metadata.gz: ba3222304aa848ec60dff8993a2c5ac6c32c480058605165e1f5abaaf55346a1
4
+ data.tar.gz: 73a5dd13851661a190c86650bea33f2d9515a3613448f640f06743be0b6d28af
5
5
  SHA512:
6
- metadata.gz: 33c5af902ce9b556881a4788e0c64cb3e47175bb0a3442bd3e15014e6402cbfe7cbd5440fd377d91540a42e7ebe40dc47070a2bdd2fc1ab61bbe4973486c6d44
7
- data.tar.gz: ceb2fbb93d0a65c6325d7eb1964bd06b5a69905a57cddc953d724218400fbc8933fcfa54e12d50ff5b4bebfc1e7dfe948d8016685add15c359a5f6a419d7fafa
6
+ metadata.gz: 1e2f8ea10d8f994a4fffba01b606075d7a93d62acbb714ef94607a1fad4b3df4c73320dcd3fd3ba982aa49ae815d3e5b59000ff4c90ebd009615f8279ed6a255
7
+ data.tar.gz: d02695a293f65adfaafe922009ffcce0cf4c3e68295e87e5f9c9563a7a49d995e4b0281e28d98a457361204cd43cb029919a6186531abeff4fcfa5fc9ab8e05d
@@ -1,5 +1,35 @@
1
1
  # Release History
2
2
 
3
+ ### 1.8.2 / 2020-05-28
4
+
5
+ #### Documentation
6
+
7
+ * Fix a few broken links
8
+
9
+ ### 1.8.1 / 2020-05-19
10
+
11
+ #### Bug Fixes
12
+
13
+ * Adjusted some default timeout and retry settings
14
+
15
+ ### 1.8.0 / 2020-03-11
16
+
17
+ #### Features
18
+
19
+ * Support separate project setting for quota/billing
20
+
21
+ ### 1.7.3 / 2020-01-23
22
+
23
+ #### Documentation
24
+
25
+ * Update copyright year
26
+
27
+ ### 1.7.2 / 2019-12-12
28
+
29
+ #### Bug Fixes
30
+
31
+ * Update some positional params to keyword args in the lower-level API to match the backend service.
32
+
3
33
  ### 1.7.1 / 2019-11-06
4
34
 
5
35
  #### Bug Fixes
@@ -24,14 +24,8 @@ improved, *please* create a new issue on GitHub so we can talk about it.
24
24
 
25
25
  - [New issue][gh-ruby]
26
26
 
27
- Or, you can ask questions on the [Google Cloud Platform Slack][slack-ruby]. You
28
- can use the "ruby" channel for general Ruby questions, or use the
29
- "google-cloud-ruby" channel if you have questions about this gem in particular.
30
-
31
27
  [so-ruby]: http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby+datastore
32
28
 
33
- [gh-search-ruby]: https://github.com/googlecloudplatform/google-cloud-ruby/issues?q=label%3A%22api%3A+datastore%22
34
-
35
- [gh-ruby]: https://github.com/googlecloudplatform/google-cloud-ruby/issues/new
29
+ [gh-search-ruby]: https://github.com/googleapis/google-cloud-ruby/issues?q=label%3A%22api%3A+datastore%22
36
30
 
37
- [slack-ruby]: https://gcp-slack.appspot.com/
31
+ [gh-ruby]: https://github.com/googleapis/google-cloud-ruby/issues/new
@@ -107,12 +107,11 @@ module Google
107
107
  end
108
108
 
109
109
  execute do
110
- service.run_query project,
111
- partition_id,
112
- read_options: read_options,
113
- query: query,
114
- gql_query: gql_query,
115
- options: default_options
110
+ service.run_query project, partition_id: partition_id,
111
+ read_options: read_options,
112
+ query: query,
113
+ gql_query: gql_query,
114
+ options: default_options
116
115
  end
117
116
  end
118
117
 
@@ -144,8 +143,10 @@ module Google
144
143
  def commit mutations, transaction: nil
145
144
  mode = transaction.nil? ? :NON_TRANSACTIONAL : :TRANSACTIONAL
146
145
  execute do
147
- service.commit project, mode, mutations, transaction: transaction,
148
- options: default_options
146
+ service.commit project, mode: mode,
147
+ mutations: mutations,
148
+ transaction: transaction,
149
+ options: default_options
149
150
  end
150
151
  end
151
152
 
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -142,6 +142,9 @@ module Google
142
142
  google_api_client.freeze
143
143
 
144
144
  headers = { :"x-goog-api-client" => google_api_client }
145
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
146
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
147
+ end
145
148
  headers.merge!(metadata) unless metadata.nil?
146
149
  client_config_file = Pathname.new(__dir__).join(
147
150
  "datastore_client_config.json"
@@ -189,6 +192,14 @@ module Google
189
192
  {'project_id' => request.project_id}
190
193
  end
191
194
  )
195
+ @reserve_ids = Google::Gax.create_api_call(
196
+ @datastore_stub.method(:reserve_ids),
197
+ defaults["reserve_ids"],
198
+ exception_transformer: exception_transformer,
199
+ params_extractor: proc do |request|
200
+ {'project_id' => request.project_id}
201
+ end
202
+ )
192
203
  @begin_transaction = Google::Gax.create_api_call(
193
204
  @datastore_stub.method(:begin_transaction),
194
205
  defaults["begin_transaction"],
@@ -221,14 +232,6 @@ module Google
221
232
  {'project_id' => request.project_id}
222
233
  end
223
234
  )
224
- @reserve_ids = Google::Gax.create_api_call(
225
- @datastore_stub.method(:reserve_ids),
226
- defaults["reserve_ids"],
227
- exception_transformer: exception_transformer,
228
- params_extractor: proc do |request|
229
- {'project_id' => request.project_id}
230
- end
231
- )
232
235
  end
233
236
 
234
237
  # Service calls
@@ -236,9 +239,9 @@ module Google
236
239
  # Looks up entities by key.
237
240
  #
238
241
  # @param project_id [String]
239
- # The ID of the project against which to make the request.
242
+ # Required. The ID of the project against which to make the request.
240
243
  # @param keys [Array<Google::Datastore::V1::Key | Hash>]
241
- # Keys of entities to look up.
244
+ # Required. Keys of entities to look up.
242
245
  # A hash of the same form as `Google::Datastore::V1::Key`
243
246
  # can also be provided.
244
247
  # @param read_options [Google::Datastore::V1::ReadOptions | Hash]
@@ -283,7 +286,7 @@ module Google
283
286
  # Queries for entities.
284
287
  #
285
288
  # @param project_id [String]
286
- # The ID of the project against which to make the request.
289
+ # Required. The ID of the project against which to make the request.
287
290
  # @param partition_id [Google::Datastore::V1::PartitionId | Hash]
288
291
  # Entities are partitioned into subsets, identified by a partition ID.
289
292
  # Queries are scoped to a single partition.
@@ -318,14 +321,11 @@ module Google
318
321
  #
319
322
  # # TODO: Initialize `project_id`:
320
323
  # project_id = ''
321
- #
322
- # # TODO: Initialize `partition_id`:
323
- # partition_id = {}
324
- # response = datastore_client.run_query(project_id, partition_id)
324
+ # response = datastore_client.run_query(project_id)
325
325
 
326
326
  def run_query \
327
327
  project_id,
328
- partition_id,
328
+ partition_id: nil,
329
329
  read_options: nil,
330
330
  query: nil,
331
331
  gql_query: nil,
@@ -342,10 +342,57 @@ module Google
342
342
  @run_query.call(req, options, &block)
343
343
  end
344
344
 
345
+ # Prevents the supplied keys' IDs from being auto-allocated by Cloud
346
+ # Datastore.
347
+ #
348
+ # @param project_id [String]
349
+ # Required. The ID of the project against which to make the request.
350
+ # @param keys [Array<Google::Datastore::V1::Key | Hash>]
351
+ # Required. A list of keys with complete key paths whose numeric IDs should not be
352
+ # auto-allocated.
353
+ # A hash of the same form as `Google::Datastore::V1::Key`
354
+ # can also be provided.
355
+ # @param database_id [String]
356
+ # If not empty, the ID of the database against which to make the request.
357
+ # @param options [Google::Gax::CallOptions]
358
+ # Overrides the default settings for this call, e.g, timeout,
359
+ # retries, etc.
360
+ # @yield [result, operation] Access the result along with the RPC operation
361
+ # @yieldparam result [Google::Datastore::V1::ReserveIdsResponse]
362
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
363
+ # @return [Google::Datastore::V1::ReserveIdsResponse]
364
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
365
+ # @example
366
+ # require "google/cloud/datastore"
367
+ #
368
+ # datastore_client = Google::Cloud::Datastore.new(version: :v1)
369
+ #
370
+ # # TODO: Initialize `project_id`:
371
+ # project_id = ''
372
+ #
373
+ # # TODO: Initialize `keys`:
374
+ # keys = []
375
+ # response = datastore_client.reserve_ids(project_id, keys)
376
+
377
+ def reserve_ids \
378
+ project_id,
379
+ keys,
380
+ database_id: nil,
381
+ options: nil,
382
+ &block
383
+ req = {
384
+ project_id: project_id,
385
+ keys: keys,
386
+ database_id: database_id
387
+ }.delete_if { |_, v| v.nil? }
388
+ req = Google::Gax::to_proto(req, Google::Datastore::V1::ReserveIdsRequest)
389
+ @reserve_ids.call(req, options, &block)
390
+ end
391
+
345
392
  # Begins a new transaction.
346
393
  #
347
394
  # @param project_id [String]
348
- # The ID of the project against which to make the request.
395
+ # Required. The ID of the project against which to make the request.
349
396
  # @param transaction_options [Google::Datastore::V1::TransactionOptions | Hash]
350
397
  # Options for a new transaction.
351
398
  # A hash of the same form as `Google::Datastore::V1::TransactionOptions`
@@ -384,9 +431,13 @@ module Google
384
431
  # entities.
385
432
  #
386
433
  # @param project_id [String]
387
- # The ID of the project against which to make the request.
434
+ # Required. The ID of the project against which to make the request.
388
435
  # @param mode [Google::Datastore::V1::CommitRequest::Mode]
389
436
  # The type of commit to perform. Defaults to `TRANSACTIONAL`.
437
+ # @param transaction [String]
438
+ # The identifier of the transaction associated with the commit. A
439
+ # transaction identifier is returned by a call to
440
+ # {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}.
390
441
  # @param mutations [Array<Google::Datastore::V1::Mutation | Hash>]
391
442
  # The mutations to perform.
392
443
  #
@@ -403,10 +454,6 @@ module Google
403
454
  # entity.
404
455
  # A hash of the same form as `Google::Datastore::V1::Mutation`
405
456
  # can also be provided.
406
- # @param transaction [String]
407
- # The identifier of the transaction associated with the commit. A
408
- # transaction identifier is returned by a call to
409
- # {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}.
410
457
  # @param options [Google::Gax::CallOptions]
411
458
  # Overrides the default settings for this call, e.g, timeout,
412
459
  # retries, etc.
@@ -422,26 +469,20 @@ module Google
422
469
  #
423
470
  # # TODO: Initialize `project_id`:
424
471
  # project_id = ''
425
- #
426
- # # TODO: Initialize `mode`:
427
- # mode = :MODE_UNSPECIFIED
428
- #
429
- # # TODO: Initialize `mutations`:
430
- # mutations = []
431
- # response = datastore_client.commit(project_id, mode, mutations)
472
+ # response = datastore_client.commit(project_id)
432
473
 
433
474
  def commit \
434
475
  project_id,
435
- mode,
436
- mutations,
476
+ mode: nil,
437
477
  transaction: nil,
478
+ mutations: nil,
438
479
  options: nil,
439
480
  &block
440
481
  req = {
441
482
  project_id: project_id,
442
483
  mode: mode,
443
- mutations: mutations,
444
- transaction: transaction
484
+ transaction: transaction,
485
+ mutations: mutations
445
486
  }.delete_if { |_, v| v.nil? }
446
487
  req = Google::Gax::to_proto(req, Google::Datastore::V1::CommitRequest)
447
488
  @commit.call(req, options, &block)
@@ -450,9 +491,9 @@ module Google
450
491
  # Rolls back a transaction.
451
492
  #
452
493
  # @param project_id [String]
453
- # The ID of the project against which to make the request.
494
+ # Required. The ID of the project against which to make the request.
454
495
  # @param transaction [String]
455
- # The transaction identifier, returned by a call to
496
+ # Required. The transaction identifier, returned by a call to
456
497
  # {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}.
457
498
  # @param options [Google::Gax::CallOptions]
458
499
  # Overrides the default settings for this call, e.g, timeout,
@@ -491,9 +532,9 @@ module Google
491
532
  # before it is inserted.
492
533
  #
493
534
  # @param project_id [String]
494
- # The ID of the project against which to make the request.
535
+ # Required. The ID of the project against which to make the request.
495
536
  # @param keys [Array<Google::Datastore::V1::Key | Hash>]
496
- # A list of keys with incomplete key paths for which to allocate IDs.
537
+ # Required. A list of keys with incomplete key paths for which to allocate IDs.
497
538
  # No key may be reserved/read-only.
498
539
  # A hash of the same form as `Google::Datastore::V1::Key`
499
540
  # can also be provided.
@@ -529,53 +570,6 @@ module Google
529
570
  req = Google::Gax::to_proto(req, Google::Datastore::V1::AllocateIdsRequest)
530
571
  @allocate_ids.call(req, options, &block)
531
572
  end
532
-
533
- # Prevents the supplied keys' IDs from being auto-allocated by Cloud
534
- # Datastore.
535
- #
536
- # @param project_id [String]
537
- # The ID of the project against which to make the request.
538
- # @param keys [Array<Google::Datastore::V1::Key | Hash>]
539
- # A list of keys with complete key paths whose numeric IDs should not be
540
- # auto-allocated.
541
- # A hash of the same form as `Google::Datastore::V1::Key`
542
- # can also be provided.
543
- # @param database_id [String]
544
- # If not empty, the ID of the database against which to make the request.
545
- # @param options [Google::Gax::CallOptions]
546
- # Overrides the default settings for this call, e.g, timeout,
547
- # retries, etc.
548
- # @yield [result, operation] Access the result along with the RPC operation
549
- # @yieldparam result [Google::Datastore::V1::ReserveIdsResponse]
550
- # @yieldparam operation [GRPC::ActiveCall::Operation]
551
- # @return [Google::Datastore::V1::ReserveIdsResponse]
552
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
553
- # @example
554
- # require "google/cloud/datastore"
555
- #
556
- # datastore_client = Google::Cloud::Datastore.new(version: :v1)
557
- #
558
- # # TODO: Initialize `project_id`:
559
- # project_id = ''
560
- #
561
- # # TODO: Initialize `keys`:
562
- # keys = []
563
- # response = datastore_client.reserve_ids(project_id, keys)
564
-
565
- def reserve_ids \
566
- project_id,
567
- keys,
568
- database_id: nil,
569
- options: nil,
570
- &block
571
- req = {
572
- project_id: project_id,
573
- keys: keys,
574
- database_id: database_id
575
- }.delete_if { |_, v| v.nil? }
576
- req = Google::Gax::to_proto(req, Google::Datastore::V1::ReserveIdsRequest)
577
- @reserve_ids.call(req, options, &block)
578
- end
579
573
  end
580
574
  end
581
575
  end
@@ -30,6 +30,11 @@
30
30
  "retry_codes_name": "idempotent",
31
31
  "retry_params_name": "default"
32
32
  },
33
+ "ReserveIds": {
34
+ "timeout_millis": 60000,
35
+ "retry_codes_name": "idempotent",
36
+ "retry_params_name": "default"
37
+ },
33
38
  "BeginTransaction": {
34
39
  "timeout_millis": 60000,
35
40
  "retry_codes_name": "non_idempotent",
@@ -49,11 +54,6 @@
49
54
  "timeout_millis": 60000,
50
55
  "retry_codes_name": "non_idempotent",
51
56
  "retry_params_name": "default"
52
- },
53
- "ReserveIds": {
54
- "timeout_millis": 60000,
55
- "retry_codes_name": "idempotent",
56
- "retry_params_name": "default"
57
57
  }
58
58
  }
59
59
  }
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -19,13 +19,13 @@ module Google
19
19
  # The request for {Google::Datastore::V1::Datastore::Lookup Datastore::Lookup}.
20
20
  # @!attribute [rw] project_id
21
21
  # @return [String]
22
- # The ID of the project against which to make the request.
22
+ # Required. The ID of the project against which to make the request.
23
23
  # @!attribute [rw] read_options
24
24
  # @return [Google::Datastore::V1::ReadOptions]
25
25
  # The options for this lookup request.
26
26
  # @!attribute [rw] keys
27
27
  # @return [Array<Google::Datastore::V1::Key>]
28
- # Keys of entities to look up.
28
+ # Required. Keys of entities to look up.
29
29
  class LookupRequest; end
30
30
 
31
31
  # The response for {Google::Datastore::V1::Datastore::Lookup Datastore::Lookup}.
@@ -49,7 +49,7 @@ module Google
49
49
  # The request for {Google::Datastore::V1::Datastore::RunQuery Datastore::RunQuery}.
50
50
  # @!attribute [rw] project_id
51
51
  # @return [String]
52
- # The ID of the project against which to make the request.
52
+ # Required. The ID of the project against which to make the request.
53
53
  # @!attribute [rw] partition_id
54
54
  # @return [Google::Datastore::V1::PartitionId]
55
55
  # Entities are partitioned into subsets, identified by a partition ID.
@@ -67,8 +67,7 @@ module Google
67
67
  # The GQL query to run.
68
68
  class RunQueryRequest; end
69
69
 
70
- # The response for
71
- # {Google::Datastore::V1::Datastore::RunQuery Datastore::RunQuery}.
70
+ # The response for {Google::Datastore::V1::Datastore::RunQuery Datastore::RunQuery}.
72
71
  # @!attribute [rw] batch
73
72
  # @return [Google::Datastore::V1::QueryResultBatch]
74
73
  # A batch of query results (always present).
@@ -77,18 +76,16 @@ module Google
77
76
  # The parsed form of the `GqlQuery` from the request, if it was set.
78
77
  class RunQueryResponse; end
79
78
 
80
- # The request for
81
- # {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}.
79
+ # The request for {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}.
82
80
  # @!attribute [rw] project_id
83
81
  # @return [String]
84
- # The ID of the project against which to make the request.
82
+ # Required. The ID of the project against which to make the request.
85
83
  # @!attribute [rw] transaction_options
86
84
  # @return [Google::Datastore::V1::TransactionOptions]
87
85
  # Options for a new transaction.
88
86
  class BeginTransactionRequest; end
89
87
 
90
- # The response for
91
- # {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}.
88
+ # The response for {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}.
92
89
  # @!attribute [rw] transaction
93
90
  # @return [String]
94
91
  # The transaction identifier (always present).
@@ -97,22 +94,21 @@ module Google
97
94
  # The request for {Google::Datastore::V1::Datastore::Rollback Datastore::Rollback}.
98
95
  # @!attribute [rw] project_id
99
96
  # @return [String]
100
- # The ID of the project against which to make the request.
97
+ # Required. The ID of the project against which to make the request.
101
98
  # @!attribute [rw] transaction
102
99
  # @return [String]
103
- # The transaction identifier, returned by a call to
100
+ # Required. The transaction identifier, returned by a call to
104
101
  # {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}.
105
102
  class RollbackRequest; end
106
103
 
107
- # The response for
108
- # {Google::Datastore::V1::Datastore::Rollback Datastore::Rollback}. (an empty
109
- # message).
104
+ # The response for {Google::Datastore::V1::Datastore::Rollback Datastore::Rollback}.
105
+ # (an empty message).
110
106
  class RollbackResponse; end
111
107
 
112
108
  # The request for {Google::Datastore::V1::Datastore::Commit Datastore::Commit}.
113
109
  # @!attribute [rw] project_id
114
110
  # @return [String]
115
- # The ID of the project against which to make the request.
111
+ # Required. The ID of the project against which to make the request.
116
112
  # @!attribute [rw] mode
117
113
  # @return [Google::Datastore::V1::CommitRequest::Mode]
118
114
  # The type of commit to perform. Defaults to `TRANSACTIONAL`.
@@ -163,41 +159,37 @@ module Google
163
159
  # updated.
164
160
  class CommitResponse; end
165
161
 
166
- # The request for
167
- # {Google::Datastore::V1::Datastore::AllocateIds Datastore::AllocateIds}.
162
+ # The request for {Google::Datastore::V1::Datastore::AllocateIds Datastore::AllocateIds}.
168
163
  # @!attribute [rw] project_id
169
164
  # @return [String]
170
- # The ID of the project against which to make the request.
165
+ # Required. The ID of the project against which to make the request.
171
166
  # @!attribute [rw] keys
172
167
  # @return [Array<Google::Datastore::V1::Key>]
173
- # A list of keys with incomplete key paths for which to allocate IDs.
168
+ # Required. A list of keys with incomplete key paths for which to allocate IDs.
174
169
  # No key may be reserved/read-only.
175
170
  class AllocateIdsRequest; end
176
171
 
177
- # The response for
178
- # {Google::Datastore::V1::Datastore::AllocateIds Datastore::AllocateIds}.
172
+ # The response for {Google::Datastore::V1::Datastore::AllocateIds Datastore::AllocateIds}.
179
173
  # @!attribute [rw] keys
180
174
  # @return [Array<Google::Datastore::V1::Key>]
181
175
  # The keys specified in the request (in the same order), each with
182
176
  # its key path completed with a newly allocated ID.
183
177
  class AllocateIdsResponse; end
184
178
 
185
- # The request for
186
- # {Google::Datastore::V1::Datastore::ReserveIds Datastore::ReserveIds}.
179
+ # The request for {Google::Datastore::V1::Datastore::ReserveIds Datastore::ReserveIds}.
187
180
  # @!attribute [rw] project_id
188
181
  # @return [String]
189
- # The ID of the project against which to make the request.
182
+ # Required. The ID of the project against which to make the request.
190
183
  # @!attribute [rw] database_id
191
184
  # @return [String]
192
185
  # If not empty, the ID of the database against which to make the request.
193
186
  # @!attribute [rw] keys
194
187
  # @return [Array<Google::Datastore::V1::Key>]
195
- # A list of keys with complete key paths whose numeric IDs should not be
188
+ # Required. A list of keys with complete key paths whose numeric IDs should not be
196
189
  # auto-allocated.
197
190
  class ReserveIdsRequest; end
198
191
 
199
- # The response for
200
- # {Google::Datastore::V1::Datastore::ReserveIds Datastore::ReserveIds}.
192
+ # The response for {Google::Datastore::V1::Datastore::ReserveIds Datastore::ReserveIds}.
201
193
  class ReserveIdsResponse; end
202
194
 
203
195
  # A mutation to apply to an entity.
@@ -268,10 +260,8 @@ module Google
268
260
  # Options for beginning a new transaction.
269
261
  #
270
262
  # Transactions can be created explicitly with calls to
271
- # {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction}
272
- # or implicitly by setting
273
- # {Google::Datastore::V1::ReadOptions#new_transaction ReadOptions#new_transaction}
274
- # in read requests.
263
+ # {Google::Datastore::V1::Datastore::BeginTransaction Datastore::BeginTransaction} or implicitly by setting
264
+ # {Google::Datastore::V1::ReadOptions#new_transaction ReadOptions#new_transaction} in read requests.
275
265
  # @!attribute [rw] read_write
276
266
  # @return [Google::Datastore::V1::TransactionOptions::ReadWrite]
277
267
  # The transaction should allow both reads and writes.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -100,8 +100,8 @@ module Google
100
100
  # @!attribute [rw] values
101
101
  # @return [Array<Google::Datastore::V1::Value>]
102
102
  # Values in the array.
103
- # The order of this array may not be preserved if it contains a mix of
104
- # indexed and unindexed values.
103
+ # The order of values in an array is preserved as long as all values have
104
+ # identical settings for 'exclude_from_indexes'.
105
105
  class ArrayValue; end
106
106
 
107
107
  # A message that can hold any of the supported value types and associated
@@ -129,8 +129,8 @@ module Google
129
129
  # @!attribute [rw] string_value
130
130
  # @return [String]
131
131
  # A UTF-8 encoded string value.
132
- # When `exclude_from_indexes` is false (it is indexed) , may have at most
133
- # 1500 bytes. Otherwise, may be set to at least 1,000,000 bytes.
132
+ # When `exclude_from_indexes` is false (it is indexed), may have at most
133
+ # 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
134
134
  # @!attribute [rw] blob_value
135
135
  # @return [String]
136
136
  # A blob value.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -25,12 +25,12 @@ module Google
25
25
  # The version of the entity, a strictly positive number that monotonically
26
26
  # increases with changes to the entity.
27
27
  #
28
- # This field is set for
29
- # {Google::Datastore::V1::EntityResult::ResultType::FULL `FULL`} entity results.
28
+ # This field is set for {Google::Datastore::V1::EntityResult::ResultType::FULL `FULL`} entity
29
+ # results.
30
30
  #
31
- # For {Google::Datastore::V1::LookupResponse#missing missing} entities in
32
- # `LookupResponse`, this is the version of the snapshot that was used to look
33
- # up the entity, and it is always set except for eventually consistent reads.
31
+ # For {Google::Datastore::V1::LookupResponse#missing missing} entities in `LookupResponse`, this
32
+ # is the version of the snapshot that was used to look up the entity, and it
33
+ # is always set except for eventually consistent reads.
34
34
  # @!attribute [rw] cursor
35
35
  # @return [String]
36
36
  # A cursor that points to the position after the result entity.
@@ -86,7 +86,7 @@ module Google
86
86
  # 01:30 UTC on January 15, 2017.
87
87
  #
88
88
  # In JavaScript, one can convert a Date object to this format using the
89
- # standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString]
89
+ # standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
90
90
  # method. In Python, a standard `datetime.datetime` object can be converted
91
91
  # to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
92
92
  # with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Datastore
19
- VERSION = "1.7.1".freeze
19
+ VERSION = "1.8.2".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -5,6 +5,8 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
8
10
  require 'google/datastore/v1/entity_pb'
9
11
  require 'google/datastore/v1/query_pb'
10
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -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 2018 Google Inc.
4
+ # Copyright 2019 Google LLC.
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.
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.7.1
4
+ version: 1.8.2
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: 2019-11-07 00:00:00.000000000 Z
12
+ date: 2020-05-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -99,14 +99,14 @@ dependencies:
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '5.10'
102
+ version: '5.14'
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '5.10'
109
+ version: '5.14'
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: minitest-autotest
112
112
  requirement: !ruby/object:Gem::Requirement