google-cloud-bare_metal_solution-v2 0.4.0 → 0.5.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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/client.rb +2773 -407
  3. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/operations.rb +3 -1
  4. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/paths.rb +135 -0
  5. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/client.rb +2035 -287
  6. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/operations.rb +7 -5
  7. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/service_stub.rb +1684 -253
  8. data/lib/google/cloud/bare_metal_solution/v2/version.rb +1 -1
  9. data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_pb.rb +7 -6
  10. data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_services_pb.rb +62 -0
  11. data/lib/google/cloud/baremetalsolution/v2/common_pb.rb +48 -0
  12. data/lib/google/cloud/baremetalsolution/v2/instance_pb.rb +12 -6
  13. data/lib/google/cloud/baremetalsolution/v2/lun_pb.rb +4 -1
  14. data/lib/google/cloud/baremetalsolution/v2/network_pb.rb +3 -1
  15. data/lib/google/cloud/baremetalsolution/v2/nfs_share_pb.rb +5 -1
  16. data/lib/google/cloud/baremetalsolution/v2/osimage_pb.rb +47 -0
  17. data/lib/google/cloud/baremetalsolution/v2/provisioning_pb.rb +80 -0
  18. data/lib/google/cloud/baremetalsolution/v2/ssh_key_pb.rb +49 -0
  19. data/lib/google/cloud/baremetalsolution/v2/volume_pb.rb +8 -1
  20. data/lib/google/cloud/baremetalsolution/v2/volume_snapshot_pb.rb +54 -0
  21. data/proto_docs/google/cloud/baremetalsolution/v2/{baremetalsolution.rb → common.rb} +36 -14
  22. data/proto_docs/google/cloud/baremetalsolution/v2/instance.rb +95 -68
  23. data/proto_docs/google/cloud/baremetalsolution/v2/lun.rb +19 -0
  24. data/proto_docs/google/cloud/baremetalsolution/v2/network.rb +68 -2
  25. data/proto_docs/google/cloud/baremetalsolution/v2/nfs_share.rb +83 -9
  26. data/proto_docs/google/cloud/baremetalsolution/v2/osimage.rb +80 -0
  27. data/proto_docs/google/cloud/baremetalsolution/v2/provisioning.rb +639 -0
  28. data/proto_docs/google/cloud/baremetalsolution/v2/ssh_key.rb +97 -0
  29. data/proto_docs/google/cloud/baremetalsolution/v2/volume.rb +91 -4
  30. data/proto_docs/google/cloud/baremetalsolution/v2/volume_snapshot.rb +134 -0
  31. data/proto_docs/google/type/expr.rb +75 -0
  32. metadata +15 -5
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_instances_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_instance_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_update_instance_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -154,6 +154,44 @@ module Google
154
154
  result
155
155
  end
156
156
 
157
+ ##
158
+ # Baseline implementation for the rename_instance REST call
159
+ #
160
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::RenameInstanceRequest]
161
+ # A request object representing the call parameters. Required.
162
+ # @param options [::Gapic::CallOptions]
163
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
164
+ #
165
+ # @yield [result, operation] Access the result along with the TransportOperation object
166
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Instance]
167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
168
+ #
169
+ # @return [::Google::Cloud::BareMetalSolution::V2::Instance]
170
+ # A result object deserialized from the server's reply
171
+ def rename_instance request_pb, options = nil
172
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
173
+
174
+ verb, uri, query_string_params, body = ServiceStub.transcode_rename_instance_request request_pb
175
+ query_string_params = if query_string_params.any?
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
+ else
178
+ {}
179
+ end
180
+
181
+ response = @client_stub.make_http_request(
182
+ verb,
183
+ uri: uri,
184
+ body: body || "",
185
+ params: query_string_params,
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Cloud::BareMetalSolution::V2::Instance.decode_json response.body, ignore_unknown_fields: true
190
+
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+
157
195
  ##
158
196
  # Baseline implementation for the reset_instance REST call
159
197
  #
@@ -173,7 +211,7 @@ module Google
173
211
 
174
212
  verb, uri, query_string_params, body = ServiceStub.transcode_reset_instance_request request_pb
175
213
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
177
215
  else
178
216
  {}
179
217
  end
@@ -211,7 +249,7 @@ module Google
211
249
 
212
250
  verb, uri, query_string_params, body = ServiceStub.transcode_start_instance_request request_pb
213
251
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
215
253
  else
216
254
  {}
217
255
  end
@@ -249,7 +287,7 @@ module Google
249
287
 
250
288
  verb, uri, query_string_params, body = ServiceStub.transcode_stop_instance_request request_pb
251
289
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
253
291
  else
254
292
  {}
255
293
  end
@@ -269,9 +307,9 @@ module Google
269
307
  end
270
308
 
271
309
  ##
272
- # Baseline implementation for the detach_lun REST call
310
+ # Baseline implementation for the enable_interactive_serial_console REST call
273
311
  #
274
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::DetachLunRequest]
312
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::EnableInteractiveSerialConsoleRequest]
275
313
  # A request object representing the call parameters. Required.
276
314
  # @param options [::Gapic::CallOptions]
277
315
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -282,12 +320,12 @@ module Google
282
320
  #
283
321
  # @return [::Google::Longrunning::Operation]
284
322
  # A result object deserialized from the server's reply
285
- def detach_lun request_pb, options = nil
323
+ def enable_interactive_serial_console request_pb, options = nil
286
324
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
287
325
 
288
- verb, uri, query_string_params, body = ServiceStub.transcode_detach_lun_request request_pb
326
+ verb, uri, query_string_params, body = ServiceStub.transcode_enable_interactive_serial_console_request request_pb
289
327
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
291
329
  else
292
330
  {}
293
331
  end
@@ -307,25 +345,25 @@ module Google
307
345
  end
308
346
 
309
347
  ##
310
- # Baseline implementation for the list_volumes REST call
348
+ # Baseline implementation for the disable_interactive_serial_console REST call
311
349
  #
312
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListVolumesRequest]
350
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::DisableInteractiveSerialConsoleRequest]
313
351
  # A request object representing the call parameters. Required.
314
352
  # @param options [::Gapic::CallOptions]
315
353
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
316
354
  #
317
355
  # @yield [result, operation] Access the result along with the TransportOperation object
318
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse]
356
+ # @yieldparam result [::Google::Longrunning::Operation]
319
357
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
320
358
  #
321
- # @return [::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse]
359
+ # @return [::Google::Longrunning::Operation]
322
360
  # A result object deserialized from the server's reply
323
- def list_volumes request_pb, options = nil
361
+ def disable_interactive_serial_console request_pb, options = nil
324
362
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
325
363
 
326
- verb, uri, query_string_params, body = ServiceStub.transcode_list_volumes_request request_pb
364
+ verb, uri, query_string_params, body = ServiceStub.transcode_disable_interactive_serial_console_request request_pb
327
365
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
329
367
  else
330
368
  {}
331
369
  end
@@ -338,32 +376,32 @@ module Google
338
376
  options: options
339
377
  )
340
378
  operation = ::Gapic::Rest::TransportOperation.new response
341
- result = ::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse.decode_json response.body, ignore_unknown_fields: true
379
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
342
380
 
343
381
  yield result, operation if block_given?
344
382
  result
345
383
  end
346
384
 
347
385
  ##
348
- # Baseline implementation for the get_volume REST call
386
+ # Baseline implementation for the detach_lun REST call
349
387
  #
350
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetVolumeRequest]
388
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::DetachLunRequest]
351
389
  # A request object representing the call parameters. Required.
352
390
  # @param options [::Gapic::CallOptions]
353
391
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
354
392
  #
355
393
  # @yield [result, operation] Access the result along with the TransportOperation object
356
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Volume]
394
+ # @yieldparam result [::Google::Longrunning::Operation]
357
395
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
358
396
  #
359
- # @return [::Google::Cloud::BareMetalSolution::V2::Volume]
397
+ # @return [::Google::Longrunning::Operation]
360
398
  # A result object deserialized from the server's reply
361
- def get_volume request_pb, options = nil
399
+ def detach_lun request_pb, options = nil
362
400
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
363
401
 
364
- verb, uri, query_string_params, body = ServiceStub.transcode_get_volume_request request_pb
402
+ verb, uri, query_string_params, body = ServiceStub.transcode_detach_lun_request request_pb
365
403
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
367
405
  else
368
406
  {}
369
407
  end
@@ -376,32 +414,32 @@ module Google
376
414
  options: options
377
415
  )
378
416
  operation = ::Gapic::Rest::TransportOperation.new response
379
- result = ::Google::Cloud::BareMetalSolution::V2::Volume.decode_json response.body, ignore_unknown_fields: true
417
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
380
418
 
381
419
  yield result, operation if block_given?
382
420
  result
383
421
  end
384
422
 
385
423
  ##
386
- # Baseline implementation for the update_volume REST call
424
+ # Baseline implementation for the list_ssh_keys REST call
387
425
  #
388
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateVolumeRequest]
426
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListSSHKeysRequest]
389
427
  # A request object representing the call parameters. Required.
390
428
  # @param options [::Gapic::CallOptions]
391
429
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
392
430
  #
393
431
  # @yield [result, operation] Access the result along with the TransportOperation object
394
- # @yieldparam result [::Google::Longrunning::Operation]
432
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListSSHKeysResponse]
395
433
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
396
434
  #
397
- # @return [::Google::Longrunning::Operation]
435
+ # @return [::Google::Cloud::BareMetalSolution::V2::ListSSHKeysResponse]
398
436
  # A result object deserialized from the server's reply
399
- def update_volume request_pb, options = nil
437
+ def list_ssh_keys request_pb, options = nil
400
438
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
401
439
 
402
- verb, uri, query_string_params, body = ServiceStub.transcode_update_volume_request request_pb
440
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_ssh_keys_request request_pb
403
441
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
405
443
  else
406
444
  {}
407
445
  end
@@ -414,32 +452,32 @@ module Google
414
452
  options: options
415
453
  )
416
454
  operation = ::Gapic::Rest::TransportOperation.new response
417
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
455
+ result = ::Google::Cloud::BareMetalSolution::V2::ListSSHKeysResponse.decode_json response.body, ignore_unknown_fields: true
418
456
 
419
457
  yield result, operation if block_given?
420
458
  result
421
459
  end
422
460
 
423
461
  ##
424
- # Baseline implementation for the resize_volume REST call
462
+ # Baseline implementation for the create_ssh_key REST call
425
463
  #
426
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ResizeVolumeRequest]
464
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::CreateSSHKeyRequest]
427
465
  # A request object representing the call parameters. Required.
428
466
  # @param options [::Gapic::CallOptions]
429
467
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
430
468
  #
431
469
  # @yield [result, operation] Access the result along with the TransportOperation object
432
- # @yieldparam result [::Google::Longrunning::Operation]
470
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::SSHKey]
433
471
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
434
472
  #
435
- # @return [::Google::Longrunning::Operation]
473
+ # @return [::Google::Cloud::BareMetalSolution::V2::SSHKey]
436
474
  # A result object deserialized from the server's reply
437
- def resize_volume request_pb, options = nil
475
+ def create_ssh_key request_pb, options = nil
438
476
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
439
477
 
440
- verb, uri, query_string_params, body = ServiceStub.transcode_resize_volume_request request_pb
478
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_ssh_key_request request_pb
441
479
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
480
+ query_string_params.to_h { |p| p.split "=", 2 }
443
481
  else
444
482
  {}
445
483
  end
@@ -452,32 +490,32 @@ module Google
452
490
  options: options
453
491
  )
454
492
  operation = ::Gapic::Rest::TransportOperation.new response
455
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
493
+ result = ::Google::Cloud::BareMetalSolution::V2::SSHKey.decode_json response.body, ignore_unknown_fields: true
456
494
 
457
495
  yield result, operation if block_given?
458
496
  result
459
497
  end
460
498
 
461
499
  ##
462
- # Baseline implementation for the list_networks REST call
500
+ # Baseline implementation for the delete_ssh_key REST call
463
501
  #
464
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListNetworksRequest]
502
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::DeleteSSHKeyRequest]
465
503
  # A request object representing the call parameters. Required.
466
504
  # @param options [::Gapic::CallOptions]
467
505
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
468
506
  #
