Cloud TPU v1 API - Class Tpu.TpuBase (2.2.0)

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

Reference documentation and code samples for the Cloud TPU v1 API class Tpu.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
TaskOperation

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
TaskOperation

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
TaskAcceleratorType

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
TaskNode

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
TaskTensorFlowVersion

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
TaskListAcceleratorTypesResponse

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
TaskListNodesResponse

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
TaskListTensorFlowVersionsResponse

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
TaskOperation

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
TaskOperation

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, this operation is only available with single TPU nodes.

Parameters
NameDescription
requestStopNodeRequest

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