google-cloud-filestore-v1 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/filestore/v1/cloud_filestore_manager/client.rb +10 -1
- data/lib/google/cloud/filestore/v1/cloud_filestore_manager/operations.rb +10 -1
- data/lib/google/cloud/filestore/v1/cloud_filestore_manager/rest/client.rb +338 -0
- data/lib/google/cloud/filestore/v1/cloud_filestore_manager/rest/operations.rb +75 -0
- data/lib/google/cloud/filestore/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dff524885f07f68754853fdd50a32f1f94d9df7374c9a2d6d7c983611e8bed4b
|
4
|
+
data.tar.gz: 815300149fcd02ae6477af17fd09ad1b21f32047a531cba7b44c8b599879c202
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96089e8c7e0bec69c64ba6080f006d9f66827977abebc41f54c7edf1571afe486ed82e5cfe778a74332945c45492bad0d72985e3a355ac14799f6efc91ca14df
|
7
|
+
data.tar.gz: 4fe3124039b0a509374c7c2c0470bcf1c7ff439875a702654e170f440ca81f3262f49ffc359b462081d90e20f63311996614def3bab772fa96b09f83cfd9a050
|
@@ -196,7 +196,8 @@ module Google
|
|
196
196
|
credentials: credentials,
|
197
197
|
endpoint: @config.endpoint,
|
198
198
|
channel_args: @config.channel_args,
|
199
|
-
interceptors: @config.interceptors
|
199
|
+
interceptors: @config.interceptors,
|
200
|
+
channel_pool_config: @config.channel_pool
|
200
201
|
)
|
201
202
|
end
|
202
203
|
|
@@ -1890,6 +1891,14 @@ module Google
|
|
1890
1891
|
end
|
1891
1892
|
end
|
1892
1893
|
|
1894
|
+
##
|
1895
|
+
# Configuration for the channel pool
|
1896
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1897
|
+
#
|
1898
|
+
def channel_pool
|
1899
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1900
|
+
end
|
1901
|
+
|
1893
1902
|
##
|
1894
1903
|
# Configuration RPC class for the CloudFilestoreManager API.
|
1895
1904
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -242,6 +242,26 @@ module Google
|
|
242
242
|
# @return [::Google::Cloud::Filestore::V1::ListInstancesResponse]
|
243
243
|
#
|
244
244
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
245
|
+
#
|
246
|
+
# @example Basic example
|
247
|
+
# require "google/cloud/filestore/v1"
|
248
|
+
#
|
249
|
+
# # Create a client object. The client can be reused for multiple calls.
|
250
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
251
|
+
#
|
252
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
253
|
+
# request = Google::Cloud::Filestore::V1::ListInstancesRequest.new
|
254
|
+
#
|
255
|
+
# # Call the list_instances method.
|
256
|
+
# result = client.list_instances request
|
257
|
+
#
|
258
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
259
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
260
|
+
# result.each do |item|
|
261
|
+
# # Each element is of type ::Google::Cloud::Filestore::V1::Instance.
|
262
|
+
# p item
|
263
|
+
# end
|
264
|
+
#
|
245
265
|
def list_instances request, options = nil
|
246
266
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
247
267
|
|
@@ -305,6 +325,22 @@ module Google
|
|
305
325
|
# @return [::Google::Cloud::Filestore::V1::Instance]
|
306
326
|
#
|
307
327
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
328
|
+
#
|
329
|
+
# @example Basic example
|
330
|
+
# require "google/cloud/filestore/v1"
|
331
|
+
#
|
332
|
+
# # Create a client object. The client can be reused for multiple calls.
|
333
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
334
|
+
#
|
335
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
336
|
+
# request = Google::Cloud::Filestore::V1::GetInstanceRequest.new
|
337
|
+
#
|
338
|
+
# # Call the get_instance method.
|
339
|
+
# result = client.get_instance request
|
340
|
+
#
|
341
|
+
# # The returned object is of type Google::Cloud::Filestore::V1::Instance.
|
342
|
+
# p result
|
343
|
+
#
|
308
344
|
def get_instance request, options = nil
|
309
345
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
310
346
|
|
@@ -377,6 +413,29 @@ module Google
|
|
377
413
|
# @return [::Gapic::Operation]
|
378
414
|
#
|
379
415
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
416
|
+
#
|
417
|
+
# @example Basic example
|
418
|
+
# require "google/cloud/filestore/v1"
|
419
|
+
#
|
420
|
+
# # Create a client object. The client can be reused for multiple calls.
|
421
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
422
|
+
#
|
423
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
424
|
+
# request = Google::Cloud::Filestore::V1::CreateInstanceRequest.new
|
425
|
+
#
|
426
|
+
# # Call the create_instance method.
|
427
|
+
# result = client.create_instance request
|
428
|
+
#
|
429
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
430
|
+
# # check the status of an operation, cancel it, or wait for results.
|
431
|
+
# # Here is how to wait for a response.
|
432
|
+
# result.wait_until_done! timeout: 60
|
433
|
+
# if result.response?
|
434
|
+
# p result.response
|
435
|
+
# else
|
436
|
+
# puts "No response received."
|
437
|
+
# end
|
438
|
+
#
|
380
439
|
def create_instance request, options = nil
|
381
440
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
382
441
|
|
@@ -448,6 +507,29 @@ module Google
|
|
448
507
|
# @return [::Gapic::Operation]
|
449
508
|
#
|
450
509
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
510
|
+
#
|
511
|
+
# @example Basic example
|
512
|
+
# require "google/cloud/filestore/v1"
|
513
|
+
#
|
514
|
+
# # Create a client object. The client can be reused for multiple calls.
|
515
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
516
|
+
#
|
517
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
518
|
+
# request = Google::Cloud::Filestore::V1::UpdateInstanceRequest.new
|
519
|
+
#
|
520
|
+
# # Call the update_instance method.
|
521
|
+
# result = client.update_instance request
|
522
|
+
#
|
523
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
524
|
+
# # check the status of an operation, cancel it, or wait for results.
|
525
|
+
# # Here is how to wait for a response.
|
526
|
+
# result.wait_until_done! timeout: 60
|
527
|
+
# if result.response?
|
528
|
+
# p result.response
|
529
|
+
# else
|
530
|
+
# puts "No response received."
|
531
|
+
# end
|
532
|
+
#
|
451
533
|
def update_instance request, options = nil
|
452
534
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
453
535
|
|
@@ -522,6 +604,29 @@ module Google
|
|
522
604
|
# @return [::Gapic::Operation]
|
523
605
|
#
|
524
606
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
607
|
+
#
|
608
|
+
# @example Basic example
|
609
|
+
# require "google/cloud/filestore/v1"
|
610
|
+
#
|
611
|
+
# # Create a client object. The client can be reused for multiple calls.
|
612
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
613
|
+
#
|
614
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
615
|
+
# request = Google::Cloud::Filestore::V1::RestoreInstanceRequest.new
|
616
|
+
#
|
617
|
+
# # Call the restore_instance method.
|
618
|
+
# result = client.restore_instance request
|
619
|
+
#
|
620
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
621
|
+
# # check the status of an operation, cancel it, or wait for results.
|
622
|
+
# # Here is how to wait for a response.
|
623
|
+
# result.wait_until_done! timeout: 60
|
624
|
+
# if result.response?
|
625
|
+
# p result.response
|
626
|
+
# else
|
627
|
+
# puts "No response received."
|
628
|
+
# end
|
629
|
+
#
|
525
630
|
def restore_instance request, options = nil
|
526
631
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
527
632
|
|
@@ -589,6 +694,29 @@ module Google
|
|
589
694
|
# @return [::Gapic::Operation]
|
590
695
|
#
|
591
696
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
697
|
+
#
|
698
|
+
# @example Basic example
|
699
|
+
# require "google/cloud/filestore/v1"
|
700
|
+
#
|
701
|
+
# # Create a client object. The client can be reused for multiple calls.
|
702
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
703
|
+
#
|
704
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
705
|
+
# request = Google::Cloud::Filestore::V1::DeleteInstanceRequest.new
|
706
|
+
#
|
707
|
+
# # Call the delete_instance method.
|
708
|
+
# result = client.delete_instance request
|
709
|
+
#
|
710
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
711
|
+
# # check the status of an operation, cancel it, or wait for results.
|
712
|
+
# # Here is how to wait for a response.
|
713
|
+
# result.wait_until_done! timeout: 60
|
714
|
+
# if result.response?
|
715
|
+
# p result.response
|
716
|
+
# else
|
717
|
+
# puts "No response received."
|
718
|
+
# end
|
719
|
+
#
|
592
720
|
def delete_instance request, options = nil
|
593
721
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
594
722
|
|
@@ -664,6 +792,26 @@ module Google
|
|
664
792
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Filestore::V1::Snapshot>]
|
665
793
|
#
|
666
794
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
795
|
+
#
|
796
|
+
# @example Basic example
|
797
|
+
# require "google/cloud/filestore/v1"
|
798
|
+
#
|
799
|
+
# # Create a client object. The client can be reused for multiple calls.
|
800
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
801
|
+
#
|
802
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
803
|
+
# request = Google::Cloud::Filestore::V1::ListSnapshotsRequest.new
|
804
|
+
#
|
805
|
+
# # Call the list_snapshots method.
|
806
|
+
# result = client.list_snapshots request
|
807
|
+
#
|
808
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
809
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
810
|
+
# result.each do |item|
|
811
|
+
# # Each element is of type ::Google::Cloud::Filestore::V1::Snapshot.
|
812
|
+
# p item
|
813
|
+
# end
|
814
|
+
#
|
667
815
|
def list_snapshots request, options = nil
|
668
816
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
669
817
|
|
@@ -728,6 +876,22 @@ module Google
|
|
728
876
|
# @return [::Google::Cloud::Filestore::V1::Snapshot]
|
729
877
|
#
|
730
878
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
879
|
+
#
|
880
|
+
# @example Basic example
|
881
|
+
# require "google/cloud/filestore/v1"
|
882
|
+
#
|
883
|
+
# # Create a client object. The client can be reused for multiple calls.
|
884
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
885
|
+
#
|
886
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
887
|
+
# request = Google::Cloud::Filestore::V1::GetSnapshotRequest.new
|
888
|
+
#
|
889
|
+
# # Call the get_snapshot method.
|
890
|
+
# result = client.get_snapshot request
|
891
|
+
#
|
892
|
+
# # The returned object is of type Google::Cloud::Filestore::V1::Snapshot.
|
893
|
+
# p result
|
894
|
+
#
|
731
895
|
def get_snapshot request, options = nil
|
732
896
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
733
897
|
|
@@ -799,6 +963,29 @@ module Google
|
|
799
963
|
# @return [::Gapic::Operation]
|
800
964
|
#
|
801
965
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
966
|
+
#
|
967
|
+
# @example Basic example
|
968
|
+
# require "google/cloud/filestore/v1"
|
969
|
+
#
|
970
|
+
# # Create a client object. The client can be reused for multiple calls.
|
971
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
972
|
+
#
|
973
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
974
|
+
# request = Google::Cloud::Filestore::V1::CreateSnapshotRequest.new
|
975
|
+
#
|
976
|
+
# # Call the create_snapshot method.
|
977
|
+
# result = client.create_snapshot request
|
978
|
+
#
|
979
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
980
|
+
# # check the status of an operation, cancel it, or wait for results.
|
981
|
+
# # Here is how to wait for a response.
|
982
|
+
# result.wait_until_done! timeout: 60
|
983
|
+
# if result.response?
|
984
|
+
# p result.response
|
985
|
+
# else
|
986
|
+
# puts "No response received."
|
987
|
+
# end
|
988
|
+
#
|
802
989
|
def create_snapshot request, options = nil
|
803
990
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
804
991
|
|
@@ -863,6 +1050,29 @@ module Google
|
|
863
1050
|
# @return [::Gapic::Operation]
|
864
1051
|
#
|
865
1052
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1053
|
+
#
|
1054
|
+
# @example Basic example
|
1055
|
+
# require "google/cloud/filestore/v1"
|
1056
|
+
#
|
1057
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1058
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
1059
|
+
#
|
1060
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1061
|
+
# request = Google::Cloud::Filestore::V1::DeleteSnapshotRequest.new
|
1062
|
+
#
|
1063
|
+
# # Call the delete_snapshot method.
|
1064
|
+
# result = client.delete_snapshot request
|
1065
|
+
#
|
1066
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1067
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1068
|
+
# # Here is how to wait for a response.
|
1069
|
+
# result.wait_until_done! timeout: 60
|
1070
|
+
# if result.response?
|
1071
|
+
# p result.response
|
1072
|
+
# else
|
1073
|
+
# puts "No response received."
|
1074
|
+
# end
|
1075
|
+
#
|
866
1076
|
def delete_snapshot request, options = nil
|
867
1077
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
868
1078
|
|
@@ -929,6 +1139,29 @@ module Google
|
|
929
1139
|
# @return [::Gapic::Operation]
|
930
1140
|
#
|
931
1141
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1142
|
+
#
|
1143
|
+
# @example Basic example
|
1144
|
+
# require "google/cloud/filestore/v1"
|
1145
|
+
#
|
1146
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1147
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
1148
|
+
#
|
1149
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1150
|
+
# request = Google::Cloud::Filestore::V1::UpdateSnapshotRequest.new
|
1151
|
+
#
|
1152
|
+
# # Call the update_snapshot method.
|
1153
|
+
# result = client.update_snapshot request
|
1154
|
+
#
|
1155
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1156
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1157
|
+
# # Here is how to wait for a response.
|
1158
|
+
# result.wait_until_done! timeout: 60
|
1159
|
+
# if result.response?
|
1160
|
+
# p result.response
|
1161
|
+
# else
|
1162
|
+
# puts "No response received."
|
1163
|
+
# end
|
1164
|
+
#
|
932
1165
|
def update_snapshot request, options = nil
|
933
1166
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
934
1167
|
|
@@ -1007,6 +1240,26 @@ module Google
|
|
1007
1240
|
# @return [::Google::Cloud::Filestore::V1::ListBackupsResponse]
|
1008
1241
|
#
|
1009
1242
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1243
|
+
#
|
1244
|
+
# @example Basic example
|
1245
|
+
# require "google/cloud/filestore/v1"
|
1246
|
+
#
|
1247
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1248
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
1249
|
+
#
|
1250
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1251
|
+
# request = Google::Cloud::Filestore::V1::ListBackupsRequest.new
|
1252
|
+
#
|
1253
|
+
# # Call the list_backups method.
|
1254
|
+
# result = client.list_backups request
|
1255
|
+
#
|
1256
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1257
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1258
|
+
# result.each do |item|
|
1259
|
+
# # Each element is of type ::Google::Cloud::Filestore::V1::Backup.
|
1260
|
+
# p item
|
1261
|
+
# end
|
1262
|
+
#
|
1010
1263
|
def list_backups request, options = nil
|
1011
1264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1012
1265
|
|
@@ -1070,6 +1323,22 @@ module Google
|
|
1070
1323
|
# @return [::Google::Cloud::Filestore::V1::Backup]
|
1071
1324
|
#
|
1072
1325
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1326
|
+
#
|
1327
|
+
# @example Basic example
|
1328
|
+
# require "google/cloud/filestore/v1"
|
1329
|
+
#
|
1330
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1331
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
1332
|
+
#
|
1333
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1334
|
+
# request = Google::Cloud::Filestore::V1::GetBackupRequest.new
|
1335
|
+
#
|
1336
|
+
# # Call the get_backup method.
|
1337
|
+
# result = client.get_backup request
|
1338
|
+
#
|
1339
|
+
# # The returned object is of type Google::Cloud::Filestore::V1::Backup.
|
1340
|
+
# p result
|
1341
|
+
#
|
1073
1342
|
def get_backup request, options = nil
|
1074
1343
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1075
1344
|
|
@@ -1144,6 +1413,29 @@ module Google
|
|
1144
1413
|
# @return [::Gapic::Operation]
|
1145
1414
|
#
|
1146
1415
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1416
|
+
#
|
1417
|
+
# @example Basic example
|
1418
|
+
# require "google/cloud/filestore/v1"
|
1419
|
+
#
|
1420
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1421
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
1422
|
+
#
|
1423
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1424
|
+
# request = Google::Cloud::Filestore::V1::CreateBackupRequest.new
|
1425
|
+
#
|
1426
|
+
# # Call the create_backup method.
|
1427
|
+
# result = client.create_backup request
|
1428
|
+
#
|
1429
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1430
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1431
|
+
# # Here is how to wait for a response.
|
1432
|
+
# result.wait_until_done! timeout: 60
|
1433
|
+
# if result.response?
|
1434
|
+
# p result.response
|
1435
|
+
# else
|
1436
|
+
# puts "No response received."
|
1437
|
+
# end
|
1438
|
+
#
|
1147
1439
|
def create_backup request, options = nil
|
1148
1440
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1149
1441
|
|
@@ -1208,6 +1500,29 @@ module Google
|
|
1208
1500
|
# @return [::Gapic::Operation]
|
1209
1501
|
#
|
1210
1502
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1503
|
+
#
|
1504
|
+
# @example Basic example
|
1505
|
+
# require "google/cloud/filestore/v1"
|
1506
|
+
#
|
1507
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1508
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
1509
|
+
#
|
1510
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1511
|
+
# request = Google::Cloud::Filestore::V1::DeleteBackupRequest.new
|
1512
|
+
#
|
1513
|
+
# # Call the delete_backup method.
|
1514
|
+
# result = client.delete_backup request
|
1515
|
+
#
|
1516
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1517
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1518
|
+
# # Here is how to wait for a response.
|
1519
|
+
# result.wait_until_done! timeout: 60
|
1520
|
+
# if result.response?
|
1521
|
+
# p result.response
|
1522
|
+
# else
|
1523
|
+
# puts "No response received."
|
1524
|
+
# end
|
1525
|
+
#
|
1211
1526
|
def delete_backup request, options = nil
|
1212
1527
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1213
1528
|
|
@@ -1274,6 +1589,29 @@ module Google
|
|
1274
1589
|
# @return [::Gapic::Operation]
|
1275
1590
|
#
|
1276
1591
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1592
|
+
#
|
1593
|
+
# @example Basic example
|
1594
|
+
# require "google/cloud/filestore/v1"
|
1595
|
+
#
|
1596
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1597
|
+
# client = Google::Cloud::Filestore::V1::CloudFilestoreManager::Rest::Client.new
|
1598
|
+
#
|
1599
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1600
|
+
# request = Google::Cloud::Filestore::V1::UpdateBackupRequest.new
|
1601
|
+
#
|
1602
|
+
# # Call the update_backup method.
|
1603
|
+
# result = client.update_backup request
|
1604
|
+
#
|
1605
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1606
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1607
|
+
# # Here is how to wait for a response.
|
1608
|
+
# result.wait_until_done! timeout: 60
|
1609
|
+
# if result.response?
|
1610
|
+
# p result.response
|
1611
|
+
# else
|
1612
|
+
# puts "No response received."
|
1613
|
+
# end
|
1614
|
+
#
|
1277
1615
|
def update_backup request, options = nil
|
1278
1616
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1279
1617
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-filestore-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
234
|
- !ruby/object:Gem::Version
|
235
235
|
version: '0'
|
236
236
|
requirements: []
|
237
|
-
rubygems_version: 3.4.
|
237
|
+
rubygems_version: 3.4.19
|
238
238
|
signing_key:
|
239
239
|
specification_version: 4
|
240
240
|
summary: The Cloud Filestore API is used for creating and managing cloud file servers.
|