-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
BareMetalSolutionClient.java
8112 lines (7771 loc) · 353 KB
/
BareMetalSolutionClient.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.baremetalsolution.v2;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.httpjson.longrunning.OperationsClient;
import com.google.api.gax.longrunning.OperationFuture;
import com.google.api.gax.paging.AbstractFixedSizeCollection;
import com.google.api.gax.paging.AbstractPage;
import com.google.api.gax.paging.AbstractPagedListResponse;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.PageContext;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.baremetalsolution.v2.stub.BareMetalSolutionStub;
import com.google.cloud.baremetalsolution.v2.stub.BareMetalSolutionStubSettings;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
import com.google.common.util.concurrent.MoreExecutors;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import com.google.protobuf.FieldMask;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Service Description: Performs management operations on Bare Metal Solution servers.
*
* <p>The `baremetalsolution.googleapis.com` service provides management capabilities for Bare Metal
* Solution servers. To access the API methods, you must assign Bare Metal Solution IAM roles
* containing the desired permissions to your staff in your Google Cloud project. You must also
* enable the Bare Metal Solution API. Once enabled, the methods act upon specific servers in your
* Bare Metal Solution environment.
*
* <p>This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods. Sample code to get started:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (BareMetalSolutionClient bareMetalSolutionClient = BareMetalSolutionClient.create()) {
* InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
* Instance response = bareMetalSolutionClient.getInstance(name);
* }
* }</pre>
*
* <p>Note: close() needs to be called on the BareMetalSolutionClient object to clean up resources
* such as threads. In the example above, try-with-resources is used, which automatically calls
* close().
*
* <table>
* <caption>Methods</caption>
* <tr>
* <th>Method</th>
* <th>Description</th>
* <th>Method Variants</th>
* </tr>
* <tr>
* <td><p> ListInstances</td>
* <td><p> List servers in a given project and location.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> listInstances(ListInstancesRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> listInstances(LocationName parent)
* <li><p> listInstances(String parent)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> listInstancesPagedCallable()
* <li><p> listInstancesCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> GetInstance</td>
* <td><p> Get details about a single server.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> getInstance(GetInstanceRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> getInstance(InstanceName name)
* <li><p> getInstance(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> getInstanceCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> UpdateInstance</td>
* <td><p> Update details of a single server.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> updateInstanceAsync(UpdateInstanceRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> updateInstanceAsync(Instance instance, FieldMask updateMask)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> updateInstanceOperationCallable()
* <li><p> updateInstanceCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> RenameInstance</td>
* <td><p> RenameInstance sets a new name for an instance. Use with caution, previous names become immediately invalidated.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> renameInstance(RenameInstanceRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> renameInstance(InstanceName name, String newInstanceId)
* <li><p> renameInstance(String name, String newInstanceId)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> renameInstanceCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ResetInstance</td>
* <td><p> Perform an ungraceful, hard reset on a server. Equivalent to shutting the power off and then turning it back on.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> resetInstanceAsync(ResetInstanceRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> resetInstanceAsync(InstanceName name)
* <li><p> resetInstanceAsync(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> resetInstanceOperationCallable()
* <li><p> resetInstanceCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> StartInstance</td>
* <td><p> Starts a server that was shutdown.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> startInstanceAsync(StartInstanceRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> startInstanceAsync(InstanceName name)
* <li><p> startInstanceAsync(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> startInstanceOperationCallable()
* <li><p> startInstanceCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> StopInstance</td>
* <td><p> Stop a running server.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> stopInstanceAsync(StopInstanceRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> stopInstanceAsync(InstanceName name)
* <li><p> stopInstanceAsync(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> stopInstanceOperationCallable()
* <li><p> stopInstanceCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> EnableInteractiveSerialConsole</td>
* <td><p> Enable the interactive serial console feature on an instance.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> enableInteractiveSerialConsoleAsync(EnableInteractiveSerialConsoleRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> enableInteractiveSerialConsoleAsync(InstanceName name)
* <li><p> enableInteractiveSerialConsoleAsync(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> enableInteractiveSerialConsoleOperationCallable()
* <li><p> enableInteractiveSerialConsoleCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> DisableInteractiveSerialConsole</td>
* <td><p> Disable the interactive serial console feature on an instance.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> disableInteractiveSerialConsoleAsync(DisableInteractiveSerialConsoleRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> disableInteractiveSerialConsoleAsync(InstanceName name)
* <li><p> disableInteractiveSerialConsoleAsync(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> disableInteractiveSerialConsoleOperationCallable()
* <li><p> disableInteractiveSerialConsoleCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> DetachLun</td>
* <td><p> Detach LUN from Instance.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> detachLunAsync(DetachLunRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> detachLunAsync(InstanceName instance, LunName lun)
* <li><p> detachLunAsync(InstanceName instance, String lun)
* <li><p> detachLunAsync(String instance, LunName lun)
* <li><p> detachLunAsync(String instance, String lun)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> detachLunOperationCallable()
* <li><p> detachLunCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ListSSHKeys</td>
* <td><p> Lists the public SSH keys registered for the specified project. These SSH keys are used only for the interactive serial console feature.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> listSSHKeys(ListSSHKeysRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> listSSHKeys(LocationName parent)
* <li><p> listSSHKeys(String parent)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> listSSHKeysPagedCallable()
* <li><p> listSSHKeysCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> CreateSSHKey</td>
* <td><p> Register a public SSH key in the specified project for use with the interactive serial console feature.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> createSSHKey(CreateSSHKeyRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> createSSHKey(LocationName parent, SSHKey sshKey, String sshKeyId)
* <li><p> createSSHKey(String parent, SSHKey sshKey, String sshKeyId)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> createSSHKeyCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> DeleteSSHKey</td>
* <td><p> Deletes a public SSH key registered in the specified project.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> deleteSSHKey(DeleteSSHKeyRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> deleteSSHKey(SshKeyName name)
* <li><p> deleteSSHKey(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> deleteSSHKeyCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ListVolumes</td>
* <td><p> List storage volumes in a given project and location.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> listVolumes(ListVolumesRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> listVolumes(LocationName parent)
* <li><p> listVolumes(String parent)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> listVolumesPagedCallable()
* <li><p> listVolumesCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> GetVolume</td>
* <td><p> Get details of a single storage volume.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> getVolume(GetVolumeRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> getVolume(VolumeName name)
* <li><p> getVolume(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> getVolumeCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> UpdateVolume</td>
* <td><p> Update details of a single storage volume.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> updateVolumeAsync(UpdateVolumeRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> updateVolumeAsync(Volume volume, FieldMask updateMask)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> updateVolumeOperationCallable()
* <li><p> updateVolumeCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> RenameVolume</td>
* <td><p> RenameVolume sets a new name for a volume. Use with caution, previous names become immediately invalidated.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> renameVolume(RenameVolumeRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> renameVolume(VolumeName name, String newVolumeId)
* <li><p> renameVolume(String name, String newVolumeId)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> renameVolumeCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> EvictVolume</td>
* <td><p> Skips volume's cooloff and deletes it now. Volume must be in cooloff state.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> evictVolumeAsync(EvictVolumeRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> evictVolumeAsync(VolumeName name)
* <li><p> evictVolumeAsync(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> evictVolumeOperationCallable()
* <li><p> evictVolumeCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ResizeVolume</td>
* <td><p> Emergency Volume resize.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> resizeVolumeAsync(ResizeVolumeRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> resizeVolumeAsync(VolumeName volume, long sizeGib)
* <li><p> resizeVolumeAsync(String volume, long sizeGib)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> resizeVolumeOperationCallable()
* <li><p> resizeVolumeCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ListNetworks</td>
* <td><p> List network in a given project and location.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> listNetworks(ListNetworksRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> listNetworks(LocationName parent)
* <li><p> listNetworks(String parent)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> listNetworksPagedCallable()
* <li><p> listNetworksCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ListNetworkUsage</td>
* <td><p> List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> listNetworkUsage(ListNetworkUsageRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> listNetworkUsage(LocationName location)
* <li><p> listNetworkUsage(String location)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> listNetworkUsageCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> GetNetwork</td>
* <td><p> Get details of a single network.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> getNetwork(GetNetworkRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> getNetwork(NetworkName name)
* <li><p> getNetwork(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> getNetworkCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> UpdateNetwork</td>
* <td><p> Update details of a single network.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> updateNetworkAsync(UpdateNetworkRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> updateNetworkAsync(Network network, FieldMask updateMask)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> updateNetworkOperationCallable()
* <li><p> updateNetworkCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> CreateVolumeSnapshot</td>
* <td><p> Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> createVolumeSnapshot(CreateVolumeSnapshotRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> createVolumeSnapshot(VolumeName parent, VolumeSnapshot volumeSnapshot)
* <li><p> createVolumeSnapshot(String parent, VolumeSnapshot volumeSnapshot)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> createVolumeSnapshotCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> RestoreVolumeSnapshot</td>
* <td><p> Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> restoreVolumeSnapshotAsync(RestoreVolumeSnapshotRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> restoreVolumeSnapshotAsync(VolumeSnapshotName volumeSnapshot)
* <li><p> restoreVolumeSnapshotAsync(String volumeSnapshot)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> restoreVolumeSnapshotOperationCallable()
* <li><p> restoreVolumeSnapshotCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> DeleteVolumeSnapshot</td>
* <td><p> Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> deleteVolumeSnapshot(DeleteVolumeSnapshotRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> deleteVolumeSnapshot(VolumeSnapshotName name)
* <li><p> deleteVolumeSnapshot(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> deleteVolumeSnapshotCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> GetVolumeSnapshot</td>
* <td><p> Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> getVolumeSnapshot(GetVolumeSnapshotRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> getVolumeSnapshot(VolumeSnapshotName name)
* <li><p> getVolumeSnapshot(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> getVolumeSnapshotCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ListVolumeSnapshots</td>
* <td><p> Retrieves the list of snapshots for the specified volume. Returns a response with an empty list of snapshots if called for a non-boot volume.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> listVolumeSnapshots(ListVolumeSnapshotsRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> listVolumeSnapshots(VolumeName parent)
* <li><p> listVolumeSnapshots(String parent)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> listVolumeSnapshotsPagedCallable()
* <li><p> listVolumeSnapshotsCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> GetLun</td>
* <td><p> Get details of a single storage logical unit number(LUN).</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> getLun(GetLunRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> getLun(LunName name)
* <li><p> getLun(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> getLunCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ListLuns</td>
* <td><p> List storage volume luns for given storage volume.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> listLuns(ListLunsRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> listLuns(VolumeName parent)
* <li><p> listLuns(String parent)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> listLunsPagedCallable()
* <li><p> listLunsCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> EvictLun</td>
* <td><p> Skips lun's cooloff and deletes it now. Lun must be in cooloff state.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> evictLunAsync(EvictLunRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> evictLunAsync(LunName name)
* <li><p> evictLunAsync(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> evictLunOperationCallable()
* <li><p> evictLunCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> GetNfsShare</td>
* <td><p> Get details of a single NFS share.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> getNfsShare(GetNfsShareRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> getNfsShare(NFSShareName name)
* <li><p> getNfsShare(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> getNfsShareCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ListNfsShares</td>
* <td><p> List NFS shares.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> listNfsShares(ListNfsSharesRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> listNfsShares(LocationName parent)
* <li><p> listNfsShares(String parent)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> listNfsSharesPagedCallable()
* <li><p> listNfsSharesCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> UpdateNfsShare</td>
* <td><p> Update details of a single NFS share.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> updateNfsShareAsync(UpdateNfsShareRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> updateNfsShareAsync(NfsShare nfsShare, FieldMask updateMask)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> updateNfsShareOperationCallable()
* <li><p> updateNfsShareCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> CreateNfsShare</td>
* <td><p> Create an NFS share.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> createNfsShareAsync(CreateNfsShareRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> createNfsShareAsync(LocationName parent, NfsShare nfsShare)
* <li><p> createNfsShareAsync(String parent, NfsShare nfsShare)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> createNfsShareOperationCallable()
* <li><p> createNfsShareCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> RenameNfsShare</td>
* <td><p> RenameNfsShare sets a new name for an nfsshare. Use with caution, previous names become immediately invalidated.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> renameNfsShare(RenameNfsShareRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> renameNfsShare(NFSShareName name, String newNfsshareId)
* <li><p> renameNfsShare(String name, String newNfsshareId)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> renameNfsShareCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> DeleteNfsShare</td>
* <td><p> Delete an NFS share. The underlying volume is automatically deleted.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> deleteNfsShareAsync(DeleteNfsShareRequest request)
* </ul>
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
* <ul>
* <li><p> deleteNfsShareAsync(NFSShareName name)
* <li><p> deleteNfsShareAsync(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> deleteNfsShareOperationCallable()
* <li><p> deleteNfsShareCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ListProvisioningQuotas</td>
* <td><p> List the budget details to provision resources on a given project.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> listProvisioningQuotas(ListProvisioningQuotasRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> listProvisioningQuotas(LocationName parent)
* <li><p> listProvisioningQuotas(String parent)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> listProvisioningQuotasPagedCallable()
* <li><p> listProvisioningQuotasCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> SubmitProvisioningConfig</td>
* <td><p> Submit a provisiong configuration for a given project.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> submitProvisioningConfig(SubmitProvisioningConfigRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> submitProvisioningConfig(LocationName parent, ProvisioningConfig provisioningConfig)
* <li><p> submitProvisioningConfig(String parent, ProvisioningConfig provisioningConfig)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> submitProvisioningConfigCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> GetProvisioningConfig</td>
* <td><p> Get ProvisioningConfig by name.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> getProvisioningConfig(GetProvisioningConfigRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> getProvisioningConfig(ProvisioningConfigName name)
* <li><p> getProvisioningConfig(String name)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> getProvisioningConfigCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> CreateProvisioningConfig</td>
* <td><p> Create new ProvisioningConfig.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> createProvisioningConfig(CreateProvisioningConfigRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> createProvisioningConfig(LocationName parent, ProvisioningConfig provisioningConfig)
* <li><p> createProvisioningConfig(String parent, ProvisioningConfig provisioningConfig)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> createProvisioningConfigCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> UpdateProvisioningConfig</td>
* <td><p> Update existing ProvisioningConfig.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> updateProvisioningConfig(UpdateProvisioningConfigRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> updateProvisioningConfig(ProvisioningConfig provisioningConfig, FieldMask updateMask)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> updateProvisioningConfigCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> RenameNetwork</td>
* <td><p> RenameNetwork sets a new name for a network. Use with caution, previous names become immediately invalidated.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> renameNetwork(RenameNetworkRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> renameNetwork(NetworkName name, String newNetworkId)
* <li><p> renameNetwork(String name, String newNetworkId)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> renameNetworkCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ListOSImages</td>
* <td><p> Retrieves the list of OS images which are currently approved.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> listOSImages(ListOSImagesRequest request)
* </ul>
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
* <ul>
* <li><p> listOSImages(LocationName parent)
* <li><p> listOSImages(String parent)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> listOSImagesPagedCallable()
* <li><p> listOSImagesCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ListLocations</td>
* <td><p> Lists information about the supported locations for this service.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> listLocations(ListLocationsRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> listLocationsPagedCallable()
* <li><p> listLocationsCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> GetLocation</td>
* <td><p> Gets information about a location.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> getLocation(GetLocationRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> getLocationCallable()
* </ul>
* </td>
* </tr>
* </table>
*
* <p>See the individual methods for example code.
*
* <p>Many parameters require resource names to be formatted in a particular way. To assist with
* these names, this class includes a format method for each type of name, and additionally a parse
* method to extract the individual identifiers contained within names that are returned.
*
* <p>This class can be customized by passing in a custom instance of BareMetalSolutionSettings to
* create(). For example:
*
* <p>To customize credentials:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* BareMetalSolutionSettings bareMetalSolutionSettings =
* BareMetalSolutionSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
* .build();
* BareMetalSolutionClient bareMetalSolutionClient =
* BareMetalSolutionClient.create(bareMetalSolutionSettings);
* }</pre>
*
* <p>To customize the endpoint:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work: