google-cloud-datastore-admin-v1 0.4.2 → 0.4.3

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: '047657866489d29bab2cbd18c58187708932bd14bd12b7bbd3ae613bf07b2fe3'
4
- data.tar.gz: '079c9b7b6491fdcfcb3aa7ba065ebef71662ddd909ace9aaaf442dbdfb2646b1'
3
+ metadata.gz: a9aaa6c6fa9c7d34bd6eddf0608875ca17ba47e6d2d9146226f3627cb8777974
4
+ data.tar.gz: 117197c2dcd48ab873e9961a66d8b5d733d18f7afc86320a7c4ebc44894766a8
5
5
  SHA512:
6
- metadata.gz: c175cd511bff5756c2aa273f4dd99e3cc7f178d32f067141a677fb108205e345b9b75dfe6daba56eac44e9d2e6dd3f08043353647794e2833fc8e11120263e44
7
- data.tar.gz: 71574596a42a9cbbb5b6f8b8b0d21b099fda920790d952d848cd1a763d0aa5b5b99d9175951dffd347c3f0b7d38b8b3d290486a9af0d29b8c768e2313f02f6e7
6
+ metadata.gz: 9553056a8776be9158a9d50009064e632969d91373622514c5351a6e89988557e2ca67fc488012f07248f33dc6a09532905194fcb9eece369d2d48a2b278c39b
7
+ data.tar.gz: 9e048b52b87e589a0d6e490aec72ab81c882c1e54ae7a4d01e77eb6e633e0a6332024e17dff5980d5c04e937f258c35af86edecf7bbf7819cb109ce1db8bb535
@@ -100,13 +100,12 @@ module Google
100
100
  # See {::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client::Configuration}
101
101
  # for a description of the configuration fields.
102
102
  #
103
- # ## Example
103
+ # @example
104
104
  #
105
- # To modify the configuration for all DatastoreAdmin clients:
106
- #
107
- # ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.configure do |config|
108
- # config.timeout = 10.0
109
- # end
105
+ # # Modify the configuration for all DatastoreAdmin clients
106
+ # ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.configure do |config|
107
+ # config.timeout = 10.0
108
+ # end
110
109
  #
111
110
  # @yield [config] Configure the Client client.
112
111
  # @yieldparam config [Client::Configuration]
@@ -171,19 +170,15 @@ module Google
171
170
  ##
172
171
  # Create a new DatastoreAdmin client object.
173
172
  #
174
- # ## Examples
175
- #
176
- # To create a new DatastoreAdmin client with the default
177
- # configuration:
173
+ # @example
178
174
  #
179
- # client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.new
175
+ # # Create a client using the default configuration
176
+ # client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.new
180
177
  #
181
- # To create a new DatastoreAdmin client with a custom
182
- # configuration:
183
- #
184
- # client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.new do |config|
185
- # config.timeout = 10.0
186
- # end
178
+ # # Create a client using a custom configuration
179
+ # client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.new do |config|
180
+ # config.timeout = 10.0
181
+ # end
187
182
  #
188
183
  # @yield [config] Configure the DatastoreAdmin client.
189
184
  # @yieldparam config [Client::Configuration]
@@ -203,10 +198,9 @@ module Google
203
198
 
204
199
  # Create credentials
205
200
  credentials = @config.credentials
206
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
201
+ # Use self-signed JWT if the endpoint is unchanged from default,
207
202
  # but only if the default endpoint does not have a region prefix.
208
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
209
- @config.endpoint == Client.configure.endpoint &&
203
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
210
204
  !@config.endpoint.split(".").first.include?("-")
211
205
  credentials ||= Credentials.default scope: @config.scope,
212
206
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -324,7 +318,9 @@ module Google
324
318
  options.apply_defaults timeout: @config.rpcs.export_entities.timeout,
325
319
  metadata: metadata,
326
320
  retry_policy: @config.rpcs.export_entities.retry_policy
327
- options.apply_defaults metadata: @config.metadata,
321
+
322
+ options.apply_defaults timeout: @config.timeout,
323
+ metadata: @config.metadata,
328
324
  retry_policy: @config.retry_policy
329
325
 
