google-cloud-redis-v1 0.11.1 → 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 +4 -4
- data/lib/google/cloud/redis/v1/cloud_redis/client.rb +10 -1
- data/lib/google/cloud/redis/v1/cloud_redis/operations.rb +10 -1
- data/lib/google/cloud/redis/v1/cloud_redis/rest/client.rb +236 -0
- data/lib/google/cloud/redis/v1/cloud_redis/rest/operations.rb +75 -0
- data/lib/google/cloud/redis/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc21799cc3ccfe42fa625d624a55bc180940d90f30c82704a8f93797ce8a7296
|
4
|
+
data.tar.gz: 1a992a6ea2e99abed7cfe722fdb0445c500ad4cc4c11e724a8c767d00bfa47d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8119448f084c29c6cd99d926f95cf72784a24ab0e51da805f42bc2ff97df6ea183c5615149a32fa1f2395ed6fc83bb2747ef9f8e3575b8168500487d6d1cf114
|
7
|
+
data.tar.gz: a4764f08683e83f65f31ed964307cd853cdc044448d0b2abf4ce32a2d0846b498bbfbcb4183fc0da5e4873f8fc91938ef6ca55d14fbe95739f3f9be5326d2d58
|
@@ -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
|
|
@@ -1441,6 +1442,14 @@ module Google
|
|
1441
1442
|
end
|
1442
1443
|
end
|
1443
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
|
+
|
1444
1453
|
##
|
1445
1454
|
# Configuration RPC class for the CloudRedis API.
|
1446
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
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
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
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -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
|
|
@@ -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
|
|
@@ -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.
|
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-
|
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
|
+
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.
|
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.
|
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.
|