Reference documentation and code samples for the Bare Metal Solution V2 API class Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::ServiceStub.
REST service stub for the BareMetalSolution service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#detach_lun
def detach_lun(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the detach_lun REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::DetachLunRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_instance
def get_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::Instance
Baseline implementation for the get_instance REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::GetInstanceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::Instance)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::BareMetalSolution::V2::Instance) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_lun
def get_lun(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::Lun
Baseline implementation for the get_lun REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::GetLunRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::Lun)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::BareMetalSolution::V2::Lun) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_network
def get_network(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::Network
Baseline implementation for the get_network REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::GetNetworkRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::Network)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::BareMetalSolution::V2::Network) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_nfs_share
def get_nfs_share(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::NfsShare
Baseline implementation for the get_nfs_share REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::GetNfsShareRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::NfsShare)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::BareMetalSolution::V2::NfsShare) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_volume
def get_volume(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::Volume
Baseline implementation for the get_volume REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::GetVolumeRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::Volume)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::BareMetalSolution::V2::Volume) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_instances
def list_instances(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse
Baseline implementation for the list_instances REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::ListInstancesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_luns
def list_luns(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ListLunsResponse
Baseline implementation for the list_luns REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::ListLunsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::ListLunsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::BareMetalSolution::V2::ListLunsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_network_usage
def list_network_usage(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse
Baseline implementation for the list_network_usage REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_networks
def list_networks(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse
Baseline implementation for the list_networks REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::ListNetworksRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_nfs_shares
def list_nfs_shares(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse
Baseline implementation for the list_nfs_shares REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::ListNfsSharesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_volumes
def list_volumes(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse
Baseline implementation for the list_volumes REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::ListVolumesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#reset_instance
def reset_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the reset_instance REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::ResetInstanceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#resize_volume
def resize_volume(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the resize_volume REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::ResizeVolumeRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#start_instance
def start_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the start_instance REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::StartInstanceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#stop_instance
def stop_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the stop_instance REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::StopInstanceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_instance
def update_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the update_instance REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::UpdateInstanceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_network
def update_network(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the update_network REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::UpdateNetworkRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_nfs_share
def update_nfs_share(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the update_nfs_share REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::UpdateNfsShareRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_volume
def update_volume(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the update_volume REST call
- request_pb (::Google::Cloud::BareMetalSolution::V2::UpdateVolumeRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)