google-cloud-redis-v1 0.11.0 → 0.12.0

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: 44bb84a35e72306a6c4e085f17d60178f5647a2f6f6c5c08c6c469ceb64c775b
4
- data.tar.gz: c1ba49dc8febda0609ce7be53b0582d4481b2885ba2f272eda8722d1eadec6ee
3
+ metadata.gz: dc21799cc3ccfe42fa625d624a55bc180940d90f30c82704a8f93797ce8a7296
4
+ data.tar.gz: 1a992a6ea2e99abed7cfe722fdb0445c500ad4cc4c11e724a8c767d00bfa47d5
5
5
  SHA512:
6
- metadata.gz: 1e7fbf20a821739c3dcc4a7d93a6f96cf05858c4c491564156c087b06b3914bd0407b5560adeb856de5ea39ff1a3020f6b49817b765b6ec4bdad1add7ea74146
7
- data.tar.gz: 87e2ee37a35093b718df9bdd65a0cce0382b686b14821ef3e6b573357877fc5c9553196518151ba58d29417a3049b8c466288918732dd65df46af951ad7901e6
6
+ metadata.gz: 8119448f084c29c6cd99d926f95cf72784a24ab0e51da805f42bc2ff97df6ea183c5615149a32fa1f2395ed6fc83bb2747ef9f8e3575b8168500487d6d1cf114
7
+ data.tar.gz: a4764f08683e83f65f31ed964307cd853cdc044448d0b2abf4ce32a2d0846b498bbfbcb4183fc0da5e4873f8fc91938ef6ca55d14fbe95739f3f9be5326d2d58
@@ -160,7 +160,7 @@ module Google
160
160
  credentials = @config.credentials
161
161
  # Use self-signed JWT if the endpoint is unchanged from default,
162
162
  # but only if the default endpoint does not have a region prefix.
163
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
163
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
164
164
  !@config.endpoint.split(".").first.include?("-")
165
165
  credentials ||= Credentials.default scope: @config.scope,
166
166
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -187,7 +187,8 @@ module Google
187
187
  credentials: credentials,
188
188
  endpoint: @config.endpoint,
189
189
  channel_args: @config.channel_args,
190
- interceptors: @config.interceptors
190
+ interceptors: @config.interceptors,
191
+ channel_pool_config: @config.channel_pool
191
192
  )
192
193
  end
193
194
 
@@ -1404,7 +1405,9 @@ module Google
1404
1405
  class Configuration
1405
1406
  extend ::Gapic::Config
1406
1407
 
1407
- config_attr :endpoint, "redis.googleapis.com", ::String
1408
+ DEFAULT_ENDPOINT = "redis.googleapis.com"
1409
+
1410
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1408
1411
  config_attr :credentials, nil do |value|
1409
1412
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1410
1413
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1439,6 +1442,14 @@ module Google
1439
1442
  end
1440
1443
  end
1441
1444
 
1445
+ ##
1446
+ # Configuration for the channel pool
1447
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1448
+ #
1449
+ def channel_pool
1450
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1451
+ end
1452
+
1442
1453
  ##
1443
1454
  # Configuration RPC class for the CloudRedis API.
1444
1455
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -664,7 +665,9 @@ module Google
664
665
  class Configuration
665
666
  extend ::Gapic::Config
666
667
 
667
- config_attr :endpoint, "redis.googleapis.com", ::String
668
+ DEFAULT_ENDPOINT = "redis.googleapis.com"
669
+
670
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
671
  config_attr :credentials, nil do |value|
669
672
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
673
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -699,6 +702,14 @@ module Google
699
702
  end
700
703
  end
701
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
702
713
  ##
703
714
  # Configuration RPC class for the Operations API.
704
715
  #
@@ -156,7 +156,7 @@ module Google
156
156
  credentials = @config.credentials
157
157
  # Use self-signed JWT if the endpoint is unchanged from default,