469
507
  # @yield [result, operation] Access the result along with the TransportOperation object
470
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse]
508
+ # @yieldparam result [::Google::Protobuf::Empty]
471
509
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
472
510
  #
473
- # @return [::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse]
511
+ # @return [::Google::Protobuf::Empty]
474
512
  # A result object deserialized from the server's reply
475
- def list_networks request_pb, options = nil
513
+ def delete_ssh_key request_pb, options = nil
476
514
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
477
515
 
478
- verb, uri, query_string_params, body = ServiceStub.transcode_list_networks_request request_pb
516
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_ssh_key_request request_pb
479
517
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
518
+ query_string_params.to_h { |p| p.split "=", 2 }
481
519
  else
482
520
  {}
483
521
  end
@@ -490,32 +528,32 @@ module Google
490
528
  options: options
491
529
  )
492
530
  operation = ::Gapic::Rest::TransportOperation.new response
493
- result = ::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse.decode_json response.body, ignore_unknown_fields: true
531
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
494
532
 
495
533
  yield result, operation if block_given?
496
534
  result
497
535
  end
498
536
 
499
537
  ##
500
- # Baseline implementation for the list_network_usage REST call
538
+ # Baseline implementation for the list_volumes REST call
501
539
  #
502
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageRequest]
540
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListVolumesRequest]
503
541
  # A request object representing the call parameters. Required.
504
542
  # @param options [::Gapic::CallOptions]
505
543
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
506
544
  #
507
545
  # @yield [result, operation] Access the result along with the TransportOperation object
508
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse]
546
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse]
509
547
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
510
548
  #
511
- # @return [::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse]
549
+ # @return [::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse]
512
550
  # A result object deserialized from the server's reply
513
- def list_network_usage request_pb, options = nil
551
+ def list_volumes request_pb, options = nil
514
552
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
515
553
 
516
- verb, uri, query_string_params, body = ServiceStub.transcode_list_network_usage_request request_pb
554
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_volumes_request request_pb
517
555
  query_string_params = if query_string_params.any?
518
- query_string_params.to_h { |p| p.split("=", 2) }
556
+ query_string_params.to_h { |p| p.split "=", 2 }
519
557
  else
520
558
  {}
521
559
  end
@@ -528,32 +566,32 @@ module Google
528
566
  options: options
529
567
  )
530
568
  operation = ::Gapic::Rest::TransportOperation.new response
531
- result = ::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse.decode_json response.body, ignore_unknown_fields: true
569
+ result = ::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse.decode_json response.body, ignore_unknown_fields: true
532
570
 
533
571
  yield result, operation if block_given?
534
572
  result
535
573
  end
536
574
 
537
575
  ##
538
- # Baseline implementation for the get_network REST call
576
+ # Baseline implementation for the get_volume REST call
539
577
  #
540
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetNetworkRequest]
578
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetVolumeRequest]
541
579
  # A request object representing the call parameters. Required.
542
580
  # @param options [::Gapic::CallOptions]
543
581
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
544
582
  #
545
583
  # @yield [result, operation] Access the result along with the TransportOperation object
546
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Network]
584
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Volume]
547
585
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
548
586
  #
549
- # @return [::Google::Cloud::BareMetalSolution::V2::Network]
587
+ # @return [::Google::Cloud::BareMetalSolution::V2::Volume]
550
588
  # A result object deserialized from the server's reply
551
- def get_network request_pb, options = nil
589
+ def get_volume request_pb, options = nil
552
590
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
553
591
 
554
- verb, uri, query_string_params, body = ServiceStub.transcode_get_network_request request_pb
592
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_volume_request request_pb
555
593
  query_string_params = if query_string_params.any?
556
- query_string_params.to_h { |p| p.split("=", 2) }
594
+ query_string_params.to_h { |p| p.split "=", 2 }
557
595
  else
558
596
  {}
559
597
  end
@@ -566,16 +604,16 @@ module Google
566
604
  options: options
567
605
  )
568
606
  operation = ::Gapic::Rest::TransportOperation.new response
569
- result = ::Google::Cloud::BareMetalSolution::V2::Network.decode_json response.body, ignore_unknown_fields: true
607
+ result = ::Google::Cloud::BareMetalSolution::V2::Volume.decode_json response.body, ignore_unknown_fields: true
570
608
 
571
609
  yield result, operation if block_given?
572
610
  result
573
611
  end
574
612
 
575
613
  ##
576
- # Baseline implementation for the update_network REST call
614
+ # Baseline implementation for the update_volume REST call
577
615
  #
578
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateNetworkRequest]
616
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateVolumeRequest]
579
617
  # A request object representing the call parameters. Required.
580
618
  # @param options [::Gapic::CallOptions]
581
619
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -586,12 +624,12 @@ module Google
586
624
  #
587
625
  # @return [::Google::Longrunning::Operation]
588
626
  # A result object deserialized from the server's reply
589
- def update_network request_pb, options = nil
627
+ def update_volume request_pb, options = nil
590
628
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
591
629
 
592
- verb, uri, query_string_params, body = ServiceStub.transcode_update_network_request request_pb
630
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_volume_request request_pb
593
631
  query_string_params = if query_string_params.any?
594
- query_string_params.to_h { |p| p.split("=", 2) }
632
+ query_string_params.to_h { |p| p.split "=", 2 }
595
633
  else
596
634
  {}
597
635
  end
@@ -611,25 +649,25 @@ module Google
611
649
  end
612
650
 
613
651
  ##
614
- # Baseline implementation for the get_lun REST call
652
+ # Baseline implementation for the rename_volume REST call
615
653
  #
616
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetLunRequest]
654
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::RenameVolumeRequest]
617
655
  # A request object representing the call parameters. Required.
618
656
  # @param options [::Gapic::CallOptions]
619
657
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
620
658
  #
621
659
  # @yield [result, operation] Access the result along with the TransportOperation object
622
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Lun]
660
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Volume]
623
661
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
624
662
  #
625
- # @return [::Google::Cloud::BareMetalSolution::V2::Lun]
663
+ # @return [::Google::Cloud::BareMetalSolution::V2::Volume]
626
664
  # A result object deserialized from the server's reply
627
- def get_lun request_pb, options = nil
665
+ def rename_volume request_pb, options = nil
628
666
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
629
667
 
630
- verb, uri, query_string_params, body = ServiceStub.transcode_get_lun_request request_pb
668
+ verb, uri, query_string_params, body = ServiceStub.transcode_rename_volume_request request_pb
631
669
  query_string_params = if query_string_params.any?
632
- query_string_params.to_h { |p| p.split("=", 2) }
670
+ query_string_params.to_h { |p| p.split "=", 2 }
633
671
  else
634
672
  {}
635
673
  end
@@ -642,32 +680,32 @@ module Google
642
680
  options: options
643
681
  )
644
682
  operation = ::Gapic::Rest::TransportOperation.new response
645
- result = ::Google::Cloud::BareMetalSolution::V2::Lun.decode_json response.body, ignore_unknown_fields: true
683
+ result = ::Google::Cloud::BareMetalSolution::V2::Volume.decode_json response.body, ignore_unknown_fields: true
646
684
 
647
685
  yield result, operation if block_given?
648
686
  result
649
687
  end
650
688
 
651
689
  ##
652
- # Baseline implementation for the list_luns REST call
690
+ # Baseline implementation for the evict_volume REST call
653
691
  #
654
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListLunsRequest]
692
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::EvictVolumeRequest]
655
693
  # A request object representing the call parameters. Required.
656
694
  # @param options [::Gapic::CallOptions]
657
695
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
658
696
  #
659
697
  # @yield [result, operation] Access the result along with the TransportOperation object
660
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListLunsResponse]
698
+ # @yieldparam result [::Google::Longrunning::Operation]
661
699
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
662
700
  #
663
- # @return [::Google::Cloud::BareMetalSolution::V2::ListLunsResponse]
701
+ # @return [::Google::Longrunning::Operation]
664
702
  # A result object deserialized from the server's reply
665
- def list_luns request_pb, options = nil
703
+ def evict_volume request_pb, options = nil
666
704
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
667
705
 
668
- verb, uri, query_string_params, body = ServiceStub.transcode_list_luns_request request_pb
706
+ verb, uri, query_string_params, body = ServiceStub.transcode_evict_volume_request request_pb
669
707
  query_string_params = if query_string_params.any?
670
- query_string_params.to_h { |p| p.split("=", 2) }
708
+ query_string_params.to_h { |p| p.split "=", 2 }
671
709
  else
672
710
  {}
673
711
  end
@@ -680,32 +718,32 @@ module Google
680
718
  options: options
681
719
  )
682
720
  operation = ::Gapic::Rest::TransportOperation.new response
683
- result = ::Google::Cloud::BareMetalSolution::V2::ListLunsResponse.decode_json response.body, ignore_unknown_fields: true
721
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
684
722
 
685
723
  yield result, operation if block_given?
686
724
  result
687
725
  end
688
726
 
689
727
  ##
690
- # Baseline implementation for the get_nfs_share REST call
728
+ # Baseline implementation for the resize_volume REST call
691
729
  #
692
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetNfsShareRequest]
730
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ResizeVolumeRequest]
693
731
  # A request object representing the call parameters. Required.
694
732
  # @param options [::Gapic::CallOptions]
695
733
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
696
734
  #
697
735
  # @yield [result, operation] Access the result along with the TransportOperation object
698
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::NfsShare]
736
+ # @yieldparam result [::Google::Longrunning::Operation]
699
737
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
700
738
  #
701
- # @return [::Google::Cloud::BareMetalSolution::V2::NfsShare]
739
+ # @return [::Google::Longrunning::Operation]
702
740
  # A result object deserialized from the server's reply
703
- def get_nfs_share request_pb, options = nil
741
+ def resize_volume request_pb, options = nil
704
742
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
705
743
 
706
- verb, uri, query_string_params, body = ServiceStub.transcode_get_nfs_share_request request_pb
744
+ verb, uri, query_string_params, body = ServiceStub.transcode_resize_volume_request request_pb
707
745
  query_string_params = if query_string_params.any?
708
- query_string_params.to_h { |p| p.split("=", 2) }
746
+ query_string_params.to_h { |p| p.split "=", 2 }
709
747
  else
710
748
  {}
711
749
  end
@@ -718,32 +756,32 @@ module Google
718
756
  options: options
719
757
  )
720
758
  operation = ::Gapic::Rest::TransportOperation.new response
721
- result = ::Google::Cloud::BareMetalSolution::V2::NfsShare.decode_json response.body, ignore_unknown_fields: true
759
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
722
760
 
723
761
  yield result, operation if block_given?
724
762
  result
725
763
  end
726
764
 
727
765
  ##
728
- # Baseline implementation for the list_nfs_shares REST call
766
+ # Baseline implementation for the list_networks REST call
729
767
  #
730
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesRequest]
768
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListNetworksRequest]
731
769
  # A request object representing the call parameters. Required.
732
770
  # @param options [::Gapic::CallOptions]
733
771
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
734
772
  #
735
773
  # @yield [result, operation] Access the result along with the TransportOperation object
736
- # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse]
774
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse]
737
775
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
738
776
  #
739
- # @return [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse]
777
+ # @return [::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse]
740
778
  # A result object deserialized from the server's reply
741
- def list_nfs_shares request_pb, options = nil
779
+ def list_networks request_pb, options = nil
742
780
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
743
781
 
744
- verb, uri, query_string_params, body = ServiceStub.transcode_list_nfs_shares_request request_pb
782
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_networks_request request_pb
745
783
  query_string_params = if query_string_params.any?
746
- query_string_params.to_h { |p| p.split("=", 2) }
784
+ query_string_params.to_h { |p| p.split "=", 2 }
747
785
  else
748
786
  {}
749
787
  end
@@ -756,32 +794,32 @@ module Google
756
794
  options: options
757
795
  )
758
796
  operation = ::Gapic::Rest::TransportOperation.new response
759
- result = ::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse.decode_json response.body, ignore_unknown_fields: true
797
+ result = ::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse.decode_json response.body, ignore_unknown_fields: true
760
798
 
761
799
  yield result, operation if block_given?
762
800
  result
763
801
  end
764
802
 
765
803
  ##
766
- # Baseline implementation for the update_nfs_share REST call
804
+ # Baseline implementation for the list_network_usage REST call
767
805
  #
