google-cloud-redis-v1beta1 0.10.0 → 0.11.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/v1beta1/cloud_redis/client.rb +14 -3
- data/lib/google/cloud/redis/v1beta1/cloud_redis/operations.rb +13 -2
- data/lib/google/cloud/redis/v1beta1/cloud_redis/rest/client.rb +240 -2
- data/lib/google/cloud/redis/v1beta1/cloud_redis/rest/operations.rb +82 -5
- data/lib/google/cloud/redis/v1beta1/cloud_redis/rest/service_stub.rb +11 -11
- data/lib/google/cloud/redis/v1beta1/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: 7a6e2024e494faa3d37f3471b0e41ac6e83a99fe9e4c448a467dca4f64ffeeb0
|
4
|
+
data.tar.gz: 62f1abda33206189933416a4e1c8e393b9b79a0081fa7aa33ddedd3593c98aa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc8ce2c544d0477dadb7dd92c8f5c7cdbc38aab685d7bc08388a53c6b792ae58983ec9af8682ca362d2af7be57056c076159773a36b0341566ea1ad759657df5
|
7
|
+
data.tar.gz: 679b1138ee711f1420909b8927dc6b40f8730cba6d6f52f97f144fc39dcd38bed2a12fbcc184e2ae763e41d9683f3a2da86c03ccd43424909e774c541205bd1b
|
@@ -157,7 +157,7 @@ module Google
|
|
157
157
|
credentials = @config.credentials
|
158
158
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
159
159
|
# but only if the default endpoint does not have a region prefix.
|
160
|
-
enable_self_signed_jwt = @config.endpoint ==
|
160
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
161
161
|
!@config.endpoint.split(".").first.include?("-")
|
162
162
|
credentials ||= Credentials.default scope: @config.scope,
|
163
163
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -178,7 +178,8 @@ module Google
|
|
178
178
|
credentials: credentials,
|
179
179
|
endpoint: @config.endpoint,
|
180
180
|
channel_args: @config.channel_args,
|
181
|
-
interceptors: @config.interceptors
|
181
|
+
interceptors: @config.interceptors,
|
182
|
+
channel_pool_config: @config.channel_pool
|
182
183
|
)
|
183
184
|
end
|
184
185
|
|
@@ -1386,7 +1387,9 @@ module Google
|
|
1386
1387
|
class Configuration
|
1387
1388
|
extend ::Gapic::Config
|
1388
1389
|
|
1389
|
-
|
1390
|
+
DEFAULT_ENDPOINT = "redis.googleapis.com"
|
1391
|
+
|
1392
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1390
1393
|
config_attr :credentials, nil do |value|
|
1391
1394
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1392
1395
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -1421,6 +1424,14 @@ module Google
|
|
1421
1424
|
end
|
1422
1425
|
end
|
1423
1426
|
|
1427
|
+
##
|
1428
|
+
# Configuration for the channel pool
|
1429
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1430
|
+
#
|
1431
|
+
def channel_pool
|
1432
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1433
|
+
end
|
1434
|
+
|
1424
1435
|
##
|
1425
1436
|
# Configuration RPC class for the CloudRedis API.
|
1426
1437
|
#
|
@@ -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
|
-
|
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
|
#
|
@@ -153,7 +153,7 @@ module Google
|
|
153
153
|
credentials = @config.credentials
|
154
154
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
155
155
|
# but only if the default endpoint does not have a region prefix.
|
156
|
-
enable_self_signed_jwt = @config.endpoint ==
|
156
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
157
157
|
!@config.endpoint.split(".").first.include?("-")
|
158
158
|
credentials ||= Credentials.default scope: @config.scope,
|
159
159
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -230,6 +230,26 @@ module Google
|
|
230
230
|
# @return [::Google::Cloud::Redis::V1beta1::ListInstancesResponse]
|
231
231
|
#
|
232
232
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
233
|
+
#
|
234
|
+
# @example Basic example
|
235
|
+
# require "google/cloud/redis/v1beta1"
|
236
|
+
#
|
237
|
+
# # Create a client object. The client can be reused for multiple calls.
|
238
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Rest::Client.new
|
239
|
+
#
|
240
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
241
|
+
# request = Google::Cloud::Redis::V1beta1::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 iterate
|
247
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
248
|
+
# result.each do |item|
|
249
|
+
# # Each element is of type ::Google::Cloud::Redis::V1beta1::Instance.
|
250
|
+
# p item
|
251
|
+
# end
|
252
|
+
#
|
233
253
|
def list_instances request, options = nil
|
234
254
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
235
255
|
|
@@ -294,6 +314,22 @@ module Google
|
|
294
314
|
# @return [::Google::Cloud::Redis::V1beta1::Instance]
|
295
315
|
#
|
296
316
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
317
|
+
#
|
318
|
+
# @example Basic example
|
319
|
+
# require "google/cloud/redis/v1beta1"
|
320
|
+
#
|
321
|
+
# # Create a client object. The client can be reused for multiple calls.
|
322
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Rest::Client.new
|
323
|
+
#
|
324
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
325
|
+
# request = Google::Cloud::Redis::V1beta1::GetInstanceRequest.new
|
326
|
+
#
|
327
|
+
# # Call the get_instance method.
|
328
|
+
# result = client.get_instance request
|
329
|
+
#
|
330
|
+
# # The returned object is of type Google::Cloud::Redis::V1beta1::Instance.
|
331
|
+
# p result
|
332
|
+
#
|
297
333
|
def get_instance request, options = nil
|
298
334
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
299
335
|
|
@@ -360,6 +396,22 @@ module Google
|
|
360
396
|
# @return [::Google::Cloud::Redis::V1beta1::InstanceAuthString]
|
361
397
|
#
|
362
398
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
399
|
+
#
|
400
|
+
# @example Basic example
|
401
|
+
# require "google/cloud/redis/v1beta1"
|
402
|
+
#
|
403
|
+
# # Create a client object. The client can be reused for multiple calls.
|
404
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Rest::Client.new
|
405
|
+
#
|
406
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
407
|
+
# request = Google::Cloud::Redis::V1beta1::GetInstanceAuthStringRequest.new
|
408
|
+
#
|
409
|
+
# # Call the get_instance_auth_string method.
|
410
|
+
# result = client.get_instance_auth_string request
|
411
|
+
#
|
412
|
+
# # The returned object is of type Google::Cloud::Redis::V1beta1::InstanceAuthString.
|
413
|
+
# p result
|
414
|
+
#
|
363
415
|
def get_instance_auth_string request, options = nil
|
364
416
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
365
417
|
|
@@ -446,6 +498,29 @@ module Google
|
|
446
498
|
# @return [::Gapic::Operation]
|
447
499
|
#
|
448
500
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
501
|
+
#
|
502
|
+
# @example Basic example
|
503
|
+
# require "google/cloud/redis/v1beta1"
|
504
|
+
#
|
505
|
+
# # Create a client object. The client can be reused for multiple calls.
|
506
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Rest::Client.new
|
507
|
+
#
|
508
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
509
|
+
# request = Google::Cloud::Redis::V1beta1::CreateInstanceRequest.new
|
510
|
+
#
|
511
|
+
# # Call the create_instance method.
|
512
|
+
# result = client.create_instance request
|
513
|
+
#
|
514
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
515
|
+
# # check the status of an operation, cancel it, or wait for results.
|
516
|
+
# # Here is how to wait for a response.
|
517
|
+
# result.wait_until_done! timeout: 60
|
518
|
+
# if result.response?
|
519
|
+
# p result.response
|
520
|
+
# else
|
521
|
+
# puts "No response received."
|
522
|
+
# end
|
523
|
+
#
|
449
524
|
def create_instance request, options = nil
|
450
525
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
451
526
|
|
@@ -524,6 +599,29 @@ module Google
|
|
524
599
|
# @return [::Gapic::Operation]
|
525
600
|
#
|
526
601
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
602
|
+
#
|
603
|
+
# @example Basic example
|
604
|
+
# require "google/cloud/redis/v1beta1"
|
605
|
+
#
|
606
|
+
# # Create a client object. The client can be reused for multiple calls.
|
607
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Rest::Client.new
|
608
|
+
#
|
609
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
610
|
+
# request = Google::Cloud::Redis::V1beta1::UpdateInstanceRequest.new
|
611
|
+
#
|
612
|
+
# # Call the update_instance method.
|
613
|
+
# result = client.update_instance request
|
614
|
+
#
|
615
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
616
|
+
# # check the status of an operation, cancel it, or wait for results.
|
617
|
+
# # Here is how to wait for a response.
|
618
|
+
# result.wait_until_done! timeout: 60
|
619
|
+
# if result.response?
|
620
|
+
# p result.response
|
621
|
+
# else
|
622
|
+
# puts "No response received."
|
623
|
+
# end
|
624
|
+
#
|
527
625
|
def update_instance request, options = nil
|
528
626
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
529
627
|
|
@@ -592,6 +690,29 @@ module Google
|
|
592
690
|
# @return [::Gapic::Operation]
|
593
691
|
#
|
594
692
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
693
|
+
#
|
694
|
+
# @example Basic example
|
695
|
+
# require "google/cloud/redis/v1beta1"
|
696
|
+
#
|
697
|
+
# # Create a client object. The client can be reused for multiple calls.
|
698
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Rest::Client.new
|
699
|
+
#
|
700
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
701
|
+
# request = Google::Cloud::Redis::V1beta1::UpgradeInstanceRequest.new
|
702
|
+
#
|
703
|
+
# # Call the upgrade_instance method.
|
704
|
+
# result = client.upgrade_instance request
|
705
|
+
#
|
706
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
707
|
+
# # check the status of an operation, cancel it, or wait for results.
|
708
|
+
# # Here is how to wait for a response.
|
709
|
+
# result.wait_until_done! timeout: 60
|
710
|
+
# if result.response?
|
711
|
+
# p result.response
|
712
|
+
# else
|
713
|
+
# puts "No response received."
|
714
|
+
# end
|
715
|
+
#
|
595
716
|
def upgrade_instance request, options = nil
|
596
717
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
597
718
|
|
@@ -666,6 +787,29 @@ module Google
|
|
666
787
|
# @return [::Gapic::Operation]
|
667
788
|
#
|
668
789
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
790
|
+
#
|
791
|
+
# @example Basic example
|
792
|
+
# require "google/cloud/redis/v1beta1"
|
793
|
+
#
|
794
|
+
# # Create a client object. The client can be reused for multiple calls.
|
795
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Rest::Client.new
|
796
|
+
#
|
797
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
798
|
+
# request = Google::Cloud::Redis::V1beta1::ImportInstanceRequest.new
|
799
|
+
#
|
800
|
+
# # Call the import_instance method.
|
801
|
+
# result = client.import_instance request
|
802
|
+
#
|
803
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
804
|
+
# # check the status of an operation, cancel it, or wait for results.
|
805
|
+
# # Here is how to wait for a response.
|
806
|
+
# result.wait_until_done! timeout: 60
|
807
|
+
# if result.response?
|
808
|
+
# p result.response
|
809
|
+
# else
|
810
|
+
# puts "No response received."
|
811
|
+
# end
|
812
|
+
#
|
669
813
|
def import_instance request, options = nil
|
670
814
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
671
815
|
|
@@ -738,6 +882,29 @@ module Google
|
|
738
882
|
# @return [::Gapic::Operation]
|
739
883
|
#
|
740
884
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
885
|
+
#
|
886
|
+
# @example Basic example
|
887
|
+
# require "google/cloud/redis/v1beta1"
|
888
|
+
#
|
889
|
+
# # Create a client object. The client can be reused for multiple calls.
|
890
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Rest::Client.new
|
891
|
+
#
|
892
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
893
|
+
# request = Google::Cloud::Redis::V1beta1::ExportInstanceRequest.new
|
894
|
+
#
|
895
|
+
# # Call the export_instance method.
|
896
|
+
# result = client.export_instance request
|
897
|
+
#
|
898
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
899
|
+
# # check the status of an operation, cancel it, or wait for results.
|
900
|
+
# # Here is how to wait for a response.
|
901
|
+
# result.wait_until_done! timeout: 60
|
902
|
+
# if result.response?
|
903
|
+
# p result.response
|
904
|
+
# else
|
905
|
+
# puts "No response received."
|
906
|
+
# end
|
907
|
+
#
|
741
908
|
def export_instance request, options = nil
|
742
909
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
743
910
|
|
@@ -807,6 +974,29 @@ module Google
|
|
807
974
|
# @return [::Gapic::Operation]
|
808
975
|
#
|
809
976
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
977
|
+
#
|
978
|
+
# @example Basic example
|
979
|
+
# require "google/cloud/redis/v1beta1"
|
980
|
+
#
|
981
|
+
# # Create a client object. The client can be reused for multiple calls.
|
982
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Rest::Client.new
|
983
|
+
#
|
984
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
985
|
+
# request = Google::Cloud::Redis::V1beta1::FailoverInstanceRequest.new
|
986
|
+
#
|
987
|
+
# # Call the failover_instance method.
|
988
|
+
# result = client.failover_instance request
|
989
|
+
#
|
990
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
991
|
+
# # check the status of an operation, cancel it, or wait for results.
|
992
|
+
# # Here is how to wait for a response.
|
993
|
+
# result.wait_until_done! timeout: 60
|
994
|
+
# if result.response?
|
995
|
+
# p result.response
|
996
|
+
# else
|
997
|
+
# puts "No response received."
|
998
|
+
# end
|
999
|
+
#
|
810
1000
|
def failover_instance request, options = nil
|
811
1001
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
812
1002
|
|
@@ -873,6 +1063,29 @@ module Google
|
|
873
1063
|
# @return [::Gapic::Operation]
|
874
1064
|
#
|
875
1065
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1066
|
+
#
|
1067
|
+
# @example Basic example
|
1068
|
+
# require "google/cloud/redis/v1beta1"
|
1069
|
+
#
|
1070
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1071
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Rest::Client.new
|
1072
|
+
#
|
1073
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1074
|
+
# request = Google::Cloud::Redis::V1beta1::DeleteInstanceRequest.new
|
1075
|
+
#
|
1076
|
+
# # Call the delete_instance method.
|
1077
|
+
# result = client.delete_instance request
|
1078
|
+
#
|
1079
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1080
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1081
|
+
# # Here is how to wait for a response.
|
1082
|
+
# result.wait_until_done! timeout: 60
|
1083
|
+
# if result.response?
|
1084
|
+
# p result.response
|
1085
|
+
# else
|
1086
|
+
# puts "No response received."
|
1087
|
+
# end
|
1088
|
+
#
|
876
1089
|
def delete_instance request, options = nil
|
877
1090
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
878
1091
|
|
@@ -945,6 +1158,29 @@ module Google
|
|
945
1158
|
# @return [::Gapic::Operation]
|
946
1159
|
#
|
947
1160
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1161
|
+
#
|
1162
|
+
# @example Basic example
|
1163
|
+
# require "google/cloud/redis/v1beta1"
|
1164
|
+
#
|
1165
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1166
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Rest::Client.new
|
1167
|
+
#
|
1168
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1169
|
+
# request = Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest.new
|
1170
|
+
#
|
1171
|
+
# # Call the reschedule_maintenance method.
|
1172
|
+
# result = client.reschedule_maintenance request
|
1173
|
+
#
|
1174
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1175
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1176
|
+
# # Here is how to wait for a response.
|
1177
|
+
# result.wait_until_done! timeout: 60
|
1178
|
+
# if result.response?
|
1179
|
+
# p result.response
|
1180
|
+
# else
|
1181
|
+
# puts "No response received."
|
1182
|
+
# end
|
1183
|
+
#
|
948
1184
|
def reschedule_maintenance request, options = nil
|
949
1185
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
950
1186
|
|
@@ -1054,7 +1290,9 @@ module Google
|
|
1054
1290
|
class Configuration
|
1055
1291
|
extend ::Gapic::Config
|
1056
1292
|
|
1057
|
-
|
1293
|
+
DEFAULT_ENDPOINT = "redis.googleapis.com"
|
1294
|
+
|
1295
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1058
1296
|
config_attr :credentials, nil do |value|
|
1059
1297
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1060
1298
|
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
|
-
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
443
443
|
else
|
444
444
|
{}
|
445
445
|
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-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.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
|
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
- !ruby/object:Gem::Version
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
|
-
rubygems_version: 3.4.
|
221
|
+
rubygems_version: 3.4.19
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: Creates and manages Redis instances on the Google Cloud Platform.
|