google-cloud-redis-v1 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +12 -7
- data/lib/google/cloud/redis/v1/cloud_redis/client.rb +36 -38
- data/lib/google/cloud/redis/v1/cloud_redis/operations.rb +15 -14
- data/lib/google/cloud/redis/v1/cloud_redis/rest/client.rb +1200 -0
- data/lib/google/cloud/redis/v1/cloud_redis/rest/operations.rb +792 -0
- data/lib/google/cloud/redis/v1/cloud_redis/rest/service_stub.rb +704 -0
- data/lib/google/cloud/redis/v1/cloud_redis/rest.rb +67 -0
- data/lib/google/cloud/redis/v1/cloud_redis.rb +7 -1
- data/lib/google/cloud/redis/v1/cloud_redis_pb.rb +2 -1
- data/lib/google/cloud/redis/v1/rest.rb +37 -0
- data/lib/google/cloud/redis/v1/version.rb +1 -1
- data/lib/google/cloud/redis/v1.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +20 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0ef3a65c230ba6713afc034e9e4b4f2bdfcfcfbf8cfc536bc99ca78992cca41
|
4
|
+
data.tar.gz: 9029b192ed47ccb8da6fa8ba41e853906c199dc69cfa4f19977e34d22aaa8985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a3e28499552c28fc9335de84ea2ad472d35c1aa39aa4d7eae802c55b42c52958ba9cf2ea6a271db7d304fd9ac01d48ae54431451924672fe4984e45edc5afe1
|
7
|
+
data.tar.gz: 869e0538d6ca2977144e6cfcd5308ab6bd06b72d19835b077db7da4289798213b65151094986b8d9100c0ebb7fccf105a51c93753a426646b789a1a3d11f816c
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Google Cloud Memorystore for Redis V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Creates and manages Redis instances on the Google Cloud Platform.
|
4
4
|
|
5
5
|
Creates and manages Redis instances on the Google Cloud Platform.
|
6
6
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -255,13 +255,11 @@ module Google
|
|
255
255
|
# # Call the list_instances method.
|
256
256
|
# result = client.list_instances request
|
257
257
|
#
|
258
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
259
|
-
# #
|
260
|
-
#
|
261
|
-
# # methods are also available for managing paging directly.
|
262
|
-
# result.each do |response|
|
258
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
259
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
260
|
+
# result.each do |item|
|
263
261
|
# # Each element is of type ::Google::Cloud::Redis::V1::Instance.
|
264
|
-
# p
|
262
|
+
# p item
|
265
263
|
# end
|
266
264
|
#
|
267
265
|
def list_instances request, options = nil
|
@@ -547,14 +545,14 @@ module Google
|
|
547
545
|
# # Call the create_instance method.
|
548
546
|
# result = client.create_instance request
|
549
547
|
#
|
550
|
-
# # The returned object is of type Gapic::Operation. You can use
|
551
|
-
# #
|
552
|
-
# #
|
548
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
549
|
+
# # check the status of an operation, cancel it, or wait for results.
|
550
|
+
# # Here is how to wait for a response.
|
553
551
|
# result.wait_until_done! timeout: 60
|
554
552
|
# if result.response?
|
555
553
|
# p result.response
|
556
554
|
# else
|
557
|
-
# puts "
|
555
|
+
# puts "No response received."
|
558
556
|
# end
|
559
557
|
#
|
560
558
|
def create_instance request, options = nil
|
@@ -655,14 +653,14 @@ module Google
|
|
655
653
|
# # Call the update_instance method.
|
656
654
|
# result = client.update_instance request
|
657
655
|
#
|
658
|
-
# # The returned object is of type Gapic::Operation. You can use
|
659
|
-
# #
|
660
|
-
# #
|
656
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
657
|
+
# # check the status of an operation, cancel it, or wait for results.
|
658
|
+
# # Here is how to wait for a response.
|
661
659
|
# result.wait_until_done! timeout: 60
|
662
660
|
# if result.response?
|
663
661
|
# p result.response
|
664
662
|
# else
|
665
|
-
# puts "
|
663
|
+
# puts "No response received."
|
666
664
|
# end
|
667
665
|
#
|
668
666
|
def update_instance request, options = nil
|
@@ -753,14 +751,14 @@ module Google
|
|
753
751
|
# # Call the upgrade_instance method.
|
754
752
|
# result = client.upgrade_instance request
|
755
753
|
#
|
756
|
-
# # The returned object is of type Gapic::Operation. You can use
|
757
|
-
# #
|
758
|
-
# #
|
754
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
755
|
+
# # check the status of an operation, cancel it, or wait for results.
|
756
|
+
# # Here is how to wait for a response.
|
759
757
|
# result.wait_until_done! timeout: 60
|
760
758
|
# if result.response?
|
761
759
|
# p result.response
|
762
760
|
# else
|
763
|
-
# puts "
|
761
|
+
# puts "No response received."
|
764
762
|
# end
|
765
763
|
#
|
766
764
|
def upgrade_instance request, options = nil
|
@@ -857,14 +855,14 @@ module Google
|
|
857
855
|
# # Call the import_instance method.
|
858
856
|
# result = client.import_instance request
|
859
857
|
#
|
860
|
-
# # The returned object is of type Gapic::Operation. You can use
|
861
|
-
# #
|
862
|
-
# #
|
858
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
859
|
+
# # check the status of an operation, cancel it, or wait for results.
|
860
|
+
# # Here is how to wait for a response.
|
863
861
|
# result.wait_until_done! timeout: 60
|
864
862
|
# if result.response?
|
865
863
|
# p result.response
|
866
864
|
# else
|
867
|
-
# puts "
|
865
|
+
# puts "No response received."
|
868
866
|
# end
|
869
867
|
#
|
870
868
|
def import_instance request, options = nil
|
@@ -959,14 +957,14 @@ module Google
|
|
959
957
|
# # Call the export_instance method.
|
960
958
|
# result = client.export_instance request
|
961
959
|
#
|
962
|
-
# # The returned object is of type Gapic::Operation. You can use
|
963
|
-
# #
|
964
|
-
# #
|
960
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
961
|
+
# # check the status of an operation, cancel it, or wait for results.
|
962
|
+
# # Here is how to wait for a response.
|
965
963
|
# result.wait_until_done! timeout: 60
|
966
964
|
# if result.response?
|
967
965
|
# p result.response
|
968
966
|
# else
|
969
|
-
# puts "
|
967
|
+
# puts "No response received."
|
970
968
|
# end
|
971
969
|
#
|
972
970
|
def export_instance request, options = nil
|
@@ -1058,14 +1056,14 @@ module Google
|
|
1058
1056
|
# # Call the failover_instance method.
|
1059
1057
|
# result = client.failover_instance request
|
1060
1058
|
#
|
1061
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1062
|
-
# #
|
1063
|
-
# #
|
1059
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1060
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1061
|
+
# # Here is how to wait for a response.
|
1064
1062
|
# result.wait_until_done! timeout: 60
|
1065
1063
|
# if result.response?
|
1066
1064
|
# p result.response
|
1067
1065
|
# else
|
1068
|
-
# puts "
|
1066
|
+
# puts "No response received."
|
1069
1067
|
# end
|
1070
1068
|
#
|
1071
1069
|
def failover_instance request, options = nil
|
@@ -1154,14 +1152,14 @@ module Google
|
|
1154
1152
|
# # Call the delete_instance method.
|
1155
1153
|
# result = client.delete_instance request
|
1156
1154
|
#
|
1157
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1158
|
-
# #
|
1159
|
-
# #
|
1155
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1156
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1157
|
+
# # Here is how to wait for a response.
|
1160
1158
|
# result.wait_until_done! timeout: 60
|
1161
1159
|
# if result.response?
|
1162
1160
|
# p result.response
|
1163
1161
|
# else
|
1164
|
-
# puts "
|
1162
|
+
# puts "No response received."
|
1165
1163
|
# end
|
1166
1164
|
#
|
1167
1165
|
def delete_instance request, options = nil
|
@@ -1256,14 +1254,14 @@ module Google
|
|
1256
1254
|
# # Call the reschedule_maintenance method.
|
1257
1255
|
# result = client.reschedule_maintenance request
|
1258
1256
|
#
|
1259
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1260
|
-
# #
|
1261
|
-
# #
|
1257
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1258
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1259
|
+
# # Here is how to wait for a response.
|
1262
1260
|
# result.wait_until_done! timeout: 60
|
1263
1261
|
# if result.response?
|
1264
1262
|
# p result.response
|
1265
1263
|
# else
|
1266
|
-
# puts "
|
1264
|
+
# puts "No response received."
|
1267
1265
|
# end
|
1268
1266
|
#
|
1269
1267
|
def reschedule_maintenance request, options = nil
|
@@ -95,6 +95,9 @@ module Google
|
|
95
95
|
channel_args: @config.channel_args,
|
96
96
|
interceptors: @config.interceptors
|
97
97
|
)
|
98
|
+
|
99
|
+
# Used by an LRO wrapper for some methods of this service
|
100
|
+
@operations_client = self
|
98
101
|
end
|
99
102
|
|
100
103
|
# Service calls
|
@@ -155,13 +158,11 @@ module Google
|
|
155
158
|
# # Call the list_operations method.
|
156
159
|
# result = client.list_operations request
|
157
160
|
#
|
158
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
-
# #
|
160
|
-
#
|
161
|
-
# # methods are also available for managing paging directly.
|
162
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
163
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
-
# p
|
165
|
+
# p item
|
165
166
|
# end
|
166
167
|
#
|
167
168
|
def list_operations request, options = nil
|
@@ -250,14 +251,14 @@ module Google
|
|
250
251
|
# # Call the get_operation method.
|
251
252
|
# result = client.get_operation request
|
252
253
|
#
|
253
|
-
# # The returned object is of type Gapic::Operation. You can use
|
254
|
-
# #
|
255
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
256
257
|
# result.wait_until_done! timeout: 60
|
257
258
|
# if result.response?
|
258
259
|
# p result.response
|
259
260
|
# else
|
260
|
-
# puts "
|
261
|
+
# puts "No response received."
|
261
262
|
# end
|
262
263
|
#
|
263
264
|
def get_operation request, options = nil
|
@@ -537,14 +538,14 @@ module Google
|
|
537
538
|
# # Call the wait_operation method.
|
538
539
|
# result = client.wait_operation request
|
539
540
|
#
|
540
|
-
# # The returned object is of type Gapic::Operation. You can use
|
541
|
-
# #
|
542
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
543
544
|
# result.wait_until_done! timeout: 60
|
544
545
|
# if result.response?
|
545
546
|
# p result.response
|
546
547
|
# else
|
547
|
-
# puts "
|
548
|
+
# puts "No response received."
|
548
549
|
# end
|
549
550
|
#
|
550
551
|
def wait_operation request, options = nil
|