public sealed class TpuClientImpl : TpuClient
Tpu 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.TpuClient The underlying gRPC client. |
settings | TpuSettings The 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 | CreateNodeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | CreateNodeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | DeleteNodeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | DeleteNodeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | GetAcceleratorTypeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | GetAcceleratorTypeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | GetNodeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | GetNodeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | GetTensorFlowVersionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | GetTensorFlowVersionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | ListAcceleratorTypesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | ListAcceleratorTypesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | ListNodesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | ListNodesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | ListTensorFlowVersionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | ListTensorFlowVersionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | ReimageNodeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | ReimageNodeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | StartNodeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | StartNodeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | StopNodeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | StopNodeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Node, OperationMetadata>> | A Task containing the RPC response. |