768
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateNfsShareRequest]
806
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageRequest]
769
807
  # A request object representing the call parameters. Required.
770
808
  # @param options [::Gapic::CallOptions]
771
809
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
772
810
  #
773
811
  # @yield [result, operation] Access the result along with the TransportOperation object
774
- # @yieldparam result [::Google::Longrunning::Operation]
812
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse]
775
813
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
776
814
  #
777
- # @return [::Google::Longrunning::Operation]
815
+ # @return [::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse]
778
816
  # A result object deserialized from the server's reply
779
- def update_nfs_share request_pb, options = nil
817
+ def list_network_usage request_pb, options = nil
780
818
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
781
819
 
782
- verb, uri, query_string_params, body = ServiceStub.transcode_update_nfs_share_request request_pb
820
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_network_usage_request request_pb
783
821
  query_string_params = if query_string_params.any?
784
- query_string_params.to_h { |p| p.split("=", 2) }
822
+ query_string_params.to_h { |p| p.split "=", 2 }
785
823
  else
786
824
  {}
787
825
  end
@@ -794,71 +832,1378 @@ module Google
794
832
  options: options
795
833
  )
796
834
  operation = ::Gapic::Rest::TransportOperation.new response
797
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
835
+ result = ::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse.decode_json response.body, ignore_unknown_fields: true
798
836
 
799
837
  yield result, operation if block_given?
800
838
  result
801
839
  end
802
840
 
803
841
  ##
804
- # @private
805
- #
806
- # GRPC transcoding helper method for the list_instances REST call
842
+ # Baseline implementation for the get_network REST call
807
843
  #
808
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListInstancesRequest]
844
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetNetworkRequest]
809
845
  # A request object representing the call parameters. Required.
810
- # @return [Array(String, [String, nil], Hash{String => String})]
811
- # Uri, Body, Query string parameters
812
- def self.transcode_list_instances_request request_pb
813
- transcoder = Gapic::Rest::GrpcTranscoder.new
814
- .with_bindings(
815
- uri_method: :get,
816
- uri_template: "/v2/{parent}/instances",
817
- matches: [
818
- ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
819
- ]
820
- )
821
- transcoder.transcode request_pb
822
- end
823
-
824
- ##
825
- # @private
846
+ # @param options [::Gapic::CallOptions]
847
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
826
848
  #
827
- # GRPC transcoding helper method for the get_instance REST call
849
+ # @yield [result, operation] Access the result along with the TransportOperation object
850
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Network]
851
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
828
852
  #
829
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetInstanceRequest]
830
- # A request object representing the call parameters. Required.
831
- # @return [Array(String, [String, nil], Hash{String => String})]
832
- # Uri, Body, Query string parameters
833
- def self.transcode_get_instance_request request_pb
834
- transcoder = Gapic::Rest::GrpcTranscoder.new
835
- .with_bindings(
836
- uri_method: :get,
837
- uri_template: "/v2/{name}",
838
- matches: [
839
- ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
840
- ]
841
- )
842
- transcoder.transcode request_pb
853
+ # @return [::Google::Cloud::BareMetalSolution::V2::Network]
854
+ # A result object deserialized from the server's reply
855
+ def get_network request_pb, options = nil
856
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
857
+
858
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_network_request request_pb
859
+ query_string_params = if query_string_params.any?
860
+ query_string_params.to_h { |p| p.split "=", 2 }
861
+ else
862
+ {}
863
+ end
864
+
865
+ response = @client_stub.make_http_request(
866
+ verb,
867
+ uri: uri,
868
+ body: body || "",
869
+ params: query_string_params,
870
+ options: options
871
+ )
872
+ operation = ::Gapic::Rest::TransportOperation.new response
873
+ result = ::Google::Cloud::BareMetalSolution::V2::Network.decode_json response.body, ignore_unknown_fields: true
874
+
875
+ yield result, operation if block_given?
876
+ result
843
877
  end
844
878
 
845
879
  ##
846
- # @private
847
- #
848
- # GRPC transcoding helper method for the update_instance REST call
880
+ # Baseline implementation for the update_network REST call
849
881
  #
850
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateInstanceRequest]
882
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateNetworkRequest]
851
883
  # A request object representing the call parameters. Required.
852
- # @return [Array(String, [String, nil], Hash{String => String})]
853
- # Uri, Body, Query string parameters
854
- def self.transcode_update_instance_request request_pb
855
- transcoder = Gapic::Rest::GrpcTranscoder.new
856
- .with_bindings(
884
+ # @param options [::Gapic::CallOptions]
885
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
886
+ #
887
+ # @yield [result, operation] Access the result along with the TransportOperation object
888
+ # @yieldparam result [::Google::Longrunning::Operation]
889
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
890
+ #
891
+ # @return [::Google::Longrunning::Operation]
892
+ # A result object deserialized from the server's reply
893
+ def update_network request_pb, options = nil
894
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
895
+
896
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_network_request request_pb
897
+ query_string_params = if query_string_params.any?
898
+ query_string_params.to_h { |p| p.split "=", 2 }
899
+ else
900
+ {}
901
+ end
902
+
903
+ response = @client_stub.make_http_request(
904
+ verb,
905
+ uri: uri,
906
+ body: body || "",
907
+ params: query_string_params,
908
+ options: options
909
+ )
910
+ operation = ::Gapic::Rest::TransportOperation.new response
911
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
912
+
913
+ yield result, operation if block_given?
914
+ result
915
+ end
916
+
917
+ ##
918
+ # Baseline implementation for the create_volume_snapshot REST call
919
+ #
920
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::CreateVolumeSnapshotRequest]
921
+ # A request object representing the call parameters. Required.
922
+ # @param options [::Gapic::CallOptions]
923
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
924
+ #
925
+ # @yield [result, operation] Access the result along with the TransportOperation object
926
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot]
927
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
928
+ #
929
+ # @return [::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot]
930
+ # A result object deserialized from the server's reply
931
+ def create_volume_snapshot request_pb, options = nil
932
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
933
+
934
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_volume_snapshot_request request_pb
935
+ query_string_params = if query_string_params.any?
936
+ query_string_params.to_h { |p| p.split "=", 2 }
937
+ else
938
+ {}
939
+ end
940
+
941
+ response = @client_stub.make_http_request(
942
+ verb,
943
+ uri: uri,
944
+ body: body || "",
945
+ params: query_string_params,
946
+ options: options
947
+ )
948
+ operation = ::Gapic::Rest::TransportOperation.new response
949
+ result = ::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot.decode_json response.body, ignore_unknown_fields: true
950
+
951
+ yield result, operation if block_given?
952
+ result
953
+ end
954
+
955
+ ##
956
+ # Baseline implementation for the restore_volume_snapshot REST call
957
+ #
958
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::RestoreVolumeSnapshotRequest]
959
+ # A request object representing the call parameters. Required.
960
+ # @param options [::Gapic::CallOptions]
961
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
962
+ #
963
+ # @yield [result, operation] Access the result along with the TransportOperation object
964
+ # @yieldparam result [::Google::Longrunning::Operation]
965
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
966
+ #
967
+ # @return [::Google::Longrunning::Operation]
968
+ # A result object deserialized from the server's reply
969
+ def restore_volume_snapshot request_pb, options = nil
970
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
971
+
972
+ verb, uri, query_string_params, body = ServiceStub.transcode_restore_volume_snapshot_request request_pb
973
+ query_string_params = if query_string_params.any?
974
+ query_string_params.to_h { |p| p.split "=", 2 }
975
+ else
976
+ {}
977
+ end
978
+
979
+ response = @client_stub.make_http_request(
980
+ verb,
981
+ uri: uri,
982
+ body: body || "",
983
+ params: query_string_params,
984
+ options: options
985
+ )
986
+ operation = ::Gapic::Rest::TransportOperation.new response
987
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
988
+
989
+ yield result, operation if block_given?
990
+ result
991
+ end
992
+
993
+ ##
994
+ # Baseline implementation for the delete_volume_snapshot REST call
995
+ #
996
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::DeleteVolumeSnapshotRequest]
997
+ # A request object representing the call parameters. Required.
998
+ # @param options [::Gapic::CallOptions]
999
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1000
+ #
1001
+ # @yield [result, operation] Access the result along with the TransportOperation object
1002
+ # @yieldparam result [::Google::Protobuf::Empty]
1003
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1004
+ #
1005
+ # @return [::Google::Protobuf::Empty]
1006
+ # A result object deserialized from the server's reply
1007
+ def delete_volume_snapshot request_pb, options = nil
1008
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1009
+
1010
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_volume_snapshot_request request_pb
1011
+ query_string_params = if query_string_params.any?
1012
+ query_string_params.to_h { |p| p.split "=", 2 }
1013
+ else
1014
+ {}
1015
+ end
1016
+
1017
+ response = @client_stub.make_http_request(
1018
+ verb,
1019
+ uri: uri,
1020
+ body: body || "",
1021
+ params: query_string_params,
1022
+ options: options
1023
+ )
1024
+ operation = ::Gapic::Rest::TransportOperation.new response
1025
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1026
+
1027
+ yield result, operation if block_given?
1028
+ result
1029
+ end
1030
+
1031
+ ##
1032
+ # Baseline implementation for the get_volume_snapshot REST call
1033
+ #
1034
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetVolumeSnapshotRequest]
1035
+ # A request object representing the call parameters. Required.
1036
+ # @param options [::Gapic::CallOptions]
1037
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1038
+ #
1039
+ # @yield [result, operation] Access the result along with the TransportOperation object
1040
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot]
1041
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1042
+ #
1043
+ # @return [::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot]
1044
+ # A result object deserialized from the server's reply
1045
+ def get_volume_snapshot request_pb, options = nil
1046
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1047
+
1048
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_volume_snapshot_request request_pb
1049
+ query_string_params = if query_string_params.any?
1050
+ query_string_params.to_h { |p| p.split "=", 2 }
1051
+ else
1052
+ {}
1053
+ end
1054
+
1055
+ response = @client_stub.make_http_request(
1056
+ verb,
1057
+ uri: uri,
1058
+ body: body || "",
1059
+ params: query_string_params,
1060
+ options: options
1061
+ )
1062
+ operation = ::Gapic::Rest::TransportOperation.new response
1063
+ result = ::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot.decode_json response.body, ignore_unknown_fields: true
1064
+
1065
+ yield result, operation if block_given?
1066
+ result
1067
+ end
1068
+
1069
+ ##
1070
+ # Baseline implementation for the list_volume_snapshots REST call
1071
+ #
1072
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsRequest]
1073
+ # A request object representing the call parameters. Required.
1074
+ # @param options [::Gapic::CallOptions]
1075
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1076
+ #
1077
+ # @yield [result, operation] Access the result along with the TransportOperation object
1078
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsResponse]
1079
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1080
+ #
1081
+ # @return [::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsResponse]
1082
+ # A result object deserialized from the server's reply
1083
+ def list_volume_snapshots request_pb, options = nil
1084
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1085
+
1086
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_volume_snapshots_request request_pb
1087
+ query_string_params = if query_string_params.any?
1088
+ query_string_params.to_h { |p| p.split "=", 2 }
1089
+ else
1090
+ {}
1091
+ end
1092
+
1093
+ response = @client_stub.make_http_request(
1094
+ verb,
1095
+ uri: uri,
1096
+ body: body || "",
1097
+ params: query_string_params,
1098
+ options: options
1099
+ )
1100
+ operation = ::Gapic::Rest::TransportOperation.new response
1101
+ result = ::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsResponse.decode_json response.body, ignore_unknown_fields: true
1102
+
1103
+ yield result, operation if block_given?
1104
+ result
1105
+ end
1106
+
1107
+ ##
1108
+ # Baseline implementation for the get_lun REST call
1109
+ #
1110
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetLunRequest]
1111
+ # A request object representing the call parameters. Required.
1112
+ # @param options [::Gapic::CallOptions]
1113
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1114
+ #
1115
+ # @yield [result, operation] Access the result along with the TransportOperation object
1116
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Lun]
1117
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1118
+ #
1119
+ # @return [::Google::Cloud::BareMetalSolution::V2::Lun]
1120
+ # A result object deserialized from the server's reply
1121
+ def get_lun request_pb, options = nil
1122
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1123
+
1124
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_lun_request request_pb
1125
+ query_string_params = if query_string_params.any?
1126
+ query_string_params.to_h { |p| p.split "=", 2 }
1127
+ else
1128
+ {}
1129
+ end
1130
+
1131
+ response = @client_stub.make_http_request(
1132
+ verb,
1133
+ uri: uri,
1134
+ body: body || "",
1135
+ params: query_string_params,
1136
+ options: options
1137
+ )
1138
+ operation = ::Gapic::Rest::TransportOperation.new response
1139
+ result = ::Google::Cloud::BareMetalSolution::V2::Lun.decode_json response.body, ignore_unknown_fields: true
1140
+
1141
+ yield result, operation if block_given?
1142
+ result
1143
+ end
1144
+
1145
+ ##
1146
+ # Baseline implementation for the list_luns REST call
1147
+ #
1148
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListLunsRequest]
1149
+ # A request object representing the call parameters. Required.
1150
+ # @param options [::Gapic::CallOptions]
1151
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1152
+ #
1153
+ # @yield [result, operation] Access the result along with the TransportOperation object
1154
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListLunsResponse]
1155
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1156
+ #
1157
+ # @return [::Google::Cloud::BareMetalSolution::V2::ListLunsResponse]
1158
+ # A result object deserialized from the server's reply
1159
+ def list_luns request_pb, options = nil
1160
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1161
+
1162
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_luns_request request_pb
1163
+ query_string_params = if query_string_params.any?
1164
+ query_string_params.to_h { |p| p.split "=", 2 }
1165
+ else
1166
+ {}
1167
+ end
1168
+
1169
+ response = @client_stub.make_http_request(
1170
+ verb,
1171
+ uri: uri,
1172
+ body: body || "",
1173
+ params: query_string_params,
1174
+ options: options
1175
+ )
1176
+ operation = ::Gapic::Rest::TransportOperation.new response
1177
+ result = ::Google::Cloud::BareMetalSolution::V2::ListLunsResponse.decode_json response.body, ignore_unknown_fields: true
1178
+
1179
+ yield result, operation if block_given?
1180
+ result
1181
+ end
1182
+
1183
+ ##
1184
+ # Baseline implementation for the evict_lun REST call
1185
+ #
1186
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::EvictLunRequest]
1187
+ # A request object representing the call parameters. Required.
1188
+ # @param options [::Gapic::CallOptions]
1189
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1190
+ #
1191
+ # @yield [result, operation] Access the result along with the TransportOperation object
1192
+ # @yieldparam result [::Google::Longrunning::Operation]
1193
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1194
+ #
1195
+ # @return [::Google::Longrunning::Operation]
1196
+ # A result object deserialized from the server's reply
1197
+ def evict_lun request_pb, options = nil
1198
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1199
+
1200
+ verb, uri, query_string_params, body = ServiceStub.transcode_evict_lun_request request_pb
1201
+ query_string_params = if query_string_params.any?
1202
+ query_string_params.to_h { |p| p.split "=", 2 }
1203
+ else
1204
+ {}
1205
+ end
1206
+
1207
+ response = @client_stub.make_http_request(
1208
+ verb,
1209
+ uri: uri,
1210
+ body: body || "",
1211
+ params: query_string_params,
1212
+ options: options
1213
+ )
1214
+ operation = ::Gapic::Rest::TransportOperation.new response
1215
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1216
+
1217
+ yield result, operation if block_given?
1218
+ result
1219
+ end
1220
+
1221
+ ##
1222
+ # Baseline implementation for the get_nfs_share REST call
1223
+ #
1224
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetNfsShareRequest]
1225
+ # A request object representing the call parameters. Required.
1226
+ # @param options [::Gapic::CallOptions]
1227
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1228
+ #
1229
+ # @yield [result, operation] Access the result along with the TransportOperation object
1230
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::NfsShare]
1231
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1232
+ #
1233
+ # @return [::Google::Cloud::BareMetalSolution::V2::NfsShare]
1234
+ # A result object deserialized from the server's reply
1235
+ def get_nfs_share request_pb, options = nil
1236
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1237
+
1238
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_nfs_share_request request_pb
1239
+ query_string_params = if query_string_params.any?
1240
+ query_string_params.to_h { |p| p.split "=", 2 }
1241
+ else
1242
+ {}
1243
+ end
1244
+
1245
+ response = @client_stub.make_http_request(
1246
+ verb,
1247
+ uri: uri,
1248
+ body: body || "",
1249
+ params: query_string_params,
1250
+ options: options
1251
+ )
1252
+ operation = ::Gapic::Rest::TransportOperation.new response
1253
+ result = ::Google::Cloud::BareMetalSolution::V2::NfsShare.decode_json response.body, ignore_unknown_fields: true
1254
+
1255
+ yield result, operation if block_given?
1256
+ result
1257
+ end
1258
+
1259
+ ##
1260
+ # Baseline implementation for the list_nfs_shares REST call
1261
+ #
1262
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesRequest]
1263
+ # A request object representing the call parameters. Required.
1264
+ # @param options [::Gapic::CallOptions]
1265
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1266
+ #
1267
+ # @yield [result, operation] Access the result along with the TransportOperation object
1268
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse]
1269
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1270
+ #
1271
+ # @return [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse]
1272
+ # A result object deserialized from the server's reply
1273
+ def list_nfs_shares request_pb, options = nil
1274
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1275
+
1276
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_nfs_shares_request request_pb
1277
+ query_string_params = if query_string_params.any?
1278
+ query_string_params.to_h { |p| p.split "=", 2 }
1279
+ else
1280
+ {}
1281
+ end
1282
+
1283
+ response = @client_stub.make_http_request(
1284
+ verb,
1285
+ uri: uri,
1286
+ body: body || "",
1287
+ params: query_string_params,
1288
+ options: options
1289
+ )
1290
+ operation = ::Gapic::Rest::TransportOperation.new response
1291
+ result = ::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse.decode_json response.body, ignore_unknown_fields: true
1292
+
1293
+ yield result, operation if block_given?
1294
+ result
1295
+ end
1296
+
1297
+ ##
1298
+ # Baseline implementation for the update_nfs_share REST call
1299
+ #
1300
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateNfsShareRequest]
1301
+ # A request object representing the call parameters. Required.
1302
+ # @param options [::Gapic::CallOptions]
1303
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1304
+ #
1305
+ # @yield [result, operation] Access the result along with the TransportOperation object
1306
+ # @yieldparam result [::Google::Longrunning::Operation]
1307
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1308
+ #
1309
+ # @return [::Google::Longrunning::Operation]
1310
+ # A result object deserialized from the server's reply
1311
+ def update_nfs_share request_pb, options = nil
1312
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1313
+
1314
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_nfs_share_request request_pb
1315
+ query_string_params = if query_string_params.any?
1316
+ query_string_params.to_h { |p| p.split "=", 2 }
1317
+ else
1318
+ {}
1319
+ end
1320
+
1321
+ response = @client_stub.make_http_request(
1322
+ verb,
1323
+ uri: uri,
1324
+ body: body || "",
1325
+ params: query_string_params,
1326
+ options: options
1327
+ )
1328
+ operation = ::Gapic::Rest::TransportOperation.new response
1329
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1330
+
1331
+ yield result, operation if block_given?
1332
+ result
1333
+ end
1334
+
1335
+ ##
1336
+ # Baseline implementation for the create_nfs_share REST call
1337
+ #
1338
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::CreateNfsShareRequest]
1339
+ # A request object representing the call parameters. Required.
1340
+ # @param options [::Gapic::CallOptions]
1341
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1342
+ #
1343
+ # @yield [result, operation] Access the result along with the TransportOperation object
1344
+ # @yieldparam result [::Google::Longrunning::Operation]
1345
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1346
+ #
1347
+ # @return [::Google::Longrunning::Operation]
1348
+ # A result object deserialized from the server's reply
1349
+ def create_nfs_share request_pb, options = nil
1350
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1351
+
1352
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_nfs_share_request request_pb
1353
+ query_string_params = if query_string_params.any?
1354
+ query_string_params.to_h { |p| p.split "=", 2 }
1355
+ else
1356
+ {}
1357
+ end
1358
+
1359
+ response = @client_stub.make_http_request(
1360
+ verb,
1361
+ uri: uri,
1362
+ body: body || "",
1363
+ params: query_string_params,
1364
+ options: options
1365
+ )
1366
+ operation = ::Gapic::Rest::TransportOperation.new response
1367
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1368
+
1369
+ yield result, operation if block_given?
1370
+ result
1371
+ end
1372
+
1373
+ ##
1374
+ # Baseline implementation for the rename_nfs_share REST call
1375
+ #
1376
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::RenameNfsShareRequest]
1377
+ # A request object representing the call parameters. Required.
1378
+ # @param options [::Gapic::CallOptions]
1379
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1380
+ #
1381
+ # @yield [result, operation] Access the result along with the TransportOperation object
1382
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::NfsShare]
1383
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1384
+ #
1385
+ # @return [::Google::Cloud::BareMetalSolution::V2::NfsShare]
1386
+ # A result object deserialized from the server's reply
1387
+ def rename_nfs_share request_pb, options = nil
1388
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1389
+
1390
+ verb, uri, query_string_params, body = ServiceStub.transcode_rename_nfs_share_request request_pb
1391
+ query_string_params = if query_string_params.any?
1392
+ query_string_params.to_h { |p| p.split "=", 2 }
1393
+ else
1394
+ {}
1395
+ end
1396
+
1397
+ response = @client_stub.make_http_request(
1398
+ verb,
1399
+ uri: uri,
1400
+ body: body || "",
1401
+ params: query_string_params,
1402
+ options: options
1403
+ )
1404
+ operation = ::Gapic::Rest::TransportOperation.new response
1405
+ result = ::Google::Cloud::BareMetalSolution::V2::NfsShare.decode_json response.body, ignore_unknown_fields: true
1406
+
1407
+ yield result, operation if block_given?
1408
+ result
1409
+ end
1410
+
1411
+ ##
1412
+ # Baseline implementation for the delete_nfs_share REST call
1413
+ #
1414
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::DeleteNfsShareRequest]
1415
+ # A request object representing the call parameters. Required.
1416
+ # @param options [::Gapic::CallOptions]
1417
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1418
+ #
1419
+ # @yield [result, operation] Access the result along with the TransportOperation object
1420
+ # @yieldparam result [::Google::Longrunning::Operation]
1421
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1422
+ #
1423
+ # @return [::Google::Longrunning::Operation]
1424
+ # A result object deserialized from the server's reply
1425
+ def delete_nfs_share request_pb, options = nil
1426
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1427
+
1428
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_nfs_share_request request_pb
1429
+ query_string_params = if query_string_params.any?
1430
+ query_string_params.to_h { |p| p.split "=", 2 }
1431
+ else
1432
+ {}
1433
+ end
1434
+
1435
+ response = @client_stub.make_http_request(
1436
+ verb,
1437
+ uri: uri,
1438
+ body: body || "",
1439
+ params: query_string_params,
1440
+ options: options
1441
+ )
1442
+ operation = ::Gapic::Rest::TransportOperation.new response
1443
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1444
+
1445
+ yield result, operation if block_given?
1446
+ result
1447
+ end
1448
+
1449
+ ##
1450
+ # Baseline implementation for the list_provisioning_quotas REST call
1451
+ #
1452
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListProvisioningQuotasRequest]
1453
+ # A request object representing the call parameters. Required.
1454
+ # @param options [::Gapic::CallOptions]
1455
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1456
+ #
1457
+ # @yield [result, operation] Access the result along with the TransportOperation object
1458
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListProvisioningQuotasResponse]
1459
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1460
+ #
1461
+ # @return [::Google::Cloud::BareMetalSolution::V2::ListProvisioningQuotasResponse]
1462
+ # A result object deserialized from the server's reply
1463
+ def list_provisioning_quotas request_pb, options = nil
1464
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1465
+
1466
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_provisioning_quotas_request request_pb
1467
+ query_string_params = if query_string_params.any?
1468
+ query_string_params.to_h { |p| p.split "=", 2 }
1469
+ else
1470
+ {}
1471
+ end
1472
+
1473
+ response = @client_stub.make_http_request(
1474
+ verb,
1475
+ uri: uri,
1476
+ body: body || "",
1477
+ params: query_string_params,
1478
+ options: options
1479
+ )
1480
+ operation = ::Gapic::Rest::TransportOperation.new response
1481
+ result = ::Google::Cloud::BareMetalSolution::V2::ListProvisioningQuotasResponse.decode_json response.body, ignore_unknown_fields: true
1482
+
1483
+ yield result, operation if block_given?
1484
+ result
1485
+ end
1486
+
1487
+ ##
1488
+ # Baseline implementation for the submit_provisioning_config REST call
1489
+ #
1490
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigRequest]
1491
+ # A request object representing the call parameters. Required.
1492
+ # @param options [::Gapic::CallOptions]
1493
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1494
+ #
1495
+ # @yield [result, operation] Access the result along with the TransportOperation object
1496
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigResponse]
1497
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1498
+ #
1499
+ # @return [::Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigResponse]
1500
+ # A result object deserialized from the server's reply
1501
+ def submit_provisioning_config request_pb, options = nil
1502
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1503
+
1504
+ verb, uri, query_string_params, body = ServiceStub.transcode_submit_provisioning_config_request request_pb
1505
+ query_string_params = if query_string_params.any?
1506
+ query_string_params.to_h { |p| p.split "=", 2 }
1507
+ else
1508
+ {}
1509
+ end
1510
+
1511
+ response = @client_stub.make_http_request(
1512
+ verb,
1513
+ uri: uri,
1514
+ body: body || "",
1515
+ params: query_string_params,
1516
+ options: options
1517
+ )
1518
+ operation = ::Gapic::Rest::TransportOperation.new response
1519
+ result = ::Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigResponse.decode_json response.body, ignore_unknown_fields: true
1520
+
1521
+ yield result, operation if block_given?
1522
+ result
1523
+ end
1524
+
1525
+ ##
1526
+ # Baseline implementation for the get_provisioning_config REST call
1527
+ #
1528
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetProvisioningConfigRequest]
1529
+ # A request object representing the call parameters. Required.
1530
+ # @param options [::Gapic::CallOptions]
1531
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1532
+ #
1533
+ # @yield [result, operation] Access the result along with the TransportOperation object
1534
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
1535
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1536
+ #
1537
+ # @return [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
1538
+ # A result object deserialized from the server's reply
1539
+ def get_provisioning_config request_pb, options = nil
1540
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1541
+
1542
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_provisioning_config_request request_pb
1543
+ query_string_params = if query_string_params.any?
1544
+ query_string_params.to_h { |p| p.split "=", 2 }
1545
+ else
1546
+ {}
1547
+ end
1548
+
1549
+ response = @client_stub.make_http_request(
1550
+ verb,
1551
+ uri: uri,
1552
+ body: body || "",
1553
+ params: query_string_params,
1554
+ options: options
1555
+ )
1556
+ operation = ::Gapic::Rest::TransportOperation.new response
1557
+ result = ::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig.decode_json response.body, ignore_unknown_fields: true
1558
+
1559
+ yield result, operation if block_given?
1560
+ result
1561
+ end
1562
+
1563
+ ##
1564
+ # Baseline implementation for the create_provisioning_config REST call
1565
+ #
1566
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::CreateProvisioningConfigRequest]
1567
+ # A request object representing the call parameters. Required.
1568
+ # @param options [::Gapic::CallOptions]
1569
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1570
+ #
1571
+ # @yield [result, operation] Access the result along with the TransportOperation object
1572
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
1573
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1574
+ #
1575
+ # @return [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
1576
+ # A result object deserialized from the server's reply
1577
+ def create_provisioning_config request_pb, options = nil
1578
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1579
+
1580
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_provisioning_config_request request_pb
1581
+ query_string_params = if query_string_params.any?
1582
+ query_string_params.to_h { |p| p.split "=", 2 }
1583
+ else
1584
+ {}
1585
+ end
1586
+
1587
+ response = @client_stub.make_http_request(
1588
+ verb,
1589
+ uri: uri,
1590
+ body: body || "",
1591
+ params: query_string_params,
1592
+ options: options
1593
+ )
1594
+ operation = ::Gapic::Rest::TransportOperation.new response
1595
+ result = ::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig.decode_json response.body, ignore_unknown_fields: true
1596
+
1597
+ yield result, operation if block_given?
1598
+ result
1599
+ end
1600
+
1601
+ ##
1602
+ # Baseline implementation for the update_provisioning_config REST call
1603
+ #
1604
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateProvisioningConfigRequest]
1605
+ # A request object representing the call parameters. Required.
1606
+ # @param options [::Gapic::CallOptions]
1607
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1608
+ #
1609
+ # @yield [result, operation] Access the result along with the TransportOperation object
1610
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
1611
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1612
+ #
1613
+ # @return [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
1614
+ # A result object deserialized from the server's reply
1615
+ def update_provisioning_config request_pb, options = nil
1616
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1617
+
1618
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_provisioning_config_request request_pb
1619
+ query_string_params = if query_string_params.any?
1620
+ query_string_params.to_h { |p| p.split "=", 2 }
1621
+ else
1622
+ {}
1623
+ end
1624
+
1625
+ response = @client_stub.make_http_request(
1626
+ verb,
1627
+ uri: uri,
1628
+ body: body || "",
1629
+ params: query_string_params,
1630
+ options: options
1631
+ )
1632
+ operation = ::Gapic::Rest::TransportOperation.new response
1633
+ result = ::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig.decode_json response.body, ignore_unknown_fields: true
1634
+
1635
+ yield result, operation if block_given?
1636
+ result
1637
+ end
1638
+
1639
+ ##
1640
+ # Baseline implementation for the rename_network REST call
1641
+ #
1642
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::RenameNetworkRequest]
1643
+ # A request object representing the call parameters. Required.
1644
+ # @param options [::Gapic::CallOptions]
1645
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1646
+ #
1647
+ # @yield [result, operation] Access the result along with the TransportOperation object
1648
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Network]
1649
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1650
+ #
1651
+ # @return [::Google::Cloud::BareMetalSolution::V2::Network]
1652
+ # A result object deserialized from the server's reply
1653
+ def rename_network request_pb, options = nil
1654
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1655
+
1656
+ verb, uri, query_string_params, body = ServiceStub.transcode_rename_network_request request_pb
1657
+ query_string_params = if query_string_params.any?
1658
+ query_string_params.to_h { |p| p.split "=", 2 }
1659
+ else
1660
+ {}
1661
+ end
1662
+
1663
+ response = @client_stub.make_http_request(
1664
+ verb,
1665
+ uri: uri,
1666
+ body: body || "",
1667
+ params: query_string_params,
1668
+ options: options
1669
+ )
1670
+ operation = ::Gapic::Rest::TransportOperation.new response
1671
+ result = ::Google::Cloud::BareMetalSolution::V2::Network.decode_json response.body, ignore_unknown_fields: true
1672
+
1673
+ yield result, operation if block_given?
1674
+ result
1675
+ end
1676
+
1677
+ ##
1678
+ # Baseline implementation for the list_os_images REST call
1679
+ #
1680
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListOSImagesRequest]
1681
+ # A request object representing the call parameters. Required.
1682
+ # @param options [::Gapic::CallOptions]
1683
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1684
+ #
1685
+ # @yield [result, operation] Access the result along with the TransportOperation object
1686
+ # @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListOSImagesResponse]
1687
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1688
+ #
1689
+ # @return [::Google::Cloud::BareMetalSolution::V2::ListOSImagesResponse]
1690
+ # A result object deserialized from the server's reply
1691
+ def list_os_images request_pb, options = nil
1692
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1693
+
1694
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_os_images_request request_pb
1695
+ query_string_params = if query_string_params.any?
1696
+ query_string_params.to_h { |p| p.split "=", 2 }
1697
+ else
1698
+ {}
1699
+ end
1700
+
1701
+ response = @client_stub.make_http_request(
1702
+ verb,
1703
+ uri: uri,
1704
+ body: body || "",
1705
+ params: query_string_params,
1706
+ options: options
1707
+ )
1708
+ operation = ::Gapic::Rest::TransportOperation.new response
1709
+ result = ::Google::Cloud::BareMetalSolution::V2::ListOSImagesResponse.decode_json response.body, ignore_unknown_fields: true
1710
+
1711
+ yield result, operation if block_given?
1712
+ result
1713
+ end
1714
+
1715
+ ##
1716
+ # @private
1717
+ #
1718
+ # GRPC transcoding helper method for the list_instances REST call
1719
+ #
1720
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListInstancesRequest]
1721
+ # A request object representing the call parameters. Required.
1722
+ # @return [Array(String, [String, nil], Hash{String => String})]
1723
+ # Uri, Body, Query string parameters
1724
+ def self.transcode_list_instances_request request_pb
1725
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1726
+ .with_bindings(
1727
+ uri_method: :get,
1728
+ uri_template: "/v2/{parent}/instances",
1729
+ matches: [
1730
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1731
+ ]
1732
+ )
1733
+ transcoder.transcode request_pb
1734
+ end
1735
+
1736
+ ##
1737
+ # @private
1738
+ #
1739
+ # GRPC transcoding helper method for the get_instance REST call
1740
+ #
1741
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetInstanceRequest]
1742
+ # A request object representing the call parameters. Required.
1743
+ # @return [Array(String, [String, nil], Hash{String => String})]
1744
+ # Uri, Body, Query string parameters
1745
+ def self.transcode_get_instance_request request_pb
1746
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1747
+ .with_bindings(
1748
+ uri_method: :get,
1749
+ uri_template: "/v2/{name}",
1750
+ matches: [
1751
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1752
+ ]
1753
+ )
1754
+ transcoder.transcode request_pb
1755
+ end
1756
+
1757
+ ##
1758
+ # @private
1759
+ #
1760
+ # GRPC transcoding helper method for the update_instance REST call
1761
+ #
1762
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateInstanceRequest]
1763
+ # A request object representing the call parameters. Required.
1764
+ # @return [Array(String, [String, nil], Hash{String => String})]
1765
+ # Uri, Body, Query string parameters
1766
+ def self.transcode_update_instance_request request_pb
1767
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1768
+ .with_bindings(
1769
+ uri_method: :patch,
1770
+ uri_template: "/v2/{instance.name}",
1771
+ body: "instance",
1772
+ matches: [
1773
+ ["instance.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1774
+ ]
1775
+ )
1776
+ transcoder.transcode request_pb
1777
+ end
1778
+
1779
+ ##
1780
+ # @private
1781
+ #
1782
+ # GRPC transcoding helper method for the rename_instance REST call
1783
+ #
1784
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::RenameInstanceRequest]
1785
+ # A request object representing the call parameters. Required.
1786
+ # @return [Array(String, [String, nil], Hash{String => String})]
1787
+ # Uri, Body, Query string parameters
1788
+ def self.transcode_rename_instance_request request_pb
1789
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1790
+ .with_bindings(
1791
+ uri_method: :post,
1792
+ uri_template: "/v2/{name}:rename",
1793
+ body: "*",
1794
+ matches: [
1795
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1796
+ ]
1797
+ )
1798
+ transcoder.transcode request_pb
1799
+ end
1800
+
1801
+ ##
1802
+ # @private
1803
+ #
1804
+ # GRPC transcoding helper method for the reset_instance REST call
1805
+ #
1806
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ResetInstanceRequest]
1807
+ # A request object representing the call parameters. Required.
1808
+ # @return [Array(String, [String, nil], Hash{String => String})]
1809
+ # Uri, Body, Query string parameters
1810
+ def self.transcode_reset_instance_request request_pb
1811
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1812
+ .with_bindings(
1813
+ uri_method: :post,
1814
+ uri_template: "/v2/{name}:reset",
1815
+ body: "*",
1816
+ matches: [
1817
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1818
+ ]
1819
+ )
1820
+ transcoder.transcode request_pb
1821
+ end
1822
+
1823
+ ##
1824
+ # @private
1825
+ #
1826
+ # GRPC transcoding helper method for the start_instance REST call
1827
+ #
1828
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::StartInstanceRequest]
1829
+ # A request object representing the call parameters. Required.
1830
+ # @return [Array(String, [String, nil], Hash{String => String})]
1831
+ # Uri, Body, Query string parameters
1832
+ def self.transcode_start_instance_request request_pb
1833
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1834
+ .with_bindings(
1835
+ uri_method: :post,
1836
+ uri_template: "/v2/{name}:start",
1837
+ body: "*",
1838
+ matches: [
1839
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1840
+ ]
1841
+ )
1842
+ transcoder.transcode request_pb
1843
+ end
1844
+
1845
+ ##
1846
+ # @private
1847
+ #
1848
+ # GRPC transcoding helper method for the stop_instance REST call
1849
+ #
1850
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::StopInstanceRequest]
1851
+ # A request object representing the call parameters. Required.
1852
+ # @return [Array(String, [String, nil], Hash{String => String})]
1853
+ # Uri, Body, Query string parameters
1854
+ def self.transcode_stop_instance_request request_pb
1855
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1856
+ .with_bindings(
1857
+ uri_method: :post,
1858
+ uri_template: "/v2/{name}:stop",
1859
+ body: "*",
1860
+ matches: [
1861
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1862
+ ]
1863
+ )
1864
+ transcoder.transcode request_pb
1865
+ end
1866
+
1867
+ ##
1868
+ # @private
1869
+ #
1870
+ # GRPC transcoding helper method for the enable_interactive_serial_console REST call
1871
+ #
1872
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::EnableInteractiveSerialConsoleRequest]
1873
+ # A request object representing the call parameters. Required.
1874
+ # @return [Array(String, [String, nil], Hash{String => String})]
1875
+ # Uri, Body, Query string parameters
1876
+ def self.transcode_enable_interactive_serial_console_request request_pb
1877
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1878
+ .with_bindings(
1879
+ uri_method: :post,
1880
+ uri_template: "/v2/{name}:enableInteractiveSerialConsole",
1881
+ body: "*",
1882
+ matches: [
1883
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1884
+ ]
1885
+ )
1886
+ transcoder.transcode request_pb
1887
+ end
1888
+
1889
+ ##
1890
+ # @private
1891
+ #
1892
+ # GRPC transcoding helper method for the disable_interactive_serial_console REST call
1893
+ #
1894
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::DisableInteractiveSerialConsoleRequest]
1895
+ # A request object representing the call parameters. Required.
1896
+ # @return [Array(String, [String, nil], Hash{String => String})]
1897
+ # Uri, Body, Query string parameters
1898
+ def self.transcode_disable_interactive_serial_console_request request_pb
1899
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1900
+ .with_bindings(
1901
+ uri_method: :post,
1902
+ uri_template: "/v2/{name}:disableInteractiveSerialConsole",
1903
+ body: "*",
1904
+ matches: [
1905
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1906
+ ]
1907
+ )
1908
+ transcoder.transcode request_pb
1909
+ end
1910
+
1911
+ ##
1912
+ # @private
1913
+ #
1914
+ # GRPC transcoding helper method for the detach_lun REST call
1915
+ #
1916
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::DetachLunRequest]
1917
+ # A request object representing the call parameters. Required.
1918
+ # @return [Array(String, [String, nil], Hash{String => String})]
1919
+ # Uri, Body, Query string parameters
1920
+ def self.transcode_detach_lun_request request_pb
1921
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1922
+ .with_bindings(
1923
+ uri_method: :post,
1924
+ uri_template: "/v2/{instance}:detachLun",
1925
+ body: "*",
1926
+ matches: [
1927
+ ["instance", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1928
+ ]
1929
+ )
1930
+ transcoder.transcode request_pb
1931
+ end
1932
+
1933
+ ##
1934
+ # @private
1935
+ #
1936
+ # GRPC transcoding helper method for the list_ssh_keys REST call
1937
+ #
1938
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListSSHKeysRequest]
1939
+ # A request object representing the call parameters. Required.
1940
+ # @return [Array(String, [String, nil], Hash{String => String})]
1941
+ # Uri, Body, Query string parameters
1942
+ def self.transcode_list_ssh_keys_request request_pb
1943
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1944
+ .with_bindings(
1945
+ uri_method: :get,
1946
+ uri_template: "/v2/{parent}/sshKeys",
1947
+ matches: [
1948
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1949
+ ]
1950
+ )
1951
+ transcoder.transcode request_pb
1952
+ end
1953
+
1954
+ ##
1955
+ # @private
1956
+ #
1957
+ # GRPC transcoding helper method for the create_ssh_key REST call
1958
+ #
1959
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::CreateSSHKeyRequest]
1960
+ # A request object representing the call parameters. Required.
1961
+ # @return [Array(String, [String, nil], Hash{String => String})]
1962
+ # Uri, Body, Query string parameters
1963
+ def self.transcode_create_ssh_key_request request_pb
1964
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1965
+ .with_bindings(
1966
+ uri_method: :post,
1967
+ uri_template: "/v2/{parent}/sshKeys",
1968
+ body: "ssh_key",
1969
+ matches: [
1970
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1971
+ ]
1972
+ )
1973
+ transcoder.transcode request_pb
1974
+ end
1975
+
1976
+ ##
1977
+ # @private
1978
+ #
1979
+ # GRPC transcoding helper method for the delete_ssh_key REST call
1980
+ #
1981
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::DeleteSSHKeyRequest]
1982
+ # A request object representing the call parameters. Required.
1983
+ # @return [Array(String, [String, nil], Hash{String => String})]
1984
+ # Uri, Body, Query string parameters
1985
+ def self.transcode_delete_ssh_key_request request_pb
1986
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1987
+ .with_bindings(
1988
+ uri_method: :delete,
1989
+ uri_template: "/v2/{name}",
1990
+ matches: [
1991
+ ["name", %r{^projects/[^/]+/locations/[^/]+/sshKeys/[^/]+/?$}, false]
1992
+ ]
1993
+ )
1994
+ transcoder.transcode request_pb
1995
+ end
1996
+
1997
+ ##
1998
+ # @private
1999
+ #
2000
+ # GRPC transcoding helper method for the list_volumes REST call
2001
+ #
2002
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListVolumesRequest]
2003
+ # A request object representing the call parameters. Required.
2004
+ # @return [Array(String, [String, nil], Hash{String => String})]
2005
+ # Uri, Body, Query string parameters
2006
+ def self.transcode_list_volumes_request request_pb
2007
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2008
+ .with_bindings(
2009
+ uri_method: :get,
2010
+ uri_template: "/v2/{parent}/volumes",
2011
+ matches: [
2012
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2013
+ ]
2014
+ )
2015
+ transcoder.transcode request_pb
2016
+ end
2017
+
2018
+ ##
2019
+ # @private
2020
+ #
2021
+ # GRPC transcoding helper method for the get_volume REST call
2022
+ #
2023
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetVolumeRequest]
2024
+ # A request object representing the call parameters. Required.
2025
+ # @return [Array(String, [String, nil], Hash{String => String})]
2026
+ # Uri, Body, Query string parameters
2027
+ def self.transcode_get_volume_request request_pb
2028
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2029
+ .with_bindings(
2030
+ uri_method: :get,
2031
+ uri_template: "/v2/{name}",
2032
+ matches: [
2033
+ ["name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
2034
+ ]
2035
+ )
2036
+ transcoder.transcode request_pb
2037
+ end
2038
+
2039
+ ##
2040
+ # @private
2041
+ #
2042
+ # GRPC transcoding helper method for the update_volume REST call
2043
+ #
2044
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateVolumeRequest]
2045
+ # A request object representing the call parameters. Required.
2046
+ # @return [Array(String, [String, nil], Hash{String => String})]
2047
+ # Uri, Body, Query string parameters
2048
+ def self.transcode_update_volume_request request_pb
2049
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2050
+ .with_bindings(
2051
+ uri_method: :patch,
2052
+ uri_template: "/v2/{volume.name}",
2053
+ body: "volume",
2054
+ matches: [
2055
+ ["volume.name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
2056
+ ]
2057
+ )
2058
+ transcoder.transcode request_pb
2059
+ end
2060
+
2061
+ ##
2062
+ # @private
2063
+ #
2064
+ # GRPC transcoding helper method for the rename_volume REST call
2065
+ #
2066
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::RenameVolumeRequest]
2067
+ # A request object representing the call parameters. Required.
2068
+ # @return [Array(String, [String, nil], Hash{String => String})]
2069
+ # Uri, Body, Query string parameters
2070
+ def self.transcode_rename_volume_request request_pb
2071
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2072
+ .with_bindings(
2073
+ uri_method: :post,
2074
+ uri_template: "/v2/{name}:rename",
2075
+ body: "*",
2076
+ matches: [
2077
+ ["name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
2078
+ ]
2079
+ )
2080
+ transcoder.transcode request_pb
2081
+ end
2082
+
2083
+ ##
2084
+ # @private
2085
+ #
2086
+ # GRPC transcoding helper method for the evict_volume REST call
2087
+ #
2088
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::EvictVolumeRequest]
2089
+ # A request object representing the call parameters. Required.
2090
+ # @return [Array(String, [String, nil], Hash{String => String})]
2091
+ # Uri, Body, Query string parameters
2092
+ def self.transcode_evict_volume_request request_pb
2093
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2094
+ .with_bindings(
2095
+ uri_method: :post,
2096
+ uri_template: "/v2/{name}:evict",
2097
+ body: "*",
2098
+ matches: [
2099
+ ["name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
2100
+ ]
2101
+ )
2102
+ transcoder.transcode request_pb
2103
+ end
2104
+
2105
+ ##
2106
+ # @private
2107
+ #
2108
+ # GRPC transcoding helper method for the resize_volume REST call
2109
+ #
2110
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ResizeVolumeRequest]
2111
+ # A request object representing the call parameters. Required.
2112
+ # @return [Array(String, [String, nil], Hash{String => String})]
2113
+ # Uri, Body, Query string parameters
2114
+ def self.transcode_resize_volume_request request_pb
2115
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2116
+ .with_bindings(
2117
+ uri_method: :post,
2118
+ uri_template: "/v2/{volume}:resize",
2119
+ body: "*",
2120
+ matches: [
2121
+ ["volume", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
2122
+ ]
2123
+ )
2124
+ transcoder.transcode request_pb
2125
+ end
2126
+
2127
+ ##
2128
+ # @private
2129
+ #
2130
+ # GRPC transcoding helper method for the list_networks REST call
2131
+ #
2132
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListNetworksRequest]
2133
+ # A request object representing the call parameters. Required.
2134
+ # @return [Array(String, [String, nil], Hash{String => String})]
2135
+ # Uri, Body, Query string parameters
2136
+ def self.transcode_list_networks_request request_pb
2137
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2138
+ .with_bindings(
2139
+ uri_method: :get,
2140
+ uri_template: "/v2/{parent}/networks",
2141
+ matches: [
2142
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2143
+ ]
2144
+ )
2145
+ transcoder.transcode request_pb
2146
+ end
2147
+
2148
+ ##
2149
+ # @private
2150
+ #
2151
+ # GRPC transcoding helper method for the list_network_usage REST call
2152
+ #
2153
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageRequest]
2154
+ # A request object representing the call parameters. Required.
2155
+ # @return [Array(String, [String, nil], Hash{String => String})]
2156
+ # Uri, Body, Query string parameters
2157
+ def self.transcode_list_network_usage_request request_pb
2158
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2159
+ .with_bindings(
2160
+ uri_method: :get,
2161
+ uri_template: "/v2/{location}/networks:listNetworkUsage",
2162
+ matches: [
2163
+ ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2164
+ ]
2165
+ )
2166
+ transcoder.transcode request_pb
2167
+ end
2168
+
2169
+ ##
2170
+ # @private
2171
+ #
2172
+ # GRPC transcoding helper method for the get_network REST call
2173
+ #
2174
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetNetworkRequest]
2175
+ # A request object representing the call parameters. Required.
2176
+ # @return [Array(String, [String, nil], Hash{String => String})]
2177
+ # Uri, Body, Query string parameters
2178
+ def self.transcode_get_network_request request_pb
2179
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2180
+ .with_bindings(
2181
+ uri_method: :get,
2182
+ uri_template: "/v2/{name}",
2183
+ matches: [
2184
+ ["name", %r{^projects/[^/]+/locations/[^/]+/networks/[^/]+/?$}, false]
2185
+ ]
2186
+ )
2187
+ transcoder.transcode request_pb
2188
+ end
2189
+
2190
+ ##
2191
+ # @private
2192
+ #
2193
+ # GRPC transcoding helper method for the update_network REST call
2194
+ #
2195
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateNetworkRequest]
2196
+ # A request object representing the call parameters. Required.
2197
+ # @return [Array(String, [String, nil], Hash{String => String})]
2198
+ # Uri, Body, Query string parameters
2199
+ def self.transcode_update_network_request request_pb
2200
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2201
+ .with_bindings(
857
2202
  uri_method: :patch,
858
- uri_template: "/v2/{instance.name}",
859
- body: "instance",
2203
+ uri_template: "/v2/{network.name}",
2204
+ body: "network",
860
2205
  matches: [
861
- ["instance.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
2206
+ ["network.name", %r{^projects/[^/]+/locations/[^/]+/networks/[^/]+/?$}, false]
862
2207
  ]
863
2208
  )
864
2209
  transcoder.transcode request_pb
@@ -867,20 +2212,20 @@ module Google
867
2212
  ##
868
2213
  # @private
869
2214
  #
870
- # GRPC transcoding helper method for the reset_instance REST call
2215
+ # GRPC transcoding helper method for the create_volume_snapshot REST call
871
2216
  #
872
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ResetInstanceRequest]
2217
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::CreateVolumeSnapshotRequest]
873
2218
  # A request object representing the call parameters. Required.
874
2219
  # @return [Array(String, [String, nil], Hash{String => String})]
875
2220
  # Uri, Body, Query string parameters
876
- def self.transcode_reset_instance_request request_pb
2221
+ def self.transcode_create_volume_snapshot_request request_pb
877
2222
  transcoder = Gapic::Rest::GrpcTranscoder.new
878
2223
  .with_bindings(
879
2224
  uri_method: :post,
880
- uri_template: "/v2/{name}:reset",
881
- body: "*",
2225
+ uri_template: "/v2/{parent}/snapshots",
2226
+ body: "volume_snapshot",
882
2227
  matches: [
883
- ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
2228
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
884
2229
  ]
885
2230
  )
886
2231
  transcoder.transcode request_pb
@@ -889,20 +2234,20 @@ module Google
889
2234
  ##
890
2235
  # @private
891
2236
  #
892
- # GRPC transcoding helper method for the start_instance REST call
2237
+ # GRPC transcoding helper method for the restore_volume_snapshot REST call
893
2238
  #
894
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::StartInstanceRequest]
2239
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::RestoreVolumeSnapshotRequest]
895
2240
  # A request object representing the call parameters. Required.
896
2241
  # @return [Array(String, [String, nil], Hash{String => String})]
897
2242
  # Uri, Body, Query string parameters
898
- def self.transcode_start_instance_request request_pb
2243
+ def self.transcode_restore_volume_snapshot_request request_pb
899
2244
  transcoder = Gapic::Rest::GrpcTranscoder.new
900
2245
  .with_bindings(
901
2246
  uri_method: :post,
902
- uri_template: "/v2/{name}:start",
2247
+ uri_template: "/v2/{volume_snapshot}:restoreVolumeSnapshot",
903
2248
  body: "*",
904
2249
  matches: [
905
- ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
2250
+ ["volume_snapshot", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/snapshots/[^/]+/?$}, false]
906
2251
  ]
907
2252
  )
908
2253
  transcoder.transcode request_pb
@@ -911,20 +2256,19 @@ module Google
911
2256
  ##
912
2257
  # @private
913
2258
  #
914
- # GRPC transcoding helper method for the stop_instance REST call
2259
+ # GRPC transcoding helper method for the delete_volume_snapshot REST call
915
2260
  #
916
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::StopInstanceRequest]
2261
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::DeleteVolumeSnapshotRequest]
917
2262
  # A request object representing the call parameters. Required.
918
2263
  # @return [Array(String, [String, nil], Hash{String => String})]
919
2264
  # Uri, Body, Query string parameters
920
- def self.transcode_stop_instance_request request_pb
2265
+ def self.transcode_delete_volume_snapshot_request request_pb
921
2266
  transcoder = Gapic::Rest::GrpcTranscoder.new
