Bare Metal Solution v2 API - Class BareMetalSolution.BareMetalSolutionBase (1.4.0)

[BindServiceMethod(typeof(BareMetalSolution), "BindService")]
public abstract class BareMetalSolution.BareMetalSolutionBase

Reference documentation and code samples for the Bare Metal Solution v2 API class BareMetalSolution.BareMetalSolutionBase.

Base class for server-side implementations of BareMetalSolution

Inheritance

object > BareMetalSolution.BareMetalSolutionBase

Namespace

Google.Cloud.BareMetalSolution.V2

Assembly

Google.Cloud.BareMetalSolution.V2.dll

Methods

CreateNfsShare(CreateNfsShareRequest, ServerCallContext)

public virtual Task<Operation> CreateNfsShare(CreateNfsShareRequest request, ServerCallContext context)

Create an NFS share.

Parameters
NameDescription
requestCreateNfsShareRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

CreateProvisioningConfig(CreateProvisioningConfigRequest, ServerCallContext)

public virtual Task<ProvisioningConfig> CreateProvisioningConfig(CreateProvisioningConfigRequest request, ServerCallContext context)

Create new ProvisioningConfig.

Parameters
NameDescription
requestCreateProvisioningConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskProvisioningConfig

The response to send back to the client (wrapped by a task).

CreateSSHKey(CreateSSHKeyRequest, ServerCallContext)

public virtual Task<SSHKey> CreateSSHKey(CreateSSHKeyRequest request, ServerCallContext context)

Register a public SSH key in the specified project for use with the interactive serial console feature.

Parameters
NameDescription
requestCreateSSHKeyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSSHKey

The response to send back to the client (wrapped by a task).

CreateVolumeSnapshot(CreateVolumeSnapshotRequest, ServerCallContext)

public virtual Task<VolumeSnapshot> CreateVolumeSnapshot(CreateVolumeSnapshotRequest request, ServerCallContext context)

Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume.

Parameters
NameDescription
requestCreateVolumeSnapshotRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskVolumeSnapshot

The response to send back to the client (wrapped by a task).

DeleteNfsShare(DeleteNfsShareRequest, ServerCallContext)

public virtual Task<Operation> DeleteNfsShare(DeleteNfsShareRequest request, ServerCallContext context)

Delete an NFS share. The underlying volume is automatically deleted.

Parameters
NameDescription
requestDeleteNfsShareRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteSSHKey(DeleteSSHKeyRequest, ServerCallContext)

public virtual Task<Empty> DeleteSSHKey(DeleteSSHKeyRequest request, ServerCallContext context)

Deletes a public SSH key registered in the specified project.

Parameters
NameDescription
requestDeleteSSHKeyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

DeleteVolumeSnapshot(DeleteVolumeSnapshotRequest, ServerCallContext)

public virtual Task<Empty> DeleteVolumeSnapshot(DeleteVolumeSnapshotRequest request, ServerCallContext context)

Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume.

Parameters
NameDescription
requestDeleteVolumeSnapshotRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

DetachLun(DetachLunRequest, ServerCallContext)

public virtual Task<Operation> DetachLun(DetachLunRequest request, ServerCallContext context)

Detach LUN from Instance.

Parameters
NameDescription
requestDetachLunRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

DisableInteractiveSerialConsole(DisableInteractiveSerialConsoleRequest, ServerCallContext)

public virtual Task<Operation> DisableInteractiveSerialConsole(DisableInteractiveSerialConsoleRequest request, ServerCallContext context)

Disable the interactive serial console feature on an instance.

Parameters
NameDescription
requestDisableInteractiveSerialConsoleRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

EnableInteractiveSerialConsole(EnableInteractiveSerialConsoleRequest, ServerCallContext)

public virtual Task<Operation> EnableInteractiveSerialConsole(EnableInteractiveSerialConsoleRequest request, ServerCallContext context)

Enable the interactive serial console feature on an instance.

Parameters
NameDescription
requestEnableInteractiveSerialConsoleRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

EvictLun(EvictLunRequest, ServerCallContext)

public virtual Task<Operation> EvictLun(EvictLunRequest request, ServerCallContext context)

Skips lun's cooloff and deletes it now. Lun must be in cooloff state.

Parameters
NameDescription
requestEvictLunRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

EvictVolume(EvictVolumeRequest, ServerCallContext)

public virtual Task<Operation> EvictVolume(EvictVolumeRequest request, ServerCallContext context)

Skips volume's cooloff and deletes it now. Volume must be in cooloff state.

Parameters
NameDescription
requestEvictVolumeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

GetInstance(GetInstanceRequest, ServerCallContext)

public virtual Task<Instance> GetInstance(GetInstanceRequest request, ServerCallContext context)

Get details about a single server.

Parameters
NameDescription
requestGetInstanceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskInstance

The response to send back to the client (wrapped by a task).

GetLun(GetLunRequest, ServerCallContext)

public virtual Task<Lun> GetLun(GetLunRequest request, ServerCallContext context)

Get details of a single storage logical unit number(LUN).

Parameters
NameDescription
requestGetLunRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskLun

The response to send back to the client (wrapped by a task).

GetNetwork(GetNetworkRequest, ServerCallContext)

public virtual Task<Network> GetNetwork(GetNetworkRequest request, ServerCallContext context)

Get details of a single network.

Parameters
NameDescription
requestGetNetworkRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskNetwork

The response to send back to the client (wrapped by a task).

GetNfsShare(GetNfsShareRequest, ServerCallContext)

public virtual Task<NfsShare> GetNfsShare(GetNfsShareRequest request, ServerCallContext context)

Get details of a single NFS share.

Parameters
NameDescription
requestGetNfsShareRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskNfsShare

The response to send back to the client (wrapped by a task).

GetProvisioningConfig(GetProvisioningConfigRequest, ServerCallContext)

public virtual Task<ProvisioningConfig> GetProvisioningConfig(GetProvisioningConfigRequest request, ServerCallContext context)

Get ProvisioningConfig by name.

Parameters
NameDescription
requestGetProvisioningConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskProvisioningConfig

The response to send back to the client (wrapped by a task).

GetVolume(GetVolumeRequest, ServerCallContext)

public virtual Task<Volume> GetVolume(GetVolumeRequest request, ServerCallContext context)

Get details of a single storage volume.

Parameters
NameDescription
requestGetVolumeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskVolume

The response to send back to the client (wrapped by a task).

GetVolumeSnapshot(GetVolumeSnapshotRequest, ServerCallContext)

public virtual Task<VolumeSnapshot> GetVolumeSnapshot(GetVolumeSnapshotRequest request, ServerCallContext context)

Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume.

Parameters
NameDescription
requestGetVolumeSnapshotRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskVolumeSnapshot

The response to send back to the client (wrapped by a task).

ListInstances(ListInstancesRequest, ServerCallContext)

public virtual Task<ListInstancesResponse> ListInstances(ListInstancesRequest request, ServerCallContext context)

List servers in a given project and location.

Parameters
NameDescription
requestListInstancesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListInstancesResponse

The response to send back to the client (wrapped by a task).

ListLuns(ListLunsRequest, ServerCallContext)

public virtual Task<ListLunsResponse> ListLuns(ListLunsRequest request, ServerCallContext context)

List storage volume luns for given storage volume.

Parameters
NameDescription
requestListLunsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListLunsResponse

The response to send back to the client (wrapped by a task).

ListNetworkUsage(ListNetworkUsageRequest, ServerCallContext)

public virtual Task<ListNetworkUsageResponse> ListNetworkUsage(ListNetworkUsageRequest request, ServerCallContext context)

List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.

Parameters
NameDescription
requestListNetworkUsageRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListNetworkUsageResponse

The response to send back to the client (wrapped by a task).

ListNetworks(ListNetworksRequest, ServerCallContext)

public virtual Task<ListNetworksResponse> ListNetworks(ListNetworksRequest request, ServerCallContext context)

List network in a given project and location.

Parameters
NameDescription
requestListNetworksRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListNetworksResponse

The response to send back to the client (wrapped by a task).

ListNfsShares(ListNfsSharesRequest, ServerCallContext)

public virtual Task<ListNfsSharesResponse> ListNfsShares(ListNfsSharesRequest request, ServerCallContext context)

List NFS shares.

Parameters
NameDescription
requestListNfsSharesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListNfsSharesResponse

The response to send back to the client (wrapped by a task).

ListOSImages(ListOSImagesRequest, ServerCallContext)

public virtual Task<ListOSImagesResponse> ListOSImages(ListOSImagesRequest request, ServerCallContext context)

Retrieves the list of OS images which are currently approved.

Parameters
NameDescription
requestListOSImagesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListOSImagesResponse

The response to send back to the client (wrapped by a task).

ListProvisioningQuotas(ListProvisioningQuotasRequest, ServerCallContext)

public virtual Task<ListProvisioningQuotasResponse> ListProvisioningQuotas(ListProvisioningQuotasRequest request, ServerCallContext context)

List the budget details to provision resources on a given project.

Parameters
NameDescription
requestListProvisioningQuotasRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListProvisioningQuotasResponse

The response to send back to the client (wrapped by a task).

ListSSHKeys(ListSSHKeysRequest, ServerCallContext)

public virtual Task<ListSSHKeysResponse> ListSSHKeys(ListSSHKeysRequest request, ServerCallContext context)

Lists the public SSH keys registered for the specified project. These SSH keys are used only for the interactive serial console feature.

Parameters
NameDescription
requestListSSHKeysRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListSSHKeysResponse

The response to send back to the client (wrapped by a task).

ListVolumeSnapshots(ListVolumeSnapshotsRequest, ServerCallContext)

public virtual Task<ListVolumeSnapshotsResponse> ListVolumeSnapshots(ListVolumeSnapshotsRequest request, ServerCallContext context)

Retrieves the list of snapshots for the specified volume. Returns a response with an empty list of snapshots if called for a non-boot volume.

Parameters
NameDescription
requestListVolumeSnapshotsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListVolumeSnapshotsResponse

The response to send back to the client (wrapped by a task).

