Class Tpu.TpuBase (2.0.0)

[BindServiceMethod(typeof(Tpu), "BindService")]
public abstract class TpuBase

Base class for server-side implementations of Tpu

Inheritance

Object > Tpu.TpuBase

Namespace

Google.Cloud.Tpu.V1

Assembly

Google.Cloud.Tpu.V1.dll

Methods

CreateNode(CreateNodeRequest, ServerCallContext)

public virtual Task<Operation> CreateNode(CreateNodeRequest request, ServerCallContext context)

Creates a node.

Parameters
NameDescription
requestCreateNodeRequest

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).

DeleteNode(DeleteNodeRequest, ServerCallContext)

public virtual Task<Operation> DeleteNode(DeleteNodeRequest request, ServerCallContext context)

Deletes a node.

Parameters
NameDescription
requestDeleteNodeRequest

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).

GetAcceleratorType(GetAcceleratorTypeRequest, ServerCallContext)

public virtual Task<AcceleratorType> GetAcceleratorType(GetAcceleratorTypeRequest request, ServerCallContext context)

Gets AcceleratorType.

Parameters
NameDescription
requestGetAcceleratorTypeRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<AcceleratorType>

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

GetNode(GetNodeRequest, ServerCallContext)

public virtual Task<Node> GetNode(GetNodeRequest request, ServerCallContext context)

Gets the details of a node.

Parameters
NameDescription
requestGetNodeRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Node>

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

GetTensorFlowVersion(GetTensorFlowVersionRequest, ServerCallContext)

public virtual Task<TensorFlowVersion> GetTensorFlowVersion(GetTensorFlowVersionRequest request, ServerCallContext context)

Gets TensorFlow Version.

Parameters
NameDescription
requestGetTensorFlowVersionRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<TensorFlowVersion>

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

ListAcceleratorTypes(ListAcceleratorTypesRequest, ServerCallContext)

public virtual Task<ListAcceleratorTypesResponse> ListAcceleratorTypes(ListAcceleratorTypesRequest request, ServerCallContext context)

Lists accelerator types supported by this API.

Parameters
NameDescription
requestListAcceleratorTypesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ListAcceleratorTypesResponse>

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

ListNodes(ListNodesRequest, ServerCallContext)

public virtual Task<ListNodesResponse> ListNodes(ListNodesRequest request, ServerCallContext context)

Lists nodes.

Parameters
NameDescription
requestListNodesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ListNodesResponse>

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

ListTensorFlowVersions(ListTensorFlowVersionsRequest, ServerCallContext)

public virtual Task<ListTensorFlowVersionsResponse> ListTensorFlowVersions(ListTensorFlowVersionsRequest request, ServerCallContext context)

List TensorFlow versions supported by this API.

Parameters
NameDescription
requestListTensorFlowVersionsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ListTensorFlowVersionsResponse>

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

ReimageNode(ReimageNodeRequest, ServerCallContext)

public virtual Task<Operation> ReimageNode(ReimageNodeRequest request, ServerCallContext context)

Reimages a node's OS.

Parameters
NameDescription
requestReimageNodeRequest

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).

StartNode(StartNodeRequest, ServerCallContext)

public virtual Task<Operation> StartNode(StartNodeRequest request, ServerCallContext context)

Starts a node.

Parameters
NameDescription
requestStartNodeRequest

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).

StopNode(StopNodeRequest, ServerCallContext)

public virtual Task<Operation> StopNode(StopNodeRequest request, ServerCallContext context)

Stops a node.

Parameters
NameDescription
requestStopNodeRequest

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).