158
158
  # but only if the default endpoint does not have a region prefix.
159
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
159
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
160
160
  !@config.endpoint.split(".").first.include?("-")
161
161
  credentials ||= Credentials.default scope: @config.scope,
162
162
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -248,6 +248,26 @@ module Google
248
248
  # @return [::Google::Cloud::Redis::V1::ListInstancesResponse]
249
249
  #
250
250
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
251
+ #
252
+ # @example Basic example
253
+ # require "google/cloud/redis/v1"
254
+ #
255
+ # # Create a client object. The client can be reused for multiple calls.
256
+ # client = Google::Cloud::Redis::V1::CloudRedis::Rest::Client.new
257
+ #
258
+ # # Create a request. To set request fields, pass in keyword arguments.
259
+ # request = Google::Cloud::Redis::V1::ListInstancesRequest.new
260
+ #
261
+ # # Call the list_instances method.
262
+ # result = client.list_instances request
263
+ #
264
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
265
+ # # over elements, and API calls will be issued to fetch pages as needed.
266
+ # result.each do |item|
267
+ # # Each element is of type ::Google::Cloud::Redis::V1::Instance.
268
+ # p item
269
+ # end
270
+ #
251
271
  def list_instances request, options = nil
252
272
  raise ::ArgumentError, "request must be provided" if request.nil?
253
273
 
@@ -312,6 +332,22 @@ module Google
312
332
  # @return [::Google::Cloud::Redis::V1::Instance]
313
333
  #
314
334
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
335
+ #
336
+ # @example Basic example
337
+ # require "google/cloud/redis/v1"
338
+ #
339
+ # # Create a client object. The client can be reused for multiple calls.
340
+ # client = Google::Cloud::Redis::V1::CloudRedis::Rest::Client.new
341
+ #
342
+ # # Create a request. To set request fields, pass in keyword arguments.
343
+ # request = Google::Cloud::Redis::V1::GetInstanceRequest.new
344
+ #
345
+ # # Call the get_instance method.
346
+ # result = client.get_instance request
347
+ #
348
+ # # The returned object is of type Google::Cloud::Redis::V1::Instance.
349
+ # p result
350
+ #
315
351
  def get_instance request, options = nil
316
352
  raise ::ArgumentError, "request must be provided" if request.nil?
317
353
 
@@ -378,6 +414,22 @@ module Google
378
414
  # @return [::Google::Cloud::Redis::V1::InstanceAuthString]
379
415
  #
380
416
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
417
+ #
418
+ # @example Basic example
419
+ # require "google/cloud/redis/v1"
420
+ #
421
+ # # Create a client object. The client can be reused for multiple calls.
422
+ # client = Google::Cloud::Redis::V1::CloudRedis::Rest::Client.new
423
+ #
424
+ # # Create a request. To set request fields, pass in keyword arguments.
425
+ # request = Google::Cloud::Redis::V1::GetInstanceAuthStringRequest.new
426
+ #
427
+ # # Call the get_instance_auth_string method.
428
+ # result = client.get_instance_auth_string request
429
+ #
430
+ # # The returned object is of type Google::Cloud::Redis::V1::InstanceAuthString.
431
+ # p result
432
+ #
381
433
  def get_instance_auth_string request, options = nil
382
434
  raise ::ArgumentError, "request must be provided" if request.nil?
383
435
 
@@ -464,6 +516,29 @@ module Google
464
516
  # @return [::Gapic::Operation]
465
517
  #