330
326
  @datastore_admin_stub.call_rpc :export_entities, request, options: options do |response, operation|
@@ -416,7 +412,9 @@ module Google
416
412
  options.apply_defaults timeout: @config.rpcs.import_entities.timeout,
417
413
  metadata: metadata,
418
414
  retry_policy: @config.rpcs.import_entities.retry_policy
419
- options.apply_defaults metadata: @config.metadata,
415
+
416
+ options.apply_defaults timeout: @config.timeout,
417
+ metadata: @config.metadata,
420
418
  retry_policy: @config.retry_policy
421
419
 
422
420
  @datastore_admin_stub.call_rpc :import_entities, request, options: options do |response, operation|
@@ -499,7 +497,9 @@ module Google
499
497
  options.apply_defaults timeout: @config.rpcs.create_index.timeout,
500
498
  metadata: metadata,
501
499
  retry_policy: @config.rpcs.create_index.retry_policy
502
- options.apply_defaults metadata: @config.metadata,
500
+
501
+ options.apply_defaults timeout: @config.timeout,
502
+ metadata: @config.metadata,
503
503
  retry_policy: @config.retry_policy
504
504
 
505
505
  @datastore_admin_stub.call_rpc :create_index, request, options: options do |response, operation|
@@ -578,7 +578,9 @@ module Google
578
578
  options.apply_defaults timeout: @config.rpcs.delete_index.timeout,
579
579
  metadata: metadata,
580
580
  retry_policy: @config.rpcs.delete_index.retry_policy
581
- options.apply_defaults metadata: @config.metadata,
581
+
582
+ options.apply_defaults timeout: @config.timeout,
583
+ metadata: @config.metadata,
582
584
  retry_policy: @config.retry_policy
583
585
 
584
586
  @datastore_admin_stub.call_rpc :delete_index, request, options: options do |response, operation|
@@ -648,7 +650,9 @@ module Google
648
650
  options.apply_defaults timeout: @config.rpcs.get_index.timeout,
649
651
  metadata: metadata,
650
652
  retry_policy: @config.rpcs.get_index.retry_policy
651
- options.apply_defaults metadata: @config.metadata,
653
+
654
+ options.apply_defaults timeout: @config.timeout,
655
+ metadata: @config.metadata,
652
656
  retry_policy: @config.retry_policy
653
657
 
654
658
  @datastore_admin_stub.call_rpc :get_index, request, options: options do |response, operation|
@@ -722,7 +726,9 @@ module Google
722
726
  options.apply_defaults timeout: @config.rpcs.list_indexes.timeout,
723
727
  metadata: metadata,
724
728
  retry_policy: @config.rpcs.list_indexes.retry_policy
725
- options.apply_defaults metadata: @config.metadata,
729
+
730
+ options.apply_defaults timeout: @config.timeout,
731
+ metadata: @config.metadata,
726
732
  retry_policy: @config.retry_policy
727
733
 
728
734
  @datastore_admin_stub.call_rpc :list_indexes, request, options: options do |response, operation|
@@ -747,22 +753,21 @@ module Google
747
753
  # Configuration can be applied globally to all clients, or to a single client
748
754
  # on construction.
749
755
  #
750
- # # Examples
751
- #
752
- # To modify the global config, setting the timeout for export_entities
753
- # to 20 seconds, and all remaining timeouts to 10 seconds:
754
- #
755
- # ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.configure do |config|
756
- # config.timeout = 10.0
757
- # config.rpcs.export_entities.timeout = 20.0
758
- # end
759
- #
760
- # To apply the above configuration only to a new client:
761
- #
762
- # client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.new do |config|
763
- # config.timeout = 10.0
764
- # config.rpcs.export_entities.timeout = 20.0
765
- # end
756
+ # @example
757
+ #
758
+ # # Modify the global config, setting the timeout for
759
+ # # export_entities to 20 seconds,
760
+ # # and all remaining timeouts to 10 seconds.
761
+ # ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.configure do |config|
762
+ # config.timeout = 10.0
763
+ # config.rpcs.export_entities.timeout = 20.0
764
+ # end
765
+ #
766
+ # # Apply the above configuration only to a new client.
767
+ # client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.new do |config|
768
+ # config.timeout = 10.0
769
+ # config.rpcs.export_entities.timeout = 20.0
770
+ # end
766
771
  #
