google-cloud-filestore-v1 0.2.0 → 0.3.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: c8e835ec00127e7323977e718266ba78ff3b9f4840567e8c36dc6f9e87d1cff2
4
- data.tar.gz: 430ab144ff5ef136544cb2cd9cb351929554a830ef37aaba4f0cdc979bad2774
3
+ metadata.gz: 25d5ec39faa328c7d9a69abc71d387d19548ba79fac38c8e07d07a523f2d5873
4
+ data.tar.gz: 786349cd3101f9e5603cf53f3a2bdce91fd477fdb04ff709efbabe5c94a93401
5
5
  SHA512:
6
- metadata.gz: 9e490e9ef17d32fa6356328940072769ab9e7ed2a3692a19bec13f23a052fce6021d87b0ae9400a9d776fd421b893fc9760cbfaadaa4c48757e3096647115ae7
7
- data.tar.gz: d7c89714e6d3fa323472dadd20b58b69f9ed3907c4bbc736698536a6a27816a34e91cbe112076c9d8986012c1c7233dbe9aa890d3c7671bab468f30d6445a43f
6
+ metadata.gz: 2547df1a5b51a9f2c67c8e18f5d374d1a1c1d0358e70a25eb2f49f69d13daaaac01582f2665c76ceb16832eb6b5ab6a25b28e8105abe88cf7eb2c5b9a1b148bb
7
+ data.tar.gz: 983f013897094356a78916d0fe296067d6b4b6939f2294282ffca167c89dbfa3352bff087f2bfbf25eca2c3e7431682356fa5b728c2bd9811f8d3fbc396109f6
data/AUTHENTICATION.md CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
112
112
  To configure your system for this, simply:
113
113
 
114
114
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
115
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
115
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
116
116
  3. Write code as if already authenticated.
117
117
 
118
118
  **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 Filestore V1 API
2
2
 
3
- API Client library for the Filestore V1 API
3
+ The Cloud Filestore API is used for creating and managing cloud file servers.
4
4
 
5
5
  Filestore instances are fully managed NFS file servers on Google Cloud for use with applications running on Compute Engine virtual machines (VMs) instances or Google Kubernetes Engine clusters.
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.
@@ -264,13 +264,11 @@ module Google
264
264
  # # Call the list_instances method.
265
265
  # result = client.list_instances request
266
266
  #
267
- # # The returned object is of type Gapic::PagedEnumerable. You can
268
- # # iterate over all elements by calling #each, and the enumerable
269
- # # will lazily make API calls to fetch subsequent pages. Other
270
- # # methods are also available for managing paging directly.
271
- # result.each do |response|
267
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
268
+ # # over elements, and API calls will be issued to fetch pages as needed.
269
+ # result.each do |item|
272
270
  # # Each element is of type ::Google::Cloud::Filestore::V1::Instance.
273
- # p response
271
+ # p item
274
272
  # end
275
273
  #
276
274
  def list_instances request, options = nil
@@ -452,14 +450,14 @@ module Google
452
450
  # # Call the create_instance method.
453
451
  # result = client.create_instance request
454
452
  #
455
- # # The returned object is of type Gapic::Operation. You can use this
456
- # # object to check the status of an operation, cancel it, or wait
457
- # # for results. Here is how to block until completion:
453
+ # # The returned object is of type Gapic::Operation. You can use it to
454
+ # # check the status of an operation, cancel it, or wait for results.
455
+ # # Here is how to wait for a response.
458
456
  # result.wait_until_done! timeout: 60
459
457
  # if result.response?
460
458
  # p result.response
461
459
  # else
462
- # puts "Error!"
460
+ # puts "No response received."
463
461
  # end
464
462
  #
465
463
  def create_instance request, options = nil
@@ -553,14 +551,14 @@ module Google
553
551
  # # Call the update_instance method.
554
552
  # result = client.update_instance request
555
553
  #
556
- # # The returned object is of type Gapic::Operation. You can use this
557
- # # object to check the status of an operation, cancel it, or wait
558
- # # for results. Here is how to block until completion:
554
+ # # The returned object is of type Gapic::Operation. You can use it to
555
+ # # check the status of an operation, cancel it, or wait for results.
556
+ # # Here is how to wait for a response.
559
557
  # result.wait_until_done! timeout: 60
560
558
  # if result.response?
561
559
  # p result.response
562
560
  # else