922
2267
  .with_bindings(
923
- uri_method: :post,
924
- uri_template: "/v2/{name}:stop",
925
- body: "*",
2268
+ uri_method: :delete,
2269
+ uri_template: "/v2/{name}",
926
2270
  matches: [
927
- ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
2271
+ ["name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/snapshots/[^/]+/?$}, false]
928
2272
  ]
929
2273
  )
930
2274
  transcoder.transcode request_pb
@@ -933,20 +2277,19 @@ module Google
933
2277
  ##
934
2278
  # @private
935
2279
  #
936
- # GRPC transcoding helper method for the detach_lun REST call
2280
+ # GRPC transcoding helper method for the get_volume_snapshot REST call
937
2281
  #
938
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::DetachLunRequest]
2282
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetVolumeSnapshotRequest]
939
2283
  # A request object representing the call parameters. Required.
940
2284
  # @return [Array(String, [String, nil], Hash{String => String})]
941
2285
  # Uri, Body, Query string parameters
942
- def self.transcode_detach_lun_request request_pb
2286
+ def self.transcode_get_volume_snapshot_request request_pb
943
2287
  transcoder = Gapic::Rest::GrpcTranscoder.new
944
2288
  .with_bindings(
945
- uri_method: :post,
946
- uri_template: "/v2/{instance}:detachLun",
947
- body: "*",
2289
+ uri_method: :get,
2290
+ uri_template: "/v2/{name}",
948
2291
  matches: [
949
- ["instance", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
2292
+ ["name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/snapshots/[^/]+/?$}, false]
950
2293
  ]
951
2294
  )
952
2295
  transcoder.transcode request_pb
@@ -955,19 +2298,19 @@ module Google
955
2298
  ##
956
2299
  # @private
957
2300
  #
958
- # GRPC transcoding helper method for the list_volumes REST call
2301
+ # GRPC transcoding helper method for the list_volume_snapshots REST call
959
2302
  #
960
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListVolumesRequest]
2303
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsRequest]
961
2304
  # A request object representing the call parameters. Required.
962
2305
  # @return [Array(String, [String, nil], Hash{String => String})]
963
2306
  # Uri, Body, Query string parameters
964
- def self.transcode_list_volumes_request request_pb
2307
+ def self.transcode_list_volume_snapshots_request request_pb
965
2308
  transcoder = Gapic::Rest::GrpcTranscoder.new
966
2309
  .with_bindings(
967
2310
  uri_method: :get,
968
- uri_template: "/v2/{parent}/volumes",
2311
+ uri_template: "/v2/{parent}/snapshots",
969
2312
  matches: [
970
- ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2313
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
971
2314
  ]
972
2315
  )
973
2316
  transcoder.transcode request_pb
@@ -976,19 +2319,19 @@ module Google
976
2319
  ##
977
2320
  # @private
978
2321
  #
979
- # GRPC transcoding helper method for the get_volume REST call
2322
+ # GRPC transcoding helper method for the get_lun REST call
980
2323
  #
981
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetVolumeRequest]
2324
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetLunRequest]
982
2325
  # A request object representing the call parameters. Required.
983
2326
  # @return [Array(String, [String, nil], Hash{String => String})]
984
2327
  # Uri, Body, Query string parameters
985
- def self.transcode_get_volume_request request_pb
2328
+ def self.transcode_get_lun_request request_pb
986
2329
  transcoder = Gapic::Rest::GrpcTranscoder.new
987
2330
  .with_bindings(
988
2331
  uri_method: :get,
989
2332
  uri_template: "/v2/{name}",
990
2333
  matches: [
991
- ["name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
2334
+ ["name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/luns/[^/]+/?$}, false]
992
2335
  ]
993
2336
  )
994
2337
  transcoder.transcode request_pb
@@ -997,20 +2340,19 @@ module Google
997
2340
  ##
998
2341
  # @private
999
2342
  #
1000
- # GRPC transcoding helper method for the update_volume REST call
2343
+ # GRPC transcoding helper method for the list_luns REST call
1001
2344
  #
1002
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateVolumeRequest]
2345
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListLunsRequest]
1003
2346
  # A request object representing the call parameters. Required.
1004
2347
  # @return [Array(String, [String, nil], Hash{String => String})]
1005
2348
  # Uri, Body, Query string parameters
1006
- def self.transcode_update_volume_request request_pb
2349
+ def self.transcode_list_luns_request request_pb
1007
2350
  transcoder = Gapic::Rest::GrpcTranscoder.new
1008
2351
  .with_bindings(
1009
- uri_method: :patch,
1010
- uri_template: "/v2/{volume.name}",
1011
- body: "volume",
2352
+ uri_method: :get,
2353
+ uri_template: "/v2/{parent}/luns",
1012
2354
  matches: [
1013
- ["volume.name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
2355
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
1014
2356
  ]
1015
2357
  )
1016
2358
  transcoder.transcode request_pb
@@ -1019,20 +2361,20 @@ module Google
1019
2361
  ##
1020
2362
  # @private
1021
2363
  #
1022
- # GRPC transcoding helper method for the resize_volume REST call
2364
+ # GRPC transcoding helper method for the evict_lun REST call
1023
2365
  #
1024
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ResizeVolumeRequest]
2366
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::EvictLunRequest]
1025
2367
  # A request object representing the call parameters. Required.
1026
2368
  # @return [Array(String, [String, nil], Hash{String => String})]
1027
2369
  # Uri, Body, Query string parameters
1028
- def self.transcode_resize_volume_request request_pb
2370
+ def self.transcode_evict_lun_request request_pb
1029
2371
  transcoder = Gapic::Rest::GrpcTranscoder.new
1030
2372
  .with_bindings(
1031
2373
  uri_method: :post,
1032
- uri_template: "/v2/{volume}:resize",
2374
+ uri_template: "/v2/{name}:evict",
1033
2375
  body: "*",
1034
2376
  matches: [
1035
- ["volume", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
2377
+ ["name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/luns/[^/]+/?$}, false]
1036
2378
  ]
1037
2379
  )
1038
2380
  transcoder.transcode request_pb
@@ -1041,19 +2383,19 @@ module Google
1041
2383
  ##
1042
2384
  # @private
1043
2385
  #
1044
- # GRPC transcoding helper method for the list_networks REST call
2386
+ # GRPC transcoding helper method for the get_nfs_share REST call
1045
2387
  #
1046
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListNetworksRequest]
2388
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetNfsShareRequest]
1047
2389
  # A request object representing the call parameters. Required.
1048
2390
  # @return [Array(String, [String, nil], Hash{String => String})]
1049
2391
  # Uri, Body, Query string parameters
1050
- def self.transcode_list_networks_request request_pb
2392
+ def self.transcode_get_nfs_share_request request_pb
1051
2393
  transcoder = Gapic::Rest::GrpcTranscoder.new
1052
2394
  .with_bindings(
1053
2395
  uri_method: :get,
1054
- uri_template: "/v2/{parent}/networks",
2396
+ uri_template: "/v2/{name}",
1055
2397
  matches: [
1056
- ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2398
+ ["name", %r{^projects/[^/]+/locations/[^/]+/nfsShares/[^/]+/?$}, false]
1057
2399
  ]
1058
2400
  )
1059
2401
  transcoder.transcode request_pb
@@ -1062,19 +2404,19 @@ module Google
1062
2404
  ##
1063
2405
  # @private
1064
2406
  #
1065
- # GRPC transcoding helper method for the list_network_usage REST call
2407
+ # GRPC transcoding helper method for the list_nfs_shares REST call
1066
2408
  #
1067
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageRequest]
2409
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesRequest]
1068
2410
  # A request object representing the call parameters. Required.
1069
2411
  # @return [Array(String, [String, nil], Hash{String => String})]
1070
2412
  # Uri, Body, Query string parameters
1071
- def self.transcode_list_network_usage_request request_pb
2413
+ def self.transcode_list_nfs_shares_request request_pb
1072
2414
  transcoder = Gapic::Rest::GrpcTranscoder.new
1073
2415
  .with_bindings(
1074
2416
  uri_method: :get,
1075
- uri_template: "/v2/{location}/networks:listNetworkUsage",
2417
+ uri_template: "/v2/{parent}/nfsShares",
1076
2418
  matches: [
1077
- ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2419
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1078
2420
  ]
1079
2421
  )
