google-cloud-redis-v1beta1 0.4.3 → 0.4.4

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: 7b77586f21f57a58e82e5b8d6643d45490327492d7e3c8e9f01a3b8066fc04ca
4
- data.tar.gz: 2e563bc76907a99a13aa39bc2b78bcdcd5179348e0bcc6351a5e8d3af3e8bff8
3
+ metadata.gz: 6e12e7634080ac529236383495c9737b8f8482e239eb4206939a6ecad6727e51
4
+ data.tar.gz: e191a618b8521b268ecebe4eb6e78a6eb351690b7332ff03013008cf819e7ef6
5
5
  SHA512:
6
- metadata.gz: e722cc7e08f2b08e02f15f3f359028f039b309a761a774b376084195ba8b1d9853768c9e4219a82d0ffd97b3d042d215f5a0f5fd1508777e8c9a238c4d202ebf
7
- data.tar.gz: b0f8ac7bb3473fae1959a57769bd3b762cbe4134646c910cee09ad760daeb2521b687f80a9ba12c9d819f55b9ab53abb8ccec486c28c78c32c006ad4e4462e32
6
+ metadata.gz: 7d196c0aadc2888794b9de4f3b497e43b88477aa683c091c4e673bb175c1c5d90fc912979b6d79916155f66aa539896af1b672d2d748027efc7fc8d88670e2db
7
+ data.tar.gz: e9c8f5c897b555a05d24b4428994af2e9c74c75a37a65453e3dac5ae415d45c6cf7bb4176b583a50ed56895e939ac51396baeb1185fd63ac68a91b6a641ae119
@@ -238,6 +238,27 @@ module Google
238
238
  #
239
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
240
240
  #
241
+ # @example Basic example
242
+ # require "google/cloud/redis/v1beta1"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Cloud::Redis::V1beta1::ListInstancesRequest.new
249
+ #
250
+ # # Call the list_instances method.
251
+ # result = client.list_instances request
252
+ #
253
+ # # The returned object is of type Gapic::PagedEnumerable. You can
254
+ # # iterate over all elements by calling #each, and the enumerable
255
+ # # will lazily make API calls to fetch subsequent pages. Other
256
+ # # methods are also available for managing paging directly.
257
+ # result.each do |response|
258
+ # # Each element is of type ::Google::Cloud::Redis::V1beta1::Instance.
259
+ # p response
260
+ # end
261
+ #
241
262
  def list_instances request, options = nil
242
263
  raise ::ArgumentError, "request must be provided" if request.nil?
243
264
 
@@ -255,9 +276,11 @@ module Google
255
276
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
256
277
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
257
278
 
258
- header_params = {
259
- "parent" => request.parent
260
- }
279
+ header_params = {}
280
+ if request.parent
281
+ header_params["parent"] = request.parent
282
+ end
283
+
261
284
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
262
285
  metadata[:"x-goog-request-params"] ||= request_params_header
263
286
 
@@ -309,6 +332,21 @@ module Google
309
332
  #
310
333
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
311
334
  #
335
+ # @example Basic example
336
+ # require "google/cloud/redis/v1beta1"
337
+ #
338
+ # # Create a client object. The client can be reused for multiple calls.
339
+ # client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
340
+ #
341
+ # # Create a request. To set request fields, pass in keyword arguments.
342
+ # request = Google::Cloud::Redis::V1beta1::GetInstanceRequest.new
343
+ #
344
+ # # Call the get_instance method.
345
+ # result = client.get_instance request
346
+ #
347
+ # # The returned object is of type Google::Cloud::Redis::V1beta1::Instance.
348
+ # p result
349
+ #
312
350
  def get_instance request, options = nil
313
351
  raise ::ArgumentError, "request must be provided" if request.nil?
314
352
 
@@ -326,9 +364,11 @@ module Google
326
364
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
327
365
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
328
366
 
329
- header_params = {
330
- "name" => request.name
331
- }
367
+ header_params = {}
368
+ if request.name
369
+ header_params["name"] = request.name
370
+ end
371
+
332
372
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
333
373
  metadata[:"x-goog-request-params"] ||= request_params_header
334
374
 
@@ -401,6 +441,28 @@ module Google
401
441
  #
402
442
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
403
443
  #
444
+ # @example Basic example
445
+ # require "google/cloud/redis/v1beta1"
446
+ #
447
+ # # Create a client object. The client can be reused for multiple calls.
448
+ # client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
449
+ #
450
+ # # Create a request. To set request fields, pass in keyword arguments.
451
+ # request = Google::Cloud::Redis::V1beta1::CreateInstanceRequest.new
452
+ #
453
+ # # Call the create_instance method.
454
+ # result = client.create_instance request
455
+ #
456
+ # # The returned object is of type Gapic::Operation. You can use this
457
+ # # object to check the status of an operation, cancel it, or wait
458
+ # # for results. Here is how to block until completion:
459
+ # result.wait_until_done! timeout: 60
460
+ # if result.response?
461
+ # p result.response
462
+ # else
463
+ # puts "Error!"
464
+ # end
465
+ #
404
466
  def create_instance request, options = nil
