google-cloud-bare_metal_solution-v2 0.5.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +72 -99
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/client.rb +44 -9
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/operations.rb +38 -7
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/client.rb +888 -7
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/operations.rb +108 -8
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/service_stub.rb +14 -2
- data/lib/google/cloud/bare_metal_solution/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/network.rb +1 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/provisioning.rb +4 -0
- metadata +9 -9
@@ -41,6 +41,9 @@ module Google
|
|
41
41
|
# upon specific servers in your Bare Metal Solution environment.
|
42
42
|
#
|
43
43
|
class Client
|
44
|
+
# @private
|
45
|
+
DEFAULT_ENDPOINT_TEMPLATE = "baremetalsolution.$UNIVERSE_DOMAIN$"
|
46
|
+
|
44
47
|
include Paths
|
45
48
|
|
46
49
|
# @private
|
@@ -103,6 +106,15 @@ module Google
|
|
103
106
|
@config
|
104
107
|
end
|
105
108
|
|
109
|
+
##
|
110
|
+
# The effective universe domain
|
111
|
+
#
|
112
|
+
# @return [String]
|
113
|
+
#
|
114
|
+
def universe_domain
|
115
|
+
@bare_metal_solution_stub.universe_domain
|
116
|
+
end
|
117
|
+
|
106
118
|
##
|
107
119
|
# Create a new BareMetalSolution REST client object.
|
108
120
|
#
|
@@ -130,8 +142,9 @@ module Google
|
|
130
142
|
credentials = @config.credentials
|
131
143
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
132
144
|
# but only if the default endpoint does not have a region prefix.
|
133
|
-
enable_self_signed_jwt = @config.endpoint
|
134
|
-
|
145
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
146
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
147
|
+
!@config.endpoint.split(".").first.include?("-"))
|
135
148
|
credentials ||= Credentials.default scope: @config.scope,
|
136
149
|
enable_self_signed_jwt: enable_self_signed_jwt
|
137
150
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -145,12 +158,14 @@ module Google
|
|
145
158
|
config.credentials = credentials
|
146
159
|
config.quota_project = @quota_project_id
|
147
160
|
config.endpoint = @config.endpoint
|
161
|
+
config.universe_domain = @config.universe_domain
|
148
162
|
end
|
149
163
|
|
150
164
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
151
165
|
config.credentials = credentials
|
152
166
|
config.quota_project = @quota_project_id
|
153
167
|
config.endpoint = @config.endpoint
|
168
|
+
config.universe_domain = @config.universe_domain
|
154
169
|
config.bindings_override = @config.bindings_override
|
155
170
|
end
|
156
171
|
|
@@ -158,9 +173,15 @@ module Google
|
|
158
173
|
config.credentials = credentials
|
159
174
|
config.quota_project = @quota_project_id
|
160
175
|
config.endpoint = @config.endpoint
|
176
|
+
config.universe_domain = @config.universe_domain
|
161
177
|
end
|
162
178
|
|
163
|
-
@bare_metal_solution_stub = ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::ServiceStub.new
|
179
|
+
@bare_metal_solution_stub = ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::ServiceStub.new(
|
180
|
+
endpoint: @config.endpoint,
|
181
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
182
|
+
universe_domain: @config.universe_domain,
|
183
|
+
credentials: credentials
|
184
|
+
)
|
164
185
|
end
|
165
186
|
|
166
187
|
##
|
@@ -220,6 +241,26 @@ module Google
|
|
220
241
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse]
|
221
242
|
#
|
222
243
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
244
|
+
#
|
245
|
+
# @example Basic example
|
246
|
+
# require "google/cloud/bare_metal_solution/v2"
|
247
|
+
#
|
248
|
+
# # Create a client object. The client can be reused for multiple calls.
|
249
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
250
|
+
#
|
251
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
252
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListInstancesRequest.new
|
253
|
+
#
|
254
|
+
# # Call the list_instances method.
|
255
|
+
# result = client.list_instances request
|
256
|
+
#
|
257
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
258
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
259
|
+
# result.each do |item|
|
260
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::Instance.
|
261
|
+
# p item
|
262
|
+
# end
|
263
|
+
#
|
223
264
|
def list_instances request, options = nil
|
224
265
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
225
266
|
|
@@ -282,6 +323,22 @@ module Google
|
|
282
323
|
# @return [::Google::Cloud::BareMetalSolution::V2::Instance]
|
283
324
|
#
|
284
325
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
326
|
+
#
|
327
|
+
# @example Basic example
|
328
|
+
# require "google/cloud/bare_metal_solution/v2"
|
329
|
+
#
|
330
|
+
# # Create a client object. The client can be reused for multiple calls.
|
331
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
332
|
+
#
|
333
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
334
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetInstanceRequest.new
|
335
|
+
#
|
336
|
+
# # Call the get_instance method.
|
337
|
+
# result = client.get_instance request
|
338
|
+
#
|
339
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Instance.
|
340
|
+
# p result
|
341
|
+
#
|
285
342
|
def get_instance request, options = nil
|
286
343
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
287
344
|
|
@@ -353,6 +410,29 @@ module Google
|
|
353
410
|
# @return [::Gapic::Operation]
|
354
411
|
#
|
355
412
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
413
|
+
#
|
414
|
+
# @example Basic example
|
415
|
+
# require "google/cloud/bare_metal_solution/v2"
|
416
|
+
#
|
417
|
+
# # Create a client object. The client can be reused for multiple calls.
|
418
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
419
|
+
#
|
420
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
421
|
+
# request = Google::Cloud::BareMetalSolution::V2::UpdateInstanceRequest.new
|
422
|
+
#
|
423
|
+
# # Call the update_instance method.
|
424
|
+
# result = client.update_instance request
|
425
|
+
#
|
426
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
427
|
+
# # check the status of an operation, cancel it, or wait for results.
|
428
|
+
# # Here is how to wait for a response.
|
429
|
+
# result.wait_until_done! timeout: 60
|
430
|
+
# if result.response?
|
431
|
+
# p result.response
|
432
|
+
# else
|
433
|
+
# puts "No response received."
|
434
|
+
# end
|
435
|
+
#
|
356
436
|
def update_instance request, options = nil
|
357
437
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
358
438
|
|
@@ -420,6 +500,22 @@ module Google
|
|
420
500
|
# @return [::Google::Cloud::BareMetalSolution::V2::Instance]
|
421
501
|
#
|
422
502
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
503
|
+
#
|
504
|
+
# @example Basic example
|
505
|
+
# require "google/cloud/bare_metal_solution/v2"
|
506
|
+
#
|
507
|
+
# # Create a client object. The client can be reused for multiple calls.
|
508
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
509
|
+
#
|
510
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
511
|
+
# request = Google::Cloud::BareMetalSolution::V2::RenameInstanceRequest.new
|
512
|
+
#
|
513
|
+
# # Call the rename_instance method.
|
514
|
+
# result = client.rename_instance request
|
515
|
+
#
|
516
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Instance.
|
517
|
+
# p result
|
518
|
+
#
|
423
519
|
def rename_instance request, options = nil
|
424
520
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
425
521
|
|
@@ -483,6 +579,29 @@ module Google
|
|
483
579
|
# @return [::Gapic::Operation]
|
484
580
|
#
|
485
581
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
582
|
+
#
|
583
|
+
# @example Basic example
|
584
|
+
# require "google/cloud/bare_metal_solution/v2"
|
585
|
+
#
|
586
|
+
# # Create a client object. The client can be reused for multiple calls.
|
587
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
588
|
+
#
|
589
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
590
|
+
# request = Google::Cloud::BareMetalSolution::V2::ResetInstanceRequest.new
|
591
|
+
#
|
592
|
+
# # Call the reset_instance method.
|
593
|
+
# result = client.reset_instance request
|
594
|
+
#
|
595
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
596
|
+
# # check the status of an operation, cancel it, or wait for results.
|
597
|
+
# # Here is how to wait for a response.
|
598
|
+
# result.wait_until_done! timeout: 60
|
599
|
+
# if result.response?
|
600
|
+
# p result.response
|
601
|
+
# else
|
602
|
+
# puts "No response received."
|
603
|
+
# end
|
604
|
+
#
|
486
605
|
def reset_instance request, options = nil
|
487
606
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
488
607
|
|
@@ -546,6 +665,29 @@ module Google
|
|
546
665
|
# @return [::Gapic::Operation]
|
547
666
|
#
|
548
667
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
668
|
+
#
|
669
|
+
# @example Basic example
|
670
|
+
# require "google/cloud/bare_metal_solution/v2"
|
671
|
+
#
|
672
|
+
# # Create a client object. The client can be reused for multiple calls.
|
673
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
674
|
+
#
|
675
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
676
|
+
# request = Google::Cloud::BareMetalSolution::V2::StartInstanceRequest.new
|
677
|
+
#
|
678
|
+
# # Call the start_instance method.
|
679
|
+
# result = client.start_instance request
|
680
|
+
#
|
681
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
682
|
+
# # check the status of an operation, cancel it, or wait for results.
|
683
|
+
# # Here is how to wait for a response.
|
684
|
+
# result.wait_until_done! timeout: 60
|
685
|
+
# if result.response?
|
686
|
+
# p result.response
|
687
|
+
# else
|
688
|
+
# puts "No response received."
|
689
|
+
# end
|
690
|
+
#
|
549
691
|
def start_instance request, options = nil
|
550
692
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
551
693
|
|
@@ -609,6 +751,29 @@ module Google
|
|
609
751
|
# @return [::Gapic::Operation]
|
610
752
|
#
|
611
753
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
754
|
+
#
|
755
|
+
# @example Basic example
|
756
|
+
# require "google/cloud/bare_metal_solution/v2"
|
757
|
+
#
|
758
|
+
# # Create a client object. The client can be reused for multiple calls.
|
759
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
760
|
+
#
|
761
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
762
|
+
# request = Google::Cloud::BareMetalSolution::V2::StopInstanceRequest.new
|
763
|
+
#
|
764
|
+
# # Call the stop_instance method.
|
765
|
+
# result = client.stop_instance request
|
766
|
+
#
|
767
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
768
|
+
# # check the status of an operation, cancel it, or wait for results.
|
769
|
+
# # Here is how to wait for a response.
|
770
|
+
# result.wait_until_done! timeout: 60
|
771
|
+
# if result.response?
|
772
|
+
# p result.response
|
773
|
+
# else
|
774
|
+
# puts "No response received."
|
775
|
+
# end
|
776
|
+
#
|
612
777
|
def stop_instance request, options = nil
|
613
778
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
614
779
|
|
@@ -672,6 +837,29 @@ module Google
|
|
672
837
|
# @return [::Gapic::Operation]
|
673
838
|
#
|
674
839
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
840
|
+
#
|
841
|
+
# @example Basic example
|
842
|
+
# require "google/cloud/bare_metal_solution/v2"
|
843
|
+
#
|
844
|
+
# # Create a client object. The client can be reused for multiple calls.
|
845
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
846
|
+
#
|
847
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
848
|
+
# request = Google::Cloud::BareMetalSolution::V2::EnableInteractiveSerialConsoleRequest.new
|
849
|
+
#
|
850
|
+
# # Call the enable_interactive_serial_console method.
|
851
|
+
# result = client.enable_interactive_serial_console request
|
852
|
+
#
|
853
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
854
|
+
# # check the status of an operation, cancel it, or wait for results.
|
855
|
+
# # Here is how to wait for a response.
|
856
|
+
# result.wait_until_done! timeout: 60
|
857
|
+
# if result.response?
|
858
|
+
# p result.response
|
859
|
+
# else
|
860
|
+
# puts "No response received."
|
861
|
+
# end
|
862
|
+
#
|
675
863
|
def enable_interactive_serial_console request, options = nil
|
676
864
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
677
865
|
|
@@ -735,6 +923,29 @@ module Google
|
|
735
923
|
# @return [::Gapic::Operation]
|
736
924
|
#
|
737
925
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
926
|
+
#
|
927
|
+
# @example Basic example
|
928
|
+
# require "google/cloud/bare_metal_solution/v2"
|
929
|
+
#
|
930
|
+
# # Create a client object. The client can be reused for multiple calls.
|
931
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
932
|
+
#
|
933
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
934
|
+
# request = Google::Cloud::BareMetalSolution::V2::DisableInteractiveSerialConsoleRequest.new
|
935
|
+
#
|
936
|
+
# # Call the disable_interactive_serial_console method.
|
937
|
+
# result = client.disable_interactive_serial_console request
|
938
|
+
#
|
939
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
940
|
+
# # check the status of an operation, cancel it, or wait for results.
|
941
|
+
# # Here is how to wait for a response.
|
942
|
+
# result.wait_until_done! timeout: 60
|
943
|
+
# if result.response?
|
944
|
+
# p result.response
|
945
|
+
# else
|
946
|
+
# puts "No response received."
|
947
|
+
# end
|
948
|
+
#
|
738
949
|
def disable_interactive_serial_console request, options = nil
|
739
950
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
740
951
|
|
@@ -802,6 +1013,29 @@ module Google
|
|
802
1013
|
# @return [::Gapic::Operation]
|
803
1014
|
#
|
804
1015
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1016
|
+
#
|
1017
|
+
# @example Basic example
|
1018
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1019
|
+
#
|
1020
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1021
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1022
|
+
#
|
1023
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1024
|
+
# request = Google::Cloud::BareMetalSolution::V2::DetachLunRequest.new
|
1025
|
+
#
|
1026
|
+
# # Call the detach_lun method.
|
1027
|
+
# result = client.detach_lun request
|
1028
|
+
#
|
1029
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1030
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1031
|
+
# # Here is how to wait for a response.
|
1032
|
+
# result.wait_until_done! timeout: 60
|
1033
|
+
# if result.response?
|
1034
|
+
# p result.response
|
1035
|
+
# else
|
1036
|
+
# puts "No response received."
|
1037
|
+
# end
|
1038
|
+
#
|
805
1039
|
def detach_lun request, options = nil
|
806
1040
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
807
1041
|
|
@@ -871,6 +1105,26 @@ module Google
|
|
871
1105
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::SSHKey>]
|
872
1106
|
#
|
873
1107
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1108
|
+
#
|
1109
|
+
# @example Basic example
|
1110
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1111
|
+
#
|
1112
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1113
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1114
|
+
#
|
1115
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1116
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListSSHKeysRequest.new
|
1117
|
+
#
|
1118
|
+
# # Call the list_ssh_keys method.
|
1119
|
+
# result = client.list_ssh_keys request
|
1120
|
+
#
|
1121
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1122
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1123
|
+
# result.each do |item|
|
1124
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::SSHKey.
|
1125
|
+
# p item
|
1126
|
+
# end
|
1127
|
+
#
|
874
1128
|
def list_ssh_keys request, options = nil
|
875
1129
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
876
1130
|
|
@@ -943,6 +1197,22 @@ module Google
|
|
943
1197
|
# @return [::Google::Cloud::BareMetalSolution::V2::SSHKey]
|
944
1198
|
#
|
945
1199
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1200
|
+
#
|
1201
|
+
# @example Basic example
|
1202
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1203
|
+
#
|
1204
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1205
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1206
|
+
#
|
1207
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1208
|
+
# request = Google::Cloud::BareMetalSolution::V2::CreateSSHKeyRequest.new
|
1209
|
+
#
|
1210
|
+
# # Call the create_ssh_key method.
|
1211
|
+
# result = client.create_ssh_key request
|
1212
|
+
#
|
1213
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::SSHKey.
|
1214
|
+
# p result
|
1215
|
+
#
|
946
1216
|
def create_ssh_key request, options = nil
|
947
1217
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
948
1218
|
|
@@ -1006,6 +1276,22 @@ module Google
|
|
1006
1276
|
# @return [::Google::Protobuf::Empty]
|
1007
1277
|
#
|
1008
1278
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1279
|
+
#
|
1280
|
+
# @example Basic example
|
1281
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1282
|
+
#
|
1283
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1284
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1285
|
+
#
|
1286
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1287
|
+
# request = Google::Cloud::BareMetalSolution::V2::DeleteSSHKeyRequest.new
|
1288
|
+
#
|
1289
|
+
# # Call the delete_ssh_key method.
|
1290
|
+
# result = client.delete_ssh_key request
|
1291
|
+
#
|
1292
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1293
|
+
# p result
|
1294
|
+
#
|
1009
1295
|
def delete_ssh_key request, options = nil
|
1010
1296
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1011
1297
|
|
@@ -1075,6 +1361,26 @@ module Google
|
|
1075
1361
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse]
|
1076
1362
|
#
|
1077
1363
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1364
|
+
#
|
1365
|
+
# @example Basic example
|
1366
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1367
|
+
#
|
1368
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1369
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1370
|
+
#
|
1371
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1372
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListVolumesRequest.new
|
1373
|
+
#
|
1374
|
+
# # Call the list_volumes method.
|
1375
|
+
# result = client.list_volumes request
|
1376
|
+
#
|
1377
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1378
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1379
|
+
# result.each do |item|
|
1380
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::Volume.
|
1381
|
+
# p item
|
1382
|
+
# end
|
1383
|
+
#
|
1078
1384
|
def list_volumes request, options = nil
|
1079
1385
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1080
1386
|
|
@@ -1137,6 +1443,22 @@ module Google
|
|
1137
1443
|
# @return [::Google::Cloud::BareMetalSolution::V2::Volume]
|
1138
1444
|
#
|
1139
1445
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1446
|
+
#
|
1447
|
+
# @example Basic example
|
1448
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1449
|
+
#
|
1450
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1451
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1452
|
+
#
|
1453
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1454
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetVolumeRequest.new
|
1455
|
+
#
|
1456
|
+
# # Call the get_volume method.
|
1457
|
+
# result = client.get_volume request
|
1458
|
+
#
|
1459
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Volume.
|
1460
|
+
# p result
|
1461
|
+
#
|
1140
1462
|
def get_volume request, options = nil
|
1141
1463
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1142
1464
|
|
@@ -1206,6 +1528,29 @@ module Google
|
|
1206
1528
|
# @return [::Gapic::Operation]
|
1207
1529
|
#
|
1208
1530
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1531
|
+
#
|
1532
|
+
# @example Basic example
|
1533
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1534
|
+
#
|
1535
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1536
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1537
|
+
#
|
1538
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1539
|
+
# request = Google::Cloud::BareMetalSolution::V2::UpdateVolumeRequest.new
|
1540
|
+
#
|
1541
|
+
# # Call the update_volume method.
|
1542
|
+
# result = client.update_volume request
|
1543
|
+
#
|
1544
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1545
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1546
|
+
# # Here is how to wait for a response.
|
1547
|
+
# result.wait_until_done! timeout: 60
|
1548
|
+
# if result.response?
|
1549
|
+
# p result.response
|
1550
|
+
# else
|
1551
|
+
# puts "No response received."
|
1552
|
+
# end
|
1553
|
+
#
|
1209
1554
|
def update_volume request, options = nil
|
1210
1555
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1211
1556
|
|
@@ -1273,6 +1618,22 @@ module Google
|
|
1273
1618
|
# @return [::Google::Cloud::BareMetalSolution::V2::Volume]
|
1274
1619
|
#
|
1275
1620
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1621
|
+
#
|
1622
|
+
# @example Basic example
|
1623
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1624
|
+
#
|
1625
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1626
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1627
|
+
#
|
1628
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1629
|
+
# request = Google::Cloud::BareMetalSolution::V2::RenameVolumeRequest.new
|
1630
|
+
#
|
1631
|
+
# # Call the rename_volume method.
|
1632
|
+
# result = client.rename_volume request
|
1633
|
+
#
|
1634
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Volume.
|
1635
|
+
# p result
|
1636
|
+
#
|
1276
1637
|
def rename_volume request, options = nil
|
1277
1638
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1278
1639
|
|
@@ -1336,6 +1697,29 @@ module Google
|
|
1336
1697
|
# @return [::Gapic::Operation]
|
1337
1698
|
#
|
1338
1699
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1700
|
+
#
|
1701
|
+
# @example Basic example
|
1702
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1703
|
+
#
|
1704
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1705
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1706
|
+
#
|
1707
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1708
|
+
# request = Google::Cloud::BareMetalSolution::V2::EvictVolumeRequest.new
|
1709
|
+
#
|
1710
|
+
# # Call the evict_volume method.
|
1711
|
+
# result = client.evict_volume request
|
1712
|
+
#
|
1713
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1714
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1715
|
+
# # Here is how to wait for a response.
|
1716
|
+
# result.wait_until_done! timeout: 60
|
1717
|
+
# if result.response?
|
1718
|
+
# p result.response
|
1719
|
+
# else
|
1720
|
+
# puts "No response received."
|
1721
|
+
# end
|
1722
|
+
#
|
1339
1723
|
def evict_volume request, options = nil
|
1340
1724
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1341
1725
|
|
@@ -1401,6 +1785,29 @@ module Google
|
|
1401
1785
|
# @return [::Gapic::Operation]
|
1402
1786
|
#
|
1403
1787
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1788
|
+
#
|
1789
|
+
# @example Basic example
|
1790
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1791
|
+
#
|
1792
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1793
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1794
|
+
#
|
1795
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1796
|
+
# request = Google::Cloud::BareMetalSolution::V2::ResizeVolumeRequest.new
|
1797
|
+
#
|
1798
|
+
# # Call the resize_volume method.
|
1799
|
+
# result = client.resize_volume request
|
1800
|
+
#
|
1801
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1802
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1803
|
+
# # Here is how to wait for a response.
|
1804
|
+
# result.wait_until_done! timeout: 60
|
1805
|
+
# if result.response?
|
1806
|
+
# p result.response
|
1807
|
+
# else
|
1808
|
+
# puts "No response received."
|
1809
|
+
# end
|
1810
|
+
#
|
1404
1811
|
def resize_volume request, options = nil
|
1405
1812
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1406
1813
|
|
@@ -1471,6 +1878,26 @@ module Google
|
|
1471
1878
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse]
|
1472
1879
|
#
|
1473
1880
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1881
|
+
#
|
1882
|
+
# @example Basic example
|
1883
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1884
|
+
#
|
1885
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1886
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1887
|
+
#
|
1888
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1889
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListNetworksRequest.new
|
1890
|
+
#
|
1891
|
+
# # Call the list_networks method.
|
1892
|
+
# result = client.list_networks request
|
1893
|
+
#
|
1894
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1895
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1896
|
+
# result.each do |item|
|
1897
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::Network.
|
1898
|
+
# p item
|
1899
|
+
# end
|
1900
|
+
#
|
1474
1901
|
def list_networks request, options = nil
|
1475
1902
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1476
1903
|
|
@@ -1534,6 +1961,22 @@ module Google
|
|
1534
1961
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse]
|
1535
1962
|
#
|
1536
1963
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1964
|
+
#
|
1965
|
+
# @example Basic example
|
1966
|
+
# require "google/cloud/bare_metal_solution/v2"
|
1967
|
+
#
|
1968
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1969
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
1970
|
+
#
|
1971
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1972
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListNetworkUsageRequest.new
|
1973
|
+
#
|
1974
|
+
# # Call the list_network_usage method.
|
1975
|
+
# result = client.list_network_usage request
|
1976
|
+
#
|
1977
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse.
|
1978
|
+
# p result
|
1979
|
+
#
|
1537
1980
|
def list_network_usage request, options = nil
|
1538
1981
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1539
1982
|
|
@@ -1596,6 +2039,22 @@ module Google
|
|
1596
2039
|
# @return [::Google::Cloud::BareMetalSolution::V2::Network]
|
1597
2040
|
#
|
1598
2041
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2042
|
+
#
|
2043
|
+
# @example Basic example
|
2044
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2045
|
+
#
|
2046
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2047
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2048
|
+
#
|
2049
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2050
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetNetworkRequest.new
|
2051
|
+
#
|
2052
|
+
# # Call the get_network method.
|
2053
|
+
# result = client.get_network request
|
2054
|
+
#
|
2055
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Network.
|
2056
|
+
# p result
|
2057
|
+
#
|
1599
2058
|
def get_network request, options = nil
|
1600
2059
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1601
2060
|
|
@@ -1665,6 +2124,29 @@ module Google
|
|
1665
2124
|
# @return [::Gapic::Operation]
|
1666
2125
|
#
|
1667
2126
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2127
|
+
#
|
2128
|
+
# @example Basic example
|
2129
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2130
|
+
#
|
2131
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2132
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2133
|
+
#
|
2134
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2135
|
+
# request = Google::Cloud::BareMetalSolution::V2::UpdateNetworkRequest.new
|
2136
|
+
#
|
2137
|
+
# # Call the update_network method.
|
2138
|
+
# result = client.update_network request
|
2139
|
+
#
|
2140
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2141
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2142
|
+
# # Here is how to wait for a response.
|
2143
|
+
# result.wait_until_done! timeout: 60
|
2144
|
+
# if result.response?
|
2145
|
+
# p result.response
|
2146
|
+
# else
|
2147
|
+
# puts "No response received."
|
2148
|
+
# end
|
2149
|
+
#
|
1668
2150
|
def update_network request, options = nil
|
1669
2151
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1670
2152
|
|
@@ -1731,6 +2213,22 @@ module Google
|
|
1731
2213
|
# @return [::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot]
|
1732
2214
|
#
|
1733
2215
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2216
|
+
#
|
2217
|
+
# @example Basic example
|
2218
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2219
|
+
#
|
2220
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2221
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2222
|
+
#
|
2223
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2224
|
+
# request = Google::Cloud::BareMetalSolution::V2::CreateVolumeSnapshotRequest.new
|
2225
|
+
#
|
2226
|
+
# # Call the create_volume_snapshot method.
|
2227
|
+
# result = client.create_volume_snapshot request
|
2228
|
+
#
|
2229
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::VolumeSnapshot.
|
2230
|
+
# p result
|
2231
|
+
#
|
1734
2232
|
def create_volume_snapshot request, options = nil
|
1735
2233
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1736
2234
|
|
@@ -1795,6 +2293,29 @@ module Google
|
|
1795
2293
|
# @return [::Gapic::Operation]
|
1796
2294
|
#
|
1797
2295
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2296
|
+
#
|
2297
|
+
# @example Basic example
|
2298
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2299
|
+
#
|
2300
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2301
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2302
|
+
#
|
2303
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2304
|
+
# request = Google::Cloud::BareMetalSolution::V2::RestoreVolumeSnapshotRequest.new
|
2305
|
+
#
|
2306
|
+
# # Call the restore_volume_snapshot method.
|
2307
|
+
# result = client.restore_volume_snapshot request
|
2308
|
+
#
|
2309
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2310
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2311
|
+
# # Here is how to wait for a response.
|
2312
|
+
# result.wait_until_done! timeout: 60
|
2313
|
+
# if result.response?
|
2314
|
+
# p result.response
|
2315
|
+
# else
|
2316
|
+
# puts "No response received."
|
2317
|
+
# end
|
2318
|
+
#
|
1798
2319
|
def restore_volume_snapshot request, options = nil
|
1799
2320
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1800
2321
|
|
@@ -1859,6 +2380,22 @@ module Google
|
|
1859
2380
|
# @return [::Google::Protobuf::Empty]
|
1860
2381
|
#
|
1861
2382
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2383
|
+
#
|
2384
|
+
# @example Basic example
|
2385
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2386
|
+
#
|
2387
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2388
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2389
|
+
#
|
2390
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2391
|
+
# request = Google::Cloud::BareMetalSolution::V2::DeleteVolumeSnapshotRequest.new
|
2392
|
+
#
|
2393
|
+
# # Call the delete_volume_snapshot method.
|
2394
|
+
# result = client.delete_volume_snapshot request
|
2395
|
+
#
|
2396
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2397
|
+
# p result
|
2398
|
+
#
|
1862
2399
|
def delete_volume_snapshot request, options = nil
|
1863
2400
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1864
2401
|
|
@@ -1922,6 +2459,22 @@ module Google
|
|
1922
2459
|
# @return [::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot]
|
1923
2460
|
#
|
1924
2461
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2462
|
+
#
|
2463
|
+
# @example Basic example
|
2464
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2465
|
+
#
|
2466
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2467
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2468
|
+
#
|
2469
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2470
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetVolumeSnapshotRequest.new
|
2471
|
+
#
|
2472
|
+
# # Call the get_volume_snapshot method.
|
2473
|
+
# result = client.get_volume_snapshot request
|
2474
|
+
#
|
2475
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::VolumeSnapshot.
|
2476
|
+
# p result
|
2477
|
+
#
|
1925
2478
|
def get_volume_snapshot request, options = nil
|
1926
2479
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1927
2480
|
|
@@ -1991,6 +2544,26 @@ module Google
|
|
1991
2544
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsResponse]
|
1992
2545
|
#
|
1993
2546
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2547
|
+
#
|
2548
|
+
# @example Basic example
|
2549
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2550
|
+
#
|
2551
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2552
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2553
|
+
#
|
2554
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2555
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsRequest.new
|
2556
|
+
#
|
2557
|
+
# # Call the list_volume_snapshots method.
|
2558
|
+
# result = client.list_volume_snapshots request
|
2559
|
+
#
|
2560
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2561
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2562
|
+
# result.each do |item|
|
2563
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot.
|
2564
|
+
# p item
|
2565
|
+
# end
|
2566
|
+
#
|
1994
2567
|
def list_volume_snapshots request, options = nil
|
1995
2568
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1996
2569
|
|
@@ -2053,6 +2626,22 @@ module Google
|
|
2053
2626
|
# @return [::Google::Cloud::BareMetalSolution::V2::Lun]
|
2054
2627
|
#
|
2055
2628
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2629
|
+
#
|
2630
|
+
# @example Basic example
|
2631
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2632
|
+
#
|
2633
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2634
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2635
|
+
#
|
2636
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2637
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetLunRequest.new
|
2638
|
+
#
|
2639
|
+
# # Call the get_lun method.
|
2640
|
+
# result = client.get_lun request
|
2641
|
+
#
|
2642
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Lun.
|
2643
|
+
# p result
|
2644
|
+
#
|
2056
2645
|
def get_lun request, options = nil
|
2057
2646
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2058
2647
|
|
@@ -2120,6 +2709,26 @@ module Google
|
|
2120
2709
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListLunsResponse]
|
2121
2710
|
#
|
2122
2711
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2712
|
+
#
|
2713
|
+
# @example Basic example
|
2714
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2715
|
+
#
|
2716
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2717
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2718
|
+
#
|
2719
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2720
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListLunsRequest.new
|
2721
|
+
#
|
2722
|
+
# # Call the list_luns method.
|
2723
|
+
# result = client.list_luns request
|
2724
|
+
#
|
2725
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2726
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2727
|
+
# result.each do |item|
|
2728
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::Lun.
|
2729
|
+
# p item
|
2730
|
+
# end
|
2731
|
+
#
|
2123
2732
|
def list_luns request, options = nil
|
2124
2733
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2125
2734
|
|
@@ -2183,6 +2792,29 @@ module Google
|
|
2183
2792
|
# @return [::Gapic::Operation]
|
2184
2793
|
#
|
2185
2794
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2795
|
+
#
|
2796
|
+
# @example Basic example
|
2797
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2798
|
+
#
|
2799
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2800
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2801
|
+
#
|
2802
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2803
|
+
# request = Google::Cloud::BareMetalSolution::V2::EvictLunRequest.new
|
2804
|
+
#
|
2805
|
+
# # Call the evict_lun method.
|
2806
|
+
# result = client.evict_lun request
|
2807
|
+
#
|
2808
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2809
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2810
|
+
# # Here is how to wait for a response.
|
2811
|
+
# result.wait_until_done! timeout: 60
|
2812
|
+
# if result.response?
|
2813
|
+
# p result.response
|
2814
|
+
# else
|
2815
|
+
# puts "No response received."
|
2816
|
+
# end
|
2817
|
+
#
|
2186
2818
|
def evict_lun request, options = nil
|
2187
2819
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2188
2820
|
|
@@ -2246,6 +2878,22 @@ module Google
|
|
2246
2878
|
# @return [::Google::Cloud::BareMetalSolution::V2::NfsShare]
|
2247
2879
|
#
|
2248
2880
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2881
|
+
#
|
2882
|
+
# @example Basic example
|
2883
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2884
|
+
#
|
2885
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2886
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2887
|
+
#
|
2888
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2889
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetNfsShareRequest.new
|
2890
|
+
#
|
2891
|
+
# # Call the get_nfs_share method.
|
2892
|
+
# result = client.get_nfs_share request
|
2893
|
+
#
|
2894
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::NfsShare.
|
2895
|
+
# p result
|
2896
|
+
#
|
2249
2897
|
def get_nfs_share request, options = nil
|
2250
2898
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2251
2899
|
|
@@ -2315,6 +2963,26 @@ module Google
|
|
2315
2963
|
# @return [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse]
|
2316
2964
|
#
|
2317
2965
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2966
|
+
#
|
2967
|
+
# @example Basic example
|
2968
|
+
# require "google/cloud/bare_metal_solution/v2"
|
2969
|
+
#
|
2970
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2971
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
2972
|
+
#
|
2973
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2974
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListNfsSharesRequest.new
|
2975
|
+
#
|
2976
|
+
# # Call the list_nfs_shares method.
|
2977
|
+
# result = client.list_nfs_shares request
|
2978
|
+
#
|
2979
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2980
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2981
|
+
# result.each do |item|
|
2982
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::NfsShare.
|
2983
|
+
# p item
|
2984
|
+
# end
|
2985
|
+
#
|
2318
2986
|
def list_nfs_shares request, options = nil
|
2319
2987
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2320
2988
|
|
@@ -2385,6 +3053,29 @@ module Google
|
|
2385
3053
|
# @return [::Gapic::Operation]
|
2386
3054
|
#
|
2387
3055
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3056
|
+
#
|
3057
|
+
# @example Basic example
|
3058
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3059
|
+
#
|
3060
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3061
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3062
|
+
#
|
3063
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3064
|
+
# request = Google::Cloud::BareMetalSolution::V2::UpdateNfsShareRequest.new
|
3065
|
+
#
|
3066
|
+
# # Call the update_nfs_share method.
|
3067
|
+
# result = client.update_nfs_share request
|
3068
|
+
#
|
3069
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3070
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3071
|
+
# # Here is how to wait for a response.
|
3072
|
+
# result.wait_until_done! timeout: 60
|
3073
|
+
# if result.response?
|
3074
|
+
# p result.response
|
3075
|
+
# else
|
3076
|
+
# puts "No response received."
|
3077
|
+
# end
|
3078
|
+
#
|
2388
3079
|
def update_nfs_share request, options = nil
|
2389
3080
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2390
3081
|
|
@@ -2450,6 +3141,29 @@ module Google
|
|
2450
3141
|
# @return [::Gapic::Operation]
|
2451
3142
|
#
|
2452
3143
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3144
|
+
#
|
3145
|
+
# @example Basic example
|
3146
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3147
|
+
#
|
3148
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3149
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3150
|
+
#
|
3151
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3152
|
+
# request = Google::Cloud::BareMetalSolution::V2::CreateNfsShareRequest.new
|
3153
|
+
#
|
3154
|
+
# # Call the create_nfs_share method.
|
3155
|
+
# result = client.create_nfs_share request
|
3156
|
+
#
|
3157
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3158
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3159
|
+
# # Here is how to wait for a response.
|
3160
|
+
# result.wait_until_done! timeout: 60
|
3161
|
+
# if result.response?
|
3162
|
+
# p result.response
|
3163
|
+
# else
|
3164
|
+
# puts "No response received."
|
3165
|
+
# end
|
3166
|
+
#
|
2453
3167
|
def create_nfs_share request, options = nil
|
2454
3168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2455
3169
|
|
@@ -2517,6 +3231,22 @@ module Google
|
|
2517
3231
|
# @return [::Google::Cloud::BareMetalSolution::V2::NfsShare]
|
2518
3232
|
#
|
2519
3233
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3234
|
+
#
|
3235
|
+
# @example Basic example
|
3236
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3237
|
+
#
|
3238
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3239
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3240
|
+
#
|
3241
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3242
|
+
# request = Google::Cloud::BareMetalSolution::V2::RenameNfsShareRequest.new
|
3243
|
+
#
|
3244
|
+
# # Call the rename_nfs_share method.
|
3245
|
+
# result = client.rename_nfs_share request
|
3246
|
+
#
|
3247
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::NfsShare.
|
3248
|
+
# p result
|
3249
|
+
#
|
2520
3250
|
def rename_nfs_share request, options = nil
|
2521
3251
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2522
3252
|
|
@@ -2579,6 +3309,29 @@ module Google
|
|
2579
3309
|
# @return [::Gapic::Operation]
|
2580
3310
|
#
|
2581
3311
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3312
|
+
#
|
3313
|
+
# @example Basic example
|
3314
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3315
|
+
#
|
3316
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3317
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3318
|
+
#
|
3319
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3320
|
+
# request = Google::Cloud::BareMetalSolution::V2::DeleteNfsShareRequest.new
|
3321
|
+
#
|
3322
|
+
# # Call the delete_nfs_share method.
|
3323
|
+
# result = client.delete_nfs_share request
|
3324
|
+
#
|
3325
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3326
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3327
|
+
# # Here is how to wait for a response.
|
3328
|
+
# result.wait_until_done! timeout: 60
|
3329
|
+
# if result.response?
|
3330
|
+
# p result.response
|
3331
|
+
# else
|
3332
|
+
# puts "No response received."
|
3333
|
+
# end
|
3334
|
+
#
|
2582
3335
|
def delete_nfs_share request, options = nil
|
2583
3336
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2584
3337
|
|
@@ -2649,6 +3402,26 @@ module Google
|
|
2649
3402
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::ProvisioningQuota>]
|
2650
3403
|
#
|
2651
3404
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3405
|
+
#
|
3406
|
+
# @example Basic example
|
3407
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3408
|
+
#
|
3409
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3410
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3411
|
+
#
|
3412
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3413
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListProvisioningQuotasRequest.new
|
3414
|
+
#
|
3415
|
+
# # Call the list_provisioning_quotas method.
|
3416
|
+
# result = client.list_provisioning_quotas request
|
3417
|
+
#
|
3418
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3419
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3420
|
+
# result.each do |item|
|
3421
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::ProvisioningQuota.
|
3422
|
+
# p item
|
3423
|
+
# end
|
3424
|
+
#
|
2652
3425
|
def list_provisioning_quotas request, options = nil
|
2653
3426
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2654
3427
|
|
@@ -2718,6 +3491,22 @@ module Google
|
|
2718
3491
|
# @return [::Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigResponse]
|
2719
3492
|
#
|
2720
3493
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3494
|
+
#
|
3495
|
+
# @example Basic example
|
3496
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3497
|
+
#
|
3498
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3499
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3500
|
+
#
|
3501
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3502
|
+
# request = Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigRequest.new
|
3503
|
+
#
|
3504
|
+
# # Call the submit_provisioning_config method.
|
3505
|
+
# result = client.submit_provisioning_config request
|
3506
|
+
#
|
3507
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigResponse.
|
3508
|
+
# p result
|
3509
|
+
#
|
2721
3510
|
def submit_provisioning_config request, options = nil
|
2722
3511
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2723
3512
|
|
@@ -2780,6 +3569,22 @@ module Google
|
|
2780
3569
|
# @return [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
|
2781
3570
|
#
|
2782
3571
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3572
|
+
#
|
3573
|
+
# @example Basic example
|
3574
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3575
|
+
#
|
3576
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3577
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3578
|
+
#
|
3579
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3580
|
+
# request = Google::Cloud::BareMetalSolution::V2::GetProvisioningConfigRequest.new
|
3581
|
+
#
|
3582
|
+
# # Call the get_provisioning_config method.
|
3583
|
+
# result = client.get_provisioning_config request
|
3584
|
+
#
|
3585
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::ProvisioningConfig.
|
3586
|
+
# p result
|
3587
|
+
#
|
2783
3588
|
def get_provisioning_config request, options = nil
|
2784
3589
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2785
3590
|
|
@@ -2848,6 +3653,22 @@ module Google
|
|
2848
3653
|
# @return [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
|
2849
3654
|
#
|
2850
3655
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3656
|
+
#
|
3657
|
+
# @example Basic example
|
3658
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3659
|
+
#
|
3660
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3661
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3662
|
+
#
|
3663
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3664
|
+
# request = Google::Cloud::BareMetalSolution::V2::CreateProvisioningConfigRequest.new
|
3665
|
+
#
|
3666
|
+
# # Call the create_provisioning_config method.
|
3667
|
+
# result = client.create_provisioning_config request
|
3668
|
+
#
|
3669
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::ProvisioningConfig.
|
3670
|
+
# p result
|
3671
|
+
#
|
2851
3672
|
def create_provisioning_config request, options = nil
|
2852
3673
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2853
3674
|
|
@@ -2915,6 +3736,22 @@ module Google
|
|
2915
3736
|
# @return [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
|
2916
3737
|
#
|
2917
3738
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3739
|
+
#
|
3740
|
+
# @example Basic example
|
3741
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3742
|
+
#
|
3743
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3744
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3745
|
+
#
|
3746
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3747
|
+
# request = Google::Cloud::BareMetalSolution::V2::UpdateProvisioningConfigRequest.new
|
3748
|
+
#
|
3749
|
+
# # Call the update_provisioning_config method.
|
3750
|
+
# result = client.update_provisioning_config request
|
3751
|
+
#
|
3752
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::ProvisioningConfig.
|
3753
|
+
# p result
|
3754
|
+
#
|
2918
3755
|
def update_provisioning_config request, options = nil
|
2919
3756
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2920
3757
|
|
@@ -2981,6 +3818,22 @@ module Google
|
|
2981
3818
|
# @return [::Google::Cloud::BareMetalSolution::V2::Network]
|
2982
3819
|
#
|
2983
3820
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3821
|
+
#
|
3822
|
+
# @example Basic example
|
3823
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3824
|
+
#
|
3825
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3826
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3827
|
+
#
|
3828
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3829
|
+
# request = Google::Cloud::BareMetalSolution::V2::RenameNetworkRequest.new
|
3830
|
+
#
|
3831
|
+
# # Call the rename_network method.
|
3832
|
+
# result = client.rename_network request
|
3833
|
+
#
|
3834
|
+
# # The returned object is of type Google::Cloud::BareMetalSolution::V2::Network.
|
3835
|
+
# p result
|
3836
|
+
#
|
2984
3837
|
def rename_network request, options = nil
|
2985
3838
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2986
3839
|
|
@@ -3050,6 +3903,26 @@ module Google
|
|
3050
3903
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::OSImage>]
|
3051
3904
|
#
|
3052
3905
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3906
|
+
#
|
3907
|
+
# @example Basic example
|
3908
|
+
# require "google/cloud/bare_metal_solution/v2"
|
3909
|
+
#
|
3910
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3911
|
+
# client = Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new
|
3912
|
+
#
|
3913
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3914
|
+
# request = Google::Cloud::BareMetalSolution::V2::ListOSImagesRequest.new
|
3915
|
+
#
|
3916
|
+
# # Call the list_os_images method.
|
3917
|
+
# result = client.list_os_images request
|
3918
|
+
#
|
3919
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3920
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3921
|
+
# result.each do |item|
|
3922
|
+
# # Each element is of type ::Google::Cloud::BareMetalSolution::V2::OSImage.
|
3923
|
+
# p item
|
3924
|
+
# end
|
3925
|
+
#
|
3053
3926
|
def list_os_images request, options = nil
|
3054
3927
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3055
3928
|
|
@@ -3116,9 +3989,9 @@ module Google
|
|
3116
3989
|
# end
|
3117
3990
|
#
|
3118
3991
|
# @!attribute [rw] endpoint
|
3119
|
-
#
|
3120
|
-
#
|
3121
|
-
# @return [::String]
|
3992
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
3993
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
3994
|
+
# @return [::String,nil]
|
3122
3995
|
# @!attribute [rw] credentials
|
3123
3996
|
# Credentials to send with calls. You may provide any of the following types:
|
3124
3997
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -3155,13 +4028,20 @@ module Google
|
|
3155
4028
|
# @!attribute [rw] quota_project
|
3156
4029
|
# A separate project against which to charge quota.
|
3157
4030
|
# @return [::String]
|
4031
|
+
# @!attribute [rw] universe_domain
|
4032
|
+
# The universe domain within which to make requests. This determines the
|
4033
|
+
# default endpoint URL. The default value of nil uses the environment
|
4034
|
+
# universe (usually the default "googleapis.com" universe).
|
4035
|
+
# @return [::String,nil]
|
3158
4036
|
#
|
3159
4037
|
class Configuration
|
3160
4038
|
extend ::Gapic::Config
|
3161
4039
|
|
4040
|
+
# @private
|
4041
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
3162
4042
|
DEFAULT_ENDPOINT = "baremetalsolution.googleapis.com"
|
3163
4043
|
|
3164
|
-
config_attr :endpoint,
|
4044
|
+
config_attr :endpoint, nil, ::String, nil
|
3165
4045
|
config_attr :credentials, nil do |value|
|
3166
4046
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3167
4047
|
allowed.any? { |klass| klass === value }
|
@@ -3173,6 +4053,7 @@ module Google
|
|
3173
4053
|
config_attr :metadata, nil, ::Hash, nil
|
3174
4054
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
3175
4055
|
config_attr :quota_project, nil, ::String, nil
|
4056
|
+
config_attr :universe_domain, nil, ::String, nil
|
3176
4057
|
|
3177
4058
|
# @private
|
3178
4059
|
# Overrides for http bindings for the RPCs of this service
|