google-cloud-datastore 1.8.0 → 1.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24443175e79fea809e939ff9a0270b29267fc9adaffb9ed0aae19728fd296904
4
- data.tar.gz: 04cad098d4bc8d86d4d95ca8aeef0eab46f57491fc4c0b5dd32640587d383604
3
+ metadata.gz: 905f1055fbaea77d81cb9152e3eebb63b3777ae5193835a3e44340d7bb61ff40
4
+ data.tar.gz: bba3960ee3e69c7979a8e6330a132e640ac36f10835b5d6051ea8e979841ac14
5
5
  SHA512:
6
- metadata.gz: 0423c4729d6962cf87e42641a838554521e22f4390146480d3e296c3e3f2d9a385958113c223b3d080bc4ef5311359c56ce6967011deaf8672d4521261aee24d
7
- data.tar.gz: 3fbfeb296dcfd2d59779e2c971bae80e149804242a9962cc877bef8c79580700846f07f21cec5fefd96a6fd722c040632acdbf89d3a2fc629bbf476188d8fadd
6
+ metadata.gz: 1d454255b9931772a99d01c5b7cd08fee32a6e072dab9165a1d9260cf68cb5975fe14c5e12170fe96e9d5c9a457ff5eab8f850313537eda57186fc6b4b1387ed
7
+ data.tar.gz: 7463bfc195adba4136e61ba7157684515351f7a42c92c41c2266c60c6251a73a5f019898b2c7b6b359d84cbdac05ed39df7aa000fbae8a3d3b584b6e998efdf4
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 1.8.1 / 2020-05-19
4
+
5
+ #### Bug Fixes
6
+
7
+ * Adjusted some default timeout and retry settings
8
+
3
9
  ### 1.8.0 / 2020-03-11
4
10
 
5
11
  #### Features
@@ -192,6 +192,14 @@ module Google
192
192
  {'project_id' => request.project_id}
193
193
  end
194
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
+ )
195
203
  @begin_transaction = Google::Gax.create_api_call(
196
204
  @datastore_stub.method(:begin_transaction),
197
205
  defaults["begin_transaction"],
@@ -224,14 +232,6 @@ module Google
224
232
  {'project_id' => request.project_id}
225
233
  end
226
234
  )
227
- @reserve_ids = Google::Gax.create_api_call(
228
- @datastore_stub.method(:reserve_ids),
229
- defaults["reserve_ids"],
230
- exception_transformer: exception_transformer,
231
- params_extractor: proc do |request|
232
- {'project_id' => request.project_id}
233
- end
234
- )
235
235
  end
236
236
 
237
237
  # Service calls
@@ -342,6 +342,53 @@ 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]
@@ -523,53 +570,6 @@ module Google
523
570
  req = Google::Gax::to_proto(req, Google::Datastore::V1::AllocateIdsRequest)
524
571
  @allocate_ids.call(req, options, &block)
525
572
  end
526
-
527
- # Prevents the supplied keys' IDs from being auto-allocated by Cloud
528
- # Datastore.
529
- #
530
- # @param project_id [String]
531
- # Required. The ID of the project against which to make the request.
532
- # @param keys [Array<Google::Datastore::V1::Key | Hash>]
533
- # Required. A list of keys with complete key paths whose numeric IDs should not be
534
- # auto-allocated.
535
- # A hash of the same form as `Google::Datastore::V1::Key`
536
- # can also be provided.
537
- # @param database_id [String]
538
- # If not empty, the ID of the database against which to make the request.
539
- # @param options [Google::Gax::CallOptions]
540
- # Overrides the default settings for this call, e.g, timeout,
541
- # retries, etc.
542
- # @yield [result, operation] Access the result along with the RPC operation
543
- # @yieldparam result [Google::Datastore::V1::ReserveIdsResponse]
544
- # @yieldparam operation [GRPC::ActiveCall::Operation]
545
- # @return [Google::Datastore::V1::ReserveIdsResponse]
546
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
547
- # @example
548
- # require "google/cloud/datastore"
549
- #
550
- # datastore_client = Google::Cloud::Datastore.new(version: :v1)
551
- #
552
- # # TODO: Initialize `project_id`:
553
- # project_id = ''
554
- #
555
- # # TODO: Initialize `keys`:
556
- # keys = []
557
- # response = datastore_client.reserve_ids(project_id, keys)
558
-
559
- def reserve_ids \
560
- project_id,
561
- keys,
562
- database_id: nil,
563
- options: nil,
564
- &block
565
- req = {
566
- project_id: project_id,
567
- keys: keys,
568
- database_id: database_id
569
- }.delete_if { |_, v| v.nil? }
570
- req = Google::Gax::to_proto(req, Google::Datastore::V1::ReserveIdsRequest)
571
- @reserve_ids.call(req, options, &block)
572
- end
573
573
  end
574
574
  end
575
575
  end
@@ -13,21 +13,26 @@
13
13
  "initial_retry_delay_millis": 100,
14
14
  "retry_delay_multiplier": 1.3,
15
15
  "max_retry_delay_millis": 60000,
16
- "initial_rpc_timeout_millis": 20000,
16
+ "initial_rpc_timeout_millis": 60000,
17
17
  "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 20000,
18
+ "max_rpc_timeout_millis": 60000,
19
19
  "total_timeout_millis": 600000
20
20
  }
21
21
  },
22
22
  "methods": {
23
23
  "Lookup": {
24
24
  "timeout_millis": 60000,
25
- "retry_codes_name": "non_idempotent",
25
+ "retry_codes_name": "idempotent",
26
26
  "retry_params_name": "default"
27
27
  },
28
28
  "RunQuery": {
29
29
  "timeout_millis": 60000,
30
- "retry_codes_name": "non_idempotent",
30
+ "retry_codes_name": "idempotent",
31
+ "retry_params_name": "default"
32
+ },
33
+ "ReserveIds": {
34
+ "timeout_millis": 60000,
35
+ "retry_codes_name": "idempotent",
31
36
  "retry_params_name": "default"
32
37
  },
33
38
  "BeginTransaction": {
@@ -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": "non_idempotent",
56
- "retry_params_name": "default"
57
57
  }
58
58
  }
59
59
  }
@@ -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 1500 bytes.
133
- # 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.
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Datastore
19
- VERSION = "1.8.0".freeze
19
+ VERSION = "1.8.1".freeze
20
20
  end
21
21
  end
22
22
  end
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.8.0
4
+ version: 1.8.1
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: 2020-03-11 00:00:00.000000000 Z
12
+ date: 2020-05-19 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