Bare Metal Solution V2 API - Class Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::ServiceStub (v0.9.0)

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

#create_nfs_share

def create_nfs_share(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_nfs_share REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_provisioning_config

def create_provisioning_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig

Baseline implementation for the create_provisioning_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_ssh_key

def create_ssh_key(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::SSHKey

Baseline implementation for the create_ssh_key REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_volume_snapshot

def create_volume_snapshot(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot

Baseline implementation for the create_volume_snapshot REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_nfs_share

def delete_nfs_share(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_nfs_share REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_ssh_key

def delete_ssh_key(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_ssh_key REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_volume_snapshot

def delete_volume_snapshot(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_volume_snapshot REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#detach_lun

def detach_lun(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the detach_lun REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#disable_interactive_serial_console

def disable_interactive_serial_console(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the disable_interactive_serial_console REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#enable_interactive_serial_console

def enable_interactive_serial_console(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the enable_interactive_serial_console REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#evict_lun

def evict_lun(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the evict_lun REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#evict_volume

def evict_volume(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the evict_volume REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_provisioning_config

def get_provisioning_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig

Baseline implementation for the get_provisioning_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_volume_snapshot

def get_volume_snapshot(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::VolumeSnapshot

Baseline implementation for the get_volume_snapshot REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_instances

def list_instances(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse

Baseline implementation for the list_instances REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_os_images

def list_os_images(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ListOSImagesResponse

Baseline implementation for the list_os_images REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_provisioning_quotas

def list_provisioning_quotas(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ListProvisioningQuotasResponse

Baseline implementation for the list_provisioning_quotas REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_ssh_keys

def list_ssh_keys(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ListSSHKeysResponse

Baseline implementation for the list_ssh_keys REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_volume_snapshots

def list_volume_snapshots(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ListVolumeSnapshotsResponse

Baseline implementation for the list_volume_snapshots REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#logger

def logger(stub: false) -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#rename_instance

def rename_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::Instance

Baseline implementation for the rename_instance REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#rename_network

def rename_network(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::Network

Baseline implementation for the rename_network REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#rename_nfs_share

def rename_nfs_share(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::NfsShare

Baseline implementation for the rename_nfs_share REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#rename_volume

def rename_volume(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::Volume

Baseline implementation for the rename_volume REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#reset_instance

def reset_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the reset_instance REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#resize_volume

def resize_volume(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the resize_volume REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#restore_volume_snapshot

def restore_volume_snapshot(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the restore_volume_snapshot REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#start_instance

def start_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the start_instance REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#stop_instance

def stop_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the stop_instance REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#submit_provisioning_config

def submit_provisioning_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::SubmitProvisioningConfigResponse

Baseline implementation for the submit_provisioning_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_instance

def update_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_instance REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_network

def update_network(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_network REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_provisioning_config

def update_provisioning_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BareMetalSolution::V2::ProvisioningConfig

Baseline implementation for the update_provisioning_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_volume

def update_volume(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_volume REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)