466
518
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
519
+ #
520
+ # @example Basic example
521
+ # require "google/cloud/redis/v1"
522
+ #
523
+ # # Create a client object. The client can be reused for multiple calls.
524
+ # client = Google::Cloud::Redis::V1::CloudRedis::Rest::Client.new
525
+ #
526
+ # # Create a request. To set request fields, pass in keyword arguments.
527
+ # request = Google::Cloud::Redis::V1::CreateInstanceRequest.new
528
+ #
529
+ # # Call the create_instance method.
530
+ # result = client.create_instance request
531
+ #
532
+ # # The returned object is of type Gapic::Operation. You can use it to
533
+ # # check the status of an operation, cancel it, or wait for results.
534
+ # # Here is how to wait for a response.
535
+ # result.wait_until_done! timeout: 60
536
+ # if result.response?
537
+ # p result.response
538
+ # else
539
+ # puts "No response received."
540
+ # end
541
+ #
467
542
  def create_instance request, options = nil
468
543
  raise ::ArgumentError, "request must be provided" if request.nil?
469
544
 
@@ -542,6 +617,29 @@ module Google
542
617
  # @return [::Gapic::Operation]
543
618
  #
544
619
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
620
+ #
621
+ # @example Basic example
622
+ # require "google/cloud/redis/v1"
623
+ #
624
+ # # Create a client object. The client can be reused for multiple calls.
625
+ # client = Google::Cloud::Redis::V1::CloudRedis::Rest::Client.new
626
+ #
627
+ # # Create a request. To set request fields, pass in keyword arguments.
628
+ # request = Google::Cloud::Redis::V1::UpdateInstanceRequest.new
629
+ #
630
+ # # Call the update_instance method.
631
+ # result = client.update_instance request
632
+ #
633
+ # # The returned object is of type Gapic::Operation. You can use it to
634
+ # # check the status of an operation, cancel it, or wait for results.
635
+ # # Here is how to wait for a response.
636
+ # result.wait_until_done! timeout: 60
637
+ # if result.response?
638
+ # p result.response
639
+ # else
640
+ # puts "No response received."
641
+ # end
642
+ #
545
643
  def update_instance request, options = nil
546
644
  raise ::ArgumentError, "request must be provided" if request.nil?
547
645
 
@@ -610,6 +708,29 @@ module Google
610
708
  # @return [::Gapic::Operation]
611
709
  #
612
710
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
711
+ #
712
+ # @example Basic example
713
+ # require "google/cloud/redis/v1"
714
+ #
715
+ # # Create a client object. The client can be reused for multiple calls.
716
+ # client = Google::Cloud::Redis::V1::CloudRedis::Rest::Client.new
717
+ #
718
+ # # Create a request. To set request fields, pass in keyword arguments.
719
+ # request = Google::Cloud::Redis::V1::UpgradeInstanceRequest.new
720
+ #
721
+ # # Call the upgrade_instance method.
722
+ # result = client.upgrade_instance request
723
+ #
724
+ # # The returned object is of type Gapic::Operation. You can use it to
725
+ # # check the status of an operation, cancel it, or wait for results.
726
+ # # Here is how to wait for a response.
727
+ # result.wait_until_done! timeout: 60
728
+ # if result.response?
729
+ # p result.response
730
+ # else
731
+ # puts "No response received."
732
+ # end
733
+ #
613
734
  def upgrade_instance request, options = nil
614
735
  raise ::ArgumentError, "request must be provided" if request.nil?
615
736
 
@@ -684,6 +805,29 @@ module Google
684
805
  # @return [::Gapic::Operation]
685
806
  #
686
807
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
808
+ #
809
+ # @example Basic example
810
+ # require "google/cloud/redis/v1"
811
+ #
812
+ # # Create a client object. The client can be reused for multiple calls.
813
+ # client = Google::Cloud::Redis::V1::CloudRedis::Rest::Client.new
814
+ #
815
+ # # Create a request. To set request fields, pass in keyword arguments.
816
+ # request = Google::Cloud::Redis::V1::ImportInstanceRequest.new
817
+ #
818
+ # # Call the import_instance method.
819
+ # result = client.import_instance request
820
+ #
821
+ # # The returned object is of type Gapic::Operation. You can use it to
822
+ # # check the status of an operation, cancel it, or wait for results.
823
+ # # Here is how to wait for a response.
824
+ # result.wait_until_done! timeout: 60
825
+ # if result.response?
826
+ # p result.response
827
+ # else
828
+ # puts "No response received."
829
+ # end
830
+ #
687
831
  def import_instance request, options = nil
