google-cloud-redis-v1beta1 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46dc450124766139d895541a325a6f2389ac3a10b5886f5382a5a3c04e793697
4
- data.tar.gz: 35e72ec051074737d233a586dccf0989934a6c6ac963628a72fe1ecb4d97f767
3
+ metadata.gz: b8cba67fca569822fa019d7d648d8d299c42f8ac88f77991fc8bbe3896cc3a85
4
+ data.tar.gz: 1a663296afa06b8a3a25841915d0c99e292c607fa34c6c80f29aa731893aad49
5
5
  SHA512:
6
- metadata.gz: 9d57667e6eda7b9eb3b661002b2d49be8dbdefdec47222669546f6124f4e64cb85063f291608c97bc957a67e2940b4a4db2add46349a9473ccb2f2f590abfab5
7
- data.tar.gz: 2f947939ef3ae2c3e71506975f3d6e6c5baf0d1db2cd48319b52d84d14db05ad479fe81d3505e25ba383ae2e002f6a2b687769672553dd068967d6eb9392cc44
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
- API Client library for the Google Cloud Memorystore for Redis V1beta1 API
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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.5+.
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. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
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
- # # iterate over all elements by calling #each, and the enumerable
258
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
549
- # # object to check the status of an operation, cancel it, or wait
550
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
657
- # # object to check the status of an operation, cancel it, or wait
658
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
755
- # # object to check the status of an operation, cancel it, or wait
756
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
859
- # # object to check the status of an operation, cancel it, or wait
860
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
961
- # # object to check the status of an operation, cancel it, or wait
962
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1060
- # # object to check the status of an operation, cancel it, or wait
1061
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1156
- # # object to check the status of an operation, cancel it, or wait
1157
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1258
- # # object to check the status of an operation, cancel it, or wait
1259
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # 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|
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 response
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 this
254
- # # object to check the status of an operation, cancel it, or wait
255
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
541
- # # object to check the status of an operation, cancel it, or wait
542
- # # for results. Here is how to block until completion:
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 "Error!"
548
+ # puts "No response received."
548
549
  # end
549
550
  #
550
551
  def wait_operation request, options = nil