google-cloud-memcache-v1 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/memcache/v1/cloud_memcache/client.rb +181 -21
- data/lib/google/cloud/memcache/v1/cloud_memcache/operations.rb +115 -12
- data/lib/google/cloud/memcache/v1/cloud_memcache_pb.rb +2 -2
- data/lib/google/cloud/memcache/v1/cloud_memcache_services_pb.rb +1 -1
- data/lib/google/cloud/memcache/v1/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c49537e554b9e8f14fa7bccf304991eb79aeaa580f539b0a29ff8c4c628e3bc5
|
4
|
+
data.tar.gz: b89877a50222ceef7e5d4f8e8982e830a7140137326a4efa61e1575a8a9442d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c654a50bdcf049c1703d869179e540e08a53467380b9040bd909d612a3c41bd8406d6f98e2efa8e19e9fe8f2018141159021c5ea3a3e73b68996a67983aa3ba8
|
7
|
+
data.tar.gz: e9737749b4ed28729c450892da6da565297ff1dcc36e9be1f3cca2fafb473932c79d8cd6b69205c6997519b190a5a2a0b92e01bb8e21535e48e19bdd2167316f
|
@@ -231,6 +231,27 @@ module Google
|
|
231
231
|
#
|
232
232
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
233
233
|
#
|
234
|
+
# @example Basic example
|
235
|
+
# require "google/cloud/memcache/v1"
|
236
|
+
#
|
237
|
+
# # Create a client object. The client can be reused for multiple calls.
|
238
|
+
# client = Google::Cloud::Memcache::V1::CloudMemcache::Client.new
|
239
|
+
#
|
240
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
241
|
+
# request = Google::Cloud::Memcache::V1::ListInstancesRequest.new
|
242
|
+
#
|
243
|
+
# # Call the list_instances method.
|
244
|
+
# result = client.list_instances request
|
245
|
+
#
|
246
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
247
|
+
# # iterate over all elements by calling #each, and the enumerable
|
248
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
249
|
+
# # methods are also available for managing paging directly.
|
250
|
+
# result.each do |response|
|
251
|
+
# # Each element is of type ::Google::Cloud::Memcache::V1::Instance.
|
252
|
+
# p response
|
253
|
+
# end
|
254
|
+
#
|
234
255
|
def list_instances request, options = nil
|
235
256
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
236
257
|
|
@@ -248,9 +269,11 @@ module Google
|
|
248
269
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
249
270
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
250
271
|
|
251
|
-
header_params = {
|
252
|
-
|
253
|
-
|
272
|
+
header_params = {}
|
273
|
+
if request.parent
|
274
|
+
header_params["parent"] = request.parent
|
275
|
+
end
|
276
|
+
|
254
277
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
255
278
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
256
279
|
|
@@ -302,6 +325,21 @@ module Google
|
|
302
325
|
#
|
303
326
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
304
327
|
#
|
328
|
+
# @example Basic example
|
329
|
+
# require "google/cloud/memcache/v1"
|
330
|
+
#
|
331
|
+
# # Create a client object. The client can be reused for multiple calls.
|
332
|
+
# client = Google::Cloud::Memcache::V1::CloudMemcache::Client.new
|
333
|
+
#
|
334
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
335
|
+
# request = Google::Cloud::Memcache::V1::GetInstanceRequest.new
|
336
|
+
#
|
337
|
+
# # Call the get_instance method.
|
338
|
+
# result = client.get_instance request
|
339
|
+
#
|
340
|
+
# # The returned object is of type Google::Cloud::Memcache::V1::Instance.
|
341
|
+
# p result
|
342
|
+
#
|
305
343
|
def get_instance request, options = nil
|
306
344
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
307
345
|
|
@@ -319,9 +357,11 @@ module Google
|
|
319
357
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
320
358
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
321
359
|
|
322
|
-
header_params = {
|
323
|
-
|
324
|
-
|
360
|
+
header_params = {}
|
361
|
+
if request.name
|
362
|
+
header_params["name"] = request.name
|
363
|
+
end
|
364
|
+
|
325
365
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
326
366
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
327
367
|
|
@@ -385,6 +425,28 @@ module Google
|
|
385
425
|
#
|
386
426
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
387
427
|
#
|
428
|
+
# @example Basic example
|
429
|
+
# require "google/cloud/memcache/v1"
|
430
|
+
#
|
431
|
+
# # Create a client object. The client can be reused for multiple calls.
|
432
|
+
# client = Google::Cloud::Memcache::V1::CloudMemcache::Client.new
|
433
|
+
#
|
434
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
435
|
+
# request = Google::Cloud::Memcache::V1::CreateInstanceRequest.new
|
436
|
+
#
|
437
|
+
# # Call the create_instance method.
|
438
|
+
# result = client.create_instance request
|
439
|
+
#
|
440
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
441
|
+
# # object to check the status of an operation, cancel it, or wait
|
442
|
+
# # for results. Here is how to block until completion:
|
443
|
+
# result.wait_until_done! timeout: 60
|
444
|
+
# if result.response?
|
445
|
+
# p result.response
|
446
|
+
# else
|
447
|
+
# puts "Error!"
|
448
|
+
# end
|
449
|
+
#
|
388
450
|
def create_instance request, options = nil
|
389
451
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
390
452
|
|
@@ -402,9 +464,11 @@ module Google
|
|
402
464
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
403
465
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
404
466
|
|
405
|
-
header_params = {
|
406
|
-
|
407
|
-
|
467
|
+
header_params = {}
|
468
|
+
if request.parent
|
469
|
+
header_params["parent"] = request.parent
|
470
|
+
end
|
471
|
+
|
408
472
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
409
473
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
410
474
|
|
@@ -458,6 +522,28 @@ module Google
|
|
458
522
|
#
|
459
523
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
460
524
|
#
|
525
|
+
# @example Basic example
|
526
|
+
# require "google/cloud/memcache/v1"
|
527
|
+
#
|
528
|
+
# # Create a client object. The client can be reused for multiple calls.
|
529
|
+
# client = Google::Cloud::Memcache::V1::CloudMemcache::Client.new
|
530
|
+
#
|
531
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
532
|
+
# request = Google::Cloud::Memcache::V1::UpdateInstanceRequest.new
|
533
|
+
#
|
534
|
+
# # Call the update_instance method.
|
535
|
+
# result = client.update_instance request
|
536
|
+
#
|
537
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
538
|
+
# # object to check the status of an operation, cancel it, or wait
|
539
|
+
# # for results. Here is how to block until completion:
|
540
|
+
# result.wait_until_done! timeout: 60
|
541
|
+
# if result.response?
|
542
|
+
# p result.response
|
543
|
+
# else
|
544
|
+
# puts "Error!"
|
545
|
+
# end
|
546
|
+
#
|
461
547
|
def update_instance request, options = nil
|
462
548
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
463
549
|
|
@@ -475,9 +561,11 @@ module Google
|
|
475
561
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
476
562
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
477
563
|
|
478
|
-
header_params = {
|
479
|
-
|
480
|
-
|
564
|
+
header_params = {}
|
565
|
+
if request.instance&.name
|
566
|
+
header_params["instance.name"] = request.instance.name
|
567
|
+
end
|
568
|
+
|
481
569
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
482
570
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
483
571
|
|
@@ -534,6 +622,28 @@ module Google
|
|
534
622
|
#
|
535
623
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
536
624
|
#
|
625
|
+
# @example Basic example
|
626
|
+
# require "google/cloud/memcache/v1"
|
627
|
+
#
|
628
|
+
# # Create a client object. The client can be reused for multiple calls.
|
629
|
+
# client = Google::Cloud::Memcache::V1::CloudMemcache::Client.new
|
630
|
+
#
|
631
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
632
|
+
# request = Google::Cloud::Memcache::V1::UpdateParametersRequest.new
|
633
|
+
#
|
634
|
+
# # Call the update_parameters method.
|
635
|
+
# result = client.update_parameters request
|
636
|
+
#
|
637
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
638
|
+
# # object to check the status of an operation, cancel it, or wait
|
639
|
+
# # for results. Here is how to block until completion:
|
640
|
+
# result.wait_until_done! timeout: 60
|
641
|
+
# if result.response?
|
642
|
+
# p result.response
|
643
|
+
# else
|
644
|
+
# puts "Error!"
|
645
|
+
# end
|
646
|
+
#
|
537
647
|
def update_parameters request, options = nil
|
538
648
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
539
649
|
|
@@ -551,9 +661,11 @@ module Google
|
|
551
661
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
552
662
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
553
663
|
|
554
|
-
header_params = {
|
555
|
-
|
556
|
-
|
664
|
+
header_params = {}
|
665
|
+
if request.name
|
666
|
+
header_params["name"] = request.name
|
667
|
+
end
|
668
|
+
|
557
669
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
558
670
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
559
671
|
|
@@ -605,6 +717,28 @@ module Google
|
|
605
717
|
#
|
606
718
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
607
719
|
#
|
720
|
+
# @example Basic example
|
721
|
+
# require "google/cloud/memcache/v1"
|
722
|
+
#
|
723
|
+
# # Create a client object. The client can be reused for multiple calls.
|
724
|
+
# client = Google::Cloud::Memcache::V1::CloudMemcache::Client.new
|
725
|
+
#
|
726
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
727
|
+
# request = Google::Cloud::Memcache::V1::DeleteInstanceRequest.new
|
728
|
+
#
|
729
|
+
# # Call the delete_instance method.
|
730
|
+
# result = client.delete_instance request
|
731
|
+
#
|
732
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
733
|
+
# # object to check the status of an operation, cancel it, or wait
|
734
|
+
# # for results. Here is how to block until completion:
|
735
|
+
# result.wait_until_done! timeout: 60
|
736
|
+
# if result.response?
|
737
|
+
# p result.response
|
738
|
+
# else
|
739
|
+
# puts "Error!"
|
740
|
+
# end
|
741
|
+
#
|
608
742
|
def delete_instance request, options = nil
|
609
743
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
610
744
|
|
@@ -622,9 +756,11 @@ module Google
|
|
622
756
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
623
757
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
624
758
|
|
625
|
-
header_params = {
|
626
|
-
|
627
|
-
|
759
|
+
header_params = {}
|
760
|
+
if request.name
|
761
|
+
header_params["name"] = request.name
|
762
|
+
end
|
763
|
+
|
628
764
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
629
765
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
630
766
|
|
@@ -682,6 +818,28 @@ module Google
|
|
682
818
|
#
|
683
819
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
684
820
|
#
|
821
|
+
# @example Basic example
|
822
|
+
# require "google/cloud/memcache/v1"
|
823
|
+
#
|
824
|
+
# # Create a client object. The client can be reused for multiple calls.
|
825
|
+
# client = Google::Cloud::Memcache::V1::CloudMemcache::Client.new
|
826
|
+
#
|
827
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
828
|
+
# request = Google::Cloud::Memcache::V1::ApplyParametersRequest.new
|
829
|
+
#
|
830
|
+
# # Call the apply_parameters method.
|
831
|
+
# result = client.apply_parameters request
|
832
|
+
#
|
833
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
834
|
+
# # object to check the status of an operation, cancel it, or wait
|
835
|
+
# # for results. Here is how to block until completion:
|
836
|
+
# result.wait_until_done! timeout: 60
|
837
|
+
# if result.response?
|
838
|
+
# p result.response
|
839
|
+
# else
|
840
|
+
# puts "Error!"
|
841
|
+
# end
|
842
|
+
#
|
685
843
|
def apply_parameters request, options = nil
|
686
844
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
687
845
|
|
@@ -699,9 +857,11 @@ module Google
|
|
699
857
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
700
858
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
701
859
|
|
702
|
-
header_params = {
|
703
|
-
|
704
|
-
|
860
|
+
header_params = {}
|
861
|
+
if request.name
|
862
|
+
header_params["name"] = request.name
|
863
|
+
end
|
864
|
+
|
705
865
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
706
866
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
707
867
|
|
@@ -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::Memcache::V1::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
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::Memcache::V1::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
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::Memcache::V1::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
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::Memcache::V1::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
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/memcache/v1/cloud_memcache.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/memcache/v1/cloud_memcache.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.cloud.memcache.v1.Instance" do
|
@@ -41,7 +41,7 @@ module Google
|
|
41
41
|
# * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
|
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
|
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.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
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|