ListVolumes(ListVolumesRequest, ServerCallContext)

public virtual Task<ListVolumesResponse> ListVolumes(ListVolumesRequest request, ServerCallContext context)

List storage volumes in a given project and location.

Parameters
NameDescription
requestListVolumesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListVolumesResponse

The response to send back to the client (wrapped by a task).

RenameInstance(RenameInstanceRequest, ServerCallContext)

public virtual Task<Instance> RenameInstance(RenameInstanceRequest request, ServerCallContext context)

RenameInstance sets a new name for an instance. Use with caution, previous names become immediately invalidated.

Parameters
NameDescription
requestRenameInstanceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskInstance

The response to send back to the client (wrapped by a task).

RenameNetwork(RenameNetworkRequest, ServerCallContext)

public virtual Task<Network> RenameNetwork(RenameNetworkRequest request, ServerCallContext context)

RenameNetwork sets a new name for a network. Use with caution, previous names become immediately invalidated.

Parameters
NameDescription
requestRenameNetworkRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskNetwork

The response to send back to the client (wrapped by a task).

RenameNfsShare(RenameNfsShareRequest, ServerCallContext)

public virtual Task<NfsShare> RenameNfsShare(RenameNfsShareRequest request, ServerCallContext context)

RenameNfsShare sets a new name for an nfsshare. Use with caution, previous names become immediately invalidated.

Parameters
NameDescription
requestRenameNfsShareRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskNfsShare

The response to send back to the client (wrapped by a task).

RenameVolume(RenameVolumeRequest, ServerCallContext)

public virtual Task<Volume> RenameVolume(RenameVolumeRequest request, ServerCallContext context)

RenameVolume sets a new name for a volume. Use with caution, previous names become immediately invalidated.

Parameters
NameDescription
requestRenameVolumeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskVolume

The response to send back to the client (wrapped by a task).

ResetInstance(ResetInstanceRequest, ServerCallContext)

public virtual Task<Operation> ResetInstance(ResetInstanceRequest request, ServerCallContext context)

Perform an ungraceful, hard reset on a server. Equivalent to shutting the power off and then turning it back on.

Parameters
NameDescription
requestResetInstanceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

ResizeVolume(ResizeVolumeRequest, ServerCallContext)

public virtual Task<Operation> ResizeVolume(ResizeVolumeRequest request, ServerCallContext context)

Emergency Volume resize.

Parameters
NameDescription
requestResizeVolumeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

RestoreVolumeSnapshot(RestoreVolumeSnapshotRequest, ServerCallContext)

public virtual Task<Operation> RestoreVolumeSnapshot(RestoreVolumeSnapshotRequest request, ServerCallContext context)

Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.

Parameters
NameDescription
requestRestoreVolumeSnapshotRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

StartInstance(StartInstanceRequest, ServerCallContext)

public virtual Task<Operation> StartInstance(StartInstanceRequest request, ServerCallContext context)

Starts a server that was shutdown.

Parameters
NameDescription
requestStartInstanceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

StopInstance(StopInstanceRequest, ServerCallContext)

public virtual Task<Operation> StopInstance(StopInstanceRequest request, ServerCallContext context)

Stop a running server.

Parameters
NameDescription
requestStopInstanceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

SubmitProvisioningConfig(SubmitProvisioningConfigRequest, ServerCallContext)

public virtual Task<SubmitProvisioningConfigResponse> SubmitProvisioningConfig(SubmitProvisioningConfigRequest request, ServerCallContext context)

Submit a provisiong configuration for a given project.

Parameters
NameDescription
requestSubmitProvisioningConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSubmitProvisioningConfigResponse

The response to send back to the client (wrapped by a task).

UpdateInstance(UpdateInstanceRequest, ServerCallContext)

public virtual Task<Operation> UpdateInstance(UpdateInstanceRequest request, ServerCallContext context)

Update details of a single server.

Parameters
NameDescription
requestUpdateInstanceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

UpdateNetwork(UpdateNetworkRequest, ServerCallContext)

public virtual Task<Operation> UpdateNetwork(UpdateNetworkRequest request, ServerCallContext context)

Update details of a single network.

Parameters
NameDescription
requestUpdateNetworkRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

UpdateNfsShare(UpdateNfsShareRequest, ServerCallContext)

public virtual Task<Operation> UpdateNfsShare(UpdateNfsShareRequest request, ServerCallContext context)

Update details of a single NFS share.

Parameters
NameDescription
requestUpdateNfsShareRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

UpdateProvisioningConfig(UpdateProvisioningConfigRequest, ServerCallContext)

public virtual Task<ProvisioningConfig> UpdateProvisioningConfig(UpdateProvisioningConfigRequest request, ServerCallContext context)

Update existing ProvisioningConfig.

Parameters
NameDescription
requestUpdateProvisioningConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskProvisioningConfig

The response to send back to the client (wrapped by a task).

UpdateVolume(UpdateVolumeRequest, ServerCallContext)

public virtual Task<Operation> UpdateVolume(UpdateVolumeRequest request, ServerCallContext context)

Update details of a single storage volume.

Parameters
NameDescription
requestUpdateVolumeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).