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

[BindServiceMethod(typeof(BareMetalSolution), "BindService")]
public abstract class 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

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
Task<Operation>

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
Task<Instance>

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
Task<Lun>

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
Task<Network>

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
Task<NfsShare>

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
Task<Volume>

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
Task<ListInstancesResponse>

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
Task<ListLunsResponse>

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
Task<ListNetworksResponse>

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
Task<ListNetworkUsageResponse>

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
Task<ListNfsSharesResponse>

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
Task<ListVolumesResponse>

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
Task<Operation>

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
Task<Operation>

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
Task<Operation>

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
Task<Operation>

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
Task<Operation>

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
Task<Operation>

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
Task<Operation>

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
Task<Operation>

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