google-cloud-redis-v1beta1 0.4.2 → 0.4.3

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: bb05c7197380b9c72b6b45166da5315c1dedb0cdbacf4fe87a747071e08e81c8
4
- data.tar.gz: a760c8a71f99f00a0ffcf76a4391e304e7d92607687f0fb25abc489aac404636
3
+ metadata.gz: 7b77586f21f57a58e82e5b8d6643d45490327492d7e3c8e9f01a3b8066fc04ca
4
+ data.tar.gz: 2e563bc76907a99a13aa39bc2b78bcdcd5179348e0bcc6351a5e8d3af3e8bff8
5
5
  SHA512:
6
- metadata.gz: 2d51fafb1ac9a1133a16eacc138abb2e6721f6a2616e6a6828ae0ab3774ec96f8db0ac0c71ad695da07a0f57921da139e467be0ef7b03f588e93c4dcbf37e853
7
- data.tar.gz: ae25cdedfac02e4ae7303747d545c6ec468f6108f03f3b6347b45bdf455ec2cb2eba96686b45ee3b07eb552089ab95c12498ff207bd280b33784f5eb13be38bc
6
+ metadata.gz: e722cc7e08f2b08e02f15f3f359028f039b309a761a774b376084195ba8b1d9853768c9e4219a82d0ffd97b3d042d215f5a0f5fd1508777e8c9a238c4d202ebf
7
+ data.tar.gz: b0f8ac7bb3473fae1959a57769bd3b762cbe4134646c910cee09ad760daeb2521b687f80a9ba12c9d819f55b9ab53abb8ccec486c28c78c32c006ad4e4462e32
@@ -55,13 +55,12 @@ module Google
55
55
  # See {::Google::Cloud::Redis::V1beta1::CloudRedis::Client::Configuration}
56
56
  # for a description of the configuration fields.
57
57
  #
58
- # ## Example
58
+ # @example
59
59
  #
60
- # To modify the configuration for all CloudRedis clients:
61
- #
62
- # ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.configure do |config|
63
- # config.timeout = 10.0
64
- # end
60
+ # # Modify the configuration for all CloudRedis clients
61
+ # ::Google::Cloud::Redis::V1beta1::CloudRedis::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]
@@ -126,19 +125,15 @@ module Google
126
125
  ##
127
126
  # Create a new CloudRedis client object.
128
127
  #
129
- # ## Examples
130
- #
131
- # To create a new CloudRedis client with the default
132
- # configuration:
128
+ # @example
133
129
  #
134
- # client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
130
+ # # Create a client using the default configuration
131
+ # client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
135
132
  #
136
- # To create a new CloudRedis client with a custom
137
- # configuration:
138
- #
139
- # client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new do |config|
140
- # config.timeout = 10.0
141
- # end
133
+ # # Create a client using a custom configuration
134
+ # client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new do |config|
135
+ # config.timeout = 10.0
136
+ # end
142
137
  #
143
138
  # @yield [config] Configure the CloudRedis client.
144
139
  # @yieldparam config [Client::Configuration]
@@ -158,10 +153,9 @@ module Google
158
153
 
159
154
  # Create credentials
160
155
  credentials = @config.credentials
161
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
156
+ # Use self-signed JWT if the endpoint is unchanged from default,
162
157
  # but only if the default endpoint does not have a region prefix.
163
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
164
- @config.endpoint == Client.configure.endpoint &&
158
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
165
159
  !@config.endpoint.split(".").first.include?("-")
166
160
  credentials ||= Credentials.default scope: @config.scope,
167
161
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -270,7 +264,9 @@ module Google
270
264
  options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
271
265
  metadata: metadata,
272
266
  retry_policy: @config.rpcs.list_instances.retry_policy
273
- options.apply_defaults metadata: @config.metadata,
267
+
268
+ options.apply_defaults timeout: @config.timeout,
269
+ metadata: @config.metadata,
274
270
  retry_policy: @config.retry_policy
275
271
 
276
272
  @cloud_redis_stub.call_rpc :list_instances, request, options: options do |response, operation|
@@ -339,7 +335,9 @@ module Google
339
335
  options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
340
336
  metadata: metadata,
341
337
  retry_policy: @config.rpcs.get_instance.retry_policy
342
- options.apply_defaults metadata: @config.metadata,
338
+
339
+ options.apply_defaults timeout: @config.timeout,
340
+ metadata: @config.metadata,
343
341
  retry_policy: @config.retry_policy
344
342
 
345
343
  @cloud_redis_stub.call_rpc :get_instance, request, options: options do |response, operation|
@@ -429,7 +427,9 @@ module Google
429
427
  options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
430
428
  metadata: metadata,
431
429
  retry_policy: @config.rpcs.create_instance.retry_policy
432
- options.apply_defaults metadata: @config.metadata,
430
+
431
+ options.apply_defaults timeout: @config.timeout,
432
+ metadata: @config.metadata,
433
433
  retry_policy: @config.retry_policy
434
434
 
435
435
  @cloud_redis_stub.call_rpc :create_instance, request, options: options do |response, operation|
@@ -510,7 +510,9 @@ module Google
510
510
  options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
511
511
  metadata: metadata,
512
512
  retry_policy: @config.rpcs.update_instance.retry_policy
513
- options.apply_defaults metadata: @config.metadata,
513
+
514
+ options.apply_defaults timeout: @config.timeout,
515
+ metadata: @config.metadata,
514
516
  retry_policy: @config.retry_policy
515
517
 
516
518
  @cloud_redis_stub.call_rpc :update_instance, request, options: options do |response, operation|
@@ -582,7 +584,9 @@ module Google
582
584
  options.apply_defaults timeout: @config.rpcs.upgrade_instance.timeout,
583
585
  metadata: metadata,
584
586
  retry_policy: @config.rpcs.upgrade_instance.retry_policy
585
- options.apply_defaults metadata: @config.metadata,
587
+
588
+ options.apply_defaults timeout: @config.timeout,
589
+ metadata: @config.metadata,
586
590
  retry_policy: @config.retry_policy
587
591
 
588
592
  @cloud_redis_stub.call_rpc :upgrade_instance, request, options: options do |response, operation|
@@ -660,7 +664,9 @@ module Google
660
664
  options.apply_defaults timeout: @config.rpcs.import_instance.timeout,
661
665
  metadata: metadata,
662
666
  retry_policy: @config.rpcs.import_instance.retry_policy
663
- options.apply_defaults metadata: @config.metadata,
667
+
668
+ options.apply_defaults timeout: @config.timeout,
669
+ metadata: @config.metadata,
664
670
  retry_policy: @config.retry_policy
665
671
 
666
672
  @cloud_redis_stub.call_rpc :import_instance, request, options: options do |response, operation|
@@ -736,7 +742,9 @@ module Google
736
742
  options.apply_defaults timeout: @config.rpcs.export_instance.timeout,
737
743
  metadata: metadata,
738
744
  retry_policy: @config.rpcs.export_instance.retry_policy
739
- options.apply_defaults metadata: @config.metadata,
745
+
746
+ options.apply_defaults timeout: @config.timeout,
747
+ metadata: @config.metadata,
740
748
  retry_policy: @config.retry_policy
741
749
 
742
750
  @cloud_redis_stub.call_rpc :export_instance, request, options: options do |response, operation|
@@ -809,7 +817,9 @@ module Google
809
817
  options.apply_defaults timeout: @config.rpcs.failover_instance.timeout,
810
818
  metadata: metadata,
811
819
  retry_policy: @config.rpcs.failover_instance.retry_policy
812
- options.apply_defaults metadata: @config.metadata,
820
+
821
+ options.apply_defaults timeout: @config.timeout,
822
+ metadata: @config.metadata,
813
823
  retry_policy: @config.retry_policy
814
824
 
815
825
  @cloud_redis_stub.call_rpc :failover_instance, request, options: options do |response, operation|
@@ -879,7 +889,9 @@ module Google
879
889
  options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
880
890
  metadata: metadata,
881
891
  retry_policy: @config.rpcs.delete_instance.retry_policy
882
- options.apply_defaults metadata: @config.metadata,
892
+
893
+ options.apply_defaults timeout: @config.timeout,
894
+ metadata: @config.metadata,
883
895
  retry_policy: @config.retry_policy
884
896
 
885
897
  @cloud_redis_stub.call_rpc :delete_instance, request, options: options do |response, operation|
@@ -904,22 +916,21 @@ module Google
904
916
  # Configuration can be applied globally to all clients, or to a single client
905
917
  # on construction.
906
918
  #
907
- # # Examples
908
- #
909
- # To modify the global config, setting the timeout for list_instances
910
- # to 20 seconds, and all remaining timeouts to 10 seconds:
911
- #
912
- # ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.configure do |config|
913
- # config.timeout = 10.0
914
- # config.rpcs.list_instances.timeout = 20.0
915
- # end
916
- #
917
- # To apply the above configuration only to a new client:
918
- #
919
- # client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new do |config|
920
- # config.timeout = 10.0
921
- # config.rpcs.list_instances.timeout = 20.0
922
- # end
919
+ # @example
920
+ #
921
+ # # Modify the global config, setting the timeout for
922
+ # # list_instances to 20 seconds,
923
+ # # and all remaining timeouts to 10 seconds.
924
+ # ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.configure do |config|
925
+ # config.timeout = 10.0
926
+ # config.rpcs.list_instances.timeout = 20.0
927
+ # end
928
+ #
929
+ # # Apply the above configuration only to a new client.
930
+ # client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new do |config|
931
+ # config.timeout = 10.0
932
+ # config.rpcs.list_instances.timeout = 20.0
933
+ # end
923
934
  #
924
935
  # @!attribute [rw] endpoint
925
936
  # 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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Redis
23
23
  module V1beta1
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.3"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-redis-v1beta1
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