[BindServiceMethod(typeof(BareMetalSolution), "BindService")]
public abstract class BareMetalSolution.BareMetalSolutionBaseReference documentation and code samples for the Bare Metal Solution v2 API class BareMetalSolution.BareMetalSolutionBase.
Base class for server-side implementations of BareMetalSolution
Namespace
Google.Cloud.BareMetalSolution.V2Assembly
Google.Cloud.BareMetalSolution.V2.dll
Methods
CreateNfsShare(CreateNfsShareRequest, ServerCallContext)
public virtual Task<Operation> CreateNfsShare(CreateNfsShareRequest request, ServerCallContext context)Create an NFS share.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateNfsShareRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
CreateProvisioningConfigRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
CreateSSHKeyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
CreateVolumeSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
DeleteNfsShareRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
DeleteSSHKeyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
DeleteVolumeSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
DetachLunRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
DisableInteractiveSerialConsoleRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
EnableInteractiveSerialConsoleRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
EvictLunRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
EvictVolumeRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetInstanceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetLunRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetNetworkRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetNfsShareRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetProvisioningConfigRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetVolumeRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetVolumeSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListInstancesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListLunsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListNetworkUsageRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListNetworksRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListNfsSharesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListOSImagesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListProvisioningQuotasRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListSSHKeysRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListVolumeSnapshotsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListVolumesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
RenameInstanceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
RenameNetworkRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
RenameNfsShareRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
RenameVolumeRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ResetInstanceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ResizeVolumeRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
RestoreVolumeSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
StartInstanceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
StopInstanceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
SubmitProvisioningConfigRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
UpdateInstanceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
UpdateNetworkRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
UpdateNfsShareRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
UpdateProvisioningConfigRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
UpdateVolumeRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |