google-cloud-netapp-v1 0.1.0 → 0.2.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/netapp/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/netapp/v1/netapp/client.rb +10 -1
- data/lib/google/cloud/netapp/v1/netapp/operations.rb +10 -1
- data/lib/google/cloud/netapp/v1/netapp/rest/client.rb +769 -0
- data/lib/google/cloud/netapp/v1/netapp/rest/operations.rb +80 -5
- data/lib/google/cloud/netapp/v1/netapp/rest.rb +1 -0
- data/lib/google/cloud/netapp/v1/rest.rb +1 -0
- data/lib/google/cloud/netapp/v1/version.rb +1 -1
- data/lib/google/cloud/netapp/v1/volume_pb.rb +2 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/netapp/v1/kms.rb +6 -0
- data/proto_docs/google/cloud/netapp/v1/snapshot.rb +1 -0
- data/proto_docs/google/cloud/netapp/v1/storage_pool.rb +6 -0
- data/proto_docs/google/cloud/netapp/v1/volume.rb +12 -0
- metadata +5 -4
@@ -249,6 +249,7 @@ module Google
|
|
249
249
|
config.credentials = credentials
|
250
250
|
config.quota_project = @quota_project_id
|
251
251
|
config.endpoint = @config.endpoint
|
252
|
+
config.bindings_override = @config.bindings_override
|
252
253
|
end
|
253
254
|
|
254
255
|
@net_app_stub = ::Google::Cloud::NetApp::V1::NetApp::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
@@ -306,6 +307,26 @@ module Google
|
|
306
307
|
# @return [::Google::Cloud::NetApp::V1::ListStoragePoolsResponse]
|
307
308
|
#
|
308
309
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
310
|
+
#
|
311
|
+
# @example Basic example
|
312
|
+
# require "google/cloud/netapp/v1"
|
313
|
+
#
|
314
|
+
# # Create a client object. The client can be reused for multiple calls.
|
315
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
316
|
+
#
|
317
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
318
|
+
# request = Google::Cloud::NetApp::V1::ListStoragePoolsRequest.new
|
319
|
+
#
|
320
|
+
# # Call the list_storage_pools method.
|
321
|
+
# result = client.list_storage_pools request
|
322
|
+
#
|
323
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
324
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
325
|
+
# result.each do |item|
|
326
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::StoragePool.
|
327
|
+
# p item
|
328
|
+
# end
|
329
|
+
#
|
309
330
|
def list_storage_pools request, options = nil
|
310
331
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
311
332
|
|
@@ -374,6 +395,29 @@ module Google
|
|
374
395
|
# @return [::Gapic::Operation]
|
375
396
|
#
|
376
397
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
398
|
+
#
|
399
|
+
# @example Basic example
|
400
|
+
# require "google/cloud/netapp/v1"
|
401
|
+
#
|
402
|
+
# # Create a client object. The client can be reused for multiple calls.
|
403
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
404
|
+
#
|
405
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
406
|
+
# request = Google::Cloud::NetApp::V1::CreateStoragePoolRequest.new
|
407
|
+
#
|
408
|
+
# # Call the create_storage_pool method.
|
409
|
+
# result = client.create_storage_pool request
|
410
|
+
#
|
411
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
412
|
+
# # check the status of an operation, cancel it, or wait for results.
|
413
|
+
# # Here is how to wait for a response.
|
414
|
+
# result.wait_until_done! timeout: 60
|
415
|
+
# if result.response?
|
416
|
+
# p result.response
|
417
|
+
# else
|
418
|
+
# puts "No response received."
|
419
|
+
# end
|
420
|
+
#
|
377
421
|
def create_storage_pool request, options = nil
|
378
422
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
379
423
|
|
@@ -437,6 +481,22 @@ module Google
|
|
437
481
|
# @return [::Google::Cloud::NetApp::V1::StoragePool]
|
438
482
|
#
|
439
483
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
484
|
+
#
|
485
|
+
# @example Basic example
|
486
|
+
# require "google/cloud/netapp/v1"
|
487
|
+
#
|
488
|
+
# # Create a client object. The client can be reused for multiple calls.
|
489
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
490
|
+
#
|
491
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
492
|
+
# request = Google::Cloud::NetApp::V1::GetStoragePoolRequest.new
|
493
|
+
#
|
494
|
+
# # Call the get_storage_pool method.
|
495
|
+
# result = client.get_storage_pool request
|
496
|
+
#
|
497
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::StoragePool.
|
498
|
+
# p result
|
499
|
+
#
|
440
500
|
def get_storage_pool request, options = nil
|
441
501
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
442
502
|
|
@@ -505,6 +565,29 @@ module Google
|
|
505
565
|
# @return [::Gapic::Operation]
|
506
566
|
#
|
507
567
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
568
|
+
#
|
569
|
+
# @example Basic example
|
570
|
+
# require "google/cloud/netapp/v1"
|
571
|
+
#
|
572
|
+
# # Create a client object. The client can be reused for multiple calls.
|
573
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
574
|
+
#
|
575
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
576
|
+
# request = Google::Cloud::NetApp::V1::UpdateStoragePoolRequest.new
|
577
|
+
#
|
578
|
+
# # Call the update_storage_pool method.
|
579
|
+
# result = client.update_storage_pool request
|
580
|
+
#
|
581
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
582
|
+
# # check the status of an operation, cancel it, or wait for results.
|
583
|
+
# # Here is how to wait for a response.
|
584
|
+
# result.wait_until_done! timeout: 60
|
585
|
+
# if result.response?
|
586
|
+
# p result.response
|
587
|
+
# else
|
588
|
+
# puts "No response received."
|
589
|
+
# end
|
590
|
+
#
|
508
591
|
def update_storage_pool request, options = nil
|
509
592
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
510
593
|
|
@@ -568,6 +651,29 @@ module Google
|
|
568
651
|
# @return [::Gapic::Operation]
|
569
652
|
#
|
570
653
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
654
|
+
#
|
655
|
+
# @example Basic example
|
656
|
+
# require "google/cloud/netapp/v1"
|
657
|
+
#
|
658
|
+
# # Create a client object. The client can be reused for multiple calls.
|
659
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
660
|
+
#
|
661
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
662
|
+
# request = Google::Cloud::NetApp::V1::DeleteStoragePoolRequest.new
|
663
|
+
#
|
664
|
+
# # Call the delete_storage_pool method.
|
665
|
+
# result = client.delete_storage_pool request
|
666
|
+
#
|
667
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
668
|
+
# # check the status of an operation, cancel it, or wait for results.
|
669
|
+
# # Here is how to wait for a response.
|
670
|
+
# result.wait_until_done! timeout: 60
|
671
|
+
# if result.response?
|
672
|
+
# p result.response
|
673
|
+
# else
|
674
|
+
# puts "No response received."
|
675
|
+
# end
|
676
|
+
#
|
571
677
|
def delete_storage_pool request, options = nil
|
572
678
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
573
679
|
|
@@ -640,6 +746,26 @@ module Google
|
|
640
746
|
# @return [::Google::Cloud::NetApp::V1::ListVolumesResponse]
|
641
747
|
#
|
642
748
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
749
|
+
#
|
750
|
+
# @example Basic example
|
751
|
+
# require "google/cloud/netapp/v1"
|
752
|
+
#
|
753
|
+
# # Create a client object. The client can be reused for multiple calls.
|
754
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
755
|
+
#
|
756
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
757
|
+
# request = Google::Cloud::NetApp::V1::ListVolumesRequest.new
|
758
|
+
#
|
759
|
+
# # Call the list_volumes method.
|
760
|
+
# result = client.list_volumes request
|
761
|
+
#
|
762
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
763
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
764
|
+
# result.each do |item|
|
765
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::Volume.
|
766
|
+
# p item
|
767
|
+
# end
|
768
|
+
#
|
643
769
|
def list_volumes request, options = nil
|
644
770
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
645
771
|
|
@@ -702,6 +828,22 @@ module Google
|
|
702
828
|
# @return [::Google::Cloud::NetApp::V1::Volume]
|
703
829
|
#
|
704
830
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
831
|
+
#
|
832
|
+
# @example Basic example
|
833
|
+
# require "google/cloud/netapp/v1"
|
834
|
+
#
|
835
|
+
# # Create a client object. The client can be reused for multiple calls.
|
836
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
837
|
+
#
|
838
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
839
|
+
# request = Google::Cloud::NetApp::V1::GetVolumeRequest.new
|
840
|
+
#
|
841
|
+
# # Call the get_volume method.
|
842
|
+
# result = client.get_volume request
|
843
|
+
#
|
844
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::Volume.
|
845
|
+
# p result
|
846
|
+
#
|
705
847
|
def get_volume request, options = nil
|
706
848
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
707
849
|
|
@@ -770,6 +912,29 @@ module Google
|
|
770
912
|
# @return [::Gapic::Operation]
|
771
913
|
#
|
772
914
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
915
|
+
#
|
916
|
+
# @example Basic example
|
917
|
+
# require "google/cloud/netapp/v1"
|
918
|
+
#
|
919
|
+
# # Create a client object. The client can be reused for multiple calls.
|
920
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
921
|
+
#
|
922
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
923
|
+
# request = Google::Cloud::NetApp::V1::CreateVolumeRequest.new
|
924
|
+
#
|
925
|
+
# # Call the create_volume method.
|
926
|
+
# result = client.create_volume request
|
927
|
+
#
|
928
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
929
|
+
# # check the status of an operation, cancel it, or wait for results.
|
930
|
+
# # Here is how to wait for a response.
|
931
|
+
# result.wait_until_done! timeout: 60
|
932
|
+
# if result.response?
|
933
|
+
# p result.response
|
934
|
+
# else
|
935
|
+
# puts "No response received."
|
936
|
+
# end
|
937
|
+
#
|
773
938
|
def create_volume request, options = nil
|
774
939
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
775
940
|
|
@@ -839,6 +1004,29 @@ module Google
|
|
839
1004
|
# @return [::Gapic::Operation]
|
840
1005
|
#
|
841
1006
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1007
|
+
#
|
1008
|
+
# @example Basic example
|
1009
|
+
# require "google/cloud/netapp/v1"
|
1010
|
+
#
|
1011
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1012
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1013
|
+
#
|
1014
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1015
|
+
# request = Google::Cloud::NetApp::V1::UpdateVolumeRequest.new
|
1016
|
+
#
|
1017
|
+
# # Call the update_volume method.
|
1018
|
+
# result = client.update_volume request
|
1019
|
+
#
|
1020
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1021
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1022
|
+
# # Here is how to wait for a response.
|
1023
|
+
# result.wait_until_done! timeout: 60
|
1024
|
+
# if result.response?
|
1025
|
+
# p result.response
|
1026
|
+
# else
|
1027
|
+
# puts "No response received."
|
1028
|
+
# end
|
1029
|
+
#
|
842
1030
|
def update_volume request, options = nil
|
843
1031
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
844
1032
|
|
@@ -906,6 +1094,29 @@ module Google
|
|
906
1094
|
# @return [::Gapic::Operation]
|
907
1095
|
#
|
908
1096
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1097
|
+
#
|
1098
|
+
# @example Basic example
|
1099
|
+
# require "google/cloud/netapp/v1"
|
1100
|
+
#
|
1101
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1102
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1103
|
+
#
|
1104
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1105
|
+
# request = Google::Cloud::NetApp::V1::DeleteVolumeRequest.new
|
1106
|
+
#
|
1107
|
+
# # Call the delete_volume method.
|
1108
|
+
# result = client.delete_volume request
|
1109
|
+
#
|
1110
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1111
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1112
|
+
# # Here is how to wait for a response.
|
1113
|
+
# result.wait_until_done! timeout: 60
|
1114
|
+
# if result.response?
|
1115
|
+
# p result.response
|
1116
|
+
# else
|
1117
|
+
# puts "No response received."
|
1118
|
+
# end
|
1119
|
+
#
|
909
1120
|
def delete_volume request, options = nil
|
910
1121
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
911
1122
|
|
@@ -976,6 +1187,29 @@ module Google
|
|
976
1187
|
# @return [::Gapic::Operation]
|
977
1188
|
#
|
978
1189
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1190
|
+
#
|
1191
|
+
# @example Basic example
|
1192
|
+
# require "google/cloud/netapp/v1"
|
1193
|
+
#
|
1194
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1195
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1196
|
+
#
|
1197
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1198
|
+
# request = Google::Cloud::NetApp::V1::RevertVolumeRequest.new
|
1199
|
+
#
|
1200
|
+
# # Call the revert_volume method.
|
1201
|
+
# result = client.revert_volume request
|
1202
|
+
#
|
1203
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1204
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1205
|
+
# # Here is how to wait for a response.
|
1206
|
+
# result.wait_until_done! timeout: 60
|
1207
|
+
# if result.response?
|
1208
|
+
# p result.response
|
1209
|
+
# else
|
1210
|
+
# puts "No response received."
|
1211
|
+
# end
|
1212
|
+
#
|
979
1213
|
def revert_volume request, options = nil
|
980
1214
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
981
1215
|
|
@@ -1050,6 +1284,26 @@ module Google
|
|
1050
1284
|
# @return [::Google::Cloud::NetApp::V1::ListSnapshotsResponse]
|
1051
1285
|
#
|
1052
1286
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1287
|
+
#
|
1288
|
+
# @example Basic example
|
1289
|
+
# require "google/cloud/netapp/v1"
|
1290
|
+
#
|
1291
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1292
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1293
|
+
#
|
1294
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1295
|
+
# request = Google::Cloud::NetApp::V1::ListSnapshotsRequest.new
|
1296
|
+
#
|
1297
|
+
# # Call the list_snapshots method.
|
1298
|
+
# result = client.list_snapshots request
|
1299
|
+
#
|
1300
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1301
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1302
|
+
# result.each do |item|
|
1303
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::Snapshot.
|
1304
|
+
# p item
|
1305
|
+
# end
|
1306
|
+
#
|
1053
1307
|
def list_snapshots request, options = nil
|
1054
1308
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1055
1309
|
|
@@ -1113,6 +1367,22 @@ module Google
|
|
1113
1367
|
# @return [::Google::Cloud::NetApp::V1::Snapshot]
|
1114
1368
|
#
|
1115
1369
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1370
|
+
#
|
1371
|
+
# @example Basic example
|
1372
|
+
# require "google/cloud/netapp/v1"
|
1373
|
+
#
|
1374
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1375
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1376
|
+
#
|
1377
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1378
|
+
# request = Google::Cloud::NetApp::V1::GetSnapshotRequest.new
|
1379
|
+
#
|
1380
|
+
# # Call the get_snapshot method.
|
1381
|
+
# result = client.get_snapshot request
|
1382
|
+
#
|
1383
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::Snapshot.
|
1384
|
+
# p result
|
1385
|
+
#
|
1116
1386
|
def get_snapshot request, options = nil
|
1117
1387
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1118
1388
|
|
@@ -1182,6 +1452,29 @@ module Google
|
|
1182
1452
|
# @return [::Gapic::Operation]
|
1183
1453
|
#
|
1184
1454
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1455
|
+
#
|
1456
|
+
# @example Basic example
|
1457
|
+
# require "google/cloud/netapp/v1"
|
1458
|
+
#
|
1459
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1460
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1461
|
+
#
|
1462
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1463
|
+
# request = Google::Cloud::NetApp::V1::CreateSnapshotRequest.new
|
1464
|
+
#
|
1465
|
+
# # Call the create_snapshot method.
|
1466
|
+
# result = client.create_snapshot request
|
1467
|
+
#
|
1468
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1469
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1470
|
+
# # Here is how to wait for a response.
|
1471
|
+
# result.wait_until_done! timeout: 60
|
1472
|
+
# if result.response?
|
1473
|
+
# p result.response
|
1474
|
+
# else
|
1475
|
+
# puts "No response received."
|
1476
|
+
# end
|
1477
|
+
#
|
1185
1478
|
def create_snapshot request, options = nil
|
1186
1479
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1187
1480
|
|
@@ -1246,6 +1539,29 @@ module Google
|
|
1246
1539
|
# @return [::Gapic::Operation]
|
1247
1540
|
#
|
1248
1541
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1542
|
+
#
|
1543
|
+
# @example Basic example
|
1544
|
+
# require "google/cloud/netapp/v1"
|
1545
|
+
#
|
1546
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1547
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1548
|
+
#
|
1549
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1550
|
+
# request = Google::Cloud::NetApp::V1::DeleteSnapshotRequest.new
|
1551
|
+
#
|
1552
|
+
# # Call the delete_snapshot method.
|
1553
|
+
# result = client.delete_snapshot request
|
1554
|
+
#
|
1555
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1556
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1557
|
+
# # Here is how to wait for a response.
|
1558
|
+
# result.wait_until_done! timeout: 60
|
1559
|
+
# if result.response?
|
1560
|
+
# p result.response
|
1561
|
+
# else
|
1562
|
+
# puts "No response received."
|
1563
|
+
# end
|
1564
|
+
#
|
1249
1565
|
def delete_snapshot request, options = nil
|
1250
1566
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1251
1567
|
|
@@ -1312,6 +1628,29 @@ module Google
|
|
1312
1628
|
# @return [::Gapic::Operation]
|
1313
1629
|
#
|
1314
1630
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1631
|
+
#
|
1632
|
+
# @example Basic example
|
1633
|
+
# require "google/cloud/netapp/v1"
|
1634
|
+
#
|
1635
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1636
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1637
|
+
#
|
1638
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1639
|
+
# request = Google::Cloud::NetApp::V1::UpdateSnapshotRequest.new
|
1640
|
+
#
|
1641
|
+
# # Call the update_snapshot method.
|
1642
|
+
# result = client.update_snapshot request
|
1643
|
+
#
|
1644
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1645
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1646
|
+
# # Here is how to wait for a response.
|
1647
|
+
# result.wait_until_done! timeout: 60
|
1648
|
+
# if result.response?
|
1649
|
+
# p result.response
|
1650
|
+
# else
|
1651
|
+
# puts "No response received."
|
1652
|
+
# end
|
1653
|
+
#
|
1315
1654
|
def update_snapshot request, options = nil
|
1316
1655
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1317
1656
|
|
@@ -1384,6 +1723,26 @@ module Google
|
|
1384
1723
|
# @return [::Google::Cloud::NetApp::V1::ListActiveDirectoriesResponse]
|
1385
1724
|
#
|
1386
1725
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1726
|
+
#
|
1727
|
+
# @example Basic example
|
1728
|
+
# require "google/cloud/netapp/v1"
|
1729
|
+
#
|
1730
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1731
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1732
|
+
#
|
1733
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1734
|
+
# request = Google::Cloud::NetApp::V1::ListActiveDirectoriesRequest.new
|
1735
|
+
#
|
1736
|
+
# # Call the list_active_directories method.
|
1737
|
+
# result = client.list_active_directories request
|
1738
|
+
#
|
1739
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1740
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1741
|
+
# result.each do |item|
|
1742
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::ActiveDirectory.
|
1743
|
+
# p item
|
1744
|
+
# end
|
1745
|
+
#
|
1387
1746
|
def list_active_directories request, options = nil
|
1388
1747
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1389
1748
|
|
@@ -1446,6 +1805,22 @@ module Google
|
|
1446
1805
|
# @return [::Google::Cloud::NetApp::V1::ActiveDirectory]
|
1447
1806
|
#
|
1448
1807
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1808
|
+
#
|
1809
|
+
# @example Basic example
|
1810
|
+
# require "google/cloud/netapp/v1"
|
1811
|
+
#
|
1812
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1813
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1814
|
+
#
|
1815
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1816
|
+
# request = Google::Cloud::NetApp::V1::GetActiveDirectoryRequest.new
|
1817
|
+
#
|
1818
|
+
# # Call the get_active_directory method.
|
1819
|
+
# result = client.get_active_directory request
|
1820
|
+
#
|
1821
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::ActiveDirectory.
|
1822
|
+
# p result
|
1823
|
+
#
|
1449
1824
|
def get_active_directory request, options = nil
|
1450
1825
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1451
1826
|
|
@@ -1513,6 +1888,29 @@ module Google
|
|
1513
1888
|
# @return [::Gapic::Operation]
|
1514
1889
|
#
|
1515
1890
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1891
|
+
#
|
1892
|
+
# @example Basic example
|
1893
|
+
# require "google/cloud/netapp/v1"
|
1894
|
+
#
|
1895
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1896
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1897
|
+
#
|
1898
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1899
|
+
# request = Google::Cloud::NetApp::V1::CreateActiveDirectoryRequest.new
|
1900
|
+
#
|
1901
|
+
# # Call the create_active_directory method.
|
1902
|
+
# result = client.create_active_directory request
|
1903
|
+
#
|
1904
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1905
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1906
|
+
# # Here is how to wait for a response.
|
1907
|
+
# result.wait_until_done! timeout: 60
|
1908
|
+
# if result.response?
|
1909
|
+
# p result.response
|
1910
|
+
# else
|
1911
|
+
# puts "No response received."
|
1912
|
+
# end
|
1913
|
+
#
|
1516
1914
|
def create_active_directory request, options = nil
|
1517
1915
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1518
1916
|
|
@@ -1582,6 +1980,29 @@ module Google
|
|
1582
1980
|
# @return [::Gapic::Operation]
|
1583
1981
|
#
|
1584
1982
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1983
|
+
#
|
1984
|
+
# @example Basic example
|
1985
|
+
# require "google/cloud/netapp/v1"
|
1986
|
+
#
|
1987
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1988
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
1989
|
+
#
|
1990
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1991
|
+
# request = Google::Cloud::NetApp::V1::UpdateActiveDirectoryRequest.new
|
1992
|
+
#
|
1993
|
+
# # Call the update_active_directory method.
|
1994
|
+
# result = client.update_active_directory request
|
1995
|
+
#
|
1996
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1997
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1998
|
+
# # Here is how to wait for a response.
|
1999
|
+
# result.wait_until_done! timeout: 60
|
2000
|
+
# if result.response?
|
2001
|
+
# p result.response
|
2002
|
+
# else
|
2003
|
+
# puts "No response received."
|
2004
|
+
# end
|
2005
|
+
#
|
1585
2006
|
def update_active_directory request, options = nil
|
1586
2007
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1587
2008
|
|
@@ -1645,6 +2066,29 @@ module Google
|
|
1645
2066
|
# @return [::Gapic::Operation]
|
1646
2067
|
#
|
1647
2068
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2069
|
+
#
|
2070
|
+
# @example Basic example
|
2071
|
+
# require "google/cloud/netapp/v1"
|
2072
|
+
#
|
2073
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2074
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2075
|
+
#
|
2076
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2077
|
+
# request = Google::Cloud::NetApp::V1::DeleteActiveDirectoryRequest.new
|
2078
|
+
#
|
2079
|
+
# # Call the delete_active_directory method.
|
2080
|
+
# result = client.delete_active_directory request
|
2081
|
+
#
|
2082
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2083
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2084
|
+
# # Here is how to wait for a response.
|
2085
|
+
# result.wait_until_done! timeout: 60
|
2086
|
+
# if result.response?
|
2087
|
+
# p result.response
|
2088
|
+
# else
|
2089
|
+
# puts "No response received."
|
2090
|
+
# end
|
2091
|
+
#
|
1648
2092
|
def delete_active_directory request, options = nil
|
1649
2093
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1650
2094
|
|
@@ -1717,6 +2161,26 @@ module Google
|
|
1717
2161
|
# @return [::Google::Cloud::NetApp::V1::ListKmsConfigsResponse]
|
1718
2162
|
#
|
1719
2163
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2164
|
+
#
|
2165
|
+
# @example Basic example
|
2166
|
+
# require "google/cloud/netapp/v1"
|
2167
|
+
#
|
2168
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2169
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2170
|
+
#
|
2171
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2172
|
+
# request = Google::Cloud::NetApp::V1::ListKmsConfigsRequest.new
|
2173
|
+
#
|
2174
|
+
# # Call the list_kms_configs method.
|
2175
|
+
# result = client.list_kms_configs request
|
2176
|
+
#
|
2177
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2178
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2179
|
+
# result.each do |item|
|
2180
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::KmsConfig.
|
2181
|
+
# p item
|
2182
|
+
# end
|
2183
|
+
#
|
1720
2184
|
def list_kms_configs request, options = nil
|
1721
2185
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1722
2186
|
|
@@ -1785,6 +2249,29 @@ module Google
|
|
1785
2249
|
# @return [::Gapic::Operation]
|
1786
2250
|
#
|
1787
2251
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2252
|
+
#
|
2253
|
+
# @example Basic example
|
2254
|
+
# require "google/cloud/netapp/v1"
|
2255
|
+
#
|
2256
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2257
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2258
|
+
#
|
2259
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2260
|
+
# request = Google::Cloud::NetApp::V1::CreateKmsConfigRequest.new
|
2261
|
+
#
|
2262
|
+
# # Call the create_kms_config method.
|
2263
|
+
# result = client.create_kms_config request
|
2264
|
+
#
|
2265
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2266
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2267
|
+
# # Here is how to wait for a response.
|
2268
|
+
# result.wait_until_done! timeout: 60
|
2269
|
+
# if result.response?
|
2270
|
+
# p result.response
|
2271
|
+
# else
|
2272
|
+
# puts "No response received."
|
2273
|
+
# end
|
2274
|
+
#
|
1788
2275
|
def create_kms_config request, options = nil
|
1789
2276
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1790
2277
|
|
@@ -1848,6 +2335,22 @@ module Google
|
|
1848
2335
|
# @return [::Google::Cloud::NetApp::V1::KmsConfig]
|
1849
2336
|
#
|
1850
2337
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2338
|
+
#
|
2339
|
+
# @example Basic example
|
2340
|
+
# require "google/cloud/netapp/v1"
|
2341
|
+
#
|
2342
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2343
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2344
|
+
#
|
2345
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2346
|
+
# request = Google::Cloud::NetApp::V1::GetKmsConfigRequest.new
|
2347
|
+
#
|
2348
|
+
# # Call the get_kms_config method.
|
2349
|
+
# result = client.get_kms_config request
|
2350
|
+
#
|
2351
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::KmsConfig.
|
2352
|
+
# p result
|
2353
|
+
#
|
1851
2354
|
def get_kms_config request, options = nil
|
1852
2355
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1853
2356
|
|
@@ -1916,6 +2419,29 @@ module Google
|
|
1916
2419
|
# @return [::Gapic::Operation]
|
1917
2420
|
#
|
1918
2421
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2422
|
+
#
|
2423
|
+
# @example Basic example
|
2424
|
+
# require "google/cloud/netapp/v1"
|
2425
|
+
#
|
2426
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2427
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2428
|
+
#
|
2429
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2430
|
+
# request = Google::Cloud::NetApp::V1::UpdateKmsConfigRequest.new
|
2431
|
+
#
|
2432
|
+
# # Call the update_kms_config method.
|
2433
|
+
# result = client.update_kms_config request
|
2434
|
+
#
|
2435
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2436
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2437
|
+
# # Here is how to wait for a response.
|
2438
|
+
# result.wait_until_done! timeout: 60
|
2439
|
+
# if result.response?
|
2440
|
+
# p result.response
|
2441
|
+
# else
|
2442
|
+
# puts "No response received."
|
2443
|
+
# end
|
2444
|
+
#
|
1919
2445
|
def update_kms_config request, options = nil
|
1920
2446
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1921
2447
|
|
@@ -1980,6 +2506,29 @@ module Google
|
|
1980
2506
|
# @return [::Gapic::Operation]
|
1981
2507
|
#
|
1982
2508
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2509
|
+
#
|
2510
|
+
# @example Basic example
|
2511
|
+
# require "google/cloud/netapp/v1"
|
2512
|
+
#
|
2513
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2514
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2515
|
+
#
|
2516
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2517
|
+
# request = Google::Cloud::NetApp::V1::EncryptVolumesRequest.new
|
2518
|
+
#
|
2519
|
+
# # Call the encrypt_volumes method.
|
2520
|
+
# result = client.encrypt_volumes request
|
2521
|
+
#
|
2522
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2523
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2524
|
+
# # Here is how to wait for a response.
|
2525
|
+
# result.wait_until_done! timeout: 60
|
2526
|
+
# if result.response?
|
2527
|
+
# p result.response
|
2528
|
+
# else
|
2529
|
+
# puts "No response received."
|
2530
|
+
# end
|
2531
|
+
#
|
1983
2532
|
def encrypt_volumes request, options = nil
|
1984
2533
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1985
2534
|
|
@@ -2043,6 +2592,22 @@ module Google
|
|
2043
2592
|
# @return [::Google::Cloud::NetApp::V1::VerifyKmsConfigResponse]
|
2044
2593
|
#
|
2045
2594
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2595
|
+
#
|
2596
|
+
# @example Basic example
|
2597
|
+
# require "google/cloud/netapp/v1"
|
2598
|
+
#
|
2599
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2600
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2601
|
+
#
|
2602
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2603
|
+
# request = Google::Cloud::NetApp::V1::VerifyKmsConfigRequest.new
|
2604
|
+
#
|
2605
|
+
# # Call the verify_kms_config method.
|
2606
|
+
# result = client.verify_kms_config request
|
2607
|
+
#
|
2608
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::VerifyKmsConfigResponse.
|
2609
|
+
# p result
|
2610
|
+
#
|
2046
2611
|
def verify_kms_config request, options = nil
|
2047
2612
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2048
2613
|
|
@@ -2105,6 +2670,29 @@ module Google
|
|
2105
2670
|
# @return [::Gapic::Operation]
|
2106
2671
|
#
|
2107
2672
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2673
|
+
#
|
2674
|
+
# @example Basic example
|
2675
|
+
# require "google/cloud/netapp/v1"
|
2676
|
+
#
|
2677
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2678
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2679
|
+
#
|
2680
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2681
|
+
# request = Google::Cloud::NetApp::V1::DeleteKmsConfigRequest.new
|
2682
|
+
#
|
2683
|
+
# # Call the delete_kms_config method.
|
2684
|
+
# result = client.delete_kms_config request
|
2685
|
+
#
|
2686
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2687
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2688
|
+
# # Here is how to wait for a response.
|
2689
|
+
# result.wait_until_done! timeout: 60
|
2690
|
+
# if result.response?
|
2691
|
+
# p result.response
|
2692
|
+
# else
|
2693
|
+
# puts "No response received."
|
2694
|
+
# end
|
2695
|
+
#
|
2108
2696
|
def delete_kms_config request, options = nil
|
2109
2697
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2110
2698
|
|
@@ -2179,6 +2767,26 @@ module Google
|
|
2179
2767
|
# @return [::Google::Cloud::NetApp::V1::ListReplicationsResponse]
|
2180
2768
|
#
|
2181
2769
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2770
|
+
#
|
2771
|
+
# @example Basic example
|
2772
|
+
# require "google/cloud/netapp/v1"
|
2773
|
+
#
|
2774
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2775
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2776
|
+
#
|
2777
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2778
|
+
# request = Google::Cloud::NetApp::V1::ListReplicationsRequest.new
|
2779
|
+
#
|
2780
|
+
# # Call the list_replications method.
|
2781
|
+
# result = client.list_replications request
|
2782
|
+
#
|
2783
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2784
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2785
|
+
# result.each do |item|
|
2786
|
+
# # Each element is of type ::Google::Cloud::NetApp::V1::Replication.
|
2787
|
+
# p item
|
2788
|
+
# end
|
2789
|
+
#
|
2182
2790
|
def list_replications request, options = nil
|
2183
2791
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2184
2792
|
|
@@ -2242,6 +2850,22 @@ module Google
|
|
2242
2850
|
# @return [::Google::Cloud::NetApp::V1::Replication]
|
2243
2851
|
#
|
2244
2852
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2853
|
+
#
|
2854
|
+
# @example Basic example
|
2855
|
+
# require "google/cloud/netapp/v1"
|
2856
|
+
#
|
2857
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2858
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2859
|
+
#
|
2860
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2861
|
+
# request = Google::Cloud::NetApp::V1::GetReplicationRequest.new
|
2862
|
+
#
|
2863
|
+
# # Call the get_replication method.
|
2864
|
+
# result = client.get_replication request
|
2865
|
+
#
|
2866
|
+
# # The returned object is of type Google::Cloud::NetApp::V1::Replication.
|
2867
|
+
# p result
|
2868
|
+
#
|
2245
2869
|
def get_replication request, options = nil
|
2246
2870
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2247
2871
|
|
@@ -2311,6 +2935,29 @@ module Google
|
|
2311
2935
|
# @return [::Gapic::Operation]
|
2312
2936
|
#
|
2313
2937
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2938
|
+
#
|
2939
|
+
# @example Basic example
|
2940
|
+
# require "google/cloud/netapp/v1"
|
2941
|
+
#
|
2942
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2943
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
2944
|
+
#
|
2945
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2946
|
+
# request = Google::Cloud::NetApp::V1::CreateReplicationRequest.new
|
2947
|
+
#
|
2948
|
+
# # Call the create_replication method.
|
2949
|
+
# result = client.create_replication request
|
2950
|
+
#
|
2951
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2952
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2953
|
+
# # Here is how to wait for a response.
|
2954
|
+
# result.wait_until_done! timeout: 60
|
2955
|
+
# if result.response?
|
2956
|
+
# p result.response
|
2957
|
+
# else
|
2958
|
+
# puts "No response received."
|
2959
|
+
# end
|
2960
|
+
#
|
2314
2961
|
def create_replication request, options = nil
|
2315
2962
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2316
2963
|
|
@@ -2375,6 +3022,29 @@ module Google
|
|
2375
3022
|
# @return [::Gapic::Operation]
|
2376
3023
|
#
|
2377
3024
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3025
|
+
#
|
3026
|
+
# @example Basic example
|
3027
|
+
# require "google/cloud/netapp/v1"
|
3028
|
+
#
|
3029
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3030
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3031
|
+
#
|
3032
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3033
|
+
# request = Google::Cloud::NetApp::V1::DeleteReplicationRequest.new
|
3034
|
+
#
|
3035
|
+
# # Call the delete_replication method.
|
3036
|
+
# result = client.delete_replication request
|
3037
|
+
#
|
3038
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3039
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3040
|
+
# # Here is how to wait for a response.
|
3041
|
+
# result.wait_until_done! timeout: 60
|
3042
|
+
# if result.response?
|
3043
|
+
# p result.response
|
3044
|
+
# else
|
3045
|
+
# puts "No response received."
|
3046
|
+
# end
|
3047
|
+
#
|
2378
3048
|
def delete_replication request, options = nil
|
2379
3049
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2380
3050
|
|
@@ -2441,6 +3111,29 @@ module Google
|
|
2441
3111
|
# @return [::Gapic::Operation]
|
2442
3112
|
#
|
2443
3113
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3114
|
+
#
|
3115
|
+
# @example Basic example
|
3116
|
+
# require "google/cloud/netapp/v1"
|
3117
|
+
#
|
3118
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3119
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3120
|
+
#
|
3121
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3122
|
+
# request = Google::Cloud::NetApp::V1::UpdateReplicationRequest.new
|
3123
|
+
#
|
3124
|
+
# # Call the update_replication method.
|
3125
|
+
# result = client.update_replication request
|
3126
|
+
#
|
3127
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3128
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3129
|
+
# # Here is how to wait for a response.
|
3130
|
+
# result.wait_until_done! timeout: 60
|
3131
|
+
# if result.response?
|
3132
|
+
# p result.response
|
3133
|
+
# else
|
3134
|
+
# puts "No response received."
|
3135
|
+
# end
|
3136
|
+
#
|
2444
3137
|
def update_replication request, options = nil
|
2445
3138
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2446
3139
|
|
@@ -2512,6 +3205,29 @@ module Google
|
|
2512
3205
|
# @return [::Gapic::Operation]
|
2513
3206
|
#
|
2514
3207
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3208
|
+
#
|
3209
|
+
# @example Basic example
|
3210
|
+
# require "google/cloud/netapp/v1"
|
3211
|
+
#
|
3212
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3213
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3214
|
+
#
|
3215
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3216
|
+
# request = Google::Cloud::NetApp::V1::StopReplicationRequest.new
|
3217
|
+
#
|
3218
|
+
# # Call the stop_replication method.
|
3219
|
+
# result = client.stop_replication request
|
3220
|
+
#
|
3221
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3222
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3223
|
+
# # Here is how to wait for a response.
|
3224
|
+
# result.wait_until_done! timeout: 60
|
3225
|
+
# if result.response?
|
3226
|
+
# p result.response
|
3227
|
+
# else
|
3228
|
+
# puts "No response received."
|
3229
|
+
# end
|
3230
|
+
#
|
2515
3231
|
def stop_replication request, options = nil
|
2516
3232
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2517
3233
|
|
@@ -2576,6 +3292,29 @@ module Google
|
|
2576
3292
|
# @return [::Gapic::Operation]
|
2577
3293
|
#
|
2578
3294
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3295
|
+
#
|
3296
|
+
# @example Basic example
|
3297
|
+
# require "google/cloud/netapp/v1"
|
3298
|
+
#
|
3299
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3300
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3301
|
+
#
|
3302
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3303
|
+
# request = Google::Cloud::NetApp::V1::ResumeReplicationRequest.new
|
3304
|
+
#
|
3305
|
+
# # Call the resume_replication method.
|
3306
|
+
# result = client.resume_replication request
|
3307
|
+
#
|
3308
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3309
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3310
|
+
# # Here is how to wait for a response.
|
3311
|
+
# result.wait_until_done! timeout: 60
|
3312
|
+
# if result.response?
|
3313
|
+
# p result.response
|
3314
|
+
# else
|
3315
|
+
# puts "No response received."
|
3316
|
+
# end
|
3317
|
+
#
|
2579
3318
|
def resume_replication request, options = nil
|
2580
3319
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2581
3320
|
|
@@ -2641,6 +3380,29 @@ module Google
|
|
2641
3380
|
# @return [::Gapic::Operation]
|
2642
3381
|
#
|
2643
3382
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3383
|
+
#
|
3384
|
+
# @example Basic example
|
3385
|
+
# require "google/cloud/netapp/v1"
|
3386
|
+
#
|
3387
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3388
|
+
# client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
|
3389
|
+
#
|
3390
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3391
|
+
# request = Google::Cloud::NetApp::V1::ReverseReplicationDirectionRequest.new
|
3392
|
+
#
|
3393
|
+
# # Call the reverse_replication_direction method.
|
3394
|
+
# result = client.reverse_replication_direction request
|
3395
|
+
#
|
3396
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3397
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3398
|
+
# # Here is how to wait for a response.
|
3399
|
+
# result.wait_until_done! timeout: 60
|
3400
|
+
# if result.response?
|
3401
|
+
# p result.response
|
3402
|
+
# else
|
3403
|
+
# puts "No response received."
|
3404
|
+
# end
|
3405
|
+
#
|
2644
3406
|
def reverse_replication_direction request, options = nil
|
2645
3407
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2646
3408
|
|
@@ -2765,6 +3527,13 @@ module Google
|
|
2765
3527
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2766
3528
|
config_attr :quota_project, nil, ::String, nil
|
2767
3529
|
|
3530
|
+
# @private
|
3531
|
+
# Overrides for http bindings for the RPCs of this service
|
3532
|
+
# are only used when this service is used as mixin, and only
|
3533
|
+
# by the host service.
|
3534
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
3535
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
3536
|
+
|
2768
3537
|
# @private
|
2769
3538
|
def initialize parent_config = nil
|
2770
3539
|
@parent_config = parent_config unless parent_config.nil?
|