688
832
  raise ::ArgumentError, "request must be provided" if request.nil?
689
833
 
@@ -756,6 +900,29 @@ module Google
756
900
  # @return [::Gapic::Operation]
757
901
  #
758
902
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
903
+ #
904
+ # @example Basic example
905
+ # require "google/cloud/redis/v1"
906
+ #
907
+ # # Create a client object. The client can be reused for multiple calls.
908
+ # client = Google::Cloud::Redis::V1::CloudRedis::Rest::Client.new
909
+ #
910
+ # # Create a request. To set request fields, pass in keyword arguments.
911
+ # request = Google::Cloud::Redis::V1::ExportInstanceRequest.new
912
+ #
913
+ # # Call the export_instance method.
914
+ # result = client.export_instance request
915
+ #
916
+ # # The returned object is of type Gapic::Operation. You can use it to
917
+ # # check the status of an operation, cancel it, or wait for results.
918
+ # # Here is how to wait for a response.
919
+ # result.wait_until_done! timeout: 60
920
+ # if result.response?
921
+ # p result.response
922
+ # else
923
+ # puts "No response received."
924
+ # end
925
+ #
759
926
  def export_instance request, options = nil
760
927
  raise ::ArgumentError, "request must be provided" if request.nil?
761
928
 
@@ -825,6 +992,29 @@ module Google
825
992
  # @return [::Gapic::Operation]
826
993
  #
827
994
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
995
+ #
996
+ # @example Basic example
997
+ # require "google/cloud/redis/v1"
998
+ #
999
+ # # Create a client object. The client can be reused for multiple calls.
1000
+ # client = Google::Cloud::Redis::V1::CloudRedis::Rest::Client.new
1001
+ #
1002
+ # # Create a request. To set request fields, pass in keyword arguments.
1003
+ # request = Google::Cloud::Redis::V1::FailoverInstanceRequest.new
1004
+ #
1005
+ # # Call the failover_instance method.
1006
+ # result = client.failover_instance request
1007
+ #
1008
+ # # The returned object is of type Gapic::Operation. You can use it to
1009
+ # # check the status of an operation, cancel it, or wait for results.
1010
+ # # Here is how to wait for a response.
1011
+ # result.wait_until_done! timeout: 60
1012
+ # if result.response?
1013
+ # p result.response
1014
+ # else
1015
+ # puts "No response received."
1016
+ # end
1017
+ #
828
1018
  def failover_instance request, options = nil
829
1019
  raise ::ArgumentError, "request must be provided" if request.nil?
830
1020
 
@@ -891,6 +1081,29 @@ module Google
891
1081
  # @return [::Gapic::Operation]
892
1082
  #
893
1083
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1084
+ #
1085
+ # @example Basic example
1086
+ # require "google/cloud/redis/v1"
1087
+ #
1088
+ # # Create a client object. The client can be reused for multiple calls.
1089
+ # client = Google::Cloud::Redis::V1::CloudRedis::Rest::Client.new
1090
+ #
1091
+ # # Create a request. To set request fields, pass in keyword arguments.
1092
+ # request = Google::Cloud::Redis::V1::DeleteInstanceRequest.new
1093
+ #
1094
+ # # Call the delete_instance method.
1095
+ # result = client.delete_instance request
1096
+ #
1097
+ # # The returned object is of type Gapic::Operation. You can use it to
1098
+ # # check the status of an operation, cancel it, or wait for results.
1099
+ # # Here is how to wait for a response.
1100
+ # result.wait_until_done! timeout: 60
1101
+ # if result.response?
1102
+ # p result.response
1103
+ # else
1104
+ # puts "No response received."
1105
+ # end
1106
+ #
894
1107
  def delete_instance request, options = nil