563
- # puts "Error!"
561
+ # puts "No response received."
564
562
  # end
565
563
  #
566
564
  def update_instance request, options = nil
@@ -657,14 +655,14 @@ module Google
657
655
  # # Call the restore_instance method.
658
656
  # result = client.restore_instance request
659
657
  #
660
- # # The returned object is of type Gapic::Operation. You can use this
661
- # # object to check the status of an operation, cancel it, or wait
662
- # # for results. Here is how to block until completion:
658
+ # # The returned object is of type Gapic::Operation. You can use it to
659
+ # # check the status of an operation, cancel it, or wait for results.
660
+ # # Here is how to wait for a response.
663
661
  # result.wait_until_done! timeout: 60
664
662
  # if result.response?
665
663
  # p result.response
666
664
  # else
667
- # puts "Error!"
665
+ # puts "No response received."
668
666
  # end
669
667
  #
670
668
  def restore_instance request, options = nil
@@ -751,14 +749,14 @@ module Google
751
749
  # # Call the delete_instance method.
752
750
  # result = client.delete_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 delete_instance request, options = nil
@@ -859,13 +857,11 @@ module Google
859
857
  # # Call the list_backups method.
860
858
  # result = client.list_backups request
861
859
  #
862
- # # The returned object is of type Gapic::PagedEnumerable. You can
863
- # # iterate over all elements by calling #each, and the enumerable
864
- # # will lazily make API calls to fetch subsequent pages. Other
865
- # # methods are also available for managing paging directly.
866
- # result.each do |response|
860
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
861
+ # # over elements, and API calls will be issued to fetch pages as needed.
862
+ # result.each do |item|
867
863
  # # Each element is of type ::Google::Cloud::Filestore::V1::Backup.
868
- # p response
864
+ # p item
869
865
  # end
870
866
  #
871
867
  def list_backups request, options = nil
@@ -1049,14 +1045,14 @@ module Google
1049
1045
  # # Call the create_backup method.
1050
1046
  # result = client.create_backup request
1051
1047
  #
1052
- # # The returned object is of type Gapic::Operation. You can use this
1053
- # # object to check the status of an operation, cancel it, or wait
1054
- # # for results. Here is how to block until completion:
1048
+ # # The returned object is of type Gapic::Operation. You can use it to
1049
+ # # check the status of an operation, cancel it, or wait for results.
1050
+ # # Here is how to wait for a response.
1055
1051
  # result.wait_until_done! timeout: 60
1056
1052
  # if result.response?
1057
1053
  # p result.response
1058
1054
  # else
1059
- # puts "Error!"
1055
+ # puts "No response received."
1060
1056
  # end
1061
1057
  #
1062
1058
  def create_backup request, options = nil
@@ -1143,14 +1139,14 @@ module Google
1143
1139
  # # Call the delete_backup method.
1144
1140
  # result = client.delete_backup request
1145
1141
  #
1146
- # # The returned object is of type Gapic::Operation. You can use this
1147
- # # object to check the status of an operation, cancel it, or wait
1148
- # # for results. Here is how to block until completion:
1142
+ # # The returned object is of type Gapic::Operation. You can use it to
1143
+ # # check the status of an operation, cancel it, or wait for results.
1144
+ # # Here is how to wait for a response.
1149
1145
  # result.wait_until_done! timeout: 60
1150
1146
  # if result.response?
1151
1147
  # p result.response
1152
1148
  # else
1153
- # puts "Error!"
1149
+ # puts "No response received."
1154
1150
  # end
1155
1151
  #
1156
1152
  def delete_backup request, options = nil
@@ -1239,14 +1235,14 @@ module Google
1239
1235
  # # Call the update_backup method.
1240
1236
  # result = client.update_backup request
1241
1237
  #
1242
- # # The returned object is of type Gapic::Operation. You can use this
1243
- # # object to check the status of an operation, cancel it, or wait
1244
- # # for results. Here is how to block until completion:
1238
+ # # The returned object is of type Gapic::Operation. You can use it to
1239
+ # # check the status of an operation, cancel it, or wait for results.
1240
+ # # Here is how to wait for a response.
1245
1241
  # result.wait_until_done! timeout: 60
1246
1242
  # if result.response?
1247
1243
  # p result.response
1248
1244
  # else
1249
- # puts "Error!"
1245
+ # puts "No response received."
1250
1246
  # end
1251
1247
  #
1252
1248
  def update_backup 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