google-cloud-redis-v1beta1 0.7.0 → 0.9.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/AUTHENTICATION.md +1 -1
- data/README.md +12 -7
- data/lib/google/cloud/redis/v1beta1/cloud_redis/client.rb +36 -38
- data/lib/google/cloud/redis/v1beta1/cloud_redis/operations.rb +15 -14
- data/lib/google/cloud/redis/v1beta1/cloud_redis/rest/client.rb +1198 -0
- data/lib/google/cloud/redis/v1beta1/cloud_redis/rest/operations.rb +792 -0
- data/lib/google/cloud/redis/v1beta1/cloud_redis/rest/service_stub.rb +704 -0
- data/lib/google/cloud/redis/v1beta1/cloud_redis/rest.rb +67 -0
- data/lib/google/cloud/redis/v1beta1/cloud_redis.rb +7 -1
- data/lib/google/cloud/redis/v1beta1/cloud_redis_pb.rb +2 -1
- data/lib/google/cloud/redis/v1beta1/rest.rb +37 -0
- data/lib/google/cloud/redis/v1beta1/version.rb +1 -1
- data/lib/google/cloud/redis/v1beta1.rb +8 -1
- 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: b8cba67fca569822fa019d7d648d8d299c42f8ac88f77991fc8bbe3896cc3a85
|
4
|
+
data.tar.gz: 1a663296afa06b8a3a25841915d0c99e292c607fa34c6c80f29aa731893aad49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad2c432e20dc9517ecf77661b8a0ee4df4c11aa48f1c45fed97e079a4cfd3c24440c2669e6eafb594ce5311220f35fc502b5a479971b347055fa74bb39f5637e
|
7
|
+
data.tar.gz: 0bc27725361f05b7de94ce8ab4a7d642c8b777f842a1719c364a8d165496c9b712ba24bffa0c2d2e87502639235646d9eb82787d287d8d64be2d7d3fe827d21e
|
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 V1beta1 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
|
|
@@ -253,13 +253,11 @@ module Google
|
|
253
253
|
# # Call the list_instances method.
|
254
254
|
# result = client.list_instances request
|
255
255
|
#
|
256
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
257
|
-
# #
|
258
|
-
#
|
259
|
-
# # methods are also available for managing paging directly.
|
260
|
-
# result.each do |response|
|
256
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
257
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
258
|
+
# result.each do |item|
|
261
259
|
# # Each element is of type ::Google::Cloud::Redis::V1beta1::Instance.
|
262
|
-
# p
|
260
|
+
# p item
|
263
261
|
# end
|
264
262
|
#
|
265
263
|
def list_instances request, options = nil
|
@@ -545,14 +543,14 @@ module Google
|
|
545
543
|
# # Call the create_instance method.
|
546
544
|
# result = client.create_instance request
|
547
545
|
#
|
548
|
-
# # The returned object is of type Gapic::Operation. You can use
|
549
|
-
# #
|
550
|
-
# #
|
546
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
547
|
+
# # check the status of an operation, cancel it, or wait for results.
|
548
|
+
# # Here is how to wait for a response.
|
551
549
|
# result.wait_until_done! timeout: 60
|
552
550
|
# if result.response?
|
553
551
|
# p result.response
|
554
552
|
# else
|
555
|
-
# puts "
|
553
|
+
# puts "No response received."
|
556
554
|
# end
|
557
555
|
#
|
558
556
|
def create_instance request, options = nil
|
@@ -653,14 +651,14 @@ module Google
|
|
653
651
|
# # Call the update_instance method.
|
654
652
|
# result = client.update_instance request
|
655
653
|
#
|
656
|
-
# # The returned object is of type Gapic::Operation. You can use
|
657
|
-
# #
|
658
|
-
# #
|
654
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
655
|
+
# # check the status of an operation, cancel it, or wait for results.
|
656
|
+
# # Here is how to wait for a response.
|
659
657
|
# result.wait_until_done! timeout: 60
|
660
658
|
# if result.response?
|
661
659
|
# p result.response
|
662
660
|
# else
|
663
|
-
# puts "
|
661
|
+
# puts "No response received."
|
664
662
|
# end
|
665
663
|
#
|
666
664
|
def update_instance request, options = nil
|
@@ -751,14 +749,14 @@ module Google
|
|
751
749
|
# # Call the upgrade_instance method.
|
752
750
|
# result = client.upgrade_instance request
|
753
751
|
#
|
754
|
-
# # The returned object is of type Gapic::Operation. You can use
|
755
|
-
# #
|
756
|
-
# #
|
752
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
753
|
+
# # check the status of an operation, cancel it, or wait for results.
|
754
|
+
# # Here is how to wait for a response.
|
757
755
|
# result.wait_until_done! timeout: 60
|
758
756
|
# if result.response?
|
759
757
|
# p result.response
|
760
758
|
# else
|
761
|
-
# puts "
|
759
|
+
# puts "No response received."
|
762
760
|
# end
|
763
761
|
#
|
764
762
|
def upgrade_instance request, options = nil
|
@@ -855,14 +853,14 @@ module Google
|
|
855
853
|
# # Call the import_instance method.
|
856
854
|
# result = client.import_instance request
|
857
855
|
#
|
858
|
-
# # The returned object is of type Gapic::Operation. You can use
|
859
|
-
# #
|
860
|
-
# #
|
856
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
857
|
+
# # check the status of an operation, cancel it, or wait for results.
|
858
|
+
# # Here is how to wait for a response.
|
861
859
|
# result.wait_until_done! timeout: 60
|
862
860
|
# if result.response?
|
863
861
|
# p result.response
|
864
862
|
# else
|
865
|
-
# puts "
|
863
|
+
# puts "No response received."
|
866
864
|
# end
|
867
865
|
#
|
868
866
|
def import_instance request, options = nil
|
@@ -957,14 +955,14 @@ module Google
|
|
957
955
|
# # Call the export_instance method.
|
958
956
|
# result = client.export_instance request
|
959
957
|
#
|
960
|
-
# # The returned object is of type Gapic::Operation. You can use
|
961
|
-
# #
|
962
|
-
# #
|
958
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
959
|
+
# # check the status of an operation, cancel it, or wait for results.
|
960
|
+
# # Here is how to wait for a response.
|
963
961
|
# result.wait_until_done! timeout: 60
|
964
962
|
# if result.response?
|
965
963
|
# p result.response
|
966
964
|
# else
|
967
|
-
# puts "
|
965
|
+
# puts "No response received."
|
968
966
|
# end
|
969
967
|
#
|
970
968
|
def export_instance request, options = nil
|
@@ -1056,14 +1054,14 @@ module Google
|
|
1056
1054
|
# # Call the failover_instance method.
|
1057
1055
|
# result = client.failover_instance request
|
1058
1056
|
#
|
1059
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1060
|
-
# #
|
1061
|
-
# #
|
1057
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1058
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1059
|
+
# # Here is how to wait for a response.
|
1062
1060
|
# result.wait_until_done! timeout: 60
|
1063
1061
|
# if result.response?
|
1064
1062
|
# p result.response
|
1065
1063
|
# else
|
1066
|
-
# puts "
|
1064
|
+
# puts "No response received."
|
1067
1065
|
# end
|
1068
1066
|
#
|
1069
1067
|
def failover_instance request, options = nil
|
@@ -1152,14 +1150,14 @@ module Google
|
|
1152
1150
|
# # Call the delete_instance method.
|
1153
1151
|
# result = client.delete_instance request
|
1154
1152
|
#
|
1155
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1156
|
-
# #
|
1157
|
-
# #
|
1153
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1154
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1155
|
+
# # Here is how to wait for a response.
|
1158
1156
|
# result.wait_until_done! timeout: 60
|
1159
1157
|
# if result.response?
|
1160
1158
|
# p result.response
|
1161
1159
|
# else
|
1162
|
-
# puts "
|
1160
|
+
# puts "No response received."
|
1163
1161
|
# end
|
1164
1162
|
#
|
1165
1163
|
def delete_instance request, options = nil
|
@@ -1254,14 +1252,14 @@ module Google
|
|
1254
1252
|
# # Call the reschedule_maintenance method.
|
1255
1253
|
# result = client.reschedule_maintenance request
|
1256
1254
|
#
|
1257
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1258
|
-
# #
|
1259
|
-
# #
|
1255
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1256
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1257
|
+
# # Here is how to wait for a response.
|
1260
1258
|
# result.wait_until_done! timeout: 60
|
1261
1259
|
# if result.response?
|
1262
1260
|
# p result.response
|
1263
1261
|
# else
|
1264
|
-
# puts "
|
1262
|
+
# puts "No response received."
|
1265
1263
|
# end
|
1266
1264
|
#
|
1267
1265
|
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
|