405
467
  raise ::ArgumentError, "request must be provided" if request.nil?
406
468
 
@@ -418,9 +480,11 @@ module Google
418
480
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
419
481
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
420
482
 
421
- header_params = {
422
- "parent" => request.parent
423
- }
483
+ header_params = {}
484
+ if request.parent
485
+ header_params["parent"] = request.parent
486
+ end
487
+
424
488
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
425
489
  metadata[:"x-goog-request-params"] ||= request_params_header
426
490
 
@@ -484,6 +548,28 @@ module Google
484
548
  #
485
549
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
486
550
  #
551
+ # @example Basic example
552
+ # require "google/cloud/redis/v1beta1"
553
+ #
554
+ # # Create a client object. The client can be reused for multiple calls.
555
+ # client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
556
+ #
557
+ # # Create a request. To set request fields, pass in keyword arguments.
558
+ # request = Google::Cloud::Redis::V1beta1::UpdateInstanceRequest.new
559
+ #
560
+ # # Call the update_instance method.
561
+ # result = client.update_instance request
562
+ #
563
+ # # The returned object is of type Gapic::Operation. You can use this
564
+ # # object to check the status of an operation, cancel it, or wait
565
+ # # for results. Here is how to block until completion:
566
+ # result.wait_until_done! timeout: 60
567
+ # if result.response?
568
+ # p result.response
569
+ # else
570
+ # puts "Error!"
571
+ # end
572
+ #
487
573
  def update_instance request, options = nil
488
574
  raise ::ArgumentError, "request must be provided" if request.nil?
489
575
 
@@ -501,9 +587,11 @@ module Google
501
587
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
502
588
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
503
589
 
504
- header_params = {
505
- "instance.name" => request.instance.name
506
- }
590
+ header_params = {}
591
+ if request.instance&.name
592
+ header_params["instance.name"] = request.instance.name
593
+ end
594
+
507
595
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
508
596
  metadata[:"x-goog-request-params"] ||= request_params_header
509
597
 
@@ -558,6 +646,28 @@ module Google
558
646
  #
559
647
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
560
648
  #
649
+ # @example Basic example
650
+ # require "google/cloud/redis/v1beta1"
651
+ #
652
+ # # Create a client object. The client can be reused for multiple calls.
653
+ # client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
654
+ #
655
+ # # Create a request. To set request fields, pass in keyword arguments.
656
+ # request = Google::Cloud::Redis::V1beta1::UpgradeInstanceRequest.new
657
+ #
658
+ # # Call the upgrade_instance method.
659
+ # result = client.upgrade_instance request
660
+ #
661
+ # # The returned object is of type Gapic::Operation. You can use this
662
+ # # object to check the status of an operation, cancel it, or wait
663
+ # # for results. Here is how to block until completion:
664
+ # result.wait_until_done! timeout: 60
665
+ # if result.response?
666
+ # p result.response
667
+ # else
668
+ # puts "Error!"
669
+ # end
670
+ #
561
671
  def upgrade_instance request, options = nil
562
672
  raise ::ArgumentError, "request must be provided" if request.nil?
563
673
 
@@ -575,9 +685,11 @@ module Google
575
685
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
576
686
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
577
687
 
578
- header_params = {
579
- "name" => request.name
580
- }
688
+ header_params = {}
689
+ if request.name
690
+ header_params["name"] = request.name
691
+ end
692
+
581
693
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
582
694
  metadata[:"x-goog-request-params"] ||= request_params_header
583
695
 
@@ -638,6 +750,28 @@ module Google
638
750
  #
639
751
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
640
752
  #
753
+ # @example Basic example
754
+ # require "google/cloud/redis/v1beta1"
755
+ #
756
+ # # Create a client object. The client can be reused for multiple calls.
757
+ # client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
758
+ #
759
+ # # Create a request. To set request fields, pass in keyword arguments.
760
+ # request = Google::Cloud::Redis::V1beta1::ImportInstanceRequest.new
761
+ #
762
+ # # Call the import_instance method.
763
+ # result = client.import_instance request
764
+ #
765
+ # # The returned object is of type Gapic::Operation. You can use this
766
+ # # object to check the status of an operation, cancel it, or wait
767
+ # # for results. Here is how to block until completion:
768
+ # result.wait_until_done! timeout: 60
769
+ # if result.response?
770
+ # p result.response
771
+ # else
772
+ # puts "Error!"
773
+ # end
774
+ #
641
775
  def import_instance request, options = nil
642
776
  raise ::ArgumentError, "request must be provided" if request.nil?
643
777
 
@@ -655,9 +789,11 @@ module Google
655
789
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
656
790
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
657
791
 
658
- header_params = {
659
- "name" => request.name
660
- }
792
+ header_params = {}
793
+ if request.name
794
+ header_params["name"] = request.name
795
+ end
796
+
661
797
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
662
798
  metadata[:"x-goog-request-params"] ||= request_params_header
663
799
 
@@ -716,6 +852,28 @@ module Google
716
852
  #
717
853
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
718
854
  #
