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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9aaa6c6fa9c7d34bd6eddf0608875ca17ba47e6d2d9146226f3627cb8777974
|
4
|
+
data.tar.gz: 117197c2dcd48ab873e9961a66d8b5d733d18f7afc86320a7c4ebc44894766a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
103
|
+
# @example
|
104
104
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
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
|
-
#
|
175
|
-
#
|
176
|
-
# To create a new DatastoreAdmin client with the default
|
177
|
-
# configuration:
|
173
|
+
# @example
|
178
174
|
#
|
179
|
-
#
|
175
|
+
# # Create a client using the default configuration
|
176
|
+
# client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.new
|
180
177
|
#
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
751
|
-
#
|
752
|
-
#
|
753
|
-
# to 20 seconds,
|
754
|
-
#
|
755
|
-
#
|
756
|
-
#
|
757
|
-
#
|
758
|
-
#
|
759
|
-
#
|
760
|
-
#
|
761
|
-
#
|
762
|
-
#
|
763
|
-
#
|
764
|
-
#
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
486
|
-
#
|
487
|
-
#
|
488
|
-
# to 20 seconds,
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
#
|
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.
|
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.
|
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-
|
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.
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|