google-cloud-bare_metal_solution-v2 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/client.rb +2769 -405
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/paths.rb +135 -0
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/client.rb +2031 -285
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/service_stub.rb +1662 -231
- data/lib/google/cloud/bare_metal_solution/v2/version.rb +1 -1
- data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_pb.rb +7 -6
- data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_services_pb.rb +62 -0
- data/lib/google/cloud/baremetalsolution/v2/common_pb.rb +48 -0
- data/lib/google/cloud/baremetalsolution/v2/instance_pb.rb +12 -6
- data/lib/google/cloud/baremetalsolution/v2/lun_pb.rb +4 -1
- data/lib/google/cloud/baremetalsolution/v2/network_pb.rb +3 -1
- data/lib/google/cloud/baremetalsolution/v2/nfs_share_pb.rb +5 -1
- data/lib/google/cloud/baremetalsolution/v2/osimage_pb.rb +47 -0
- data/lib/google/cloud/baremetalsolution/v2/provisioning_pb.rb +80 -0
- data/lib/google/cloud/baremetalsolution/v2/ssh_key_pb.rb +49 -0
- data/lib/google/cloud/baremetalsolution/v2/volume_pb.rb +8 -1
- data/lib/google/cloud/baremetalsolution/v2/volume_snapshot_pb.rb +54 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/{baremetalsolution.rb → common.rb} +36 -14
- data/proto_docs/google/cloud/baremetalsolution/v2/instance.rb +95 -68
- data/proto_docs/google/cloud/baremetalsolution/v2/lun.rb +19 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/network.rb +68 -2
- data/proto_docs/google/cloud/baremetalsolution/v2/nfs_share.rb +83 -9
- data/proto_docs/google/cloud/baremetalsolution/v2/osimage.rb +80 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/provisioning.rb +639 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/ssh_key.rb +97 -0
- data/proto_docs/google/cloud/baremetalsolution/v2/volume.rb +91 -4
- data/proto_docs/google/cloud/baremetalsolution/v2/volume_snapshot.rb +134 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +13 -3
@@ -389,6 +389,72 @@ module Google
|
|
389
389
|
raise ::Google::Cloud::Error.from_error(e)
|
390
390
|
end
|
391
391
|
|
392
|
+
##
|
393
|
+
# RenameInstance sets a new name for an instance.
|
394
|
+
# Use with caution, previous names become immediately invalidated.
|
395
|
+
#
|
396
|
+
# @overload rename_instance(request, options = nil)
|
397
|
+
# Pass arguments to `rename_instance` via a request object, either of type
|
398
|
+
# {::Google::Cloud::BareMetalSolution::V2::RenameInstanceRequest} or an equivalent Hash.
|
399
|
+
#
|
400
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::RenameInstanceRequest, ::Hash]
|
401
|
+
# A request object representing the call parameters. Required. To specify no
|
402
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
403
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
404
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
405
|
+
#
|
406
|
+
# @overload rename_instance(name: nil, new_instance_id: nil)
|
407
|
+
# Pass arguments to `rename_instance` via keyword arguments. Note that at
|
408
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
409
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
410
|
+
#
|
411
|
+
# @param name [::String]
|
412
|
+
# Required. The `name` field is used to identify the instance.
|
413
|
+
# Format: projects/\\{project}/locations/\\{location}/instances/\\{instance}
|
414
|
+
# @param new_instance_id [::String]
|
415
|
+
# Required. The new `id` of the instance.
|
416
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
417
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Instance]
|
418
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
419
|
+
#
|
420
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::Instance]
|
421
|
+
#
|
422
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
423
|
+
def rename_instance request, options = nil
|
424
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
425
|
+
|
426
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::RenameInstanceRequest
|
427
|
+
|
428
|
+
# Converts hash and nil to an options object
|
429
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
430
|
+
|
431
|
+
# Customize the options with defaults
|
432
|
+
call_metadata = @config.rpcs.rename_instance.metadata.to_h
|
433
|
+
|
434
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
435
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
436
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
437
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
438
|
+
transports_version_send: [:rest]
|
439
|
+
|
440
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
441
|
+
|
442
|
+
options.apply_defaults timeout: @config.rpcs.rename_instance.timeout,
|
443
|
+
metadata: call_metadata,
|
444
|
+
retry_policy: @config.rpcs.rename_instance.retry_policy
|
445
|
+
|
446
|
+
options.apply_defaults timeout: @config.timeout,
|
447
|
+
metadata: @config.metadata,
|
448
|
+
retry_policy: @config.retry_policy
|
449
|
+
|
450
|
+
@bare_metal_solution_stub.rename_instance request, options do |result, operation|
|
451
|
+
yield result, operation if block_given?
|
452
|
+
return result
|
453
|
+
end
|
454
|
+
rescue ::Gapic::Rest::Error => e
|
455
|
+
raise ::Google::Cloud::Error.from_error(e)
|
456
|
+
end
|
457
|
+
|
392
458
|
##
|
393
459
|
# Perform an ungraceful, hard reset on a server. Equivalent to shutting the
|
394
460
|
# power off and then turning it back on.
|
@@ -580,27 +646,25 @@ module Google
|
|
580
646
|
end
|
581
647
|
|
582
648
|
##
|
583
|
-
#
|
649
|
+
# Enable the interactive serial console feature on an instance.
|
584
650
|
#
|
585
|
-
# @overload
|
586
|
-
# Pass arguments to `
|
587
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
651
|
+
# @overload enable_interactive_serial_console(request, options = nil)
|
652
|
+
# Pass arguments to `enable_interactive_serial_console` via a request object, either of type
|
653
|
+
# {::Google::Cloud::BareMetalSolution::V2::EnableInteractiveSerialConsoleRequest} or an equivalent Hash.
|
588
654
|
#
|
589
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
655
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::EnableInteractiveSerialConsoleRequest, ::Hash]
|
590
656
|
# A request object representing the call parameters. Required. To specify no
|
591
657
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
592
658
|
# @param options [::Gapic::CallOptions, ::Hash]
|
593
659
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
594
660
|
#
|
595
|
-
# @overload
|
596
|
-
# Pass arguments to `
|
661
|
+
# @overload enable_interactive_serial_console(name: nil)
|
662
|
+
# Pass arguments to `enable_interactive_serial_console` via keyword arguments. Note that at
|
597
663
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
598
664
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
599
665
|
#
|
600
|
-
# @param
|
601
|
-
# Required. Name of the
|
602
|
-
# @param lun [::String]
|
603
|
-
# Required. Name of the Lun to detach.
|
666
|
+
# @param name [::String]
|
667
|
+
# Required. Name of the resource.
|
604
668
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
605
669
|
# @yieldparam result [::Gapic::Operation]
|
606
670
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -608,16 +672,16 @@ module Google
|
|
608
672
|
# @return [::Gapic::Operation]
|
609
673
|
#
|
610
674
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
611
|
-
def
|
675
|
+
def enable_interactive_serial_console request, options = nil
|
612
676
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
613
677
|
|
614
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
678
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::EnableInteractiveSerialConsoleRequest
|
615
679
|
|
616
680
|
# Converts hash and nil to an options object
|
617
681
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
618
682
|
|
619
683
|
# Customize the options with defaults
|
620
|
-
call_metadata = @config.rpcs.
|
684
|
+
call_metadata = @config.rpcs.enable_interactive_serial_console.metadata.to_h
|
621
685
|
|
622
686
|
# Set x-goog-api-client and x-goog-user-project headers
|
623
687
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -627,15 +691,15 @@ module Google
|
|
627
691
|
|
628
692
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
629
693
|
|
630
|
-
options.apply_defaults timeout: @config.rpcs.
|
694
|
+
options.apply_defaults timeout: @config.rpcs.enable_interactive_serial_console.timeout,
|
631
695
|
metadata: call_metadata,
|
632
|
-
retry_policy: @config.rpcs.
|
696
|
+
retry_policy: @config.rpcs.enable_interactive_serial_console.retry_policy
|
633
697
|
|
634
698
|
options.apply_defaults timeout: @config.timeout,
|
635
699
|
metadata: @config.metadata,
|
636
700
|
retry_policy: @config.retry_policy
|
637
701
|
|
638
|
-
@bare_metal_solution_stub.
|
702
|
+
@bare_metal_solution_stub.enable_interactive_serial_console request, options do |result, operation|
|
639
703
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
640
704
|
yield result, operation if block_given?
|
641
705
|
return result
|
@@ -645,49 +709,42 @@ module Google
|
|
645
709
|
end
|
646
710
|
|
647
711
|
##
|
648
|
-
#
|
712
|
+
# Disable the interactive serial console feature on an instance.
|
649
713
|
#
|
650
|
-
# @overload
|
651
|
-
# Pass arguments to `
|
652
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
714
|
+
# @overload disable_interactive_serial_console(request, options = nil)
|
715
|
+
# Pass arguments to `disable_interactive_serial_console` via a request object, either of type
|
716
|
+
# {::Google::Cloud::BareMetalSolution::V2::DisableInteractiveSerialConsoleRequest} or an equivalent Hash.
|
653
717
|
#
|
654
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
718
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::DisableInteractiveSerialConsoleRequest, ::Hash]
|
655
719
|
# A request object representing the call parameters. Required. To specify no
|
656
720
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
657
721
|
# @param options [::Gapic::CallOptions, ::Hash]
|
658
722
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
659
723
|
#
|
660
|
-
# @overload
|
661
|
-
# Pass arguments to `
|
724
|
+
# @overload disable_interactive_serial_console(name: nil)
|
725
|
+
# Pass arguments to `disable_interactive_serial_console` via keyword arguments. Note that at
|
662
726
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
663
727
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
664
728
|
#
|
665
|
-
# @param
|
666
|
-
# Required.
|
667
|
-
# @param page_size [::Integer]
|
668
|
-
# Requested page size. The server might return fewer items than requested.
|
669
|
-
# If unspecified, server will pick an appropriate default.
|
670
|
-
# @param page_token [::String]
|
671
|
-
# A token identifying a page of results from the server.
|
672
|
-
# @param filter [::String]
|
673
|
-
# List filter.
|
729
|
+
# @param name [::String]
|
730
|
+
# Required. Name of the resource.
|
674
731
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
675
|
-
# @yieldparam result [::
|
732
|
+
# @yieldparam result [::Gapic::Operation]
|
676
733
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
677
734
|
#
|
678
|
-
# @return [::
|
735
|
+
# @return [::Gapic::Operation]
|
679
736
|
#
|
680
737
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
681
|
-
def
|
738
|
+
def disable_interactive_serial_console request, options = nil
|
682
739
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
683
740
|
|
684
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
741
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::DisableInteractiveSerialConsoleRequest
|
685
742
|
|
686
743
|
# Converts hash and nil to an options object
|
687
744
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
688
745
|
|
689
746
|
# Customize the options with defaults
|
690
|
-
call_metadata = @config.rpcs.
|
747
|
+
call_metadata = @config.rpcs.disable_interactive_serial_console.metadata.to_h
|
691
748
|
|
692
749
|
# Set x-goog-api-client and x-goog-user-project headers
|
693
750
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -697,15 +754,16 @@ module Google
|
|
697
754
|
|
698
755
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
699
756
|
|
700
|
-
options.apply_defaults timeout: @config.rpcs.
|
757
|
+
options.apply_defaults timeout: @config.rpcs.disable_interactive_serial_console.timeout,
|
701
758
|
metadata: call_metadata,
|
702
|
-
retry_policy: @config.rpcs.
|
759
|
+
retry_policy: @config.rpcs.disable_interactive_serial_console.retry_policy
|
703
760
|
|
704
761
|
options.apply_defaults timeout: @config.timeout,
|
705
762
|
metadata: @config.metadata,
|
706
763
|
retry_policy: @config.retry_policy
|
707
764
|
|
708
|
-
@bare_metal_solution_stub.
|
765
|
+
@bare_metal_solution_stub.disable_interactive_serial_console request, options do |result, operation|
|
766
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
709
767
|
yield result, operation if block_given?
|
710
768
|
return result
|
711
769
|
end
|
@@ -714,42 +772,46 @@ module Google
|
|
714
772
|
end
|
715
773
|
|
716
774
|
##
|
717
|
-
#
|
775
|
+
# Detach LUN from Instance.
|
718
776
|
#
|
719
|
-
# @overload
|
720
|
-
# Pass arguments to `
|
721
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
777
|
+
# @overload detach_lun(request, options = nil)
|
778
|
+
# Pass arguments to `detach_lun` via a request object, either of type
|
779
|
+
# {::Google::Cloud::BareMetalSolution::V2::DetachLunRequest} or an equivalent Hash.
|
722
780
|
#
|
723
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
781
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::DetachLunRequest, ::Hash]
|
724
782
|
# A request object representing the call parameters. Required. To specify no
|
725
783
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
726
784
|
# @param options [::Gapic::CallOptions, ::Hash]
|
727
785
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
728
786
|
#
|
729
|
-
# @overload
|
730
|
-
# Pass arguments to `
|
787
|
+
# @overload detach_lun(instance: nil, lun: nil, skip_reboot: nil)
|
788
|
+
# Pass arguments to `detach_lun` via keyword arguments. Note that at
|
731
789
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
732
790
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
733
791
|
#
|
734
|
-
# @param
|
735
|
-
# Required. Name of the
|
792
|
+
# @param instance [::String]
|
793
|
+
# Required. Name of the instance.
|
794
|
+
# @param lun [::String]
|
795
|
+
# Required. Name of the Lun to detach.
|
796
|
+
# @param skip_reboot [::Boolean]
|
797
|
+
# If true, performs lun unmapping without instance reboot.
|
736
798
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
737
|
-
# @yieldparam result [::
|
799
|
+
# @yieldparam result [::Gapic::Operation]
|
738
800
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
739
801
|
#
|
740
|
-
# @return [::
|
802
|
+
# @return [::Gapic::Operation]
|
741
803
|
#
|
742
804
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
743
|
-
def
|
805
|
+
def detach_lun request, options = nil
|
744
806
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
745
807
|
|
746
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
808
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::DetachLunRequest
|
747
809
|
|
748
810
|
# Converts hash and nil to an options object
|
749
811
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
750
812
|
|
751
813
|
# Customize the options with defaults
|
752
|
-
call_metadata = @config.rpcs.
|
814
|
+
call_metadata = @config.rpcs.detach_lun.metadata.to_h
|
753
815
|
|
754
816
|
# Set x-goog-api-client and x-goog-user-project headers
|
755
817
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -759,15 +821,16 @@ module Google
|
|
759
821
|
|
760
822
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
761
823
|
|
762
|
-
options.apply_defaults timeout: @config.rpcs.
|
824
|
+
options.apply_defaults timeout: @config.rpcs.detach_lun.timeout,
|
763
825
|
metadata: call_metadata,
|
764
|
-
retry_policy: @config.rpcs.
|
826
|
+
retry_policy: @config.rpcs.detach_lun.retry_policy
|
765
827
|
|
766
828
|
options.apply_defaults timeout: @config.timeout,
|
767
829
|
metadata: @config.metadata,
|
768
830
|
retry_policy: @config.retry_policy
|
769
831
|
|
770
|
-
@bare_metal_solution_stub.
|
832
|
+
@bare_metal_solution_stub.detach_lun request, options do |result, operation|
|
833
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
771
834
|
yield result, operation if block_given?
|
772
835
|
return result
|
773
836
|
end
|
@@ -776,53 +839,120 @@ module Google
|
|
776
839
|
end
|
777
840
|
|
778
841
|
##
|
779
|
-
#
|
842
|
+
# Lists the public SSH keys registered for the specified project.
|
843
|
+
# These SSH keys are used only for the interactive serial console feature.
|
780
844
|
#
|
781
|
-
# @overload
|
782
|
-
# Pass arguments to `
|
783
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
845
|
+
# @overload list_ssh_keys(request, options = nil)
|
846
|
+
# Pass arguments to `list_ssh_keys` via a request object, either of type
|
847
|
+
# {::Google::Cloud::BareMetalSolution::V2::ListSSHKeysRequest} or an equivalent Hash.
|
784
848
|
#
|
785
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
849
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::ListSSHKeysRequest, ::Hash]
|
786
850
|
# A request object representing the call parameters. Required. To specify no
|
787
851
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
788
852
|
# @param options [::Gapic::CallOptions, ::Hash]
|
789
853
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
790
854
|
#
|
791
|
-
# @overload
|
792
|
-
# Pass arguments to `
|
855
|
+
# @overload list_ssh_keys(parent: nil, page_size: nil, page_token: nil)
|
856
|
+
# Pass arguments to `list_ssh_keys` via keyword arguments. Note that at
|
793
857
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
794
858
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
795
859
|
#
|
796
|
-
# @param
|
797
|
-
# Required. The
|
860
|
+
# @param parent [::String]
|
861
|
+
# Required. The parent containing the SSH keys.
|
862
|
+
# Currently, the only valid value for the location is "global".
|
863
|
+
# @param page_size [::Integer]
|
864
|
+
# The maximum number of items to return.
|
865
|
+
# @param page_token [::String]
|
866
|
+
# The next_page_token value returned from a previous List request, if any.
|
867
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
868
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::SSHKey>]
|
869
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
798
870
|
#
|
799
|
-
#
|
800
|
-
#
|
801
|
-
#
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
871
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::SSHKey>]
|
872
|
+
#
|
873
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
874
|
+
def list_ssh_keys request, options = nil
|
875
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
876
|
+
|
877
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::ListSSHKeysRequest
|
878
|
+
|
879
|
+
# Converts hash and nil to an options object
|
880
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
881
|
+
|
882
|
+
# Customize the options with defaults
|
883
|
+
call_metadata = @config.rpcs.list_ssh_keys.metadata.to_h
|
884
|
+
|
885
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
886
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
887
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
888
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
889
|
+
transports_version_send: [:rest]
|
890
|
+
|
891
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
892
|
+
|
893
|
+
options.apply_defaults timeout: @config.rpcs.list_ssh_keys.timeout,
|
894
|
+
metadata: call_metadata,
|
895
|
+
retry_policy: @config.rpcs.list_ssh_keys.retry_policy
|
896
|
+
|
897
|
+
options.apply_defaults timeout: @config.timeout,
|
898
|
+
metadata: @config.metadata,
|
899
|
+
retry_policy: @config.retry_policy
|
900
|
+
|
901
|
+
@bare_metal_solution_stub.list_ssh_keys request, options do |result, operation|
|
902
|
+
result = ::Gapic::Rest::PagedEnumerable.new @bare_metal_solution_stub, :list_ssh_keys, "ssh_keys", request, result, options
|
903
|
+
yield result, operation if block_given?
|
904
|
+
return result
|
905
|
+
end
|
906
|
+
rescue ::Gapic::Rest::Error => e
|
907
|
+
raise ::Google::Cloud::Error.from_error(e)
|
908
|
+
end
|
909
|
+
|
910
|
+
##
|
911
|
+
# Register a public SSH key in the specified project for use with the
|
912
|
+
# interactive serial console feature.
|
913
|
+
#
|
914
|
+
# @overload create_ssh_key(request, options = nil)
|
915
|
+
# Pass arguments to `create_ssh_key` via a request object, either of type
|
916
|
+
# {::Google::Cloud::BareMetalSolution::V2::CreateSSHKeyRequest} or an equivalent Hash.
|
917
|
+
#
|
918
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::CreateSSHKeyRequest, ::Hash]
|
919
|
+
# A request object representing the call parameters. Required. To specify no
|
920
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
921
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
923
|
+
#
|
924
|
+
# @overload create_ssh_key(parent: nil, ssh_key: nil, ssh_key_id: nil)
|
925
|
+
# Pass arguments to `create_ssh_key` via keyword arguments. Note that at
|
926
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
927
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
928
|
+
#
|
929
|
+
# @param parent [::String]
|
930
|
+
# Required. The parent containing the SSH keys.
|
931
|
+
# @param ssh_key [::Google::Cloud::BareMetalSolution::V2::SSHKey, ::Hash]
|
932
|
+
# Required. The SSH key to register.
|
933
|
+
# @param ssh_key_id [::String]
|
934
|
+
# Required. The ID to use for the key, which will become the final component
|
935
|
+
# of the key's resource name.
|
936
|
+
#
|
937
|
+
# This value must match the regex:
|
938
|
+
# [a-zA-Z0-9@.\-_]\\{1,64}
|
809
939
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
810
|
-
# @yieldparam result [::
|
940
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::SSHKey]
|
811
941
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
812
942
|
#
|
813
|
-
# @return [::
|
943
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::SSHKey]
|
814
944
|
#
|
815
945
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
816
|
-
def
|
946
|
+
def create_ssh_key request, options = nil
|
817
947
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
818
948
|
|
819
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
949
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::CreateSSHKeyRequest
|
820
950
|
|
821
951
|
# Converts hash and nil to an options object
|
822
952
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
823
953
|
|
824
954
|
# Customize the options with defaults
|
825
|
-
call_metadata = @config.rpcs.
|
955
|
+
call_metadata = @config.rpcs.create_ssh_key.metadata.to_h
|
826
956
|
|
827
957
|
# Set x-goog-api-client and x-goog-user-project headers
|
828
958
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -832,16 +962,15 @@ module Google
|
|
832
962
|
|
833
963
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
834
964
|
|
835
|
-
options.apply_defaults timeout: @config.rpcs.
|
965
|
+
options.apply_defaults timeout: @config.rpcs.create_ssh_key.timeout,
|
836
966
|
metadata: call_metadata,
|
837
|
-
retry_policy: @config.rpcs.
|
967
|
+
retry_policy: @config.rpcs.create_ssh_key.retry_policy
|
838
968
|
|
839
969
|
options.apply_defaults timeout: @config.timeout,
|
840
970
|
metadata: @config.metadata,
|
841
971
|
retry_policy: @config.retry_policy
|
842
972
|
|
843
|
-
@bare_metal_solution_stub.
|
844
|
-
result = ::Gapic::Operation.new result, @operations_client, options: options
|
973
|
+
@bare_metal_solution_stub.create_ssh_key request, options do |result, operation|
|
845
974
|
yield result, operation if block_given?
|
846
975
|
return result
|
847
976
|
end
|
@@ -850,44 +979,43 @@ module Google
|
|
850
979
|
end
|
851
980
|
|
852
981
|
##
|
853
|
-
#
|
982
|
+
# Deletes a public SSH key registered in the specified project.
|
854
983
|
#
|
855
|
-
# @overload
|
856
|
-
# Pass arguments to `
|
857
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
984
|
+
# @overload delete_ssh_key(request, options = nil)
|
985
|
+
# Pass arguments to `delete_ssh_key` via a request object, either of type
|
986
|
+
# {::Google::Cloud::BareMetalSolution::V2::DeleteSSHKeyRequest} or an equivalent Hash.
|
858
987
|
#
|
859
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
988
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::DeleteSSHKeyRequest, ::Hash]
|
860
989
|
# A request object representing the call parameters. Required. To specify no
|
861
990
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
862
991
|
# @param options [::Gapic::CallOptions, ::Hash]
|
863
992
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
864
993
|
#
|
865
|
-
# @overload
|
866
|
-
# Pass arguments to `
|
994
|
+
# @overload delete_ssh_key(name: nil)
|
995
|
+
# Pass arguments to `delete_ssh_key` via keyword arguments. Note that at
|
867
996
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
868
997
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
869
998
|
#
|
870
|
-
# @param
|
871
|
-
# Required.
|
872
|
-
#
|
873
|
-
# New Volume size, in GiB.
|
999
|
+
# @param name [::String]
|
1000
|
+
# Required. The name of the SSH key to delete.
|
1001
|
+
# Currently, the only valid value for the location is "global".
|
874
1002
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
875
|
-
# @yieldparam result [::
|
1003
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
876
1004
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
877
1005
|
#
|
878
|
-
# @return [::
|
1006
|
+
# @return [::Google::Protobuf::Empty]
|
879
1007
|
#
|
880
1008
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
881
|
-
def
|
1009
|
+
def delete_ssh_key request, options = nil
|
882
1010
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
883
1011
|
|
884
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
1012
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::DeleteSSHKeyRequest
|
885
1013
|
|
886
1014
|
# Converts hash and nil to an options object
|
887
1015
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
888
1016
|
|
889
1017
|
# Customize the options with defaults
|
890
|
-
call_metadata = @config.rpcs.
|
1018
|
+
call_metadata = @config.rpcs.delete_ssh_key.metadata.to_h
|
891
1019
|
|
892
1020
|
# Set x-goog-api-client and x-goog-user-project headers
|
893
1021
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -897,16 +1025,15 @@ module Google
|
|
897
1025
|
|
898
1026
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
899
1027
|
|
900
|
-
options.apply_defaults timeout: @config.rpcs.
|
1028
|
+
options.apply_defaults timeout: @config.rpcs.delete_ssh_key.timeout,
|
901
1029
|
metadata: call_metadata,
|
902
|
-
retry_policy: @config.rpcs.
|
1030
|
+
retry_policy: @config.rpcs.delete_ssh_key.retry_policy
|
903
1031
|
|
904
1032
|
options.apply_defaults timeout: @config.timeout,
|
905
1033
|
metadata: @config.metadata,
|
906
1034
|
retry_policy: @config.retry_policy
|
907
1035
|
|
908
|
-
@bare_metal_solution_stub.
|
909
|
-
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1036
|
+
@bare_metal_solution_stub.delete_ssh_key request, options do |result, operation|
|
910
1037
|
yield result, operation if block_given?
|
911
1038
|
return result
|
912
1039
|
end
|
@@ -915,25 +1042,25 @@ module Google
|
|
915
1042
|
end
|
916
1043
|
|
917
1044
|
##
|
918
|
-
# List
|
1045
|
+
# List storage volumes in a given project and location.
|
919
1046
|
#
|
920
|
-
# @overload
|
921
|
-
# Pass arguments to `
|
922
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
1047
|
+
# @overload list_volumes(request, options = nil)
|
1048
|
+
# Pass arguments to `list_volumes` via a request object, either of type
|
1049
|
+
# {::Google::Cloud::BareMetalSolution::V2::ListVolumesRequest} or an equivalent Hash.
|
923
1050
|
#
|
924
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
1051
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::ListVolumesRequest, ::Hash]
|
925
1052
|
# A request object representing the call parameters. Required. To specify no
|
926
1053
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
927
1054
|
# @param options [::Gapic::CallOptions, ::Hash]
|
928
1055
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
929
1056
|
#
|
930
|
-
# @overload
|
931
|
-
# Pass arguments to `
|
1057
|
+
# @overload list_volumes(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
1058
|
+
# Pass arguments to `list_volumes` via keyword arguments. Note that at
|
932
1059
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
933
1060
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
934
1061
|
#
|
935
1062
|
# @param parent [::String]
|
936
|
-
# Required. Parent value for
|
1063
|
+
# Required. Parent value for ListVolumesRequest.
|
937
1064
|
# @param page_size [::Integer]
|
938
1065
|
# Requested page size. The server might return fewer items than requested.
|
939
1066
|
# If unspecified, server will pick an appropriate default.
|
@@ -942,22 +1069,22 @@ module Google
|
|
942
1069
|
# @param filter [::String]
|
943
1070
|
# List filter.
|
944
1071
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
945
|
-
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::
|
1072
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse]
|
946
1073
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
947
1074
|
#
|
948
|
-
# @return [::Google::Cloud::BareMetalSolution::V2::
|
1075
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse]
|
949
1076
|
#
|
950
1077
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
951
|
-
def
|
1078
|
+
def list_volumes request, options = nil
|
952
1079
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
953
1080
|
|
954
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
1081
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::ListVolumesRequest
|
955
1082
|
|
956
1083
|
# Converts hash and nil to an options object
|
957
1084
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
958
1085
|
|
959
1086
|
# Customize the options with defaults
|
960
|
-
call_metadata = @config.rpcs.
|
1087
|
+
call_metadata = @config.rpcs.list_volumes.metadata.to_h
|
961
1088
|
|
962
1089
|
# Set x-goog-api-client and x-goog-user-project headers
|
963
1090
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -967,15 +1094,1457 @@ module Google
|
|
967
1094
|
|
968
1095
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
969
1096
|
|
970
|
-
options.apply_defaults timeout: @config.rpcs.
|
1097
|
+
options.apply_defaults timeout: @config.rpcs.list_volumes.timeout,
|
971
1098
|
metadata: call_metadata,
|
972
|
-
retry_policy: @config.rpcs.
|
1099
|
+
retry_policy: @config.rpcs.list_volumes.retry_policy
|
973
1100
|
|
974
1101
|
options.apply_defaults timeout: @config.timeout,
|
975
1102
|
metadata: @config.metadata,
|
976
1103
|
retry_policy: @config.retry_policy
|
977
1104
|
|
978
|
-
@bare_metal_solution_stub.
|
1105
|
+
@bare_metal_solution_stub.list_volumes request, options do |result, operation|
|
1106
|
+
yield result, operation if block_given?
|
1107
|
+
return result
|
1108
|
+
end
|
1109
|
+
rescue ::Gapic::Rest::Error => e
|
1110
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
##
|
1114
|
+
# Get details of a single storage volume.
|
1115
|
+
#
|
1116
|
+
# @overload get_volume(request, options = nil)
|
1117
|
+
# Pass arguments to `get_volume` via a request object, either of type
|
1118
|
+
# {::Google::Cloud::BareMetalSolution::V2::GetVolumeRequest} or an equivalent Hash.
|
1119
|
+
#
|
1120
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::GetVolumeRequest, ::Hash]
|
1121
|
+
# A request object representing the call parameters. Required. To specify no
|
1122
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1123
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1124
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1125
|
+
#
|
1126
|
+
# @overload get_volume(name: nil)
|
1127
|
+
# Pass arguments to `get_volume` via keyword arguments. Note that at
|
1128
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1129
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1130
|
+
#
|
1131
|
+
# @param name [::String]
|
1132
|
+
# Required. Name of the resource.
|
1133
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1134
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Volume]
|
1135
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1136
|
+
#
|
1137
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::Volume]
|
1138
|
+
#
|
1139
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1140
|
+
def get_volume request, options = nil
|
1141
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1142
|
+
|
1143
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::GetVolumeRequest
|
1144
|
+
|
1145
|
+
# Converts hash and nil to an options object
|
1146
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1147
|
+
|
1148
|
+
# Customize the options with defaults
|
1149
|
+
call_metadata = @config.rpcs.get_volume.metadata.to_h
|
1150
|
+
|
1151
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1152
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1153
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1154
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1155
|
+
transports_version_send: [:rest]
|
1156
|
+
|
1157
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1158
|
+
|
1159
|
+
options.apply_defaults timeout: @config.rpcs.get_volume.timeout,
|
1160
|
+
metadata: call_metadata,
|
1161
|
+
retry_policy: @config.rpcs.get_volume.retry_policy
|
1162
|
+
|
1163
|
+
options.apply_defaults timeout: @config.timeout,
|
1164
|
+
metadata: @config.metadata,
|
1165
|
+
retry_policy: @config.retry_policy
|
1166
|
+
|
1167
|
+
@bare_metal_solution_stub.get_volume request, options do |result, operation|
|
1168
|
+
yield result, operation if block_given?
|
1169
|
+
return result
|
1170
|
+
end
|
1171
|
+
rescue ::Gapic::Rest::Error => e
|
1172
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
##
|
1176
|
+
# Update details of a single storage volume.
|
1177
|
+
#
|
1178
|
+
# @overload update_volume(request, options = nil)
|
1179
|
+
# Pass arguments to `update_volume` via a request object, either of type
|
1180
|
+
# {::Google::Cloud::BareMetalSolution::V2::UpdateVolumeRequest} or an equivalent Hash.
|
1181
|
+
#
|
1182
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::UpdateVolumeRequest, ::Hash]
|
1183
|
+
# A request object representing the call parameters. Required. To specify no
|
1184
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1185
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1186
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1187
|
+
#
|
1188
|
+
# @overload update_volume(volume: nil, update_mask: nil)
|
1189
|
+
# Pass arguments to `update_volume` via keyword arguments. Note that at
|
1190
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1191
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1192
|
+
#
|
1193
|
+
# @param volume [::Google::Cloud::BareMetalSolution::V2::Volume, ::Hash]
|
1194
|
+
# Required. The volume to update.
|
1195
|
+
#
|
1196
|
+
# The `name` field is used to identify the volume to update.
|
1197
|
+
# Format: projects/\\{project}/locations/\\{location}/volumes/\\{volume}
|
1198
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1199
|
+
# The list of fields to update.
|
1200
|
+
# The only currently supported fields are:
|
1201
|
+
# 'labels'
|
1202
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1203
|
+
# @yieldparam result [::Gapic::Operation]
|
1204
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1205
|
+
#
|
1206
|
+
# @return [::Gapic::Operation]
|
1207
|
+
#
|
1208
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1209
|
+
def update_volume request, options = nil
|
1210
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1211
|
+
|
1212
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::UpdateVolumeRequest
|
1213
|
+
|
1214
|
+
# Converts hash and nil to an options object
|
1215
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1216
|
+
|
1217
|
+
# Customize the options with defaults
|
1218
|
+
call_metadata = @config.rpcs.update_volume.metadata.to_h
|
1219
|
+
|
1220
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1221
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1222
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1223
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1224
|
+
transports_version_send: [:rest]
|
1225
|
+
|
1226
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1227
|
+
|
1228
|
+
options.apply_defaults timeout: @config.rpcs.update_volume.timeout,
|
1229
|
+
metadata: call_metadata,
|
1230
|
+
retry_policy: @config.rpcs.update_volume.retry_policy
|
1231
|
+
|
1232
|
+
options.apply_defaults timeout: @config.timeout,
|
1233
|
+
metadata: @config.metadata,
|
1234
|
+
retry_policy: @config.retry_policy
|
1235
|
+
|
1236
|
+
@bare_metal_solution_stub.update_volume request, options do |result, operation|
|
1237
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1238
|
+
yield result, operation if block_given?
|
1239
|
+
return result
|
1240
|
+
end
|
1241
|
+
rescue ::Gapic::Rest::Error => e
|
1242
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
##
|
1246
|
+
# RenameVolume sets a new name for a volume.
|
1247
|
+
# Use with caution, previous names become immediately invalidated.
|
1248
|
+
#
|
1249
|
+
# @overload rename_volume(request, options = nil)
|
1250
|
+
# Pass arguments to `rename_volume` via a request object, either of type
|
1251
|
+
# {::Google::Cloud::BareMetalSolution::V2::RenameVolumeRequest} or an equivalent Hash.
|
1252
|
+
#
|
1253
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::RenameVolumeRequest, ::Hash]
|
1254
|
+
# A request object representing the call parameters. Required. To specify no
|
1255
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1256
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1257
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1258
|
+
#
|
1259
|
+
# @overload rename_volume(name: nil, new_volume_id: nil)
|
1260
|
+
# Pass arguments to `rename_volume` via keyword arguments. Note that at
|
1261
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1262
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1263
|
+
#
|
1264
|
+
# @param name [::String]
|
1265
|
+
# Required. The `name` field is used to identify the volume.
|
1266
|
+
# Format: projects/\\{project}/locations/\\{location}/volumes/\\{volume}
|
1267
|
+
# @param new_volume_id [::String]
|
1268
|
+
# Required. The new `id` of the volume.
|
1269
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1270
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Volume]
|
1271
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1272
|
+
#
|
1273
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::Volume]
|
1274
|
+
#
|
1275
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1276
|
+
def rename_volume request, options = nil
|
1277
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1278
|
+
|
1279
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::RenameVolumeRequest
|
1280
|
+
|
1281
|
+
# Converts hash and nil to an options object
|
1282
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1283
|
+
|
1284
|
+
# Customize the options with defaults
|
1285
|
+
call_metadata = @config.rpcs.rename_volume.metadata.to_h
|
1286
|
+
|
1287
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1288
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1289
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1290
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1291
|
+
transports_version_send: [:rest]
|
1292
|
+
|
1293
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1294
|
+
|
1295
|
+
options.apply_defaults timeout: @config.rpcs.rename_volume.timeout,
|
1296
|
+
metadata: call_metadata,
|
1297
|
+
retry_policy: @config.rpcs.rename_volume.retry_policy
|
1298
|
+
|
1299
|
+
options.apply_defaults timeout: @config.timeout,
|
1300
|
+
metadata: @config.metadata,
|
1301
|
+
retry_policy: @config.retry_policy
|
1302
|
+
|
1303
|
+
@bare_metal_solution_stub.rename_volume request, options do |result, operation|
|
1304
|
+
yield result, operation if block_given?
|
1305
|
+
return result
|
1306
|
+
end
|
1307
|
+
rescue ::Gapic::Rest::Error => e
|
1308
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1309
|
+
end
|
1310
|
+
|
1311
|
+
##
|
1312
|
+
# Skips volume's cooloff and deletes it now.
|
1313
|
+
# Volume must be in cooloff state.
|
1314
|
+
#
|
1315
|
+
# @overload evict_volume(request, options = nil)
|
1316
|
+
# Pass arguments to `evict_volume` via a request object, either of type
|
1317
|
+
# {::Google::Cloud::BareMetalSolution::V2::EvictVolumeRequest} or an equivalent Hash.
|
1318
|
+
#
|
1319
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::EvictVolumeRequest, ::Hash]
|
1320
|
+
# A request object representing the call parameters. Required. To specify no
|
1321
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1322
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1323
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1324
|
+
#
|
1325
|
+
# @overload evict_volume(name: nil)
|
1326
|
+
# Pass arguments to `evict_volume` via keyword arguments. Note that at
|
1327
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1328
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1329
|
+
#
|
1330
|
+
# @param name [::String]
|
1331
|
+
# Required. The name of the Volume.
|
1332
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1333
|
+
# @yieldparam result [::Gapic::Operation]
|
1334
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1335
|
+
#
|
1336
|
+
# @return [::Gapic::Operation]
|
1337
|
+
#
|
1338
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1339
|
+
def evict_volume request, options = nil
|
1340
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1341
|
+
|
1342
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::EvictVolumeRequest
|
1343
|
+
|
1344
|
+
# Converts hash and nil to an options object
|
1345
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1346
|
+
|
1347
|
+
# Customize the options with defaults
|
1348
|
+
call_metadata = @config.rpcs.evict_volume.metadata.to_h
|
1349
|
+
|
1350
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1351
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1352
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1353
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1354
|
+
transports_version_send: [:rest]
|
1355
|
+
|
1356
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1357
|
+
|
1358
|
+
options.apply_defaults timeout: @config.rpcs.evict_volume.timeout,
|
1359
|
+
metadata: call_metadata,
|
1360
|
+
retry_policy: @config.rpcs.evict_volume.retry_policy
|
1361
|
+
|
1362
|
+
options.apply_defaults timeout: @config.timeout,
|
1363
|
+
metadata: @config.metadata,
|
1364
|
+
retry_policy: @config.retry_policy
|
1365
|
+
|
1366
|
+
@bare_metal_solution_stub.evict_volume request, options do |result, operation|
|
1367
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1368
|
+
yield result, operation if block_given?
|
1369
|
+
return result
|
1370
|
+
end
|
1371
|
+
rescue ::Gapic::Rest::Error => e
|
1372
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1373
|
+
end
|
1374
|
+
|
1375
|
+
##
|
1376
|
+
# Emergency Volume resize.
|
1377
|
+
#
|
1378
|
+
# @overload resize_volume(request, options = nil)
|
1379
|
+
# Pass arguments to `resize_volume` via a request object, either of type
|
1380
|
+
# {::Google::Cloud::BareMetalSolution::V2::ResizeVolumeRequest} or an equivalent Hash.
|
1381
|
+
#
|
1382
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::ResizeVolumeRequest, ::Hash]
|
1383
|
+
# A request object representing the call parameters. Required. To specify no
|
1384
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1385
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1386
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1387
|
+
#
|
1388
|
+
# @overload resize_volume(volume: nil, size_gib: nil)
|
1389
|
+
# Pass arguments to `resize_volume` via keyword arguments. Note that at
|
1390
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1391
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1392
|
+
#
|
1393
|
+
# @param volume [::String]
|
1394
|
+
# Required. Volume to resize.
|
1395
|
+
# @param size_gib [::Integer]
|
1396
|
+
# New Volume size, in GiB.
|
1397
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1398
|
+
# @yieldparam result [::Gapic::Operation]
|
1399
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1400
|
+
#
|
1401
|
+
# @return [::Gapic::Operation]
|
1402
|
+
#
|
1403
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1404
|
+
def resize_volume request, options = nil
|
1405
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1406
|
+
|
1407
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::ResizeVolumeRequest
|
1408
|
+
|
1409
|
+
# Converts hash and nil to an options object
|
1410
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1411
|
+
|
1412
|
+
# Customize the options with defaults
|
1413
|
+
call_metadata = @config.rpcs.resize_volume.metadata.to_h
|
1414
|
+
|
1415
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1416
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1417
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1418
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1419
|
+
transports_version_send: [:rest]
|
1420
|
+
|
1421
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1422
|
+
|
1423
|
+
options.apply_defaults timeout: @config.rpcs.resize_volume.timeout,
|
1424
|
+
metadata: call_metadata,
|
1425
|
+
retry_policy: @config.rpcs.resize_volume.retry_policy
|
1426
|
+
|
1427
|
+
options.apply_defaults timeout: @config.timeout,
|
1428
|
+
metadata: @config.metadata,
|
1429
|
+
retry_policy: @config.retry_policy
|
1430
|
+
|
1431
|
+
@bare_metal_solution_stub.resize_volume request, options do |result, operation|
|
1432
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1433
|
+
yield result, operation if block_given?
|
1434
|
+
return result
|
1435
|
+
end
|
1436
|
+
rescue ::Gapic::Rest::Error => e
|
1437
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1438
|
+
end
|
1439
|
+
|
1440
|
+
##
|
1441
|
+
# List network in a given project and location.
|
1442
|
+
#
|
1443
|
+
# @overload list_networks(request, options = nil)
|
1444
|
+
# Pass arguments to `list_networks` via a request object, either of type
|
1445
|
+
# {::Google::Cloud::BareMetalSolution::V2::ListNetworksRequest} or an equivalent Hash.
|
1446
|
+
#
|
1447
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::ListNetworksRequest, ::Hash]
|
1448
|
+
# A request object representing the call parameters. Required. To specify no
|
1449
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1450
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1451
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1452
|
+
#
|
1453
|
+
# @overload list_networks(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
1454
|
+
# Pass arguments to `list_networks` via keyword arguments. Note that at
|
1455
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1456
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1457
|
+
#
|
1458
|
+
# @param parent [::String]
|
1459
|
+
# Required. Parent value for ListNetworksRequest.
|
1460
|
+
# @param page_size [::Integer]
|
1461
|
+
# Requested page size. The server might return fewer items than requested.
|
1462
|
+
# If unspecified, server will pick an appropriate default.
|
1463
|
+
# @param page_token [::String]
|
1464
|
+
# A token identifying a page of results from the server.
|
1465
|
+
# @param filter [::String]
|
1466
|
+
# List filter.
|
1467
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1468
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse]
|
1469
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1470
|
+
#
|
1471
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse]
|
1472
|
+
#
|
1473
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1474
|
+
def list_networks request, options = nil
|
1475
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1476
|
+
|
1477
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::ListNetworksRequest
|
1478
|
+
|
1479
|
+
# Converts hash and nil to an options object
|
1480
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1481
|
+
|
1482
|
+
# Customize the options with defaults
|
1483
|
+
call_metadata = @config.rpcs.list_networks.metadata.to_h
|
1484
|
+
|
1485
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1486
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1487
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1488
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1489
|
+
transports_version_send: [:rest]
|
1490
|
+
|
1491
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1492
|
+
|
1493
|
+
options.apply_defaults timeout: @config.rpcs.list_networks.timeout,
|
1494
|
+
metadata: call_metadata,
|
1495
|
+
retry_policy: @config.rpcs.list_networks.retry_policy
|
1496
|
+
|
1497
|
+
options.apply_defaults timeout: @config.timeout,
|
1498
|
+
metadata: @config.metadata,
|
1499
|
+
retry_policy: @config.retry_policy
|
1500
|
+
|
1501
|
+
@bare_metal_solution_stub.list_networks request, options do |result, operation|
|
1502
|
+
yield result, operation if block_given?
|
1503
|
+
return result
|
1504
|
+
end
|
1505
|
+
rescue ::Gapic::Rest::Error => e
|
1506
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1507
|
+
end
|
1508
|
+
|
1509
|
+
##
|
1510
|
+
# List all Networks (and used IPs for each Network) in the vendor account
|
1511
|
+
# associated with the specified project.
|
1512
|
+
#
|
1513
|
+
# @overload list_network_usage(request, options = nil)
|
1514
|
+
# Pass arguments to `list_network_usage` via a request object, either of type
|
1515
|
+
# {::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageRequest} or an equivalent Hash.
|
1516
|
+
#
|
1517
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageRequest, ::Hash]
|
1518
|
+
# A request object representing the call parameters. Required. To specify no
|
1519
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1520
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1521
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1522
|
+
#
|
1523
|
+
# @overload list_network_usage(location: nil)
|
1524
|
+
# Pass arguments to `list_network_usage` via keyword arguments. Note that at
|
1525
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1526
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1527
|
+
#
|
1528
|
+
# @param location [::String]
|
1529
|
+
# Required. Parent value (project and location).
|
1530
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1531
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse]
|
1532
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1533
|
+
#
|
1534
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse]
|
1535
|
+
#
|
1536
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1537
|
+
def list_network_usage request, options = nil
|
1538
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1539
|
+
|
1540
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageRequest
|
1541
|
+
|
1542
|
+
# Converts hash and nil to an options object
|
1543
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1544
|
+
|
1545
|
+
# Customize the options with defaults
|
1546
|
+
call_metadata = @config.rpcs.list_network_usage.metadata.to_h
|
1547
|
+
|
1548
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1549
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1550
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1551
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1552
|
+
transports_version_send: [:rest]
|
1553
|
+
|
1554
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1555
|
+
|
1556
|
+
options.apply_defaults timeout: @config.rpcs.list_network_usage.timeout,
|
1557
|
+
metadata: call_metadata,
|
1558
|
+
retry_policy: @config.rpcs.list_network_usage.retry_policy
|
1559
|
+
|
1560
|
+
options.apply_defaults timeout: @config.timeout,
|
1561
|
+
metadata: @config.metadata,
|
1562
|
+
retry_policy: @config.retry_policy
|
1563
|
+
|
1564
|
+
@bare_metal_solution_stub.list_network_usage request, options do |result, operation|
|
1565
|
+
yield result, operation if block_given?
|
1566
|
+
return result
|
1567
|
+
end
|
1568
|
+
rescue ::Gapic::Rest::Error => e
|
1569
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1570
|
+
end
|
1571
|
+
|
1572
|
+
##
|
1573
|
+
# Get details of a single network.
|
1574
|
+
#
|
1575
|
+
# @overload get_network(request, options = nil)
|
1576
|
+
# Pass arguments to `get_network` via a request object, either of type
|
1577
|
+
# {::Google::Cloud::BareMetalSolution::V2::GetNetworkRequest} or an equivalent Hash.
|
1578
|
+
#
|
1579
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::GetNetworkRequest, ::Hash]
|
1580
|
+
# A request object representing the call parameters. Required. To specify no
|
1581
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1582
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1583
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1584
|
+
#
|
1585
|
+
# @overload get_network(name: nil)
|
1586
|
+
# Pass arguments to `get_network` via keyword arguments. Note that at
|
1587
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1588
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1589
|
+
#
|
1590
|
+
# @param name [::String]
|
1591
|
+
# Required. Name of the resource.
|
1592
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1593
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Network]
|
1594
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1595
|
+
#
|
1596
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::Network]
|
1597
|
+
#
|
1598
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1599
|
+
def get_network request, options = nil
|
1600
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1601
|
+
|
1602
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::GetNetworkRequest
|
1603
|
+
|
1604
|
+
# Converts hash and nil to an options object
|
1605
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1606
|
+
|
1607
|
+
# Customize the options with defaults
|
1608
|
+
call_metadata = @config.rpcs.get_network.metadata.to_h
|
1609
|
+
|
1610
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1611
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1612
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1613
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1614
|
+
transports_version_send: [:rest]
|
1615
|
+
|
1616
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1617
|
+
|
1618
|
+
options.apply_defaults timeout: @config.rpcs.get_network.timeout,
|
1619
|
+
metadata: call_metadata,
|
1620
|
+
retry_policy: @config.rpcs.get_network.retry_policy
|
1621
|
+
|
1622
|
+
options.apply_defaults timeout: @config.timeout,
|
1623
|
+
metadata: @config.metadata,
|
1624
|
+
retry_policy: @config.retry_policy
|
1625
|
+
|
1626
|
+
@bare_metal_solution_stub.get_network request, options do |result, operation|
|
1627
|
+
yield result, operation if block_given?
|
1628
|
+
return result
|
1629
|
+
end
|
1630
|
+
rescue ::Gapic::Rest::Error => e
|
1631
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1632
|
+
end
|
1633
|
+
|
1634
|
+
##
|
1635
|
+
# Update details of a single network.
|
1636
|
+
#
|
1637
|
+
# @overload update_network(request, options = nil)
|
1638
|
+
# Pass arguments to `update_network` via a request object, either of type
|
1639
|
+
# {::Google::Cloud::BareMetalSolution::V2::UpdateNetworkRequest} or an equivalent Hash.
|
1640
|
+
#
|
1641
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::UpdateNetworkRequest, ::Hash]
|
1642
|
+
# A request object representing the call parameters. Required. To specify no
|
1643
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1644
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1645
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1646
|
+
#
|
1647
|
+
# @overload update_network(network: nil, update_mask: nil)
|
1648
|
+
# Pass arguments to `update_network` via keyword arguments. Note that at
|
1649
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1650
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1651
|
+
#
|
1652
|
+
# @param network [::Google::Cloud::BareMetalSolution::V2::Network, ::Hash]
|
1653
|
+
# Required. The network to update.
|
1654
|
+
#
|
1655
|
+
# The `name` field is used to identify the instance to update.
|
1656
|
+
# Format: projects/\\{project}/locations/\\{location}/networks/\\{network}
|
1657
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1658
|
+
# The list of fields to update.
|
1659
|
+
# The only currently supported fields are:
|
1660
|
+
# `labels`, `reservations`, `vrf.vlan_attachments`
|
1661
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1662
|
+
# @yieldparam result [::Gapic::Operation]
|
1663
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1664
|
+
#
|
1665
|
+
# @return [::Gapic::Operation]
|
1666
|
+
#
|
1667
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1668
|
+
def update_network request, options = nil
|
1669
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1670
|
+
|
1671
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::UpdateNetworkRequest
|
1672
|
+
|
1673
|
+
# Converts hash and nil to an options object
|
1674
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1675
|
+
|
1676
|
+
# Customize the options with defaults
|
1677
|
+
call_metadata = @config.rpcs.update_network.metadata.to_h
|
1678
|
+
|
1679
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1680
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1681
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1682
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1683
|
+
transports_version_send: [:rest]
|
1684
|
+
|
1685
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1686
|
+
|
1687
|
+
options.apply_defaults timeout: @config.rpcs.update_network.timeout,
|
1688
|
+
metadata: call_metadata,
|
1689
|
+
retry_policy: @config.rpcs.update_network.retry_policy
|
1690
|
+
|
1691
|
+
options.apply_defaults timeout: @config.timeout,
|
1692
|
+
metadata: @config.metadata,
|
1693
|
+
retry_policy: @config.retry_policy
|
1694
|
+
|
1695
|
+
@bare_metal_solution_stub.update_network request, options do |result, operation|
|
1696
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1697
|
+
yield result, operation if block_given?
|
1698
|
+
return result
|
1699
|
+
end
|
1700
|
+
rescue ::Gapic::Rest::Error => e
|
1701
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1702
|
+
end
|
1703
|
+
|
1704
|
+
##
|
1705
|
+
# Takes a snapshot of a boot volume.
|
1706
|
+
# Returns INVALID_ARGUMENT if called for a non-boot volume.
|
1707
|
+
#
|
1708
|
+
# @overload create_volume_snapshot(request, options = nil)
|
1709
|
+
# Pass arguments to `create_volume_snapshot` via a request object, either of type
|
1710
|
+
# {::Google::Cloud::BareMetalSolution::V2::CreateVolumeSnapshotRequest} or an equivalent Hash.
|
1711
|
+
#
|
1712
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::CreateVolumeSnapshotRequest, ::Hash]
|
1713
|
+
# A request object representing the call parameters. Required. To specify no
|
1714
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1715
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1716
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1717
|
+
#
|
1718
|
+
# @overload create_volume_snapshot(parent: nil, volume_snapshot: nil)
|
1719
|
+
# Pass arguments to `create_volume_snapshot` via keyword arguments. Note that at
|
1720
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1721
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1722
|
+
#
|
1723
|
+
# @param parent [::String]
|
1724
|
+
# Required. The volume to snapshot.
|
1725
|
+
# @param volume_snapshot [::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot, ::Hash]
|
1726
|
+
# Required. The snapshot to create.
|
1727
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1728
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot]
|
1729
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1730
|
+
#
|
1731
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot]
|
1732
|
+
#
|
1733
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1734
|
+
def create_volume_snapshot request, options = nil
|
1735
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1736
|
+
|
1737
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::CreateVolumeSnapshotRequest
|
1738
|
+
|
1739
|
+
# Converts hash and nil to an options object
|
1740
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1741
|
+
|
1742
|
+
# Customize the options with defaults
|
1743
|
+
call_metadata = @config.rpcs.create_volume_snapshot.metadata.to_h
|
1744
|
+
|
1745
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1746
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1747
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1748
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1749
|
+
transports_version_send: [:rest]
|
1750
|
+
|
1751
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1752
|
+
|
1753
|
+
options.apply_defaults timeout: @config.rpcs.create_volume_snapshot.timeout,
|
1754
|
+
metadata: call_metadata,
|
1755
|
+
retry_policy: @config.rpcs.create_volume_snapshot.retry_policy
|
1756
|
+
|
1757
|
+
options.apply_defaults timeout: @config.timeout,
|
1758
|
+
metadata: @config.metadata,
|
1759
|
+
retry_policy: @config.retry_policy
|
1760
|
+
|
1761
|
+
@bare_metal_solution_stub.create_volume_snapshot request, options do |result, operation|
|
1762
|
+
yield result, operation if block_given?
|
1763
|
+
return result
|
1764
|
+
end
|
1765
|
+
rescue ::Gapic::Rest::Error => e
|
1766
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1767
|
+
end
|
1768
|
+
|
1769
|
+
##
|
1770
|
+
# Uses the specified snapshot to restore its parent volume.
|
1771
|
+
# Returns INVALID_ARGUMENT if called for a non-boot volume.
|
1772
|
+
#
|
1773
|
+
# @overload restore_volume_snapshot(request, options = nil)
|
1774
|
+
# Pass arguments to `restore_volume_snapshot` via a request object, either of type
|
1775
|
+
# {::Google::Cloud::BareMetalSolution::V2::RestoreVolumeSnapshotRequest} or an equivalent Hash.
|
1776
|
+
#
|
1777
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::RestoreVolumeSnapshotRequest, ::Hash]
|
1778
|
+
# A request object representing the call parameters. Required. To specify no
|
1779
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1780
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1781
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1782
|
+
#
|
1783
|
+
# @overload restore_volume_snapshot(volume_snapshot: nil)
|
1784
|
+
# Pass arguments to `restore_volume_snapshot` via keyword arguments. Note that at
|
1785
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1786
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1787
|
+
#
|
1788
|
+
# @param volume_snapshot [::String]
|
1789
|
+
# Required. Name of the snapshot which will be used to restore its parent
|
1790
|
+
# volume.
|
1791
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1792
|
+
# @yieldparam result [::Gapic::Operation]
|
1793
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1794
|
+
#
|
1795
|
+
# @return [::Gapic::Operation]
|
1796
|
+
#
|
1797
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1798
|
+
def restore_volume_snapshot request, options = nil
|
1799
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1800
|
+
|
1801
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::RestoreVolumeSnapshotRequest
|
1802
|
+
|
1803
|
+
# Converts hash and nil to an options object
|
1804
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1805
|
+
|
1806
|
+
# Customize the options with defaults
|
1807
|
+
call_metadata = @config.rpcs.restore_volume_snapshot.metadata.to_h
|
1808
|
+
|
1809
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1810
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1811
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1812
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1813
|
+
transports_version_send: [:rest]
|
1814
|
+
|
1815
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1816
|
+
|
1817
|
+
options.apply_defaults timeout: @config.rpcs.restore_volume_snapshot.timeout,
|
1818
|
+
metadata: call_metadata,
|
1819
|
+
retry_policy: @config.rpcs.restore_volume_snapshot.retry_policy
|
1820
|
+
|
1821
|
+
options.apply_defaults timeout: @config.timeout,
|
1822
|
+
metadata: @config.metadata,
|
1823
|
+
retry_policy: @config.retry_policy
|
1824
|
+
|
1825
|
+
@bare_metal_solution_stub.restore_volume_snapshot request, options do |result, operation|
|
1826
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1827
|
+
yield result, operation if block_given?
|
1828
|
+
return result
|
1829
|
+
end
|
1830
|
+
rescue ::Gapic::Rest::Error => e
|
1831
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1832
|
+
end
|
1833
|
+
|
1834
|
+
##
|
1835
|
+
# Deletes a volume snapshot.
|
1836
|
+
# Returns INVALID_ARGUMENT if called for a non-boot volume.
|
1837
|
+
#
|
1838
|
+
# @overload delete_volume_snapshot(request, options = nil)
|
1839
|
+
# Pass arguments to `delete_volume_snapshot` via a request object, either of type
|
1840
|
+
# {::Google::Cloud::BareMetalSolution::V2::DeleteVolumeSnapshotRequest} or an equivalent Hash.
|
1841
|
+
#
|
1842
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::DeleteVolumeSnapshotRequest, ::Hash]
|
1843
|
+
# A request object representing the call parameters. Required. To specify no
|
1844
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1845
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1846
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1847
|
+
#
|
1848
|
+
# @overload delete_volume_snapshot(name: nil)
|
1849
|
+
# Pass arguments to `delete_volume_snapshot` via keyword arguments. Note that at
|
1850
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1851
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1852
|
+
#
|
1853
|
+
# @param name [::String]
|
1854
|
+
# Required. The name of the snapshot to delete.
|
1855
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1856
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
1857
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1858
|
+
#
|
1859
|
+
# @return [::Google::Protobuf::Empty]
|
1860
|
+
#
|
1861
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1862
|
+
def delete_volume_snapshot request, options = nil
|
1863
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1864
|
+
|
1865
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::DeleteVolumeSnapshotRequest
|
1866
|
+
|
1867
|
+
# Converts hash and nil to an options object
|
1868
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1869
|
+
|
1870
|
+
# Customize the options with defaults
|
1871
|
+
call_metadata = @config.rpcs.delete_volume_snapshot.metadata.to_h
|
1872
|
+
|
1873
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1874
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1875
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1876
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1877
|
+
transports_version_send: [:rest]
|
1878
|
+
|
1879
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1880
|
+
|
1881
|
+
options.apply_defaults timeout: @config.rpcs.delete_volume_snapshot.timeout,
|
1882
|
+
metadata: call_metadata,
|
1883
|
+
retry_policy: @config.rpcs.delete_volume_snapshot.retry_policy
|
1884
|
+
|
1885
|
+
options.apply_defaults timeout: @config.timeout,
|
1886
|
+
metadata: @config.metadata,
|
1887
|
+
retry_policy: @config.retry_policy
|
1888
|
+
|
1889
|
+
@bare_metal_solution_stub.delete_volume_snapshot request, options do |result, operation|
|
1890
|
+
yield result, operation if block_given?
|
1891
|
+
return result
|
1892
|
+
end
|
1893
|
+
rescue ::Gapic::Rest::Error => e
|
1894
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1895
|
+
end
|
1896
|
+
|
1897
|
+
##
|
1898
|
+
# Returns the specified snapshot resource.
|
1899
|
+
# Returns INVALID_ARGUMENT if called for a non-boot volume.
|
1900
|
+
#
|
1901
|
+
# @overload get_volume_snapshot(request, options = nil)
|
1902
|
+
# Pass arguments to `get_volume_snapshot` via a request object, either of type
|
1903
|
+
# {::Google::Cloud::BareMetalSolution::V2::GetVolumeSnapshotRequest} or an equivalent Hash.
|
1904
|
+
#
|
1905
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::GetVolumeSnapshotRequest, ::Hash]
|
1906
|
+
# A request object representing the call parameters. Required. To specify no
|
1907
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1908
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1909
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1910
|
+
#
|
1911
|
+
# @overload get_volume_snapshot(name: nil)
|
1912
|
+
# Pass arguments to `get_volume_snapshot` via keyword arguments. Note that at
|
1913
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1914
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1915
|
+
#
|
1916
|
+
# @param name [::String]
|
1917
|
+
# Required. The name of the snapshot.
|
1918
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1919
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot]
|
1920
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1921
|
+
#
|
1922
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot]
|
1923
|
+
#
|
1924
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1925
|
+
def get_volume_snapshot request, options = nil
|
1926
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1927
|
+
|
1928
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::GetVolumeSnapshotRequest
|
1929
|
+
|
1930
|
+
# Converts hash and nil to an options object
|
1931
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1932
|
+
|
1933
|
+
# Customize the options with defaults
|
1934
|
+
call_metadata = @config.rpcs.get_volume_snapshot.metadata.to_h
|
1935
|
+
|
1936
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1937
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1938
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1939
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1940
|
+
transports_version_send: [:rest]
|
1941
|
+
|
1942
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1943
|
+
|
1944
|
+
options.apply_defaults timeout: @config.rpcs.get_volume_snapshot.timeout,
|
1945
|
+
metadata: call_metadata,
|
1946
|
+
retry_policy: @config.rpcs.get_volume_snapshot.retry_policy
|
1947
|
+
|
1948
|
+
options.apply_defaults timeout: @config.timeout,
|
1949
|
+
metadata: @config.metadata,
|
1950
|
+
retry_policy: @config.retry_policy
|
1951
|
+
|
1952
|
+
@bare_metal_solution_stub.get_volume_snapshot request, options do |result, operation|
|
1953
|
+
yield result, operation if block_given?
|
1954
|
+
return result
|
1955
|
+
end
|
1956
|
+
rescue ::Gapic::Rest::Error => e
|
1957
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1958
|
+
end
|
1959
|
+
|
1960
|
+
##
|
1961
|
+
# Retrieves the list of snapshots for the specified volume.
|
1962
|
+
# Returns a response with an empty list of snapshots if called
|
1963
|
+
# for a non-boot volume.
|
1964
|
+
#
|
1965
|
+
# @overload list_volume_snapshots(request, options = nil)
|
1966
|
+
# Pass arguments to `list_volume_snapshots` via a request object, either of type
|
1967
|
+
# {::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsRequest} or an equivalent Hash.
|
1968
|
+
#
|
1969
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsRequest, ::Hash]
|
1970
|
+
# A request object representing the call parameters. Required. To specify no
|
1971
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1972
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1973
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1974
|
+
#
|
1975
|
+
# @overload list_volume_snapshots(parent: nil, page_size: nil, page_token: nil)
|
1976
|
+
# Pass arguments to `list_volume_snapshots` via keyword arguments. Note that at
|
1977
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1978
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1979
|
+
#
|
1980
|
+
# @param parent [::String]
|
1981
|
+
# Required. Parent value for ListVolumesRequest.
|
1982
|
+
# @param page_size [::Integer]
|
1983
|
+
# Requested page size. The server might return fewer items than requested.
|
1984
|
+
# If unspecified, server will pick an appropriate default.
|
1985
|
+
# @param page_token [::String]
|
1986
|
+
# A token identifying a page of results from the server.
|
1987
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1988
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsResponse]
|
1989
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1990
|
+
#
|
1991
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsResponse]
|
1992
|
+
#
|
1993
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1994
|
+
def list_volume_snapshots request, options = nil
|
1995
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1996
|
+
|
1997
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsRequest
|
1998
|
+
|
1999
|
+
# Converts hash and nil to an options object
|
2000
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2001
|
+
|
2002
|
+
# Customize the options with defaults
|
2003
|
+
call_metadata = @config.rpcs.list_volume_snapshots.metadata.to_h
|
2004
|
+
|
2005
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2006
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2007
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2008
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2009
|
+
transports_version_send: [:rest]
|
2010
|
+
|
2011
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2012
|
+
|
2013
|
+
options.apply_defaults timeout: @config.rpcs.list_volume_snapshots.timeout,
|
2014
|
+
metadata: call_metadata,
|
2015
|
+
retry_policy: @config.rpcs.list_volume_snapshots.retry_policy
|
2016
|
+
|
2017
|
+
options.apply_defaults timeout: @config.timeout,
|
2018
|
+
metadata: @config.metadata,
|
2019
|
+
retry_policy: @config.retry_policy
|
2020
|
+
|
2021
|
+
@bare_metal_solution_stub.list_volume_snapshots request, options do |result, operation|
|
2022
|
+
yield result, operation if block_given?
|
2023
|
+
return result
|
2024
|
+
end
|
2025
|
+
rescue ::Gapic::Rest::Error => e
|
2026
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2027
|
+
end
|
2028
|
+
|
2029
|
+
##
|
2030
|
+
# Get details of a single storage logical unit number(LUN).
|
2031
|
+
#
|
2032
|
+
# @overload get_lun(request, options = nil)
|
2033
|
+
# Pass arguments to `get_lun` via a request object, either of type
|
2034
|
+
# {::Google::Cloud::BareMetalSolution::V2::GetLunRequest} or an equivalent Hash.
|
2035
|
+
#
|
2036
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::GetLunRequest, ::Hash]
|
2037
|
+
# A request object representing the call parameters. Required. To specify no
|
2038
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2039
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2040
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2041
|
+
#
|
2042
|
+
# @overload get_lun(name: nil)
|
2043
|
+
# Pass arguments to `get_lun` via keyword arguments. Note that at
|
2044
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2045
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2046
|
+
#
|
2047
|
+
# @param name [::String]
|
2048
|
+
# Required. Name of the resource.
|
2049
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2050
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Lun]
|
2051
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2052
|
+
#
|
2053
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::Lun]
|
2054
|
+
#
|
2055
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2056
|
+
def get_lun request, options = nil
|
2057
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2058
|
+
|
2059
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::GetLunRequest
|
2060
|
+
|
2061
|
+
# Converts hash and nil to an options object
|
2062
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2063
|
+
|
2064
|
+
# Customize the options with defaults
|
2065
|
+
call_metadata = @config.rpcs.get_lun.metadata.to_h
|
2066
|
+
|
2067
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2068
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2069
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2070
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2071
|
+
transports_version_send: [:rest]
|
2072
|
+
|
2073
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2074
|
+
|
2075
|
+
options.apply_defaults timeout: @config.rpcs.get_lun.timeout,
|
2076
|
+
metadata: call_metadata,
|
2077
|
+
retry_policy: @config.rpcs.get_lun.retry_policy
|
2078
|
+
|
2079
|
+
options.apply_defaults timeout: @config.timeout,
|
2080
|
+
metadata: @config.metadata,
|
2081
|
+
retry_policy: @config.retry_policy
|
2082
|
+
|
2083
|
+
@bare_metal_solution_stub.get_lun request, options do |result, operation|
|
2084
|
+
yield result, operation if block_given?
|
2085
|
+
return result
|
2086
|
+
end
|
2087
|
+
rescue ::Gapic::Rest::Error => e
|
2088
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2089
|
+
end
|
2090
|
+
|
2091
|
+
##
|
2092
|
+
# List storage volume luns for given storage volume.
|
2093
|
+
#
|
2094
|
+
# @overload list_luns(request, options = nil)
|
2095
|
+
# Pass arguments to `list_luns` via a request object, either of type
|
2096
|
+
# {::Google::Cloud::BareMetalSolution::V2::ListLunsRequest} or an equivalent Hash.
|
2097
|
+
#
|
2098
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::ListLunsRequest, ::Hash]
|
2099
|
+
# A request object representing the call parameters. Required. To specify no
|
2100
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2101
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2102
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2103
|
+
#
|
2104
|
+
# @overload list_luns(parent: nil, page_size: nil, page_token: nil)
|
2105
|
+
# Pass arguments to `list_luns` via keyword arguments. Note that at
|
2106
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2107
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2108
|
+
#
|
2109
|
+
# @param parent [::String]
|
2110
|
+
# Required. Parent value for ListLunsRequest.
|
2111
|
+
# @param page_size [::Integer]
|
2112
|
+
# Requested page size. The server might return fewer items than requested.
|
2113
|
+
# If unspecified, server will pick an appropriate default.
|
2114
|
+
# @param page_token [::String]
|
2115
|
+
# A token identifying a page of results from the server.
|
2116
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2117
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListLunsResponse]
|
2118
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2119
|
+
#
|
2120
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::ListLunsResponse]
|
2121
|
+
#
|
2122
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2123
|
+
def list_luns request, options = nil
|
2124
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2125
|
+
|
2126
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::ListLunsRequest
|
2127
|
+
|
2128
|
+
# Converts hash and nil to an options object
|
2129
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2130
|
+
|
2131
|
+
# Customize the options with defaults
|
2132
|
+
call_metadata = @config.rpcs.list_luns.metadata.to_h
|
2133
|
+
|
2134
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2135
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2136
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2137
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2138
|
+
transports_version_send: [:rest]
|
2139
|
+
|
2140
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2141
|
+
|
2142
|
+
options.apply_defaults timeout: @config.rpcs.list_luns.timeout,
|
2143
|
+
metadata: call_metadata,
|
2144
|
+
retry_policy: @config.rpcs.list_luns.retry_policy
|
2145
|
+
|
2146
|
+
options.apply_defaults timeout: @config.timeout,
|
2147
|
+
metadata: @config.metadata,
|
2148
|
+
retry_policy: @config.retry_policy
|
2149
|
+
|
2150
|
+
@bare_metal_solution_stub.list_luns request, options do |result, operation|
|
2151
|
+
yield result, operation if block_given?
|
2152
|
+
return result
|
2153
|
+
end
|
2154
|
+
rescue ::Gapic::Rest::Error => e
|
2155
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2156
|
+
end
|
2157
|
+
|
2158
|
+
##
|
2159
|
+
# Skips lun's cooloff and deletes it now.
|
2160
|
+
# Lun must be in cooloff state.
|
2161
|
+
#
|
2162
|
+
# @overload evict_lun(request, options = nil)
|
2163
|
+
# Pass arguments to `evict_lun` via a request object, either of type
|
2164
|
+
# {::Google::Cloud::BareMetalSolution::V2::EvictLunRequest} or an equivalent Hash.
|
2165
|
+
#
|
2166
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::EvictLunRequest, ::Hash]
|
2167
|
+
# A request object representing the call parameters. Required. To specify no
|
2168
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2169
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2170
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2171
|
+
#
|
2172
|
+
# @overload evict_lun(name: nil)
|
2173
|
+
# Pass arguments to `evict_lun` via keyword arguments. Note that at
|
2174
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2175
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2176
|
+
#
|
2177
|
+
# @param name [::String]
|
2178
|
+
# Required. The name of the lun.
|
2179
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2180
|
+
# @yieldparam result [::Gapic::Operation]
|
2181
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2182
|
+
#
|
2183
|
+
# @return [::Gapic::Operation]
|
2184
|
+
#
|
2185
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2186
|
+
def evict_lun request, options = nil
|
2187
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2188
|
+
|
2189
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::EvictLunRequest
|
2190
|
+
|
2191
|
+
# Converts hash and nil to an options object
|
2192
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2193
|
+
|
2194
|
+
# Customize the options with defaults
|
2195
|
+
call_metadata = @config.rpcs.evict_lun.metadata.to_h
|
2196
|
+
|
2197
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2198
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2199
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2200
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2201
|
+
transports_version_send: [:rest]
|
2202
|
+
|
2203
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2204
|
+
|
2205
|
+
options.apply_defaults timeout: @config.rpcs.evict_lun.timeout,
|
2206
|
+
metadata: call_metadata,
|
2207
|
+
retry_policy: @config.rpcs.evict_lun.retry_policy
|
2208
|
+
|
2209
|
+
options.apply_defaults timeout: @config.timeout,
|
2210
|
+
metadata: @config.metadata,
|
2211
|
+
retry_policy: @config.retry_policy
|
2212
|
+
|
2213
|
+
@bare_metal_solution_stub.evict_lun request, options do |result, operation|
|
2214
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2215
|
+
yield result, operation if block_given?
|
2216
|
+
return result
|
2217
|
+
end
|
2218
|
+
rescue ::Gapic::Rest::Error => e
|
2219
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2220
|
+
end
|
2221
|
+
|
2222
|
+
##
|
2223
|
+
# Get details of a single NFS share.
|
2224
|
+
#
|
2225
|
+
# @overload get_nfs_share(request, options = nil)
|
2226
|
+
# Pass arguments to `get_nfs_share` via a request object, either of type
|
2227
|
+
# {::Google::Cloud::BareMetalSolution::V2::GetNfsShareRequest} or an equivalent Hash.
|
2228
|
+
#
|
2229
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::GetNfsShareRequest, ::Hash]
|
2230
|
+
# A request object representing the call parameters. Required. To specify no
|
2231
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2232
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2233
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2234
|
+
#
|
2235
|
+
# @overload get_nfs_share(name: nil)
|
2236
|
+
# Pass arguments to `get_nfs_share` via keyword arguments. Note that at
|
2237
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2238
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2239
|
+
#
|
2240
|
+
# @param name [::String]
|
2241
|
+
# Required. Name of the resource.
|
2242
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2243
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::NfsShare]
|
2244
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2245
|
+
#
|
2246
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::NfsShare]
|
2247
|
+
#
|
2248
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2249
|
+
def get_nfs_share request, options = nil
|
2250
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2251
|
+
|
2252
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::GetNfsShareRequest
|
2253
|
+
|
2254
|
+
# Converts hash and nil to an options object
|
2255
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2256
|
+
|
2257
|
+
# Customize the options with defaults
|
2258
|
+
call_metadata = @config.rpcs.get_nfs_share.metadata.to_h
|
2259
|
+
|
2260
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2261
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2262
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2263
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2264
|
+
transports_version_send: [:rest]
|
2265
|
+
|
2266
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2267
|
+
|
2268
|
+
options.apply_defaults timeout: @config.rpcs.get_nfs_share.timeout,
|
2269
|
+
metadata: call_metadata,
|
2270
|
+
retry_policy: @config.rpcs.get_nfs_share.retry_policy
|
2271
|
+
|
2272
|
+
options.apply_defaults timeout: @config.timeout,
|
2273
|
+
metadata: @config.metadata,
|
2274
|
+
retry_policy: @config.retry_policy
|
2275
|
+
|
2276
|
+
@bare_metal_solution_stub.get_nfs_share request, options do |result, operation|
|
2277
|
+
yield result, operation if block_given?
|
2278
|
+
return result
|
2279
|
+
end
|
2280
|
+
rescue ::Gapic::Rest::Error => e
|
2281
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2282
|
+
end
|
2283
|
+
|
2284
|
+
##
|
2285
|
+
# List NFS shares.
|
2286
|
+
#
|
2287
|
+
# @overload list_nfs_shares(request, options = nil)
|
2288
|
+
# Pass arguments to `list_nfs_shares` via a request object, either of type
|
2289
|
+
# {::Google::Cloud::BareMetalSolution::V2::ListNfsSharesRequest} or an equivalent Hash.
|
2290
|
+
#
|
2291
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesRequest, ::Hash]
|
2292
|
+
# A request object representing the call parameters. Required. To specify no
|
2293
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2294
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2295
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2296
|
+
#
|
2297
|
+
# @overload list_nfs_shares(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
2298
|
+
# Pass arguments to `list_nfs_shares` via keyword arguments. Note that at
|
2299
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2300
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2301
|
+
#
|
2302
|
+
# @param parent [::String]
|
2303
|
+
# Required. Parent value for ListNfsSharesRequest.
|
2304
|
+
# @param page_size [::Integer]
|
2305
|
+
# Requested page size. The server might return fewer items than requested.
|
2306
|
+
# If unspecified, server will pick an appropriate default.
|
2307
|
+
# @param page_token [::String]
|
2308
|
+
# A token identifying a page of results from the server.
|
2309
|
+
# @param filter [::String]
|
2310
|
+
# List filter.
|
2311
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2312
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse]
|
2313
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2314
|
+
#
|
2315
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse]
|
2316
|
+
#
|
2317
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2318
|
+
def list_nfs_shares request, options = nil
|
2319
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2320
|
+
|
2321
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::ListNfsSharesRequest
|
2322
|
+
|
2323
|
+
# Converts hash and nil to an options object
|
2324
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2325
|
+
|
2326
|
+
# Customize the options with defaults
|
2327
|
+
call_metadata = @config.rpcs.list_nfs_shares.metadata.to_h
|
2328
|
+
|
2329
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2330
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2331
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2332
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2333
|
+
transports_version_send: [:rest]
|
2334
|
+
|
2335
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2336
|
+
|
2337
|
+
options.apply_defaults timeout: @config.rpcs.list_nfs_shares.timeout,
|
2338
|
+
metadata: call_metadata,
|
2339
|
+
retry_policy: @config.rpcs.list_nfs_shares.retry_policy
|
2340
|
+
|
2341
|
+
options.apply_defaults timeout: @config.timeout,
|
2342
|
+
metadata: @config.metadata,
|
2343
|
+
retry_policy: @config.retry_policy
|
2344
|
+
|
2345
|
+
@bare_metal_solution_stub.list_nfs_shares request, options do |result, operation|
|
2346
|
+
yield result, operation if block_given?
|
2347
|
+
return result
|
2348
|
+
end
|
2349
|
+
rescue ::Gapic::Rest::Error => e
|
2350
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2351
|
+
end
|
2352
|
+
|
2353
|
+
##
|
2354
|
+
# Update details of a single NFS share.
|
2355
|
+
#
|
2356
|
+
# @overload update_nfs_share(request, options = nil)
|
2357
|
+
# Pass arguments to `update_nfs_share` via a request object, either of type
|
2358
|
+
# {::Google::Cloud::BareMetalSolution::V2::UpdateNfsShareRequest} or an equivalent Hash.
|
2359
|
+
#
|
2360
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::UpdateNfsShareRequest, ::Hash]
|
2361
|
+
# A request object representing the call parameters. Required. To specify no
|
2362
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2363
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2364
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2365
|
+
#
|
2366
|
+
# @overload update_nfs_share(nfs_share: nil, update_mask: nil)
|
2367
|
+
# Pass arguments to `update_nfs_share` via keyword arguments. Note that at
|
2368
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2369
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2370
|
+
#
|
2371
|
+
# @param nfs_share [::Google::Cloud::BareMetalSolution::V2::NfsShare, ::Hash]
|
2372
|
+
# Required. The NFS share to update.
|
2373
|
+
#
|
2374
|
+
# The `name` field is used to identify the NFS share to update.
|
2375
|
+
# Format: projects/\\{project}/locations/\\{location}/nfsShares/\\{nfs_share}
|
2376
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2377
|
+
# The list of fields to update.
|
2378
|
+
# The only currently supported fields are:
|
2379
|
+
# `labels`
|
2380
|
+
# `allowed_clients`
|
2381
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2382
|
+
# @yieldparam result [::Gapic::Operation]
|
2383
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2384
|
+
#
|
2385
|
+
# @return [::Gapic::Operation]
|
2386
|
+
#
|
2387
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2388
|
+
def update_nfs_share request, options = nil
|
2389
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2390
|
+
|
2391
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::UpdateNfsShareRequest
|
2392
|
+
|
2393
|
+
# Converts hash and nil to an options object
|
2394
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2395
|
+
|
2396
|
+
# Customize the options with defaults
|
2397
|
+
call_metadata = @config.rpcs.update_nfs_share.metadata.to_h
|
2398
|
+
|
2399
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2400
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2401
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2402
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2403
|
+
transports_version_send: [:rest]
|
2404
|
+
|
2405
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2406
|
+
|
2407
|
+
options.apply_defaults timeout: @config.rpcs.update_nfs_share.timeout,
|
2408
|
+
metadata: call_metadata,
|
2409
|
+
retry_policy: @config.rpcs.update_nfs_share.retry_policy
|
2410
|
+
|
2411
|
+
options.apply_defaults timeout: @config.timeout,
|
2412
|
+
metadata: @config.metadata,
|
2413
|
+
retry_policy: @config.retry_policy
|
2414
|
+
|
2415
|
+
@bare_metal_solution_stub.update_nfs_share request, options do |result, operation|
|
2416
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2417
|
+
yield result, operation if block_given?
|
2418
|
+
return result
|
2419
|
+
end
|
2420
|
+
rescue ::Gapic::Rest::Error => e
|
2421
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2422
|
+
end
|
2423
|
+
|
2424
|
+
##
|
2425
|
+
# Create an NFS share.
|
2426
|
+
#
|
2427
|
+
# @overload create_nfs_share(request, options = nil)
|
2428
|
+
# Pass arguments to `create_nfs_share` via a request object, either of type
|
2429
|
+
# {::Google::Cloud::BareMetalSolution::V2::CreateNfsShareRequest} or an equivalent Hash.
|
2430
|
+
#
|
2431
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::CreateNfsShareRequest, ::Hash]
|
2432
|
+
# A request object representing the call parameters. Required. To specify no
|
2433
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2434
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2435
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2436
|
+
#
|
2437
|
+
# @overload create_nfs_share(parent: nil, nfs_share: nil)
|
2438
|
+
# Pass arguments to `create_nfs_share` via keyword arguments. Note that at
|
2439
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2440
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2441
|
+
#
|
2442
|
+
# @param parent [::String]
|
2443
|
+
# Required. The parent project and location.
|
2444
|
+
# @param nfs_share [::Google::Cloud::BareMetalSolution::V2::NfsShare, ::Hash]
|
2445
|
+
# Required. The NfsShare to create.
|
2446
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2447
|
+
# @yieldparam result [::Gapic::Operation]
|
2448
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2449
|
+
#
|
2450
|
+
# @return [::Gapic::Operation]
|
2451
|
+
#
|
2452
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2453
|
+
def create_nfs_share request, options = nil
|
2454
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2455
|
+
|
2456
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::CreateNfsShareRequest
|
2457
|
+
|
2458
|
+
# Converts hash and nil to an options object
|
2459
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2460
|
+
|
2461
|
+
# Customize the options with defaults
|
2462
|
+
call_metadata = @config.rpcs.create_nfs_share.metadata.to_h
|
2463
|
+
|
2464
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2465
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2466
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2467
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2468
|
+
transports_version_send: [:rest]
|
2469
|
+
|
2470
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2471
|
+
|
2472
|
+
options.apply_defaults timeout: @config.rpcs.create_nfs_share.timeout,
|
2473
|
+
metadata: call_metadata,
|
2474
|
+
retry_policy: @config.rpcs.create_nfs_share.retry_policy
|
2475
|
+
|
2476
|
+
options.apply_defaults timeout: @config.timeout,
|
2477
|
+
metadata: @config.metadata,
|
2478
|
+
retry_policy: @config.retry_policy
|
2479
|
+
|
2480
|
+
@bare_metal_solution_stub.create_nfs_share request, options do |result, operation|
|
2481
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2482
|
+
yield result, operation if block_given?
|
2483
|
+
return result
|
2484
|
+
end
|
2485
|
+
rescue ::Gapic::Rest::Error => e
|
2486
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2487
|
+
end
|
2488
|
+
|
2489
|
+
##
|
2490
|
+
# RenameNfsShare sets a new name for an nfsshare.
|
2491
|
+
# Use with caution, previous names become immediately invalidated.
|
2492
|
+
#
|
2493
|
+
# @overload rename_nfs_share(request, options = nil)
|
2494
|
+
# Pass arguments to `rename_nfs_share` via a request object, either of type
|
2495
|
+
# {::Google::Cloud::BareMetalSolution::V2::RenameNfsShareRequest} or an equivalent Hash.
|
2496
|
+
#
|
2497
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::RenameNfsShareRequest, ::Hash]
|
2498
|
+
# A request object representing the call parameters. Required. To specify no
|
2499
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2500
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2501
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2502
|
+
#
|
2503
|
+
# @overload rename_nfs_share(name: nil, new_nfsshare_id: nil)
|
2504
|
+
# Pass arguments to `rename_nfs_share` via keyword arguments. Note that at
|
2505
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2506
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2507
|
+
#
|
2508
|
+
# @param name [::String]
|
2509
|
+
# Required. The `name` field is used to identify the nfsshare.
|
2510
|
+
# Format: projects/\\{project}/locations/\\{location}/nfsshares/\\{nfsshare}
|
2511
|
+
# @param new_nfsshare_id [::String]
|
2512
|
+
# Required. The new `id` of the nfsshare.
|
2513
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2514
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::NfsShare]
|
2515
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2516
|
+
#
|
2517
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::NfsShare]
|
2518
|
+
#
|
2519
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2520
|
+
def rename_nfs_share request, options = nil
|
2521
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2522
|
+
|
2523
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::RenameNfsShareRequest
|
2524
|
+
|
2525
|
+
# Converts hash and nil to an options object
|
2526
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2527
|
+
|
2528
|
+
# Customize the options with defaults
|
2529
|
+
call_metadata = @config.rpcs.rename_nfs_share.metadata.to_h
|
2530
|
+
|
2531
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2532
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2533
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2534
|
+
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2535
|
+
transports_version_send: [:rest]
|
2536
|
+
|
2537
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2538
|
+
|
2539
|
+
options.apply_defaults timeout: @config.rpcs.rename_nfs_share.timeout,
|
2540
|
+
metadata: call_metadata,
|
2541
|
+
retry_policy: @config.rpcs.rename_nfs_share.retry_policy
|
2542
|
+
|
2543
|
+
options.apply_defaults timeout: @config.timeout,
|
2544
|
+
metadata: @config.metadata,
|
2545
|
+
retry_policy: @config.retry_policy
|
2546
|
+
|
2547
|
+
@bare_metal_solution_stub.rename_nfs_share request, options do |result, operation|
|
979
2548
|
yield result, operation if block_given?
|
980
2549
|
return result
|
981
2550
|
end
|
@@ -984,43 +2553,42 @@ module Google
|
|
984
2553
|
end
|
985
2554
|
|
986
2555
|
##
|
987
|
-
#
|
988
|
-
# associated with the specified project.
|
2556
|
+
# Delete an NFS share. The underlying volume is automatically deleted.
|
989
2557
|
#
|
990
|
-
# @overload
|
991
|
-
# Pass arguments to `
|
992
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
2558
|
+
# @overload delete_nfs_share(request, options = nil)
|
2559
|
+
# Pass arguments to `delete_nfs_share` via a request object, either of type
|
2560
|
+
# {::Google::Cloud::BareMetalSolution::V2::DeleteNfsShareRequest} or an equivalent Hash.
|
993
2561
|
#
|
994
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
2562
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::DeleteNfsShareRequest, ::Hash]
|
995
2563
|
# A request object representing the call parameters. Required. To specify no
|
996
2564
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
997
2565
|
# @param options [::Gapic::CallOptions, ::Hash]
|
998
2566
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
999
2567
|
#
|
1000
|
-
# @overload
|
1001
|
-
# Pass arguments to `
|
2568
|
+
# @overload delete_nfs_share(name: nil)
|
2569
|
+
# Pass arguments to `delete_nfs_share` via keyword arguments. Note that at
|
1002
2570
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1003
2571
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1004
2572
|
#
|
1005
|
-
# @param
|
1006
|
-
# Required.
|
2573
|
+
# @param name [::String]
|
2574
|
+
# Required. The name of the NFS share to delete.
|
1007
2575
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1008
|
-
# @yieldparam result [::
|
2576
|
+
# @yieldparam result [::Gapic::Operation]
|
1009
2577
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1010
2578
|
#
|
1011
|
-
# @return [::
|
2579
|
+
# @return [::Gapic::Operation]
|
1012
2580
|
#
|
1013
2581
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1014
|
-
def
|
2582
|
+
def delete_nfs_share request, options = nil
|
1015
2583
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1016
2584
|
|
1017
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
2585
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::DeleteNfsShareRequest
|
1018
2586
|
|
1019
2587
|
# Converts hash and nil to an options object
|
1020
2588
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1021
2589
|
|
1022
2590
|
# Customize the options with defaults
|
1023
|
-
call_metadata = @config.rpcs.
|
2591
|
+
call_metadata = @config.rpcs.delete_nfs_share.metadata.to_h
|
1024
2592
|
|
1025
2593
|
# Set x-goog-api-client and x-goog-user-project headers
|
1026
2594
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -1030,15 +2598,16 @@ module Google
|
|
1030
2598
|
|
1031
2599
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1032
2600
|
|
1033
|
-
options.apply_defaults timeout: @config.rpcs.
|
2601
|
+
options.apply_defaults timeout: @config.rpcs.delete_nfs_share.timeout,
|
1034
2602
|
metadata: call_metadata,
|
1035
|
-
retry_policy: @config.rpcs.
|
2603
|
+
retry_policy: @config.rpcs.delete_nfs_share.retry_policy
|
1036
2604
|
|
1037
2605
|
options.apply_defaults timeout: @config.timeout,
|
1038
2606
|
metadata: @config.metadata,
|
1039
2607
|
retry_policy: @config.retry_policy
|
1040
2608
|
|
1041
|
-
@bare_metal_solution_stub.
|
2609
|
+
@bare_metal_solution_stub.delete_nfs_share request, options do |result, operation|
|
2610
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1042
2611
|
yield result, operation if block_given?
|
1043
2612
|
return result
|
1044
2613
|
end
|
@@ -1047,42 +2616,49 @@ module Google
|
|
1047
2616
|
end
|
1048
2617
|
|
1049
2618
|
##
|
1050
|
-
#
|
2619
|
+
# List the budget details to provision resources on a given project.
|
1051
2620
|
#
|
1052
|
-
# @overload
|
1053
|
-
# Pass arguments to `
|
1054
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
2621
|
+
# @overload list_provisioning_quotas(request, options = nil)
|
2622
|
+
# Pass arguments to `list_provisioning_quotas` via a request object, either of type
|
2623
|
+
# {::Google::Cloud::BareMetalSolution::V2::ListProvisioningQuotasRequest} or an equivalent Hash.
|
1055
2624
|
#
|
1056
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
2625
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::ListProvisioningQuotasRequest, ::Hash]
|
1057
2626
|
# A request object representing the call parameters. Required. To specify no
|
1058
2627
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1059
2628
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1060
2629
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1061
2630
|
#
|
1062
|
-
# @overload
|
1063
|
-
# Pass arguments to `
|
2631
|
+
# @overload list_provisioning_quotas(parent: nil, page_size: nil, page_token: nil)
|
2632
|
+
# Pass arguments to `list_provisioning_quotas` via keyword arguments. Note that at
|
1064
2633
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1065
2634
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1066
2635
|
#
|
1067
|
-
# @param
|
1068
|
-
# Required.
|
2636
|
+
# @param parent [::String]
|
2637
|
+
# Required. Parent value for ListProvisioningQuotasRequest.
|
2638
|
+
# @param page_size [::Integer]
|
2639
|
+
# Requested page size. The server might return fewer items than requested.
|
2640
|
+
# If unspecified, server will pick an appropriate default.
|
2641
|
+
# Notice that page_size field is not supported and won't be respected in
|
2642
|
+
# the API request for now, will be updated when pagination is supported.
|
2643
|
+
# @param page_token [::String]
|
2644
|
+
# A token identifying a page of results from the server.
|
1069
2645
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1070
|
-
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::
|
2646
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::ProvisioningQuota>]
|
1071
2647
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1072
2648
|
#
|
1073
|
-
# @return [::Google::Cloud::BareMetalSolution::V2::
|
2649
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::ProvisioningQuota>]
|
1074
2650
|
#
|
1075
2651
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1076
|
-
def
|
2652
|
+
def list_provisioning_quotas request, options = nil
|
1077
2653
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1078
2654
|
|
1079
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
2655
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::ListProvisioningQuotasRequest
|
1080
2656
|
|
1081
2657
|
# Converts hash and nil to an options object
|
1082
2658
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1083
2659
|
|
1084
2660
|
# Customize the options with defaults
|
1085
|
-
call_metadata = @config.rpcs.
|
2661
|
+
call_metadata = @config.rpcs.list_provisioning_quotas.metadata.to_h
|
1086
2662
|
|
1087
2663
|
# Set x-goog-api-client and x-goog-user-project headers
|
1088
2664
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -1092,15 +2668,16 @@ module Google
|
|
1092
2668
|
|
1093
2669
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1094
2670
|
|
1095
|
-
options.apply_defaults timeout: @config.rpcs.
|
2671
|
+
options.apply_defaults timeout: @config.rpcs.list_provisioning_quotas.timeout,
|
1096
2672
|
metadata: call_metadata,
|
1097
|
-
retry_policy: @config.rpcs.
|
2673
|
+
retry_policy: @config.rpcs.list_provisioning_quotas.retry_policy
|
1098
2674
|
|
1099
2675
|
options.apply_defaults timeout: @config.timeout,
|
1100
2676
|
metadata: @config.metadata,
|
1101
2677
|
retry_policy: @config.retry_policy
|
1102
2678
|
|
1103
|
-
@bare_metal_solution_stub.
|
2679
|
+
@bare_metal_solution_stub.list_provisioning_quotas request, options do |result, operation|
|
2680
|
+
result = ::Gapic::Rest::PagedEnumerable.new @bare_metal_solution_stub, :list_provisioning_quotas, "provisioning_quotas", request, result, options
|
1104
2681
|
yield result, operation if block_given?
|
1105
2682
|
return result
|
1106
2683
|
end
|
@@ -1109,49 +2686,48 @@ module Google
|
|
1109
2686
|
end
|
1110
2687
|
|
1111
2688
|
##
|
1112
|
-
#
|
2689
|
+
# Submit a provisiong configuration for a given project.
|
1113
2690
|
#
|
1114
|
-
# @overload
|
1115
|
-
# Pass arguments to `
|
1116
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
2691
|
+
# @overload submit_provisioning_config(request, options = nil)
|
2692
|
+
# Pass arguments to `submit_provisioning_config` via a request object, either of type
|
2693
|
+
# {::Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigRequest} or an equivalent Hash.
|
1117
2694
|
#
|
1118
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
2695
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigRequest, ::Hash]
|
1119
2696
|
# A request object representing the call parameters. Required. To specify no
|
1120
2697
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1121
2698
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1122
2699
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1123
2700
|
#
|
1124
|
-
# @overload
|
1125
|
-
# Pass arguments to `
|
2701
|
+
# @overload submit_provisioning_config(parent: nil, provisioning_config: nil, email: nil)
|
2702
|
+
# Pass arguments to `submit_provisioning_config` via keyword arguments. Note that at
|
1126
2703
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1127
2704
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1128
2705
|
#
|
1129
|
-
# @param
|
1130
|
-
# Required. The
|
1131
|
-
#
|
1132
|
-
#
|
1133
|
-
#
|
1134
|
-
# @param
|
1135
|
-
#
|
1136
|
-
#
|
1137
|
-
# `labels`, `reservations`
|
2706
|
+
# @param parent [::String]
|
2707
|
+
# Required. The parent project and location containing the
|
2708
|
+
# ProvisioningConfig.
|
2709
|
+
# @param provisioning_config [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig, ::Hash]
|
2710
|
+
# Required. The ProvisioningConfig to create.
|
2711
|
+
# @param email [::String]
|
2712
|
+
# Optional. Email provided to send a confirmation with provisioning config
|
2713
|
+
# to.
|
1138
2714
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1139
|
-
# @yieldparam result [::
|
2715
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigResponse]
|
1140
2716
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1141
2717
|
#
|
1142
|
-
# @return [::
|
2718
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigResponse]
|
1143
2719
|
#
|
1144
2720
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1145
|
-
def
|
2721
|
+
def submit_provisioning_config request, options = nil
|
1146
2722
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1147
2723
|
|
1148
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
2724
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigRequest
|
1149
2725
|
|
1150
2726
|
# Converts hash and nil to an options object
|
1151
2727
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1152
2728
|
|
1153
2729
|
# Customize the options with defaults
|
1154
|
-
call_metadata = @config.rpcs.
|
2730
|
+
call_metadata = @config.rpcs.submit_provisioning_config.metadata.to_h
|
1155
2731
|
|
1156
2732
|
# Set x-goog-api-client and x-goog-user-project headers
|
1157
2733
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -1161,16 +2737,15 @@ module Google
|
|
1161
2737
|
|
1162
2738
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1163
2739
|
|
1164
|
-
options.apply_defaults timeout: @config.rpcs.
|
2740
|
+
options.apply_defaults timeout: @config.rpcs.submit_provisioning_config.timeout,
|
1165
2741
|
metadata: call_metadata,
|
1166
|
-
retry_policy: @config.rpcs.
|
2742
|
+
retry_policy: @config.rpcs.submit_provisioning_config.retry_policy
|
1167
2743
|
|
1168
2744
|
options.apply_defaults timeout: @config.timeout,
|
1169
2745
|
metadata: @config.metadata,
|
1170
2746
|
retry_policy: @config.retry_policy
|
1171
2747
|
|
1172
|
-
@bare_metal_solution_stub.
|
1173
|
-
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2748
|
+
@bare_metal_solution_stub.submit_provisioning_config request, options do |result, operation|
|
1174
2749
|
yield result, operation if block_given?
|
1175
2750
|
return result
|
1176
2751
|
end
|
@@ -1179,42 +2754,42 @@ module Google
|
|
1179
2754
|
end
|
1180
2755
|
|
1181
2756
|
##
|
1182
|
-
# Get
|
2757
|
+
# Get ProvisioningConfig by name.
|
1183
2758
|
#
|
1184
|
-
# @overload
|
1185
|
-
# Pass arguments to `
|
1186
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
2759
|
+
# @overload get_provisioning_config(request, options = nil)
|
2760
|
+
# Pass arguments to `get_provisioning_config` via a request object, either of type
|
2761
|
+
# {::Google::Cloud::BareMetalSolution::V2::GetProvisioningConfigRequest} or an equivalent Hash.
|
1187
2762
|
#
|
1188
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
2763
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::GetProvisioningConfigRequest, ::Hash]
|
1189
2764
|
# A request object representing the call parameters. Required. To specify no
|
1190
2765
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1191
2766
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1192
2767
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1193
2768
|
#
|
1194
|
-
# @overload
|
1195
|
-
# Pass arguments to `
|
2769
|
+
# @overload get_provisioning_config(name: nil)
|
2770
|
+
# Pass arguments to `get_provisioning_config` via keyword arguments. Note that at
|
1196
2771
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1197
2772
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1198
2773
|
#
|
1199
2774
|
# @param name [::String]
|
1200
|
-
# Required. Name of the
|
2775
|
+
# Required. Name of the ProvisioningConfig.
|
1201
2776
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1202
|
-
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::
|
2777
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
|
1203
2778
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1204
2779
|
#
|
1205
|
-
# @return [::Google::Cloud::BareMetalSolution::V2::
|
2780
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
|
1206
2781
|
#
|
1207
2782
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1208
|
-
def
|
2783
|
+
def get_provisioning_config request, options = nil
|
1209
2784
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1210
2785
|
|
1211
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
2786
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::GetProvisioningConfigRequest
|
1212
2787
|
|
1213
2788
|
# Converts hash and nil to an options object
|
1214
2789
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1215
2790
|
|
1216
2791
|
# Customize the options with defaults
|
1217
|
-
call_metadata = @config.rpcs.
|
2792
|
+
call_metadata = @config.rpcs.get_provisioning_config.metadata.to_h
|
1218
2793
|
|
1219
2794
|
# Set x-goog-api-client and x-goog-user-project headers
|
1220
2795
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -1224,15 +2799,15 @@ module Google
|
|
1224
2799
|
|
1225
2800
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1226
2801
|
|
1227
|
-
options.apply_defaults timeout: @config.rpcs.
|
2802
|
+
options.apply_defaults timeout: @config.rpcs.get_provisioning_config.timeout,
|
1228
2803
|
metadata: call_metadata,
|
1229
|
-
retry_policy: @config.rpcs.
|
2804
|
+
retry_policy: @config.rpcs.get_provisioning_config.retry_policy
|
1230
2805
|
|
1231
2806
|
options.apply_defaults timeout: @config.timeout,
|
1232
2807
|
metadata: @config.metadata,
|
1233
2808
|
retry_policy: @config.retry_policy
|
1234
2809
|
|
1235
|
-
@bare_metal_solution_stub.
|
2810
|
+
@bare_metal_solution_stub.get_provisioning_config request, options do |result, operation|
|
1236
2811
|
yield result, operation if block_given?
|
1237
2812
|
return result
|
1238
2813
|
end
|
@@ -1241,47 +2816,48 @@ module Google
|
|
1241
2816
|
end
|
1242
2817
|
|
1243
2818
|
##
|
1244
|
-
#
|
2819
|
+
# Create new ProvisioningConfig.
|
1245
2820
|
#
|
1246
|
-
# @overload
|
1247
|
-
# Pass arguments to `
|
1248
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
2821
|
+
# @overload create_provisioning_config(request, options = nil)
|
2822
|
+
# Pass arguments to `create_provisioning_config` via a request object, either of type
|
2823
|
+
# {::Google::Cloud::BareMetalSolution::V2::CreateProvisioningConfigRequest} or an equivalent Hash.
|
1249
2824
|
#
|
1250
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
2825
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::CreateProvisioningConfigRequest, ::Hash]
|
1251
2826
|
# A request object representing the call parameters. Required. To specify no
|
1252
2827
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1253
2828
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1254
2829
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1255
2830
|
#
|
1256
|
-
# @overload
|
1257
|
-
# Pass arguments to `
|
2831
|
+
# @overload create_provisioning_config(parent: nil, provisioning_config: nil, email: nil)
|
2832
|
+
# Pass arguments to `create_provisioning_config` via keyword arguments. Note that at
|
1258
2833
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1259
2834
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1260
2835
|
#
|
1261
2836
|
# @param parent [::String]
|
1262
|
-
# Required.
|
1263
|
-
#
|
1264
|
-
#
|
1265
|
-
#
|
1266
|
-
# @param
|
1267
|
-
#
|
2837
|
+
# Required. The parent project and location containing the
|
2838
|
+
# ProvisioningConfig.
|
2839
|
+
# @param provisioning_config [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig, ::Hash]
|
2840
|
+
# Required. The ProvisioningConfig to create.
|
2841
|
+
# @param email [::String]
|
2842
|
+
# Optional. Email provided to send a confirmation with provisioning config
|
2843
|
+
# to.
|
1268
2844
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1269
|
-
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::
|
2845
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
|
1270
2846
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1271
2847
|
#
|
1272
|
-
# @return [::Google::Cloud::BareMetalSolution::V2::
|
2848
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
|
1273
2849
|
#
|
1274
2850
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1275
|
-
def
|
2851
|
+
def create_provisioning_config request, options = nil
|
1276
2852
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1277
2853
|
|
1278
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
2854
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::CreateProvisioningConfigRequest
|
1279
2855
|
|
1280
2856
|
# Converts hash and nil to an options object
|
1281
2857
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1282
2858
|
|
1283
2859
|
# Customize the options with defaults
|
1284
|
-
call_metadata = @config.rpcs.
|
2860
|
+
call_metadata = @config.rpcs.create_provisioning_config.metadata.to_h
|
1285
2861
|
|
1286
2862
|
# Set x-goog-api-client and x-goog-user-project headers
|
1287
2863
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -1291,15 +2867,15 @@ module Google
|
|
1291
2867
|
|
1292
2868
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1293
2869
|
|
1294
|
-
options.apply_defaults timeout: @config.rpcs.
|
2870
|
+
options.apply_defaults timeout: @config.rpcs.create_provisioning_config.timeout,
|
1295
2871
|
metadata: call_metadata,
|
1296
|
-
retry_policy: @config.rpcs.
|
2872
|
+
retry_policy: @config.rpcs.create_provisioning_config.retry_policy
|
1297
2873
|
|
1298
2874
|
options.apply_defaults timeout: @config.timeout,
|
1299
2875
|
metadata: @config.metadata,
|
1300
2876
|
retry_policy: @config.retry_policy
|
1301
2877
|
|
1302
|
-
@bare_metal_solution_stub.
|
2878
|
+
@bare_metal_solution_stub.create_provisioning_config request, options do |result, operation|
|
1303
2879
|
yield result, operation if block_given?
|
1304
2880
|
return result
|
1305
2881
|
end
|
@@ -1308,42 +2884,47 @@ module Google
|
|
1308
2884
|
end
|
1309
2885
|
|
1310
2886
|
##
|
1311
|
-
#
|
2887
|
+
# Update existing ProvisioningConfig.
|
1312
2888
|
#
|
1313
|
-
# @overload
|
1314
|
-
# Pass arguments to `
|
1315
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
2889
|
+
# @overload update_provisioning_config(request, options = nil)
|
2890
|
+
# Pass arguments to `update_provisioning_config` via a request object, either of type
|
2891
|
+
# {::Google::Cloud::BareMetalSolution::V2::UpdateProvisioningConfigRequest} or an equivalent Hash.
|
1316
2892
|
#
|
1317
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
2893
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::UpdateProvisioningConfigRequest, ::Hash]
|
1318
2894
|
# A request object representing the call parameters. Required. To specify no
|
1319
2895
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1320
2896
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1321
2897
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1322
2898
|
#
|
1323
|
-
# @overload
|
1324
|
-
# Pass arguments to `
|
2899
|
+
# @overload update_provisioning_config(provisioning_config: nil, update_mask: nil, email: nil)
|
2900
|
+
# Pass arguments to `update_provisioning_config` via keyword arguments. Note that at
|
1325
2901
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1326
2902
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1327
2903
|
#
|
1328
|
-
# @param
|
1329
|
-
# Required.
|
2904
|
+
# @param provisioning_config [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig, ::Hash]
|
2905
|
+
# Required. The ProvisioningConfig to update.
|
2906
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2907
|
+
# Required. The list of fields to update.
|
2908
|
+
# @param email [::String]
|
2909
|
+
# Optional. Email provided to send a confirmation with provisioning config
|
2910
|
+
# to.
|
1330
2911
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1331
|
-
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::
|
2912
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
|
1332
2913
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1333
2914
|
#
|
1334
|
-
# @return [::Google::Cloud::BareMetalSolution::V2::
|
2915
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig]
|
1335
2916
|
#
|
1336
2917
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1337
|
-
def
|
2918
|
+
def update_provisioning_config request, options = nil
|
1338
2919
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1339
2920
|
|
1340
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
2921
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::UpdateProvisioningConfigRequest
|
1341
2922
|
|
1342
2923
|
# Converts hash and nil to an options object
|
1343
2924
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1344
2925
|
|
1345
2926
|
# Customize the options with defaults
|
1346
|
-
call_metadata = @config.rpcs.
|
2927
|
+
call_metadata = @config.rpcs.update_provisioning_config.metadata.to_h
|
1347
2928
|
|
1348
2929
|
# Set x-goog-api-client and x-goog-user-project headers
|
1349
2930
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -1353,15 +2934,15 @@ module Google
|
|
1353
2934
|
|
1354
2935
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1355
2936
|
|
1356
|
-
options.apply_defaults timeout: @config.rpcs.
|
2937
|
+
options.apply_defaults timeout: @config.rpcs.update_provisioning_config.timeout,
|
1357
2938
|
metadata: call_metadata,
|
1358
|
-
retry_policy: @config.rpcs.
|
2939
|
+
retry_policy: @config.rpcs.update_provisioning_config.retry_policy
|
1359
2940
|
|
1360
2941
|
options.apply_defaults timeout: @config.timeout,
|
1361
2942
|
metadata: @config.metadata,
|
1362
2943
|
retry_policy: @config.retry_policy
|
1363
2944
|
|
1364
|
-
@bare_metal_solution_stub.
|
2945
|
+
@bare_metal_solution_stub.update_provisioning_config request, options do |result, operation|
|
1365
2946
|
yield result, operation if block_given?
|
1366
2947
|
return result
|
1367
2948
|
end
|
@@ -1370,49 +2951,46 @@ module Google
|
|
1370
2951
|
end
|
1371
2952
|
|
1372
2953
|
##
|
1373
|
-
#
|
2954
|
+
# RenameNetwork sets a new name for a network.
|
2955
|
+
# Use with caution, previous names become immediately invalidated.
|
1374
2956
|
#
|
1375
|
-
# @overload
|
1376
|
-
# Pass arguments to `
|
1377
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
2957
|
+
# @overload rename_network(request, options = nil)
|
2958
|
+
# Pass arguments to `rename_network` via a request object, either of type
|
2959
|
+
# {::Google::Cloud::BareMetalSolution::V2::RenameNetworkRequest} or an equivalent Hash.
|
1378
2960
|
#
|
1379
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
2961
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::RenameNetworkRequest, ::Hash]
|
1380
2962
|
# A request object representing the call parameters. Required. To specify no
|
1381
2963
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1382
2964
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1383
2965
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1384
2966
|
#
|
1385
|
-
# @overload
|
1386
|
-
# Pass arguments to `
|
2967
|
+
# @overload rename_network(name: nil, new_network_id: nil)
|
2968
|
+
# Pass arguments to `rename_network` via keyword arguments. Note that at
|
1387
2969
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1388
2970
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1389
2971
|
#
|
1390
|
-
# @param
|
1391
|
-
# Required.
|
1392
|
-
#
|
1393
|
-
#
|
1394
|
-
#
|
1395
|
-
# @param page_token [::String]
|
1396
|
-
# A token identifying a page of results from the server.
|
1397
|
-
# @param filter [::String]
|
1398
|
-
# List filter.
|
2972
|
+
# @param name [::String]
|
2973
|
+
# Required. The `name` field is used to identify the network.
|
2974
|
+
# Format: projects/\\{project}/locations/\\{location}/networks/\\{network}
|
2975
|
+
# @param new_network_id [::String]
|
2976
|
+
# Required. The new `id` of the network.
|
1399
2977
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1400
|
-
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::
|
2978
|
+
# @yieldparam result [::Google::Cloud::BareMetalSolution::V2::Network]
|
1401
2979
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1402
2980
|
#
|
1403
|
-
# @return [::Google::Cloud::BareMetalSolution::V2::
|
2981
|
+
# @return [::Google::Cloud::BareMetalSolution::V2::Network]
|
1404
2982
|
#
|
1405
2983
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1406
|
-
def
|
2984
|
+
def rename_network request, options = nil
|
1407
2985
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1408
2986
|
|
1409
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
2987
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::RenameNetworkRequest
|
1410
2988
|
|
1411
2989
|
# Converts hash and nil to an options object
|
1412
2990
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1413
2991
|
|
1414
2992
|
# Customize the options with defaults
|
1415
|
-
call_metadata = @config.rpcs.
|
2993
|
+
call_metadata = @config.rpcs.rename_network.metadata.to_h
|
1416
2994
|
|
1417
2995
|
# Set x-goog-api-client and x-goog-user-project headers
|
1418
2996
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -1422,15 +3000,15 @@ module Google
|
|
1422
3000
|
|
1423
3001
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1424
3002
|
|
1425
|
-
options.apply_defaults timeout: @config.rpcs.
|
3003
|
+
options.apply_defaults timeout: @config.rpcs.rename_network.timeout,
|
1426
3004
|
metadata: call_metadata,
|
1427
|
-
retry_policy: @config.rpcs.
|
3005
|
+
retry_policy: @config.rpcs.rename_network.retry_policy
|
1428
3006
|
|
1429
3007
|
options.apply_defaults timeout: @config.timeout,
|
1430
3008
|
metadata: @config.metadata,
|
1431
3009
|
retry_policy: @config.retry_policy
|
1432
3010
|
|
1433
|
-
@bare_metal_solution_stub.
|
3011
|
+
@bare_metal_solution_stub.rename_network request, options do |result, operation|
|
1434
3012
|
yield result, operation if block_given?
|
1435
3013
|
return result
|
1436
3014
|
end
|
@@ -1439,49 +3017,49 @@ module Google
|
|
1439
3017
|
end
|
1440
3018
|
|
1441
3019
|
##
|
1442
|
-
#
|
3020
|
+
# Retrieves the list of OS images which are currently approved.
|
1443
3021
|
#
|
1444
|
-
# @overload
|
1445
|
-
# Pass arguments to `
|
1446
|
-
# {::Google::Cloud::BareMetalSolution::V2::
|
3022
|
+
# @overload list_os_images(request, options = nil)
|
3023
|
+
# Pass arguments to `list_os_images` via a request object, either of type
|
3024
|
+
# {::Google::Cloud::BareMetalSolution::V2::ListOSImagesRequest} or an equivalent Hash.
|
1447
3025
|
#
|
1448
|
-
# @param request [::Google::Cloud::BareMetalSolution::V2::
|
3026
|
+
# @param request [::Google::Cloud::BareMetalSolution::V2::ListOSImagesRequest, ::Hash]
|
1449
3027
|
# A request object representing the call parameters. Required. To specify no
|
1450
3028
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1451
3029
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1452
3030
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1453
3031
|
#
|
1454
|
-
# @overload
|
1455
|
-
# Pass arguments to `
|
3032
|
+
# @overload list_os_images(parent: nil, page_size: nil, page_token: nil)
|
3033
|
+
# Pass arguments to `list_os_images` via keyword arguments. Note that at
|
1456
3034
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1457
3035
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1458
3036
|
#
|
1459
|
-
# @param
|
1460
|
-
# Required.
|
1461
|
-
#
|
1462
|
-
#
|
1463
|
-
#
|
1464
|
-
#
|
1465
|
-
#
|
1466
|
-
#
|
1467
|
-
#
|
3037
|
+
# @param parent [::String]
|
3038
|
+
# Required. Parent value for ListProvisioningQuotasRequest.
|
3039
|
+
# @param page_size [::Integer]
|
3040
|
+
# Requested page size. The server might return fewer items than requested.
|
3041
|
+
# If unspecified, server will pick an appropriate default.
|
3042
|
+
# Notice that page_size field is not supported and won't be respected in
|
3043
|
+
# the API request for now, will be updated when pagination is supported.
|
3044
|
+
# @param page_token [::String]
|
3045
|
+
# A token identifying a page of results from the server.
|
1468
3046
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1469
|
-
# @yieldparam result [::Gapic::
|
3047
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::OSImage>]
|
1470
3048
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1471
3049
|
#
|
1472
|
-
# @return [::Gapic::
|
3050
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BareMetalSolution::V2::OSImage>]
|
1473
3051
|
#
|
1474
3052
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1475
|
-
def
|
3053
|
+
def list_os_images request, options = nil
|
1476
3054
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1477
3055
|
|
1478
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::
|
3056
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BareMetalSolution::V2::ListOSImagesRequest
|
1479
3057
|
|
1480
3058
|
# Converts hash and nil to an options object
|
1481
3059
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1482
3060
|
|
1483
3061
|
# Customize the options with defaults
|
1484
|
-
call_metadata = @config.rpcs.
|
3062
|
+
call_metadata = @config.rpcs.list_os_images.metadata.to_h
|
1485
3063
|
|
1486
3064
|
# Set x-goog-api-client and x-goog-user-project headers
|
1487
3065
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -1491,16 +3069,16 @@ module Google
|
|
1491
3069
|
|
1492
3070
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1493
3071
|
|
1494
|
-
options.apply_defaults timeout: @config.rpcs.
|
3072
|
+
options.apply_defaults timeout: @config.rpcs.list_os_images.timeout,
|
1495
3073
|
metadata: call_metadata,
|
1496
|
-
retry_policy: @config.rpcs.
|
3074
|
+
retry_policy: @config.rpcs.list_os_images.retry_policy
|
1497
3075
|
|
1498
3076
|
options.apply_defaults timeout: @config.timeout,
|
1499
3077
|
metadata: @config.metadata,
|
1500
3078
|
retry_policy: @config.retry_policy
|
1501
3079
|
|
1502
|
-
@bare_metal_solution_stub.
|
1503
|
-
result = ::Gapic::
|
3080
|
+
@bare_metal_solution_stub.list_os_images request, options do |result, operation|
|
3081
|
+
result = ::Gapic::Rest::PagedEnumerable.new @bare_metal_solution_stub, :list_os_images, "os_images", request, result, options
|
1504
3082
|
yield result, operation if block_given?
|
1505
3083
|
return result
|
1506
3084
|
end
|
@@ -1656,6 +3234,11 @@ module Google
|
|
1656
3234
|
#
|
1657
3235
|
attr_reader :update_instance
|
1658
3236
|
##
|
3237
|
+
# RPC-specific configuration for `rename_instance`
|
3238
|
+
# @return [::Gapic::Config::Method]
|
3239
|
+
#
|
3240
|
+
attr_reader :rename_instance
|
3241
|
+
##
|
1659
3242
|
# RPC-specific configuration for `reset_instance`
|
1660
3243
|
# @return [::Gapic::Config::Method]
|
1661
3244
|
#
|
@@ -1671,11 +3254,36 @@ module Google
|
|
1671
3254
|
#
|
1672
3255
|
attr_reader :stop_instance
|
1673
3256
|
##
|
3257
|
+
# RPC-specific configuration for `enable_interactive_serial_console`
|
3258
|
+
# @return [::Gapic::Config::Method]
|
3259
|
+
#
|
3260
|
+
attr_reader :enable_interactive_serial_console
|
3261
|
+
##
|
3262
|
+
# RPC-specific configuration for `disable_interactive_serial_console`
|
3263
|
+
# @return [::Gapic::Config::Method]
|
3264
|
+
#
|
3265
|
+
attr_reader :disable_interactive_serial_console
|
3266
|
+
##
|
1674
3267
|
# RPC-specific configuration for `detach_lun`
|
1675
3268
|
# @return [::Gapic::Config::Method]
|
1676
3269
|
#
|
1677
3270
|
attr_reader :detach_lun
|
1678
3271
|
##
|
3272
|
+
# RPC-specific configuration for `list_ssh_keys`
|
3273
|
+
# @return [::Gapic::Config::Method]
|
3274
|
+
#
|
3275
|
+
attr_reader :list_ssh_keys
|
3276
|
+
##
|
3277
|
+
# RPC-specific configuration for `create_ssh_key`
|
3278
|
+
# @return [::Gapic::Config::Method]
|
3279
|
+
#
|
3280
|
+
attr_reader :create_ssh_key
|
3281
|
+
##
|
3282
|
+
# RPC-specific configuration for `delete_ssh_key`
|
3283
|
+
# @return [::Gapic::Config::Method]
|
3284
|
+
#
|
3285
|
+
attr_reader :delete_ssh_key
|
3286
|
+
##
|
1679
3287
|
# RPC-specific configuration for `list_volumes`
|
1680
3288
|
# @return [::Gapic::Config::Method]
|
1681
3289
|
#
|
@@ -1691,6 +3299,16 @@ module Google
|
|
1691
3299
|
#
|
1692
3300
|
attr_reader :update_volume
|
1693
3301
|
##
|
3302
|
+
# RPC-specific configuration for `rename_volume`
|
3303
|
+
# @return [::Gapic::Config::Method]
|
3304
|
+
#
|
3305
|
+
attr_reader :rename_volume
|
3306
|
+
##
|
3307
|
+
# RPC-specific configuration for `evict_volume`
|
3308
|
+
# @return [::Gapic::Config::Method]
|
3309
|
+
#
|
3310
|
+
attr_reader :evict_volume
|
3311
|
+
##
|
1694
3312
|
# RPC-specific configuration for `resize_volume`
|
1695
3313
|
# @return [::Gapic::Config::Method]
|
1696
3314
|
#
|
@@ -1716,6 +3334,31 @@ module Google
|
|
1716
3334
|
#
|
1717
3335
|
attr_reader :update_network
|
1718
3336
|
##
|
3337
|
+
# RPC-specific configuration for `create_volume_snapshot`
|
3338
|
+
# @return [::Gapic::Config::Method]
|
3339
|
+
#
|
3340
|
+
attr_reader :create_volume_snapshot
|
3341
|
+
##
|
3342
|
+
# RPC-specific configuration for `restore_volume_snapshot`
|
3343
|
+
# @return [::Gapic::Config::Method]
|
3344
|
+
#
|
3345
|
+
attr_reader :restore_volume_snapshot
|
3346
|
+
##
|
3347
|
+
# RPC-specific configuration for `delete_volume_snapshot`
|
3348
|
+
# @return [::Gapic::Config::Method]
|
3349
|
+
#
|
3350
|
+
attr_reader :delete_volume_snapshot
|
3351
|
+
##
|
3352
|
+
# RPC-specific configuration for `get_volume_snapshot`
|
3353
|
+
# @return [::Gapic::Config::Method]
|
3354
|
+
#
|
3355
|
+
attr_reader :get_volume_snapshot
|
3356
|
+
##
|
3357
|
+
# RPC-specific configuration for `list_volume_snapshots`
|
3358
|
+
# @return [::Gapic::Config::Method]
|
3359
|
+
#
|
3360
|
+
attr_reader :list_volume_snapshots
|
3361
|
+
##
|
1719
3362
|
# RPC-specific configuration for `get_lun`
|
1720
3363
|
# @return [::Gapic::Config::Method]
|
1721
3364
|
#
|
@@ -1726,6 +3369,11 @@ module Google
|
|
1726
3369
|
#
|
1727
3370
|
attr_reader :list_luns
|
1728
3371
|
##
|
3372
|
+
# RPC-specific configuration for `evict_lun`
|
3373
|
+
# @return [::Gapic::Config::Method]
|
3374
|
+
#
|
3375
|
+
attr_reader :evict_lun
|
3376
|
+
##
|
1729
3377
|
# RPC-specific configuration for `get_nfs_share`
|
1730
3378
|
# @return [::Gapic::Config::Method]
|
1731
3379
|
#
|
@@ -1740,6 +3388,56 @@ module Google
|
|
1740
3388
|
# @return [::Gapic::Config::Method]
|
1741
3389
|
#
|
1742
3390
|
attr_reader :update_nfs_share
|
3391
|
+
##
|
3392
|
+
# RPC-specific configuration for `create_nfs_share`
|
3393
|
+
# @return [::Gapic::Config::Method]
|
3394
|
+
#
|
3395
|
+
attr_reader :create_nfs_share
|
3396
|
+
##
|
3397
|
+
# RPC-specific configuration for `rename_nfs_share`
|
3398
|
+
# @return [::Gapic::Config::Method]
|
3399
|
+
#
|
3400
|
+
attr_reader :rename_nfs_share
|
3401
|
+
##
|
3402
|
+
# RPC-specific configuration for `delete_nfs_share`
|
3403
|
+
# @return [::Gapic::Config::Method]
|
3404
|
+
#
|
3405
|
+
attr_reader :delete_nfs_share
|
3406
|
+
##
|
3407
|
+
# RPC-specific configuration for `list_provisioning_quotas`
|
3408
|
+
# @return [::Gapic::Config::Method]
|
3409
|
+
#
|
3410
|
+
attr_reader :list_provisioning_quotas
|
3411
|
+
##
|
3412
|
+
# RPC-specific configuration for `submit_provisioning_config`
|
3413
|
+
# @return [::Gapic::Config::Method]
|
3414
|
+
#
|
3415
|
+
attr_reader :submit_provisioning_config
|
3416
|
+
##
|
3417
|
+
# RPC-specific configuration for `get_provisioning_config`
|
3418
|
+
# @return [::Gapic::Config::Method]
|
3419
|
+
#
|
3420
|
+
attr_reader :get_provisioning_config
|
3421
|
+
##
|
3422
|
+
# RPC-specific configuration for `create_provisioning_config`
|
3423
|
+
# @return [::Gapic::Config::Method]
|
3424
|
+
#
|
3425
|
+
attr_reader :create_provisioning_config
|
3426
|
+
##
|
3427
|
+
# RPC-specific configuration for `update_provisioning_config`
|
3428
|
+
# @return [::Gapic::Config::Method]
|
3429
|
+
#
|
3430
|
+
attr_reader :update_provisioning_config
|
3431
|
+
##
|
3432
|
+
# RPC-specific configuration for `rename_network`
|
3433
|
+
# @return [::Gapic::Config::Method]
|
3434
|
+
#
|
3435
|
+
attr_reader :rename_network
|
3436
|
+
##
|
3437
|
+
# RPC-specific configuration for `list_os_images`
|
3438
|
+
# @return [::Gapic::Config::Method]
|
3439
|
+
#
|
3440
|
+
attr_reader :list_os_images
|
1743
3441
|
|
1744
3442
|
# @private
|
1745
3443
|
def initialize parent_rpcs = nil
|
@@ -1749,20 +3447,36 @@ module Google
|
|
1749
3447
|
@get_instance = ::Gapic::Config::Method.new get_instance_config
|
1750
3448
|
update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
|
1751
3449
|
@update_instance = ::Gapic::Config::Method.new update_instance_config
|
3450
|
+
rename_instance_config = parent_rpcs.rename_instance if parent_rpcs.respond_to? :rename_instance
|
3451
|
+
@rename_instance = ::Gapic::Config::Method.new rename_instance_config
|
1752
3452
|
reset_instance_config = parent_rpcs.reset_instance if parent_rpcs.respond_to? :reset_instance
|
1753
3453
|
@reset_instance = ::Gapic::Config::Method.new reset_instance_config
|
1754
3454
|
start_instance_config = parent_rpcs.start_instance if parent_rpcs.respond_to? :start_instance
|
1755
3455
|
@start_instance = ::Gapic::Config::Method.new start_instance_config
|
1756
3456
|
stop_instance_config = parent_rpcs.stop_instance if parent_rpcs.respond_to? :stop_instance
|
1757
3457
|
@stop_instance = ::Gapic::Config::Method.new stop_instance_config
|
3458
|
+
enable_interactive_serial_console_config = parent_rpcs.enable_interactive_serial_console if parent_rpcs.respond_to? :enable_interactive_serial_console
|
3459
|
+
@enable_interactive_serial_console = ::Gapic::Config::Method.new enable_interactive_serial_console_config
|
3460
|
+
disable_interactive_serial_console_config = parent_rpcs.disable_interactive_serial_console if parent_rpcs.respond_to? :disable_interactive_serial_console
|
3461
|
+
@disable_interactive_serial_console = ::Gapic::Config::Method.new disable_interactive_serial_console_config
|
1758
3462
|
detach_lun_config = parent_rpcs.detach_lun if parent_rpcs.respond_to? :detach_lun
|
1759
3463
|
@detach_lun = ::Gapic::Config::Method.new detach_lun_config
|
3464
|
+
list_ssh_keys_config = parent_rpcs.list_ssh_keys if parent_rpcs.respond_to? :list_ssh_keys
|
3465
|
+
@list_ssh_keys = ::Gapic::Config::Method.new list_ssh_keys_config
|
3466
|
+
create_ssh_key_config = parent_rpcs.create_ssh_key if parent_rpcs.respond_to? :create_ssh_key
|
3467
|
+
@create_ssh_key = ::Gapic::Config::Method.new create_ssh_key_config
|
3468
|
+
delete_ssh_key_config = parent_rpcs.delete_ssh_key if parent_rpcs.respond_to? :delete_ssh_key
|
3469
|
+
@delete_ssh_key = ::Gapic::Config::Method.new delete_ssh_key_config
|
1760
3470
|
list_volumes_config = parent_rpcs.list_volumes if parent_rpcs.respond_to? :list_volumes
|
1761
3471
|
@list_volumes = ::Gapic::Config::Method.new list_volumes_config
|
1762
3472
|
get_volume_config = parent_rpcs.get_volume if parent_rpcs.respond_to? :get_volume
|
1763
3473
|
@get_volume = ::Gapic::Config::Method.new get_volume_config
|
1764
3474
|
update_volume_config = parent_rpcs.update_volume if parent_rpcs.respond_to? :update_volume
|
1765
3475
|
@update_volume = ::Gapic::Config::Method.new update_volume_config
|
3476
|
+
rename_volume_config = parent_rpcs.rename_volume if parent_rpcs.respond_to? :rename_volume
|
3477
|
+
@rename_volume = ::Gapic::Config::Method.new rename_volume_config
|
3478
|
+
evict_volume_config = parent_rpcs.evict_volume if parent_rpcs.respond_to? :evict_volume
|
3479
|
+
@evict_volume = ::Gapic::Config::Method.new evict_volume_config
|
1766
3480
|
resize_volume_config = parent_rpcs.resize_volume if parent_rpcs.respond_to? :resize_volume
|
1767
3481
|
@resize_volume = ::Gapic::Config::Method.new resize_volume_config
|
1768
3482
|
list_networks_config = parent_rpcs.list_networks if parent_rpcs.respond_to? :list_networks
|
@@ -1773,16 +3487,48 @@ module Google
|
|
1773
3487
|
@get_network = ::Gapic::Config::Method.new get_network_config
|
1774
3488
|
update_network_config = parent_rpcs.update_network if parent_rpcs.respond_to? :update_network
|
1775
3489
|
@update_network = ::Gapic::Config::Method.new update_network_config
|
3490
|
+
create_volume_snapshot_config = parent_rpcs.create_volume_snapshot if parent_rpcs.respond_to? :create_volume_snapshot
|
3491
|
+
@create_volume_snapshot = ::Gapic::Config::Method.new create_volume_snapshot_config
|
3492
|
+
restore_volume_snapshot_config = parent_rpcs.restore_volume_snapshot if parent_rpcs.respond_to? :restore_volume_snapshot
|
3493
|
+
@restore_volume_snapshot = ::Gapic::Config::Method.new restore_volume_snapshot_config
|
3494
|
+
delete_volume_snapshot_config = parent_rpcs.delete_volume_snapshot if parent_rpcs.respond_to? :delete_volume_snapshot
|
3495
|
+
@delete_volume_snapshot = ::Gapic::Config::Method.new delete_volume_snapshot_config
|
3496
|
+
get_volume_snapshot_config = parent_rpcs.get_volume_snapshot if parent_rpcs.respond_to? :get_volume_snapshot
|
3497
|
+
@get_volume_snapshot = ::Gapic::Config::Method.new get_volume_snapshot_config
|
3498
|
+
list_volume_snapshots_config = parent_rpcs.list_volume_snapshots if parent_rpcs.respond_to? :list_volume_snapshots
|
3499
|
+
@list_volume_snapshots = ::Gapic::Config::Method.new list_volume_snapshots_config
|
1776
3500
|
get_lun_config = parent_rpcs.get_lun if parent_rpcs.respond_to? :get_lun
|
1777
3501
|
@get_lun = ::Gapic::Config::Method.new get_lun_config
|
1778
3502
|
list_luns_config = parent_rpcs.list_luns if parent_rpcs.respond_to? :list_luns
|
1779
3503
|
@list_luns = ::Gapic::Config::Method.new list_luns_config
|
3504
|
+
evict_lun_config = parent_rpcs.evict_lun if parent_rpcs.respond_to? :evict_lun
|
3505
|
+
@evict_lun = ::Gapic::Config::Method.new evict_lun_config
|
1780
3506
|
get_nfs_share_config = parent_rpcs.get_nfs_share if parent_rpcs.respond_to? :get_nfs_share
|
1781
3507
|
@get_nfs_share = ::Gapic::Config::Method.new get_nfs_share_config
|
1782
3508
|
list_nfs_shares_config = parent_rpcs.list_nfs_shares if parent_rpcs.respond_to? :list_nfs_shares
|
1783
3509
|
@list_nfs_shares = ::Gapic::Config::Method.new list_nfs_shares_config
|
1784
3510
|
update_nfs_share_config = parent_rpcs.update_nfs_share if parent_rpcs.respond_to? :update_nfs_share
|
1785
3511
|
@update_nfs_share = ::Gapic::Config::Method.new update_nfs_share_config
|
3512
|
+
create_nfs_share_config = parent_rpcs.create_nfs_share if parent_rpcs.respond_to? :create_nfs_share
|
3513
|
+
@create_nfs_share = ::Gapic::Config::Method.new create_nfs_share_config
|
3514
|
+
rename_nfs_share_config = parent_rpcs.rename_nfs_share if parent_rpcs.respond_to? :rename_nfs_share
|
3515
|
+
@rename_nfs_share = ::Gapic::Config::Method.new rename_nfs_share_config
|
3516
|
+
delete_nfs_share_config = parent_rpcs.delete_nfs_share if parent_rpcs.respond_to? :delete_nfs_share
|
3517
|
+
@delete_nfs_share = ::Gapic::Config::Method.new delete_nfs_share_config
|
3518
|
+
list_provisioning_quotas_config = parent_rpcs.list_provisioning_quotas if parent_rpcs.respond_to? :list_provisioning_quotas
|
3519
|
+
@list_provisioning_quotas = ::Gapic::Config::Method.new list_provisioning_quotas_config
|
3520
|
+
submit_provisioning_config_config = parent_rpcs.submit_provisioning_config if parent_rpcs.respond_to? :submit_provisioning_config
|
3521
|
+
@submit_provisioning_config = ::Gapic::Config::Method.new submit_provisioning_config_config
|
3522
|
+
get_provisioning_config_config = parent_rpcs.get_provisioning_config if parent_rpcs.respond_to? :get_provisioning_config
|
3523
|
+
@get_provisioning_config = ::Gapic::Config::Method.new get_provisioning_config_config
|
3524
|
+
create_provisioning_config_config = parent_rpcs.create_provisioning_config if parent_rpcs.respond_to? :create_provisioning_config
|
3525
|
+
@create_provisioning_config = ::Gapic::Config::Method.new create_provisioning_config_config
|
3526
|
+
update_provisioning_config_config = parent_rpcs.update_provisioning_config if parent_rpcs.respond_to? :update_provisioning_config
|
3527
|
+
@update_provisioning_config = ::Gapic::Config::Method.new update_provisioning_config_config
|
3528
|
+
rename_network_config = parent_rpcs.rename_network if parent_rpcs.respond_to? :rename_network
|
3529
|
+
@rename_network = ::Gapic::Config::Method.new rename_network_config
|
3530
|
+
list_os_images_config = parent_rpcs.list_os_images if parent_rpcs.respond_to? :list_os_images
|
3531
|
+
@list_os_images = ::Gapic::Config::Method.new list_os_images_config
|
1786
3532
|
|
1787
3533
|
yield self if block_given?
|
1788
3534
|
end
|