855
+ # @example Basic example
856
+ # require "google/cloud/redis/v1beta1"
857
+ #
858
+ # # Create a client object. The client can be reused for multiple calls.
859
+ # client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
860
+ #
861
+ # # Create a request. To set request fields, pass in keyword arguments.
862
+ # request = Google::Cloud::Redis::V1beta1::ExportInstanceRequest.new
863
+ #
864
+ # # Call the export_instance method.
865
+ # result = client.export_instance request
866
+ #
867
+ # # The returned object is of type Gapic::Operation. You can use this
868
+ # # object to check the status of an operation, cancel it, or wait
869
+ # # for results. Here is how to block until completion:
870
+ # result.wait_until_done! timeout: 60
871
+ # if result.response?
872
+ # p result.response
873
+ # else
874
+ # puts "Error!"
875
+ # end
876
+ #
719
877
  def export_instance request, options = nil
720
878
  raise ::ArgumentError, "request must be provided" if request.nil?
721
879
 
@@ -733,9 +891,11 @@ module Google
733
891
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
734
892
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
735
893
 
736
- header_params = {
737
- "name" => request.name
738
- }
894
+ header_params = {}
895
+ if request.name
896
+ header_params["name"] = request.name
897
+ end
898
+
739
899
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
740
900
  metadata[:"x-goog-request-params"] ||= request_params_header
741
901
 
@@ -791,6 +951,28 @@ module Google
791
951
  #
792
952
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
793
953
  #
954
+ # @example Basic example
955
+ # require "google/cloud/redis/v1beta1"
956
+ #
957
+ # # Create a client object. The client can be reused for multiple calls.
958
+ # client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
959
+ #
960
+ # # Create a request. To set request fields, pass in keyword arguments.
961
+ # request = Google::Cloud::Redis::V1beta1::FailoverInstanceRequest.new
962
+ #
963
+ # # Call the failover_instance method.
964
+ # result = client.failover_instance request
965
+ #
966
+ # # The returned object is of type Gapic::Operation. You can use this
967
+ # # object to check the status of an operation, cancel it, or wait
968
+ # # for results. Here is how to block until completion:
969
+ # result.wait_until_done! timeout: 60
970
+ # if result.response?
971
+ # p result.response
972
+ # else
973
+ # puts "Error!"
974
+ # end
975
+ #
794
976
  def failover_instance request, options = nil
795
977
  raise ::ArgumentError, "request must be provided" if request.nil?
796
978
 
@@ -808,9 +990,11 @@ module Google
808
990
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
809
991
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
810
992
 
811
- header_params = {
812
- "name" => request.name
813
- }
993
+ header_params = {}
994
+ if request.name
995
+ header_params["name"] = request.name
996
+ end
997
+
814
998
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
815
999
  metadata[:"x-goog-request-params"] ||= request_params_header
816
1000
 
@@ -863,6 +1047,28 @@ module Google
863
1047
  #
864
1048
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
865
1049
  #
1050
+ # @example Basic example
1051
+ # require "google/cloud/redis/v1beta1"
1052
+ #
1053
+ # # Create a client object. The client can be reused for multiple calls.
1054
+ # client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
1055
+ #
1056
+ # # Create a request. To set request fields, pass in keyword arguments.
1057
+ # request = Google::Cloud::Redis::V1beta1::DeleteInstanceRequest.new
1058
+ #
1059
+ # # Call the delete_instance method.
1060
+ # result = client.delete_instance request
1061
+ #
1062
+ # # The returned object is of type Gapic::Operation. You can use this
1063
+ # # object to check the status of an operation, cancel it, or wait
1064
+ # # for results. Here is how to block until completion:
1065
+ # result.wait_until_done! timeout: 60
1066
+ # if result.response?
1067
+ # p result.response
1068
+ # else
1069
+ # puts "Error!"
1070
+ # end
1071
+ #
866
1072
  def delete_instance request, options = nil
867
1073
  raise ::ArgumentError, "request must be provided" if request.nil?
868
1074
 
@@ -880,9 +1086,11 @@ module Google
880
1086
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
881
1087
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
882
1088
 
883
- header_params = {
884
- "name" => request.name
885
- }
1089
+ header_params = {}
1090
+ if request.name
1091
+ header_params["name"] = request.name
1092
+ end
1093
+
886
1094
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
887
1095
  metadata[:"x-goog-request-params"] ||= request_params_header
888
1096
 
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/redis/v1beta1/cloud_redis.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
10
8
  require 'google/longrunning/operations_pb'
11
9
  require 'google/protobuf/field_mask_pb'
12
10
  require 'google/protobuf/timestamp_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/cloud/redis/v1beta1/cloud_redis.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.redis.v1beta1.Instance" do
@@ -41,7 +41,7 @@ module Google
41
41
  # * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
42
42
  class Service
43
43
 
44
- include GRPC::GenericService
44
+ include ::GRPC::GenericService
45
45
 
46
46
  self.marshal_class_method = :encode
47
47
  self.unmarshal_class_method = :decode
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Redis
23
23
  module V1beta1
24
- VERSION = "0.4.3"
24
+ VERSION = "0.4.4"
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.3
4
+ version: 0.4.4
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-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common