[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
Namespace
Google.Cloud.BareMetalSolution.V2Assembly
Google.Cloud.BareMetalSolution.V2.dll
Methods
DetachLun(DetachLunRequest, ServerCallContext)
public virtual Task<Operation> DetachLun(DetachLunRequest request, ServerCallContext context)
Detach LUN from Instance.
Parameters | |
---|---|
Name | Description |
request | DetachLunRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetInstanceRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetLunRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetNetworkRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetNfsShareRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetVolumeRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListInstancesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListLunsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListNetworksRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListNetworkUsageRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListNfsSharesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListVolumesRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ResetInstanceRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ResizeVolumeRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | StartInstanceRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | StopInstanceRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | UpdateInstanceRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | UpdateNetworkRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | UpdateNfsShareRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | UpdateVolumeRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<Operation> | The response to send back to the client (wrapped by a task). |