[BindServiceMethod(typeof(Tpu), "BindService")]
public abstract class Tpu.TpuBaseReference documentation and code samples for the Cloud TPU v1 API class Tpu.TpuBase.
Base class for server-side implementations of Tpu
Namespace
Google.Cloud.Tpu.V1Assembly
Google.Cloud.Tpu.V1.dll
Methods
CreateNode(CreateNodeRequest, ServerCallContext)
public virtual Task<Operation> CreateNode(CreateNodeRequest request, ServerCallContext context)Creates a node.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateNodeRequestThe 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). |
DeleteNode(DeleteNodeRequest, ServerCallContext)
public virtual Task<Operation> DeleteNode(DeleteNodeRequest request, ServerCallContext context)Deletes a node.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteNodeRequestThe 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). |
GetAcceleratorType(GetAcceleratorTypeRequest, ServerCallContext)
public virtual Task<AcceleratorType> GetAcceleratorType(GetAcceleratorTypeRequest request, ServerCallContext context)Gets AcceleratorType.
| Parameters | |
|---|---|
| Name | Description |
request |
GetAcceleratorTypeRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetNodeRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetTensorFlowVersionRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListAcceleratorTypesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListNodesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ListTensorFlowVersionsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ReimageNodeRequestThe 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). |
StartNode(StartNodeRequest, ServerCallContext)
public virtual Task<Operation> StartNode(StartNodeRequest request, ServerCallContext context)Starts a node.
| Parameters | |
|---|---|
| Name | Description |
request |
StartNodeRequestThe 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). |
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 | |
|---|---|
| Name | Description |
request |
StopNodeRequestThe 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). |