895
1108
  raise ::ArgumentError, "request must be provided" if request.nil?
896
1109
 
@@ -964,6 +1177,29 @@ module Google
964
1177
  # @return [::Gapic::Operation]
965
1178
  #
966
1179
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1180
+ #
1181
+ # @example Basic example
1182
+ # require "google/cloud/redis/v1"
1183
+ #
1184
+ # # Create a client object. The client can be reused for multiple calls.
1185
+ # client = Google::Cloud::Redis::V1::CloudRedis::Rest::Client.new
1186
+ #
1187
+ # # Create a request. To set request fields, pass in keyword arguments.
1188
+ # request = Google::Cloud::Redis::V1::RescheduleMaintenanceRequest.new
1189
+ #
1190
+ # # Call the reschedule_maintenance method.
1191
+ # result = client.reschedule_maintenance request
1192
+ #
1193
+ # # The returned object is of type Gapic::Operation. You can use it to
1194
+ # # check the status of an operation, cancel it, or wait for results.
1195
+ # # Here is how to wait for a response.
1196
+ # result.wait_until_done! timeout: 60
1197
+ # if result.response?
1198
+ # p result.response
1199
+ # else
1200
+ # puts "No response received."
1201
+ # end
1202
+ #
967
1203
  def reschedule_maintenance request, options = nil
968
1204
  raise ::ArgumentError, "request must be provided" if request.nil?
969
1205
 
@@ -1073,7 +1309,9 @@ module Google
1073
1309
  class Configuration
1074
1310
  extend ::Gapic::Config
1075
1311
 
1076
- config_attr :endpoint, "redis.googleapis.com", ::String
1312
+ DEFAULT_ENDPOINT = "redis.googleapis.com"
1313
+
1314
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1077
1315
  config_attr :credentials, nil do |value|
1078
1316
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1079
1317
  allowed.any? { |klass| klass === value }
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -446,7 +521,9 @@ module Google
446
521
  class Configuration
447
522
  extend ::Gapic::Config
448
523
 
449
- config_attr :endpoint, "redis.googleapis.com", ::String
524
+ DEFAULT_ENDPOINT = "redis.googleapis.com"
525
+
526
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
527
  config_attr :credentials, nil do |value|
451
528
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
529
  allowed.any? { |klass| klass === value }
@@ -567,7 +644,7 @@ module Google
567
644
 
568
645
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
646
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
647
+ query_string_params.to_h { |p| p.split "=", 2 }
571
648
  else
572
649
  {}
573
650
  end
@@ -605,7 +682,7 @@ module Google
605
682
 
606
683
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
684
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
685
+ query_string_params.to_h { |p| p.split "=", 2 }
609
686
  else
610
687
  {}
611
688
  end
@@ -643,7 +720,7 @@ module Google
643
720
 
644
721
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
722
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
723
+ query_string_params.to_h { |p| p.split "=", 2 }
647
724
  else
648
725
  {}
649
726
  end
@@ -681,7 +758,7 @@ module Google
681
758
 
682
759
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
760
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
761
+ query_string_params.to_h { |p| p.split "=", 2 }
685
762
  else
686
763
  {}
687
764
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_instances_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_instance_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_get_instance_auth_string_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_create_instance_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_update_instance_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_upgrade_instance_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_import_instance_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_export_instance_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_failover_instance_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_instance_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  verb, uri, query_string_params, body = ServiceStub.transcode_reschedule_maintenance_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
443
443
  else
444
444
  {}
445
445
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Redis
23
23
  module V1
24
- VERSION = "0.11.0"
24
+ VERSION = "0.12.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-redis-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-01 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.0
19
+ version: 0.20.0
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.19.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  requirements: []
242
- rubygems_version: 3.4.2
242
+ rubygems_version: 3.4.19
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: Creates and manages Redis instances on the Google Cloud Platform.