google-cloud-bare_metal_solution-v2 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/bare_metal_solution/v2/bare_metal_solution/client.rb +10 -1
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/operations.rb +10 -1
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/client.rb +852 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/operations.rb +75 -0
- data/lib/google/cloud/bare_metal_solution/v2/version.rb +1 -1
- data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_pb.rb +6 -2
- data/lib/google/cloud/baremetalsolution/v2/common_pb.rb +1 -6
- data/lib/google/cloud/baremetalsolution/v2/instance_pb.rb +4 -2
- data/lib/google/cloud/baremetalsolution/v2/provisioning_pb.rb +1 -4
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/baremetalsolution.rb +63 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/common.rb +0 -31
- data/proto_docs/google/cloud/baremetalsolution/v2/instance.rb +50 -6
- data/proto_docs/google/cloud/baremetalsolution/v2/provisioning.rb +0 -50
- metadata +6 -5
@@ -220,6 +220,26 @@ module Google
|
|
220
220
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse]
|
221
221
|
#
|
222
222
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
223
|
+
#
|
224
|
+
# @example Basic example
|
225
|
+
# require "google/cloud/bare_metal_solution/v2"
|
226
|
+
#
|
227
|
+
# # Create a client object. The client can be reused for multiple calls.
|
228
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
229
|
+
#
|
230
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
231
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListInstancesRequest.new
|
232
|
+
#
|
233
|
+
# # Call the list_instances method.
|
234
|
+
# result = client.list_instances request
|
235
|
+
#
|
236
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
237
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
238
|
+
# result.each do |item|
|
239
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::Instance.
|
240
|
+
# p item
|
241
|
+
# end
|
242
|
+
#
|
223
243
|
def list_instances request, options = nil
|
224
244
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
225
245
|
|
@@ -282,6 +302,22 @@ module Google
|
|
282
302
|
# @return [::Google::Cloud::BareMetalSolution::V2::Instance]
|
283
303
|
#
|
284
304
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
305
|
+
#
|
306
|
+
# @example Basic example
|
307
|
+
# require "google/cloud/bare_metal_solution/v2"
|
308
|
+
#
|
309
|
+
# # Create a client object. The client can be reused for multiple calls.
|
310
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
311
|
+
#
|
312
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
313
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetInstanceRequest.new
|
314
|
+
#
|
315
|
+
# # Call the get_instance method.
|
316
|
+
# result = client.get_instance request
|
317
|
+
#
|
318
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Instance.
|
319
|
+
# p result
|
320
|
+
#
|
285
321
|
def get_instance request, options = nil
|
286
322
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
287
323
|
|
@@ -353,6 +389,29 @@ module Google
|
|
353
389
|
# @return [::Gapic::Operation]
|
354
390
|
#
|
355
391
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
392
|
+
#
|
393
|
+
# @example Basic example
|
394
|
+
# require "google/cloud/bare_metal_solution/v2"
|
395
|
+
#
|
396
|
+
# # Create a client object. The client can be reused for multiple calls.
|
397
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
398
|
+
#
|
399
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
400
|
+
# request = Google::Cloud::BareMetalSolution::V2::UpdateInstanceRequest.new
|
401
|
+
#
|
402
|
+
# # Call the update_instance method.
|
403
|
+
# result = client.update_instance request
|
404
|
+
#
|
405
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
406
|
+
# # check the status of an operation, cancel it, or wait for results.
|
407
|
+
# # Here is how to wait for a response.
|
408
|
+
# result.wait_until_done! timeout: 60
|
409
|
+
# if result.response?
|
410
|
+
# p result.response
|
411
|
+
# else
|
412
|
+
# puts "No response received."
|
413
|
+
# end
|
414
|
+
#
|
356
415
|
def update_instance request, options = nil
|
357
416
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
358
417
|
|
@@ -420,6 +479,22 @@ module Google
|
|
420
479
|
# @return [::Google::Cloud::BareMetalSolution::V2::Instance]
|
421
480
|
#
|
422
481
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
482
|
+
#
|
483
|
+
# @example Basic example
|
484
|
+
# require "google/cloud/bare_metal_solution/v2"
|
485
|
+
#
|
486
|
+
# # Create a client object. The client can be reused for multiple calls.
|
487
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
488
|
+
#
|
489
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
490
|
+
# request = Google::Cloud::BareMetalSolution::V2::RenameInstanceRequest.new
|
491
|
+
#
|
492
|
+
# # Call the rename_instance method.
|
493
|
+
# result = client.rename_instance request
|
494
|
+
#
|
495
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Instance.
|
496
|
+
# p result
|
497
|
+
#
|
423
498
|
def rename_instance request, options = nil
|
424
499
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
425
500
|
|
@@ -483,6 +558,29 @@ module Google
|
|
483
558
|
# @return [::Gapic::Operation]
|
484
559
|
#
|
485
560
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
561
|
+
#
|
562
|
+
# @example Basic example
|
563
|
+
# require "google/cloud/bare_metal_solution/v2"
|
564
|
+
#
|
565
|
+
# # Create a client object. The client can be reused for multiple calls.
|
566
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
567
|
+
#
|
568
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
569
|
+
# request = Google::Cloud::BareMetalSolution::V2::ResetInstanceRequest.new
|
570
|
+
#
|
571
|
+
# # Call the reset_instance method.
|
572
|
+
# result = client.reset_instance request
|
573
|
+
#
|
574
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
575
|
+
# # check the status of an operation, cancel it, or wait for results.
|
576
|
+
# # Here is how to wait for a response.
|
577
|
+
# result.wait_until_done! timeout: 60
|
578
|
+
# if result.response?
|
579
|
+
# p result.response
|
580
|
+
# else
|
581
|
+
# puts "No response received."
|
582
|
+
# end
|
583
|
+
#
|
486
584
|
def reset_instance request, options = nil
|
487
585
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
488
586
|
|
@@ -546,6 +644,29 @@ module Google
|
|
546
644
|
# @return [::Gapic::Operation]
|
547
645
|
#
|
548
646
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
647
|
+
#
|
648
|
+
# @example Basic example
|
649
|
+
# require "google/cloud/bare_metal_solution/v2"
|
650
|
+
#
|
651
|
+
# # Create a client object. The client can be reused for multiple calls.
|
652
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
653
|
+
#
|
654
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
655
|
+
# request = Google::Cloud::BareMetalSolution::V2::StartInstanceRequest.new
|
656
|
+
#
|
657
|
+
# # Call the start_instance method.
|
658
|
+
# result = client.start_instance request
|
659
|
+
#
|
660
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
661
|
+
# # check the status of an operation, cancel it, or wait for results.
|
662
|
+
# # Here is how to wait for a response.
|
663
|
+
# result.wait_until_done! timeout: 60
|
664
|
+
# if result.response?
|
665
|
+
# p result.response
|
666
|
+
# else
|
667
|
+
# puts "No response received."
|
668
|
+
# end
|
669
|
+
#
|
549
670
|
def start_instance request, options = nil
|
550
671
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
551
672
|
|
@@ -609,6 +730,29 @@ module Google
|
|
609
730
|
# @return [::Gapic::Operation]
|
610
731
|
#
|
611
732
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
733
|
+
#
|
734
|
+
# @example Basic example
|
735
|
+
# require "google/cloud/bare_metal_solution/v2"
|
736
|
+
#
|
737
|
+
# # Create a client object. The client can be reused for multiple calls.
|
738
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
739
|
+
#
|
740
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
741
|
+
# request = Google::Cloud::BareMetalSolution::V2::StopInstanceRequest.new
|
742
|
+
#
|
743
|
+
# # Call the stop_instance method.
|
744
|
+
# result = client.stop_instance request
|
745
|
+
#
|
746
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
747
|
+
# # check the status of an operation, cancel it, or wait for results.
|
748
|
+
# # Here is how to wait for a response.
|
749
|
+
# result.wait_until_done! timeout: 60
|
750
|
+
# if result.response?
|
751
|
+
# p result.response
|
752
|
+
# else
|
753
|
+
# puts "No response received."
|
754
|
+
# end
|
755
|
+
#
|
612
756
|
def stop_instance request, options = nil
|
613
757
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
614
758
|
|
@@ -672,6 +816,29 @@ module Google
|
|
672
816
|
# @return [::Gapic::Operation]
|
673
817
|
#
|
674
818
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
819
|
+
#
|
820
|
+
# @example Basic example
|
821
|
+
# require "google/cloud/bare_metal_solution/v2"
|
822
|
+
#
|
823
|
+
# # Create a client object. The client can be reused for multiple calls.
|
824
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
825
|
+
#
|
826
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
827
|
+
# request = Google::Cloud::BareMetalSolution::V2::EnableInteractiveSerialConsoleRequest.new
|
828
|
+
#
|
829
|
+
# # Call the enable_interactive_serial_console method.
|
830
|
+
# result = client.enable_interactive_serial_console request
|
831
|
+
#
|
832
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
833
|
+
# # check the status of an operation, cancel it, or wait for results.
|
834
|
+
# # Here is how to wait for a response.
|
835
|
+
# result.wait_until_done! timeout: 60
|
836
|
+
# if result.response?
|
837
|
+
# p result.response
|
838
|
+
# else
|
839
|
+
# puts "No response received."
|
840
|
+
# end
|
841
|
+
#
|
675
842
|
def enable_interactive_serial_console request, options = nil
|
676
843
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
677
844
|
|
@@ -735,6 +902,29 @@ module Google
|
|
735
902
|
# @return [::Gapic::Operation]
|
736
903
|
#
|
737
904
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
905
|
+
#
|
906
|
+
# @example Basic example
|
907
|
+
# require "google/cloud/bare_metal_solution/v2"
|
908
|
+
#
|
909
|
+
# # Create a client object. The client can be reused for multiple calls.
|
910
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
911
|
+
#
|
912
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
913
|
+
# request = Google::Cloud::BareMetalSolution::V2::DisableInteractiveSerialConsoleRequest.new
|
914
|
+
#
|
915
|
+
# # Call the disable_interactive_serial_console method.
|
916
|
+
# result = client.disable_interactive_serial_console request
|
917
|
+
#
|
918
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
919
|
+
# # check the status of an operation, cancel it, or wait for results.
|
920
|
+
# # Here is how to wait for a response.
|
921
|
+
# result.wait_until_done! timeout: 60
|
922
|
+
# if result.response?
|
923
|
+
# p result.response
|
924
|
+
# else
|
925
|
+
# puts "No response received."
|
926
|
+
# end
|
927
|
+
#
|
738
928
|
def disable_interactive_serial_console request, options = nil
|
739
929
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
740
930
|
|
@@ -802,6 +992,29 @@ module Google
|
|
802
992
|
# @return [::Gapic::Operation]
|
803
993
|
#
|
804
994
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
995
|
+
#
|
996
|
+
# @example Basic example
|
997
|
+
# require "google/cloud/bare_metal_solution/v2"
|
998
|
+
#
|
999
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1000
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1001
|
+
#
|
1002
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1003
|
+
# request = Google::Cloud::BareMetalSolution::V2::DetachLunRequest.new
|
1004
|
+
#
|
1005
|
+
# # Call the detach_lun method.
|
1006
|
+
# result = client.detach_lun request
|
1007
|
+
#
|
1008
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1009
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1010
|
+
# # Here is how to wait for a response.
|
1011
|
+
# result.wait_until_done! timeout: 60
|
1012
|
+
# if result.response?
|
1013
|
+
# p result.response
|
1014
|
+
# else
|
1015
|
+
# puts "No response received."
|
1016
|
+
# end
|
1017
|
+
#
|
805
1018
|
def detach_lun request, options = nil
|
806
1019
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
807
1020
|
|
@@ -871,6 +1084,26 @@ module Google
|
|
871
1084
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::SSHKey>]
|
872
1085
|
#
|
873
1086
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1087
|
+
#
|
1088
|
+
# @example Basic example
|
1089
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1090
|
+
#
|
1091
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1092
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1093
|
+
#
|
1094
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1095
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListSSHKeysRequest.new
|
1096
|
+
#
|
1097
|
+
# # Call the list_ssh_keys method.
|
1098
|
+
# result = client.list_ssh_keys request
|
1099
|
+
#
|
1100
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1101
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1102
|
+
# result.each do |item|
|
1103
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::SSHKey.
|
1104
|
+
# p item
|
1105
|
+
# end
|
1106
|
+
#
|
874
1107
|
def list_ssh_keys request, options = nil
|
875
1108
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
876
1109
|
|
@@ -943,6 +1176,22 @@ module Google
|
|
943
1176
|
# @return [::Google::Cloud::BareMetalSolution::V2::SSHKey]
|
944
1177
|
#
|
945
1178
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1179
|
+
#
|
1180
|
+
# @example Basic example
|
1181
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1182
|
+
#
|
1183
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1184
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1185
|
+
#
|
1186
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1187
|
+
# request = Google::Cloud::BareMetalSolution::V2::CreateSSHKeyRequest.new
|
1188
|
+
#
|
1189
|
+
# # Call the create_ssh_key method.
|
1190
|
+
# result = client.create_ssh_key request
|
1191
|
+
#
|
1192
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::SSHKey.
|
1193
|
+
# p result
|
1194
|
+
#
|
946
1195
|
def create_ssh_key request, options = nil
|
947
1196
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
948
1197
|
|
@@ -1006,6 +1255,22 @@ module Google
|
|
1006
1255
|
# @return [::Google::Protobuf::Empty]
|
1007
1256
|
#
|
1008
1257
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1258
|
+
#
|
1259
|
+
# @example Basic example
|
1260
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1261
|
+
#
|
1262
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1263
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1264
|
+
#
|
1265
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1266
|
+
# request = Google::Cloud::BareMetalSolution::V2::DeleteSSHKeyRequest.new
|
1267
|
+
#
|
1268
|
+
# # Call the delete_ssh_key method.
|
1269
|
+
# result = client.delete_ssh_key request
|
1270
|
+
#
|
1271
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1272
|
+
# p result
|
1273
|
+
#
|
1009
1274
|
def delete_ssh_key request, options = nil
|
1010
1275
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1011
1276
|
|
@@ -1075,6 +1340,26 @@ module Google
|
|
1075
1340
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse]
|
1076
1341
|
#
|
1077
1342
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1343
|
+
#
|
1344
|
+
# @example Basic example
|
1345
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1346
|
+
#
|
1347
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1348
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1349
|
+
#
|
1350
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1351
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListVolumesRequest.new
|
1352
|
+
#
|
1353
|
+
# # Call the list_volumes method.
|
1354
|
+
# result = client.list_volumes request
|
1355
|
+
#
|
1356
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1357
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1358
|
+
# result.each do |item|
|
1359
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::Volume.
|
1360
|
+
# p item
|
1361
|
+
# end
|
1362
|
+
#
|
1078
1363
|
def list_volumes request, options = nil
|
1079
1364
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1080
1365
|
|
@@ -1137,6 +1422,22 @@ module Google
|
|
1137
1422
|
# @return [::Google::Cloud::BareMetalSolution::V2::Volume]
|
1138
1423
|
#
|
1139
1424
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1425
|
+
#
|
1426
|
+
# @example Basic example
|
1427
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1428
|
+
#
|
1429
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1430
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1431
|
+
#
|
1432
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1433
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetVolumeRequest.new
|
1434
|
+
#
|
1435
|
+
# # Call the get_volume method.
|
1436
|
+
# result = client.get_volume request
|
1437
|
+
#
|
1438
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Volume.
|
1439
|
+
# p result
|
1440
|
+
#
|
1140
1441
|
def get_volume request, options = nil
|
1141
1442
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1142
1443
|
|
@@ -1206,6 +1507,29 @@ module Google
|
|
1206
1507
|
# @return [::Gapic::Operation]
|
1207
1508
|
#
|
1208
1509
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1510
|
+
#
|
1511
|
+
# @example Basic example
|
1512
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1513
|
+
#
|
1514
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1515
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1516
|
+
#
|
1517
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1518
|
+
# request = Google::Cloud::BareMetalSolution::V2::UpdateVolumeRequest.new
|
1519
|
+
#
|
1520
|
+
# # Call the update_volume method.
|
1521
|
+
# result = client.update_volume request
|
1522
|
+
#
|
1523
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1524
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1525
|
+
# # Here is how to wait for a response.
|
1526
|
+
# result.wait_until_done! timeout: 60
|
1527
|
+
# if result.response?
|
1528
|
+
# p result.response
|
1529
|
+
# else
|
1530
|
+
# puts "No response received."
|
1531
|
+
# end
|
1532
|
+
#
|
1209
1533
|
def update_volume request, options = nil
|
1210
1534
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1211
1535
|
|
@@ -1273,6 +1597,22 @@ module Google
|
|
1273
1597
|
# @return [::Google::Cloud::BareMetalSolution::V2::Volume]
|
1274
1598
|
#
|
1275
1599
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1600
|
+
#
|
1601
|
+
# @example Basic example
|
1602
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1603
|
+
#
|
1604
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1605
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1606
|
+
#
|
1607
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1608
|
+
# request = Google::Cloud::BareMetalSolution::V2::RenameVolumeRequest.new
|
1609
|
+
#
|
1610
|
+
# # Call the rename_volume method.
|
1611
|
+
# result = client.rename_volume request
|
1612
|
+
#
|
1613
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Volume.
|
1614
|
+
# p result
|
1615
|
+
#
|
1276
1616
|
def rename_volume request, options = nil
|
1277
1617
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1278
1618
|
|
@@ -1336,6 +1676,29 @@ module Google
|
|
1336
1676
|
# @return [::Gapic::Operation]
|
1337
1677
|
#
|
1338
1678
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1679
|
+
#
|
1680
|
+
# @example Basic example
|
1681
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1682
|
+
#
|
1683
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1684
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1685
|
+
#
|
1686
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1687
|
+
# request = Google::Cloud::BareMetalSolution::V2::EvictVolumeRequest.new
|
1688
|
+
#
|
1689
|
+
# # Call the evict_volume method.
|
1690
|
+
# result = client.evict_volume request
|
1691
|
+
#
|
1692
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1693
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1694
|
+
# # Here is how to wait for a response.
|
1695
|
+
# result.wait_until_done! timeout: 60
|
1696
|
+
# if result.response?
|
1697
|
+
# p result.response
|
1698
|
+
# else
|
1699
|
+
# puts "No response received."
|
1700
|
+
# end
|
1701
|
+
#
|
1339
1702
|
def evict_volume request, options = nil
|
1340
1703
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1341
1704
|
|
@@ -1401,6 +1764,29 @@ module Google
|
|
1401
1764
|
# @return [::Gapic::Operation]
|
1402
1765
|
#
|
1403
1766
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1767
|
+
#
|
1768
|
+
# @example Basic example
|
1769
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1770
|
+
#
|
1771
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1772
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1773
|
+
#
|
1774
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1775
|
+
# request = Google::Cloud::BareMetalSolution::V2::ResizeVolumeRequest.new
|
1776
|
+
#
|
1777
|
+
# # Call the resize_volume method.
|
1778
|
+
# result = client.resize_volume request
|
1779
|
+
#
|
1780
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1781
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1782
|
+
# # Here is how to wait for a response.
|
1783
|
+
# result.wait_until_done! timeout: 60
|
1784
|
+
# if result.response?
|
1785
|
+
# p result.response
|
1786
|
+
# else
|
1787
|
+
# puts "No response received."
|
1788
|
+
# end
|
1789
|
+
#
|
1404
1790
|
def resize_volume request, options = nil
|
1405
1791
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1406
1792
|
|
@@ -1471,6 +1857,26 @@ module Google
|
|
1471
1857
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse]
|
1472
1858
|
#
|
1473
1859
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1860
|
+
#
|
1861
|
+
# @example Basic example
|
1862
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1863
|
+
#
|
1864
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1865
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1866
|
+
#
|
1867
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1868
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListNetworksRequest.new
|
1869
|
+
#
|
1870
|
+
# # Call the list_networks method.
|
1871
|
+
# result = client.list_networks request
|
1872
|
+
#
|
1873
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1874
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1875
|
+
# result.each do |item|
|
1876
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::Network.
|
1877
|
+
# p item
|
1878
|
+
# end
|
1879
|
+
#
|
1474
1880
|
def list_networks request, options = nil
|
1475
1881
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1476
1882
|
|
@@ -1534,6 +1940,22 @@ module Google
|
|
1534
1940
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse]
|
1535
1941
|
#
|
1536
1942
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1943
|
+
#
|
1944
|
+
# @example Basic example
|
1945
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1946
|
+
#
|
1947
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1948
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1949
|
+
#
|
1950
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1951
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListNetworkUsageRequest.new
|
1952
|
+
#
|
1953
|
+
# # Call the list_network_usage method.
|
1954
|
+
# result = client.list_network_usage request
|
1955
|
+
#
|
1956
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse.
|
1957
|
+
# p result
|
1958
|
+
#
|
1537
1959
|
def list_network_usage request, options = nil
|
1538
1960
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1539
1961
|
|
@@ -1596,6 +2018,22 @@ module Google
|
|
1596
2018
|
# @return [::Google::Cloud::BareMetalSolution::V2::Network]
|
1597
2019
|
#
|
1598
2020
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2021
|
+
#
|
2022
|
+
# @example Basic example
|
2023
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2024
|
+
#
|
2025
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2026
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2027
|
+
#
|
2028
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2029
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetNetworkRequest.new
|
2030
|
+
#
|
2031
|
+
# # Call the get_network method.
|
2032
|
+
# result = client.get_network request
|
2033
|
+
#
|
2034
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Network.
|
2035
|
+
# p result
|
2036
|
+
#
|
1599
2037
|
def get_network request, options = nil
|
1600
2038
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1601
2039
|
|
@@ -1665,6 +2103,29 @@ module Google
|
|
1665
2103
|
# @return [::Gapic::Operation]
|
1666
2104
|
#
|
1667
2105
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2106
|
+
#
|
2107
|
+
# @example Basic example
|
2108
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2109
|
+
#
|
2110
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2111
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2112
|
+
#
|
2113
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2114
|
+
# request = Google::Cloud::BareMetalSolution::V2::UpdateNetworkRequest.new
|
2115
|
+
#
|
2116
|
+
# # Call the update_network method.
|
2117
|
+
# result = client.update_network request
|
2118
|
+
#
|
2119
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2120
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2121
|
+
# # Here is how to wait for a response.
|
2122
|
+
# result.wait_until_done! timeout: 60
|
2123
|
+
# if result.response?
|
2124
|
+
# p result.response
|
2125
|
+
# else
|
2126
|
+
# puts "No response received."
|
2127
|
+
# end
|
2128
|
+
#
|
1668
2129
|
def update_network request, options = nil
|
1669
2130
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1670
2131
|
|
@@ -1731,6 +2192,22 @@ module Google
|
|
1731
2192
|
# @return [::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot]
|
1732
2193
|
#
|
1733
2194
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2195
|
+
#
|
2196
|
+
# @example Basic example
|
2197
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2198
|
+
#
|
2199
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2200
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2201
|
+
#
|
2202
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2203
|
+
# request = Google::Cloud::BareMetalSolution::V2::CreateVolumeSnapshotRequest.new
|
2204
|
+
#
|
2205
|
+
# # Call the create_volume_snapshot method.
|
2206
|
+
# result = client.create_volume_snapshot request
|
2207
|
+
#
|
2208
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::VolumeSnapshot.
|
2209
|
+
# p result
|
2210
|
+
#
|
1734
2211
|
def create_volume_snapshot request, options = nil
|
1735
2212
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1736
2213
|
|
@@ -1795,6 +2272,29 @@ module Google
|
|
1795
2272
|
# @return [::Gapic::Operation]
|
1796
2273
|
#
|
1797
2274
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2275
|
+
#
|
2276
|
+
# @example Basic example
|
2277
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2278
|
+
#
|
2279
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2280
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2281
|
+
#
|
2282
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2283
|
+
# request = Google::Cloud::BareMetalSolution::V2::RestoreVolumeSnapshotRequest.new
|
2284
|
+
#
|
2285
|
+
# # Call the restore_volume_snapshot method.
|
2286
|
+
# result = client.restore_volume_snapshot request
|
2287
|
+
#
|
2288
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2289
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2290
|
+
# # Here is how to wait for a response.
|
2291
|
+
# result.wait_until_done! timeout: 60
|
2292
|
+
# if result.response?
|
2293
|
+
# p result.response
|
2294
|
+
# else
|
2295
|
+
# puts "No response received."
|
2296
|
+
# end
|
2297
|
+
#
|
1798
2298
|
def restore_volume_snapshot request, options = nil
|
1799
2299
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1800
2300
|
|
@@ -1859,6 +2359,22 @@ module Google
|
|
1859
2359
|
# @return [::Google::Protobuf::Empty]
|
1860
2360
|
#
|
1861
2361
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2362
|
+
#
|
2363
|
+
# @example Basic example
|
2364
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2365
|
+
#
|
2366
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2367
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2368
|
+
#
|
2369
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2370
|
+
# request = Google::Cloud::BareMetalSolution::V2::DeleteVolumeSnapshotRequest.new
|
2371
|
+
#
|
2372
|
+
# # Call the delete_volume_snapshot method.
|
2373
|
+
# result = client.delete_volume_snapshot request
|
2374
|
+
#
|
2375
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2376
|
+
# p result
|
2377
|
+
#
|
1862
2378
|
def delete_volume_snapshot request, options = nil
|
1863
2379
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1864
2380
|
|
@@ -1922,6 +2438,22 @@ module Google
|
|
1922
2438
|
# @return [::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot]
|
1923
2439
|
#
|
1924
2440
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2441
|
+
#
|
2442
|
+
# @example Basic example
|
2443
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2444
|
+
#
|
2445
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2446
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2447
|
+
#
|
2448
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2449
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetVolumeSnapshotRequest.new
|
2450
|
+
#
|
2451
|
+
# # Call the get_volume_snapshot method.
|
2452
|
+
# result = client.get_volume_snapshot request
|
2453
|
+
#
|
2454
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::VolumeSnapshot.
|
2455
|
+
# p result
|
2456
|
+
#
|
1925
2457
|
def get_volume_snapshot request, options = nil
|
1926
2458
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1927
2459
|
|
@@ -1991,6 +2523,26 @@ module Google
|
|
1991
2523
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsResponse]
|
1992
2524
|
#
|
1993
2525
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2526
|
+
#
|
2527
|
+
# @example Basic example
|
2528
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2529
|
+
#
|
2530
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2531
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2532
|
+
#
|
2533
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2534
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsRequest.new
|
2535
|
+
#
|
2536
|
+
# # Call the list_volume_snapshots method.
|
2537
|
+
# result = client.list_volume_snapshots request
|
2538
|
+
#
|
2539
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2540
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2541
|
+
# result.each do |item|
|
2542
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot.
|
2543
|
+
# p item
|
2544
|
+
# end
|
2545
|
+
#
|
1994
2546
|
def list_volume_snapshots request, options = nil
|
1995
2547
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1996
2548
|
|
@@ -2053,6 +2605,22 @@ module Google
|
|
2053
2605
|
# @return [::Google::Cloud::BareMetalSolution::V2::Lun]
|
2054
2606
|
#
|
2055
2607
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2608
|
+
#
|
2609
|
+
# @example Basic example
|
2610
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2611
|
+
#
|
2612
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2613
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2614
|
+
#
|
2615
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2616
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetLunRequest.new
|
2617
|
+
#
|
2618
|
+
# # Call the get_lun method.
|
2619
|
+
# result = client.get_lun request
|
2620
|
+
#
|
2621
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Lun.
|
2622
|
+
# p result
|
2623
|
+
#
|
2056
2624
|
def get_lun request, options = nil
|
2057
2625
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2058
2626
|
|
@@ -2120,6 +2688,26 @@ module Google
|
|
2120
2688
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListLunsResponse]
|
2121
2689
|
#
|
2122
2690
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2691
|
+
#
|
2692
|
+
# @example Basic example
|
2693
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2694
|
+
#
|
2695
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2696
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2697
|
+
#
|
2698
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2699
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListLunsRequest.new
|
2700
|
+
#
|
2701
|
+
# # Call the list_luns method.
|
2702
|
+
# result = client.list_luns request
|
2703
|
+
#
|
2704
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2705
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2706
|
+
# result.each do |item|
|
2707
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::Lun.
|
2708
|
+
# p item
|
2709
|
+
# end
|
2710
|
+
#
|
2123
2711
|
def list_luns request, options = nil
|
2124
2712
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2125
2713
|
|
@@ -2183,6 +2771,29 @@ module Google
|
|
2183
2771
|
# @return [::Gapic::Operation]
|
2184
2772
|
#
|
2185
2773
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2774
|
+
#
|
2775
|
+
# @example Basic example
|
2776
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2777
|
+
#
|
2778
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2779
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2780
|
+
#
|
2781
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2782
|
+
# request = Google::Cloud::BareMetalSolution::V2::EvictLunRequest.new
|
2783
|
+
#
|
2784
|
+
# # Call the evict_lun method.
|
2785
|
+
# result = client.evict_lun request
|
2786
|
+
#
|
2787
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2788
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2789
|
+
# # Here is how to wait for a response.
|
2790
|
+
# result.wait_until_done! timeout: 60
|
2791
|
+
# if result.response?
|
2792
|
+
# p result.response
|
2793
|
+
# else
|
2794
|
+
# puts "No response received."
|
2795
|
+
# end
|
2796
|
+
#
|
2186
2797
|
def evict_lun request, options = nil
|
2187
2798
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2188
2799
|
|
@@ -2246,6 +2857,22 @@ module Google
|
|
2246
2857
|
# @return [::Google::Cloud::BareMetalSolution::V2::NfsShare]
|
2247
2858
|
#
|
2248
2859
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2860
|
+
#
|
2861
|
+
# @example Basic example
|
2862
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2863
|
+
#
|
2864
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2865
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2866
|
+
#
|
2867
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2868
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetNfsShareRequest.new
|
2869
|
+
#
|
2870
|
+
# # Call the get_nfs_share method.
|
2871
|
+
# result = client.get_nfs_share request
|
2872
|
+
#
|
2873
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::NfsShare.
|
2874
|
+
# p result
|
2875
|
+
#
|
2249
2876
|
def get_nfs_share request, options = nil
|
2250
2877
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2251
2878
|
|
@@ -2315,6 +2942,26 @@ module Google
|
|
2315
2942
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse]
|
2316
2943
|
#
|
2317
2944
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2945
|
+
#
|
2946
|
+
# @example Basic example
|
2947
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2948
|
+
#
|
2949
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2950
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2951
|
+
#
|
2952
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2953
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListNfsSharesRequest.new
|
2954
|
+
#
|
2955
|
+
# # Call the list_nfs_shares method.
|
2956
|
+
# result = client.list_nfs_shares request
|
2957
|
+
#
|
2958
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2959
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2960
|
+
# result.each do |item|
|
2961
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::NfsShare.
|
2962
|
+
# p item
|
2963
|
+
# end
|
2964
|
+
#
|
2318
2965
|
def list_nfs_shares request, options = nil
|
2319
2966
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2320
2967
|
|
@@ -2385,6 +3032,29 @@ module Google
|
|
2385
3032
|
# @return [::Gapic::Operation]
|
2386
3033
|
#
|
2387
3034
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3035
|
+
#
|
3036
|
+
# @example Basic example
|
3037
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3038
|
+
#
|
3039
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3040
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3041
|
+
#
|
3042
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3043
|
+
# request = Google::Cloud::BareMetalSolution::V2::UpdateNfsShareRequest.new
|
3044
|
+
#
|
3045
|
+
# # Call the update_nfs_share method.
|
3046
|
+
# result = client.update_nfs_share request
|
3047
|
+
#
|
3048
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3049
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3050
|
+
# # Here is how to wait for a response.
|
3051
|
+
# result.wait_until_done! timeout: 60
|
3052
|
+
# if result.response?
|
3053
|
+
# p result.response
|
3054
|
+
# else
|
3055
|
+
# puts "No response received."
|
3056
|
+
# end
|
3057
|
+
#
|
2388
3058
|
def update_nfs_share request, options = nil
|
2389
3059
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2390
3060
|
|
@@ -2450,6 +3120,29 @@ module Google
|
|
2450
3120
|
# @return [::Gapic::Operation]
|
2451
3121
|
#
|
2452
3122
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3123
|
+
#
|
3124
|
+
# @example Basic example
|
3125
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3126
|
+
#
|
3127
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3128
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3129
|
+
#
|
3130
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3131
|
+
# request = Google::Cloud::BareMetalSolution::V2::CreateNfsShareRequest.new
|
3132
|
+
#
|
3133
|
+
# # Call the create_nfs_share method.
|
3134
|
+
# result = client.create_nfs_share request
|
3135
|
+
#
|
3136
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3137
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3138
|
+
# # Here is how to wait for a response.
|
3139
|
+
# result.wait_until_done! timeout: 60
|
3140
|
+
# if result.response?
|
3141
|
+
# p result.response
|
3142
|
+
# else
|
3143
|
+
# puts "No response received."
|
3144
|
+
# end
|
3145
|
+
#
|
2453
3146
|
def create_nfs_share request, options = nil
|
2454
3147
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2455
3148
|
|
@@ -2517,6 +3210,22 @@ module Google
|
|
2517
3210
|
# @return [::Google::Cloud::BareMetalSolution::V2::NfsShare]
|
2518
3211
|
#
|
2519
3212
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3213
|
+
#
|
3214
|
+
# @example Basic example
|
3215
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3216
|
+
#
|
3217
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3218
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3219
|
+
#
|
3220
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3221
|
+
# request = Google::Cloud::BareMetalSolution::V2::RenameNfsShareRequest.new
|
3222
|
+
#
|
3223
|
+
# # Call the rename_nfs_share method.
|
3224
|
+
# result = client.rename_nfs_share request
|
3225
|
+
#
|
3226
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::NfsShare.
|
3227
|
+
# p result
|
3228
|
+
#
|
2520
3229
|
def rename_nfs_share request, options = nil
|
2521
3230
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2522
3231
|
|
@@ -2579,6 +3288,29 @@ module Google
|
|
2579
3288
|
# @return [::Gapic::Operation]
|
2580
3289
|
#
|
2581
3290
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3291
|
+
#
|
3292
|
+
# @example Basic example
|
3293
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3294
|
+
#
|
3295
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3296
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3297
|
+
#
|
3298
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3299
|
+
# request = Google::Cloud::BareMetalSolution::V2::DeleteNfsShareRequest.new
|
3300
|
+
#
|
3301
|
+
# # Call the delete_nfs_share method.
|
3302
|
+
# result = client.delete_nfs_share request
|
3303
|
+
#
|
3304
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3305
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3306
|
+
# # Here is how to wait for a response.
|
3307
|
+
# result.wait_until_done! timeout: 60
|
3308
|
+
# if result.response?
|
3309
|
+
# p result.response
|
3310
|
+
# else
|
3311
|
+
# puts "No response received."
|
3312
|
+
# end
|
3313
|
+
#
|
2582
3314
|
def delete_nfs_share request, options = nil
|
2583
3315
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2584
3316
|
|
@@ -2649,6 +3381,26 @@ module Google
|
|
2649
3381
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::ProvisioningQuota>]
|
2650
3382
|
#
|
2651
3383
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3384
|
+
#
|
3385
|
+
# @example Basic example
|
3386
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3387
|
+
#
|
3388
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3389
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3390
|
+
#
|
3391
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3392
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListProvisioningQuotasRequest.new
|
3393
|
+
#
|
3394
|
+
# # Call the list_provisioning_quotas method.
|
3395
|
+
# result = client.list_provisioning_quotas request
|
3396
|
+
#
|
3397
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3398
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3399
|
+
# result.each do |item|
|
3400
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::ProvisioningQuota.
|
3401
|
+
# p item
|
3402
|
+
# end
|
3403
|
+
#
|
2652
3404
|
def list_provisioning_quotas request, options = nil
|
2653
3405
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2654
3406
|
|
@@ -2718,6 +3470,22 @@ module Google
|
|
2718
3470
|
# @return [::Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigResponse]
|
2719
3471
|
#
|
2720
3472
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3473
|
+
#
|
3474
|
+
# @example Basic example
|
3475
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3476
|
+
#
|
3477
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3478
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3479
|
+
#
|
3480
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3481
|
+
# request = Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigRequest.new
|
3482
|
+
#
|
3483
|
+
# # Call the submit_provisioning_config method.
|
3484
|
+
# result = client.submit_provisioning_config request
|
3485
|
+
#
|
3486
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigResponse.
|
3487
|
+
# p result
|
3488
|
+
#
|
2721
3489
|
def submit_provisioning_config request, options = nil
|
2722
3490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2723
3491
|
|
@@ -2780,6 +3548,22 @@ module Google
|
|
2780
3548
|
# @return [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
|
2781
3549
|
#
|
2782
3550
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3551
|
+
#
|
3552
|
+
# @example Basic example
|
3553
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3554
|
+
#
|
3555
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3556
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3557
|
+
#
|
3558
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3559
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetProvisioningConfigRequest.new
|
3560
|
+
#
|
3561
|
+
# # Call the get_provisioning_config method.
|
3562
|
+
# result = client.get_provisioning_config request
|
3563
|
+
#
|
3564
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::ProvisioningConfig.
|
3565
|
+
# p result
|
3566
|
+
#
|
2783
3567
|
def get_provisioning_config request, options = nil
|
2784
3568
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2785
3569
|
|
@@ -2848,6 +3632,22 @@ module Google
|
|
2848
3632
|
# @return [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
|
2849
3633
|
#
|
2850
3634
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3635
|
+
#
|
3636
|
+
# @example Basic example
|
3637
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3638
|
+
#
|
3639
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3640
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3641
|
+
#
|
3642
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3643
|
+
# request = Google::Cloud::BareMetalSolution::V2::CreateProvisioningConfigRequest.new
|
3644
|
+
#
|
3645
|
+
# # Call the create_provisioning_config method.
|
3646
|
+
# result = client.create_provisioning_config request
|
3647
|
+
#
|
3648
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::ProvisioningConfig.
|
3649
|
+
# p result
|
3650
|
+
#
|
2851
3651
|
def create_provisioning_config request, options = nil
|
2852
3652
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2853
3653
|
|
@@ -2915,6 +3715,22 @@ module Google
|
|
2915
3715
|
# @return [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
|
2916
3716
|
#
|
2917
3717
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3718
|
+
#
|
3719
|
+
# @example Basic example
|
3720
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3721
|
+
#
|
3722
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3723
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3724
|
+
#
|
3725
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3726
|
+
# request = Google::Cloud::BareMetalSolution::V2::UpdateProvisioningConfigRequest.new
|
3727
|
+
#
|
3728
|
+
# # Call the update_provisioning_config method.
|
3729
|
+
# result = client.update_provisioning_config request
|
3730
|
+
#
|
3731
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::ProvisioningConfig.
|
3732
|
+
# p result
|
3733
|
+
#
|
2918
3734
|
def update_provisioning_config request, options = nil
|
2919
3735
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2920
3736
|
|
@@ -2981,6 +3797,22 @@ module Google
|
|
2981
3797
|
# @return [::Google::Cloud::BareMetalSolution::V2::Network]
|
2982
3798
|
#
|
2983
3799
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3800
|
+
#
|
3801
|
+
# @example Basic example
|
3802
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3803
|
+
#
|
3804
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3805
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3806
|
+
#
|
3807
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3808
|
+
# request = Google::Cloud::BareMetalSolution::V2::RenameNetworkRequest.new
|
3809
|
+
#
|
3810
|
+
# # Call the rename_network method.
|
3811
|
+
# result = client.rename_network request
|
3812
|
+
#
|
3813
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Network.
|
3814
|
+
# p result
|
3815
|
+
#
|
2984
3816
|
def rename_network request, options = nil
|
2985
3817
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2986
3818
|
|
@@ -3050,6 +3882,26 @@ module Google
|
|
3050
3882
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::OSImage>]
|
3051
3883
|
#
|
3052
3884
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3885
|
+
#
|
3886
|
+
# @example Basic example
|
3887
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3888
|
+
#
|
3889
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3890
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3891
|
+
#
|
3892
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3893
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListOSImagesRequest.new
|
3894
|
+
#
|
3895
|
+
# # Call the list_os_images method.
|
3896
|
+
# result = client.list_os_images request
|
3897
|
+
#
|
3898
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3899
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3900
|
+
# result.each do |item|
|
3901
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::OSImage.
|
3902
|
+
# p item
|
3903
|
+
# end
|
3904
|
+
#
|
3053
3905
|
def list_os_images request, options = nil
|
3054
3906
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3055
3907
|
|