767
772
  # @!attribute [rw] endpoint
768
773
  # The hostname or hostname:port of the service endpoint.
@@ -170,7 +170,9 @@ module Google
170
170
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
171
171
  metadata: metadata,
172
172
  retry_policy: @config.rpcs.list_operations.retry_policy
173
- options.apply_defaults metadata: @config.metadata,
173
+
174
+ options.apply_defaults timeout: @config.timeout,
175
+ metadata: @config.metadata,
174
176
  retry_policy: @config.retry_policy
175
177
 
176
178
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -240,7 +242,9 @@ module Google
240
242
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
241
243
  metadata: metadata,
242
244
  retry_policy: @config.rpcs.get_operation.retry_policy
243
- options.apply_defaults metadata: @config.metadata,
245
+
246
+ options.apply_defaults timeout: @config.timeout,
247
+ metadata: @config.metadata,
244
248
  retry_policy: @config.retry_policy
245
249
 
246
250
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -310,7 +314,9 @@ module Google
310
314
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
311
315
  metadata: metadata,
312
316
  retry_policy: @config.rpcs.delete_operation.retry_policy
313
- options.apply_defaults metadata: @config.metadata,
317
+
318
+ options.apply_defaults timeout: @config.timeout,
319
+ metadata: @config.metadata,
314
320
  retry_policy: @config.retry_policy
315
321
 
316
322
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -385,7 +391,9 @@ module Google
385
391
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
386
392
  metadata: metadata,
387
393
  retry_policy: @config.rpcs.cancel_operation.retry_policy
388
- options.apply_defaults metadata: @config.metadata,
394
+
395
+ options.apply_defaults timeout: @config.timeout,
396
+ metadata: @config.metadata,
389
397
  retry_policy: @config.retry_policy
390
398
 
391
399
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -457,7 +465,9 @@ module Google
457
465
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
458
466
  metadata: metadata,
459
467
  retry_policy: @config.rpcs.wait_operation.retry_policy
460
- options.apply_defaults metadata: @config.metadata,
468
+
469
+ options.apply_defaults timeout: @config.timeout,
470
+ metadata: @config.metadata,
461
471
  retry_policy: @config.retry_policy
462
472
 
463
473
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -482,22 +492,21 @@ module Google
482
492
  # Configuration can be applied globally to all clients, or to a single client
483
493
  # on construction.
484
494
  #
485
- # # Examples
486
- #
487
- # To modify the global config, setting the timeout for list_operations
488
- # to 20 seconds, and all remaining timeouts to 10 seconds:
489
- #
490
- # ::Google::Longrunning::Operations::Client.configure do |config|
491
- # config.timeout = 10.0
492
- # config.rpcs.list_operations.timeout = 20.0
493
- # end
494
- #
495
- # To apply the above configuration only to a new client:
496
- #
497
- # client = ::Google::Longrunning::Operations::Client.new do |config|
498
- # config.timeout = 10.0
499
- # config.rpcs.list_operations.timeout = 20.0
500
- # end
495
+ # @example
496
+ #
497
+ # # Modify the global config, setting the timeout for
498
+ # # list_operations to 20 seconds,
499
+ # # and all remaining timeouts to 10 seconds.
500
+ # ::Google::Longrunning::Operations::Client.configure do |config|
501
+ # config.timeout = 10.0
502
+ # config.rpcs.list_operations.timeout = 20.0
503
+ # end
504
+ #
505
+ # # Apply the above configuration only to a new client.
506
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
507
+ # config.timeout = 10.0
508
+ # config.rpcs.list_operations.timeout = 20.0
509
+ # end
501
510
  #
502
511
  # @!attribute [rw] endpoint
503
512
  # The hostname or hostname:port of the service endpoint.
@@ -22,7 +22,7 @@ module Google
22
22
  module Datastore
23
23
  module Admin
24
24
  module V1
25
- VERSION = "0.4.2"
25
+ VERSION = "0.4.3"
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-datastore-admin-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a