google-cloud-memcache-v1 0.2.2 → 0.2.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: b07781e9b3804514bd91a814bb87cb397e6c950914bdb2bad51ab403a927def5
|
4
|
+
data.tar.gz: 65a29871c7e2d9b3e85d45b75895b1dbd9e554ae623b6c986ac47760a085f1c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5da803177317514606beca8c62b2b8dd9a94b03ef9b30a67e6fe3cc4b5daba284ec7530076d64f77f5439462b13311b24f53b64fd3c133feec75f31404e72bc
|
7
|
+
data.tar.gz: 2a16763a26d4b7608e1295a595ff2ef1c897dec20f7a7ae27c02e7b4236c6f892293333b54411c90e0c9ee0b68c89f1219625ef3aef823e79900919cc4e1b8f3
|
@@ -55,13 +55,12 @@ module Google
|
|
55
55
|
# See {::Google::Cloud::Memcache::V1::CloudMemcache::Client::Configuration}
|
56
56
|
# for a description of the configuration fields.
|
57
57
|
#
|
58
|
-
#
|
58
|
+
# @example
|
59
59
|
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
# end
|
60
|
+
# # Modify the configuration for all CloudMemcache clients
|
61
|
+
# ::Google::Cloud::Memcache::V1::CloudMemcache::Client.configure do |config|
|
62
|
+
# config.timeout = 10.0
|
63
|
+
# end
|
65
64
|
#
|
66
65
|
# @yield [config] Configure the Client client.
|
67
66
|
# @yieldparam config [Client::Configuration]
|
@@ -122,19 +121,15 @@ module Google
|
|
122
121
|
##
|
123
122
|
# Create a new CloudMemcache client object.
|
124
123
|
#
|
125
|
-
#
|
126
|
-
#
|
127
|
-
# To create a new CloudMemcache client with the default
|
128
|
-
# configuration:
|
124
|
+
# @example
|
129
125
|
#
|
130
|
-
#
|
126
|
+
# # Create a client using the default configuration
|
127
|
+
# client = ::Google::Cloud::Memcache::V1::CloudMemcache::Client.new
|
131
128
|
#
|
132
|
-
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
# config.timeout = 10.0
|
137
|
-
# end
|
129
|
+
# # Create a client using a custom configuration
|
130
|
+
# client = ::Google::Cloud::Memcache::V1::CloudMemcache::Client.new do |config|
|
131
|
+
# config.timeout = 10.0
|
132
|
+
# end
|
138
133
|
#
|
139
134
|
# @yield [config] Configure the CloudMemcache client.
|
140
135
|
# @yieldparam config [Client::Configuration]
|
@@ -154,10 +149,9 @@ module Google
|
|
154
149
|
|
155
150
|
# Create credentials
|
156
151
|
credentials = @config.credentials
|
157
|
-
# Use self-signed JWT if the
|
152
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
158
153
|
# but only if the default endpoint does not have a region prefix.
|
159
|
-
enable_self_signed_jwt = @config.
|
160
|
-
@config.endpoint == Client.configure.endpoint &&
|
154
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
161
155
|
!@config.endpoint.split(".").first.include?("-")
|
162
156
|
credentials ||= Credentials.default scope: @config.scope,
|
163
157
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -263,7 +257,9 @@ module Google
|
|
263
257
|
options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
|
264
258
|
metadata: metadata,
|
265
259
|
retry_policy: @config.rpcs.list_instances.retry_policy
|
266
|
-
|
260
|
+
|
261
|
+
options.apply_defaults timeout: @config.timeout,
|
262
|
+
metadata: @config.metadata,
|
267
263
|
retry_policy: @config.retry_policy
|
268
264
|
|
269
265
|
@cloud_memcache_stub.call_rpc :list_instances, request, options: options do |response, operation|
|
@@ -332,7 +328,9 @@ module Google
|
|
332
328
|
options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
|
333
329
|
metadata: metadata,
|
334
330
|
retry_policy: @config.rpcs.get_instance.retry_policy
|
335
|
-
|
331
|
+
|
332
|
+
options.apply_defaults timeout: @config.timeout,
|
333
|
+
metadata: @config.metadata,
|
336
334
|
retry_policy: @config.retry_policy
|
337
335
|
|
338
336
|
@cloud_memcache_stub.call_rpc :get_instance, request, options: options do |response, operation|
|
@@ -413,7 +411,9 @@ module Google
|
|
413
411
|
options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
|
414
412
|
metadata: metadata,
|
415
413
|
retry_policy: @config.rpcs.create_instance.retry_policy
|
416
|
-
|
414
|
+
|
415
|
+
options.apply_defaults timeout: @config.timeout,
|
416
|
+
metadata: @config.metadata,
|
417
417
|
retry_policy: @config.retry_policy
|
418
418
|
|
419
419
|
@cloud_memcache_stub.call_rpc :create_instance, request, options: options do |response, operation|
|
@@ -484,7 +484,9 @@ module Google
|
|
484
484
|
options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
|
485
485
|
metadata: metadata,
|
486
486
|
retry_policy: @config.rpcs.update_instance.retry_policy
|
487
|
-
|
487
|
+
|
488
|
+
options.apply_defaults timeout: @config.timeout,
|
489
|
+
metadata: @config.metadata,
|
488
490
|
retry_policy: @config.retry_policy
|
489
491
|
|
490
492
|
@cloud_memcache_stub.call_rpc :update_instance, request, options: options do |response, operation|
|
@@ -558,7 +560,9 @@ module Google
|
|
558
560
|
options.apply_defaults timeout: @config.rpcs.update_parameters.timeout,
|
559
561
|
metadata: metadata,
|
560
562
|
retry_policy: @config.rpcs.update_parameters.retry_policy
|
561
|
-
|
563
|
+
|
564
|
+
options.apply_defaults timeout: @config.timeout,
|
565
|
+
metadata: @config.metadata,
|
562
566
|
retry_policy: @config.retry_policy
|
563
567
|
|
564
568
|
@cloud_memcache_stub.call_rpc :update_parameters, request, options: options do |response, operation|
|
@@ -627,7 +631,9 @@ module Google
|
|
627
631
|
options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
|
628
632
|
metadata: metadata,
|
629
633
|
retry_policy: @config.rpcs.delete_instance.retry_policy
|
630
|
-
|
634
|
+
|
635
|
+
options.apply_defaults timeout: @config.timeout,
|
636
|
+
metadata: @config.metadata,
|
631
637
|
retry_policy: @config.retry_policy
|
632
638
|
|
633
639
|
@cloud_memcache_stub.call_rpc :delete_instance, request, options: options do |response, operation|
|
@@ -702,7 +708,9 @@ module Google
|
|
702
708
|
options.apply_defaults timeout: @config.rpcs.apply_parameters.timeout,
|
703
709
|
metadata: metadata,
|
704
710
|
retry_policy: @config.rpcs.apply_parameters.retry_policy
|
705
|
-
|
711
|
+
|
712
|
+
options.apply_defaults timeout: @config.timeout,
|
713
|
+
metadata: @config.metadata,
|
706
714
|
retry_policy: @config.retry_policy
|
707
715
|
|
708
716
|
@cloud_memcache_stub.call_rpc :apply_parameters, request, options: options do |response, operation|
|
@@ -727,22 +735,21 @@ module Google
|
|
727
735
|
# Configuration can be applied globally to all clients, or to a single client
|
728
736
|
# on construction.
|
729
737
|
#
|
730
|
-
#
|
731
|
-
#
|
732
|
-
#
|
733
|
-
# to 20 seconds,
|
734
|
-
#
|
735
|
-
#
|
736
|
-
#
|
737
|
-
#
|
738
|
-
#
|
739
|
-
#
|
740
|
-
#
|
741
|
-
#
|
742
|
-
#
|
743
|
-
#
|
744
|
-
#
|
745
|
-
# end
|
738
|
+
# @example
|
739
|
+
#
|
740
|
+
# # Modify the global config, setting the timeout for
|
741
|
+
# # list_instances to 20 seconds,
|
742
|
+
# # and all remaining timeouts to 10 seconds.
|
743
|
+
# ::Google::Cloud::Memcache::V1::CloudMemcache::Client.configure do |config|
|
744
|
+
# config.timeout = 10.0
|
745
|
+
# config.rpcs.list_instances.timeout = 20.0
|
746
|
+
# end
|
747
|
+
#
|
748
|
+
# # Apply the above configuration only to a new client.
|
749
|
+
# client = ::Google::Cloud::Memcache::V1::CloudMemcache::Client.new do |config|
|
750
|
+
# config.timeout = 10.0
|
751
|
+
# config.rpcs.list_instances.timeout = 20.0
|
752
|
+
# end
|
746
753
|
#
|
747
754
|
# @!attribute [rw] endpoint
|
748
755
|
# The hostname or hostname:port of the service endpoint.
|
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
172
|
+
|
173
|
+
options.apply_defaults timeout: @config.timeout,
|
174
|
+
metadata: @config.metadata,
|
173
175
|
retry_policy: @config.retry_policy
|
174
176
|
|
175
177
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -239,7 +241,9 @@ module Google
|
|
239
241
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
240
242
|
metadata: metadata,
|
241
243
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
242
|
-
|
244
|
+
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
246
|
+
metadata: @config.metadata,
|
243
247
|
retry_policy: @config.retry_policy
|
244
248
|
|
245
249
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -309,7 +313,9 @@ module Google
|
|
309
313
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
310
314
|
metadata: metadata,
|
311
315
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
312
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
313
319
|
retry_policy: @config.retry_policy
|
314
320
|
|
315
321
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -384,7 +390,9 @@ module Google
|
|
384
390
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
385
391
|
metadata: metadata,
|
386
392
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
387
|
-
|
393
|
+
|
394
|
+
options.apply_defaults timeout: @config.timeout,
|
395
|
+
metadata: @config.metadata,
|
388
396
|
retry_policy: @config.retry_policy
|
389
397
|
|
390
398
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -456,7 +464,9 @@ module Google
|
|
456
464
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
465
|
metadata: metadata,
|
458
466
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
460
470
|
retry_policy: @config.retry_policy
|
461
471
|
|
462
472
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -481,22 +491,21 @@ module Google
|
|
481
491
|
# Configuration can be applied globally to all clients, or to a single client
|
482
492
|
# on construction.
|
483
493
|
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
# end
|
494
|
+
# @example
|
495
|
+
#
|
496
|
+
# # Modify the global config, setting the timeout for
|
497
|
+
# # list_operations to 20 seconds,
|
498
|
+
# # and all remaining timeouts to 10 seconds.
|
499
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
500
|
+
# config.timeout = 10.0
|
501
|
+
# config.rpcs.list_operations.timeout = 20.0
|
502
|
+
# end
|
503
|
+
#
|
504
|
+
# # Apply the above configuration only to a new client.
|
505
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
506
|
+
# config.timeout = 10.0
|
507
|
+
# config.rpcs.list_operations.timeout = 20.0
|
508
|
+
# end
|
500
509
|
#
|
501
510
|
# @!attribute [rw] endpoint
|
502
511
|
# 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-memcache-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.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
|