google-cloud-filestore-v1 0.2.0 → 0.3.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 +2 -2
- data/lib/google/cloud/filestore/v1/cloud_filestore_manager/client.rb +36 -40
- data/lib/google/cloud/filestore/v1/cloud_filestore_manager/operations.rb +12 -14
- data/lib/google/cloud/filestore/v1/cloud_filestore_manager/rest/client.rb +1183 -0
- data/lib/google/cloud/filestore/v1/cloud_filestore_manager/rest/operations.rb +793 -0
- data/lib/google/cloud/filestore/v1/cloud_filestore_manager/rest/service_stub.rb +702 -0
- data/lib/google/cloud/filestore/v1/cloud_filestore_manager/rest.rb +71 -0
- data/lib/google/cloud/filestore/v1/cloud_filestore_manager.rb +7 -1
- data/lib/google/cloud/filestore/v1/rest.rb +37 -0
- data/lib/google/cloud/filestore/v1/version.rb +1 -1
- data/lib/google/cloud/filestore/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/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +15 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25d5ec39faa328c7d9a69abc71d387d19548ba79fac38c8e07d07a523f2d5873
|
|
4
|
+
data.tar.gz: 786349cd3101f9e5603cf53f3a2bdce91fd477fdb04ff709efbabe5c94a93401
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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/
|
|
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
|
-
# #
|
|
269
|
-
#
|
|
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
|
|
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
|
|
456
|
-
# #
|
|
457
|
-
# #
|
|
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 "
|
|
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
|
|
557
|
-
# #
|
|
558
|
-
# #
|
|
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 "
|
|
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
|
|
661
|
-
# #
|
|
662
|
-
# #
|
|
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 "
|
|
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
|
|
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 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
|
-
# #
|
|
864
|
-
#
|
|
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
|
|
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
|
|
1053
|
-
# #
|
|
1054
|
-
# #
|
|
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 "
|
|
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
|
|
1147
|
-
# #
|
|
1148
|
-
# #
|
|
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 "
|
|
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
|
|
1243
|
-
# #
|
|
1244
|
-
# #
|
|
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 "
|
|
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
|
-
# #
|
|
163
|
-
#
|
|
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
|
|
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
|
|
257
|
-
# #
|
|
258
|
-
# #
|
|
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 "
|
|
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
|
|
544
|
-
# #
|
|
545
|
-
# #
|
|
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 "
|
|
548
|
+
# puts "No response received."
|
|
551
549
|
# end
|
|
552
550
|
#
|
|
553
551
|
def wait_operation request, options = nil
|