1080
2422
  transcoder.transcode request_pb
@@ -1083,19 +2425,20 @@ module Google
1083
2425
  ##
1084
2426
  # @private
1085
2427
  #
1086
- # GRPC transcoding helper method for the get_network REST call
2428
+ # GRPC transcoding helper method for the update_nfs_share REST call
1087
2429
  #
1088
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetNetworkRequest]
2430
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateNfsShareRequest]
1089
2431
  # A request object representing the call parameters. Required.
1090
2432
  # @return [Array(String, [String, nil], Hash{String => String})]
1091
2433
  # Uri, Body, Query string parameters
1092
- def self.transcode_get_network_request request_pb
2434
+ def self.transcode_update_nfs_share_request request_pb
1093
2435
  transcoder = Gapic::Rest::GrpcTranscoder.new
1094
2436
  .with_bindings(
1095
- uri_method: :get,
1096
- uri_template: "/v2/{name}",
2437
+ uri_method: :patch,
2438
+ uri_template: "/v2/{nfs_share.name}",
2439
+ body: "nfs_share",
1097
2440
  matches: [
1098
- ["name", %r{^projects/[^/]+/locations/[^/]+/networks/[^/]+/?$}, false]
2441
+ ["nfs_share.name", %r{^projects/[^/]+/locations/[^/]+/nfsShares/[^/]+/?$}, false]
1099
2442
  ]
1100
2443
  )
1101
2444
  transcoder.transcode request_pb
@@ -1104,20 +2447,20 @@ module Google
1104
2447
  ##
1105
2448
  # @private
1106
2449
  #
1107
- # GRPC transcoding helper method for the update_network REST call
2450
+ # GRPC transcoding helper method for the create_nfs_share REST call
1108
2451
  #
1109
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateNetworkRequest]
2452
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::CreateNfsShareRequest]
1110
2453
  # A request object representing the call parameters. Required.
1111
2454
  # @return [Array(String, [String, nil], Hash{String => String})]
1112
2455
  # Uri, Body, Query string parameters
1113
- def self.transcode_update_network_request request_pb
2456
+ def self.transcode_create_nfs_share_request request_pb
1114
2457
  transcoder = Gapic::Rest::GrpcTranscoder.new
1115
2458
  .with_bindings(
1116
- uri_method: :patch,
1117
- uri_template: "/v2/{network.name}",
1118
- body: "network",
2459
+ uri_method: :post,
2460
+ uri_template: "/v2/{parent}/nfsShares",
2461
+ body: "nfs_share",
1119
2462
  matches: [
1120
- ["network.name", %r{^projects/[^/]+/locations/[^/]+/networks/[^/]+/?$}, false]
2463
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1121
2464
  ]
1122
2465
  )
1123
2466
  transcoder.transcode request_pb
@@ -1126,19 +2469,41 @@ module Google
1126
2469
  ##
1127
2470
  # @private
1128
2471
  #
1129
- # GRPC transcoding helper method for the get_lun REST call
2472
+ # GRPC transcoding helper method for the rename_nfs_share REST call
1130
2473
  #
1131
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetLunRequest]
2474
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::RenameNfsShareRequest]
1132
2475
  # A request object representing the call parameters. Required.
1133
2476
  # @return [Array(String, [String, nil], Hash{String => String})]
1134
2477
  # Uri, Body, Query string parameters
1135
- def self.transcode_get_lun_request request_pb
2478
+ def self.transcode_rename_nfs_share_request request_pb
1136
2479
  transcoder = Gapic::Rest::GrpcTranscoder.new
1137
2480
  .with_bindings(
1138
- uri_method: :get,
2481
+ uri_method: :post,
2482
+ uri_template: "/v2/{name}:rename",
2483
+ body: "*",
2484
+ matches: [
2485
+ ["name", %r{^projects/[^/]+/locations/[^/]+/nfsShares/[^/]+/?$}, false]
2486
+ ]
2487
+ )
2488
+ transcoder.transcode request_pb
2489
+ end
2490
+
2491
+ ##
2492
+ # @private
2493
+ #
2494
+ # GRPC transcoding helper method for the delete_nfs_share REST call
2495
+ #
2496
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::DeleteNfsShareRequest]
2497
+ # A request object representing the call parameters. Required.
2498
+ # @return [Array(String, [String, nil], Hash{String => String})]
2499
+ # Uri, Body, Query string parameters
2500
+ def self.transcode_delete_nfs_share_request request_pb
2501
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2502
+ .with_bindings(
2503
+ uri_method: :delete,
1139
2504
  uri_template: "/v2/{name}",
1140
2505
  matches: [
1141
- ["name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/luns/[^/]+/?$}, false]
2506
+ ["name", %r{^projects/[^/]+/locations/[^/]+/nfsShares/[^/]+/?$}, false]
1142
2507
  ]
1143
2508
  )
1144
2509
  transcoder.transcode request_pb
@@ -1147,19 +2512,19 @@ module Google
1147
2512
  ##
1148
2513
  # @private
1149
2514
  #
1150
- # GRPC transcoding helper method for the list_luns REST call
2515
+ # GRPC transcoding helper method for the list_provisioning_quotas REST call
1151
2516
  #
1152
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListLunsRequest]
2517
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListProvisioningQuotasRequest]
1153
2518
  # A request object representing the call parameters. Required.
1154
2519
  # @return [Array(String, [String, nil], Hash{String => String})]
1155
2520
  # Uri, Body, Query string parameters
1156
- def self.transcode_list_luns_request request_pb
2521
+ def self.transcode_list_provisioning_quotas_request request_pb
1157
2522
  transcoder = Gapic::Rest::GrpcTranscoder.new
1158
2523
  .with_bindings(
1159
2524
  uri_method: :get,
1160
- uri_template: "/v2/{parent}/luns",
2525
+ uri_template: "/v2/{parent}/provisioningQuotas",
1161
2526
  matches: [
1162
- ["parent", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false]
2527
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1163
2528
  ]
1164
2529
  )
1165
2530
  transcoder.transcode request_pb
@@ -1168,19 +2533,41 @@ module Google
1168
2533
  ##
1169
2534
  # @private
1170
2535
  #
1171
- # GRPC transcoding helper method for the get_nfs_share REST call
2536
+ # GRPC transcoding helper method for the submit_provisioning_config REST call
1172
2537
  #
1173
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetNfsShareRequest]
2538
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigRequest]
1174
2539
  # A request object representing the call parameters. Required.
1175
2540
  # @return [Array(String, [String, nil], Hash{String => String})]
1176
2541
  # Uri, Body, Query string parameters
1177
- def self.transcode_get_nfs_share_request request_pb
2542
+ def self.transcode_submit_provisioning_config_request request_pb
2543
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2544
+ .with_bindings(
2545
+ uri_method: :post,
2546
+ uri_template: "/v2/{parent}/provisioningConfigs:submit",
2547
+ body: "*",
2548
+ matches: [
2549
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2550
+ ]
2551
+ )
2552
+ transcoder.transcode request_pb
2553
+ end
2554
+
2555
+ ##
2556
+ # @private
2557
+ #
2558
+ # GRPC transcoding helper method for the get_provisioning_config REST call
2559
+ #
2560
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::GetProvisioningConfigRequest]
2561
+ # A request object representing the call parameters. Required.
2562
+ # @return [Array(String, [String, nil], Hash{String => String})]
2563
+ # Uri, Body, Query string parameters
2564
+ def self.transcode_get_provisioning_config_request request_pb
1178
2565
  transcoder = Gapic::Rest::GrpcTranscoder.new
1179
2566
  .with_bindings(
1180
2567
  uri_method: :get,
1181
2568
  uri_template: "/v2/{name}",
1182
2569
  matches: [
1183
- ["name", %r{^projects/[^/]+/locations/[^/]+/nfsShares/[^/]+/?$}, false]
2570
+ ["name", %r{^projects/[^/]+/locations/[^/]+/provisioningConfigs/[^/]+/?$}, false]
1184
2571
  ]
1185
2572
  )
1186
2573
  transcoder.transcode request_pb
@@ -1189,17 +2576,18 @@ module Google
1189
2576
  ##
1190
2577
  # @private
1191
2578
  #
1192
- # GRPC transcoding helper method for the list_nfs_shares REST call
2579
+ # GRPC transcoding helper method for the create_provisioning_config REST call
1193
2580
  #
1194
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesRequest]
2581
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::CreateProvisioningConfigRequest]
1195
2582
  # A request object representing the call parameters. Required.
1196
2583
  # @return [Array(String, [String, nil], Hash{String => String})]
1197
2584
  # Uri, Body, Query string parameters
1198
- def self.transcode_list_nfs_shares_request request_pb
2585
+ def self.transcode_create_provisioning_config_request request_pb
1199
2586
  transcoder = Gapic::Rest::GrpcTranscoder.new
1200
2587
  .with_bindings(
1201
- uri_method: :get,
1202
- uri_template: "/v2/{parent}/nfsShares",
2588
+ uri_method: :post,
2589
+ uri_template: "/v2/{parent}/provisioningConfigs",
2590
+ body: "provisioning_config",
1203
2591
  matches: [
1204
2592
  ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1205
2593
  ]
@@ -1210,20 +2598,63 @@ module Google
1210
2598
  ##
1211
2599
  # @private
1212
2600
  #
1213
- # GRPC transcoding helper method for the update_nfs_share REST call
2601
+ # GRPC transcoding helper method for the update_provisioning_config REST call
1214
2602
  #
1215
- # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateNfsShareRequest]
2603
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::UpdateProvisioningConfigRequest]
1216
2604
  # A request object representing the call parameters. Required.
1217
2605
  # @return [Array(String, [String, nil], Hash{String => String})]
1218
2606
  # Uri, Body, Query string parameters
1219
- def self.transcode_update_nfs_share_request request_pb
2607
+ def self.transcode_update_provisioning_config_request request_pb
1220
2608
  transcoder = Gapic::Rest::GrpcTranscoder.new
1221
2609
  .with_bindings(
1222
2610
  uri_method: :patch,
1223
- uri_template: "/v2/{nfs_share.name}",
1224
- body: "nfs_share",
2611
+ uri_template: "/v2/{provisioning_config.name}",
2612
+ body: "provisioning_config",
1225
2613
  matches: [
1226
- ["nfs_share.name", %r{^projects/[^/]+/locations/[^/]+/nfsShares/[^/]+/?$}, false]
2614
+ ["provisioning_config.name", %r{^projects/[^/]+/locations/[^/]+/provisioningConfigs/[^/]+/?$}, false]
2615
+ ]
2616
+ )
2617
+ transcoder.transcode request_pb
2618
+ end
2619
+
2620
+ ##
2621
+ # @private
2622
+ #
2623
+ # GRPC transcoding helper method for the rename_network REST call
2624
+ #
2625
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::RenameNetworkRequest]
2626
+ # A request object representing the call parameters. Required.
2627
+ # @return [Array(String, [String, nil], Hash{String => String})]
2628
+ # Uri, Body, Query string parameters
2629
+ def self.transcode_rename_network_request request_pb
2630
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2631
+ .with_bindings(
2632
+ uri_method: :post,
2633
+ uri_template: "/v2/{name}:rename",
2634
+ body: "*",
2635
+ matches: [
2636
+ ["name", %r{^projects/[^/]+/locations/[^/]+/networks/[^/]+/?$}, false]
2637
+ ]
2638
+ )
2639
+ transcoder.transcode request_pb
2640
+ end
2641
+
2642
+ ##
2643
+ # @private
2644
+ #
2645
+ # GRPC transcoding helper method for the list_os_images REST call
2646
+ #
2647
+ # @param request_pb [::Google::Cloud::BareMetalSolution::V2::ListOSImagesRequest]
2648
+ # A request object representing the call parameters. Required.
2649
+ # @return [Array(String, [String, nil], Hash{String => String})]
2650
+ # Uri, Body, Query string parameters
2651
+ def self.transcode_list_os_images_request request_pb
2652
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2653
+ .with_bindings(
2654
+ uri_method: :get,
2655
+ uri_template: "/v2/{parent}/osImages",
2656
+ matches: [
2657
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1227
2658
  ]
1228
2659
  )
1229
2660
  transcoder.transcode request_pb