public sealed class TpuClientImpl : TpuClientTpu client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Tpu.V1Assembly
Google.Cloud.Tpu.V1.dll
Remarks
Manages TPU nodes and other resources
TPU API v1
Constructors
TpuClientImpl(Tpu.TpuClient, TpuSettings)
public TpuClientImpl(Tpu.TpuClient grpcClient, TpuSettings settings)Constructs a client wrapper for the Tpu service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
Tpu.TpuClientThe underlying gRPC client. |
settings |
TpuSettingsThe base TpuSettings used within this client. |
Properties
CreateNodeOperationsClient
public override OperationsClient CreateNodeOperationsClient { get; }The long-running operations client for CreateNode.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteNodeOperationsClient
public override OperationsClient DeleteNodeOperationsClient { get; }The long-running operations client for DeleteNode.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override Tpu.TpuClient GrpcClient { get; }The underlying gRPC Tpu client
| Property Value | |
|---|---|
| Type | Description |
Tpu.TpuClient |
|
ReimageNodeOperationsClient
public override OperationsClient ReimageNodeOperationsClient { get; }The long-running operations client for ReimageNode.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
StartNodeOperationsClient
public override OperationsClient StartNodeOperationsClient { get; }The long-running operations client for StartNode.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
StopNodeOperationsClient
public override OperationsClient StopNodeOperationsClient { get; }The long-running operations client for StopNode.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
CreateNode(CreateNodeRequest, CallSettings)
public override Operation<Node, OperationMetadata> CreateNode(CreateNodeRequest request, CallSettings callSettings = null)Creates a node.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateNodeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Node, OperationMetadata> |
The RPC response. |
CreateNodeAsync(CreateNodeRequest, CallSettings)
public override Task<Operation<Node, OperationMetadata>> CreateNodeAsync(CreateNodeRequest request, CallSettings callSettings = null)Creates a node.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateNodeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Node, OperationMetadata>> |
A Task containing the RPC response. |
DeleteNode(DeleteNodeRequest, CallSettings)
public override Operation<Node, OperationMetadata> DeleteNode(DeleteNodeRequest request, CallSettings callSettings = null)Deletes a node.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteNodeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Node, OperationMetadata> |
The RPC response. |
DeleteNodeAsync(DeleteNodeRequest, CallSettings)
public override Task<Operation<Node, OperationMetadata>> DeleteNodeAsync(DeleteNodeRequest request, CallSettings callSettings = null)Deletes a node.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteNodeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Node, OperationMetadata>> |
A Task containing the RPC response. |
GetAcceleratorType(GetAcceleratorTypeRequest, CallSettings)
public override AcceleratorType GetAcceleratorType(GetAcceleratorTypeRequest request, CallSettings callSettings = null)Gets AcceleratorType.
| Parameters | |
|---|---|
| Name | Description |
request |
GetAcceleratorTypeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
AcceleratorType |
The RPC response. |
GetAcceleratorTypeAsync(GetAcceleratorTypeRequest, CallSettings)
public override Task<AcceleratorType> GetAcceleratorTypeAsync(GetAcceleratorTypeRequest request, CallSettings callSettings = null)Gets AcceleratorType.
| Parameters | |
|---|---|
| Name | Description |
request |
GetAcceleratorTypeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<AcceleratorType> |
A Task containing the RPC response. |
GetNode(GetNodeRequest, CallSettings)
public override Node GetNode(GetNodeRequest request, CallSettings callSettings = null)Gets the details of a node.
| Parameters | |
|---|---|
| Name | Description |
request |
GetNodeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Node |
The RPC response. |
GetNodeAsync(GetNodeRequest, CallSettings)
public override Task<Node> GetNodeAsync(GetNodeRequest request, CallSettings callSettings = null)Gets the details of a node.
| Parameters | |
|---|---|
| Name | Description |
request |
GetNodeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Node> |
A Task containing the RPC response. |
GetTensorFlowVersion(GetTensorFlowVersionRequest, CallSettings)
public override TensorFlowVersion GetTensorFlowVersion(GetTensorFlowVersionRequest request, CallSettings callSettings = null)Gets TensorFlow Version.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTensorFlowVersionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TensorFlowVersion |
The RPC response. |
GetTensorFlowVersionAsync(GetTensorFlowVersionRequest, CallSettings)
public override Task<TensorFlowVersion> GetTensorFlowVersionAsync(GetTensorFlowVersionRequest request, CallSettings callSettings = null)Gets TensorFlow Version.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTensorFlowVersionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<TensorFlowVersion> |
A Task containing the RPC response. |
ListAcceleratorTypes(ListAcceleratorTypesRequest, CallSettings)
public override PagedEnumerable<ListAcceleratorTypesResponse, AcceleratorType> ListAcceleratorTypes(ListAcceleratorTypesRequest request, CallSettings callSettings = null)Lists accelerator types supported by this API.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAcceleratorTypesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<ListAcceleratorTypesResponse, AcceleratorType> |
A pageable sequence of AcceleratorType resources. |
ListAcceleratorTypesAsync(ListAcceleratorTypesRequest, CallSettings)
public override PagedAsyncEnumerable<ListAcceleratorTypesResponse, AcceleratorType> ListAcceleratorTypesAsync(ListAcceleratorTypesRequest request, CallSettings callSettings = null)Lists accelerator types supported by this API.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAcceleratorTypesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<ListAcceleratorTypesResponse, AcceleratorType> |
A pageable asynchronous sequence of AcceleratorType resources. |
ListNodes(ListNodesRequest, CallSettings)
public override PagedEnumerable<ListNodesResponse, Node> ListNodes(ListNodesRequest request, CallSettings callSettings = null)Lists nodes.
| Parameters | |
|---|---|
| Name | Description |
request |
ListNodesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<ListNodesResponse, Node> |
A pageable sequence of Node resources. |
ListNodesAsync(ListNodesRequest, CallSettings)
public override PagedAsyncEnumerable<ListNodesResponse, Node> ListNodesAsync(ListNodesRequest request, CallSettings callSettings = null)Lists nodes.
| Parameters | |
|---|---|
| Name | Description |
request |
ListNodesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<ListNodesResponse, Node> |
A pageable asynchronous sequence of Node resources. |
ListTensorFlowVersions(ListTensorFlowVersionsRequest, CallSettings)
public override PagedEnumerable<ListTensorFlowVersionsResponse, TensorFlowVersion> ListTensorFlowVersions(ListTensorFlowVersionsRequest request, CallSettings callSettings = null)List TensorFlow versions supported by this API.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTensorFlowVersionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<ListTensorFlowVersionsResponse, TensorFlowVersion> |
A pageable sequence of TensorFlowVersion resources. |
ListTensorFlowVersionsAsync(ListTensorFlowVersionsRequest, CallSettings)
public override PagedAsyncEnumerable<ListTensorFlowVersionsResponse, TensorFlowVersion> ListTensorFlowVersionsAsync(ListTensorFlowVersionsRequest request, CallSettings callSettings = null)List TensorFlow versions supported by this API.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTensorFlowVersionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<ListTensorFlowVersionsResponse, TensorFlowVersion> |
A pageable asynchronous sequence of TensorFlowVersion resources. |
ReimageNode(ReimageNodeRequest, CallSettings)
public override Operation<Node, OperationMetadata> ReimageNode(ReimageNodeRequest request, CallSettings callSettings = null)Reimages a node's OS.
| Parameters | |
|---|---|
| Name | Description |
request |
ReimageNodeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Node, OperationMetadata> |
The RPC response. |
ReimageNodeAsync(ReimageNodeRequest, CallSettings)
public override Task<Operation<Node, OperationMetadata>> ReimageNodeAsync(ReimageNodeRequest request, CallSettings callSettings = null)Reimages a node's OS.
| Parameters | |
|---|---|
| Name | Description |
request |
ReimageNodeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Node, OperationMetadata>> |
A Task containing the RPC response. |
StartNode(StartNodeRequest, CallSettings)
public override Operation<Node, OperationMetadata> StartNode(StartNodeRequest request, CallSettings callSettings = null)Starts a node.
| Parameters | |
|---|---|
| Name | Description |
request |
StartNodeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Node, OperationMetadata> |
The RPC response. |
StartNodeAsync(StartNodeRequest, CallSettings)
public override Task<Operation<Node, OperationMetadata>> StartNodeAsync(StartNodeRequest request, CallSettings callSettings = null)Starts a node.
| Parameters | |
|---|---|
| Name | Description |
request |
StartNodeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Node, OperationMetadata>> |
A Task containing the RPC response. |
StopNode(StopNodeRequest, CallSettings)
public override Operation<Node, OperationMetadata> StopNode(StopNodeRequest request, CallSettings callSettings = null)Stops a node.
| Parameters | |
|---|---|
| Name | Description |
request |
StopNodeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Node, OperationMetadata> |
The RPC response. |
StopNodeAsync(StopNodeRequest, CallSettings)
public override Task<Operation<Node, OperationMetadata>> StopNodeAsync(StopNodeRequest request, CallSettings callSettings = null)Stops a node.
| Parameters | |
|---|---|
| Name | Description |
request |
StopNodeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Node, OperationMetadata>> |
A Task containing the RPC response. |