google-cloud-redis-v1beta1 0.8.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: f16ba81b4ac47f8849fcd55522ac2c554fbc2e1b9e586dde56fb58a5c4b9138e
4
- data.tar.gz: 39c48daae6cc342c3b6b61e21a116543bbbd96d753516ebaaee151209acc5d17
3
+ metadata.gz: b8cba67fca569822fa019d7d648d8d299c42f8ac88f77991fc8bbe3896cc3a85
4
+ data.tar.gz: 1a663296afa06b8a3a25841915d0c99e292c607fa34c6c80f29aa731893aad49
5
5
  SHA512:
6
- metadata.gz: 933695681a3f7124bf4499cd95a94ab2f25363b1ea332001eb55bd149431666c8a9d8c3f003349c21cd284c3eab20a657c12e9a6c24b34d281241bb8e04b6cb7
7
- data.tar.gz: a34f3e55b5c94d2fde2e277bdd3919571b41cc51e6c5931c9301e27853122496fb1ffdaf0502ad8d86ebe552f76f42e9885190871cf53bb2199250ea3a5d209a
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.
@@ -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
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # 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|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # 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.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # 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.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil