Class TpuClientImpl (2.0.0)

public sealed class TpuClientImpl : TpuClient

Tpu client wrapper implementation, for convenient use.

Inheritance

Object > TpuClient > TpuClientImpl

Namespace

Google.Cloud.Tpu.V1

Assembly

Google.Cloud.Tpu.V1.dll

Remarks

Manages TPU nodes and other resources

TPU API v1

Constructors

TpuClientImpl(Tpu.TpuClient, TpuSettings, ILogger)

public TpuClientImpl(Tpu.TpuClient grpcClient, TpuSettings settings, ILogger logger)

Constructs a client wrapper for the Tpu service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientTpu.TpuClient

The underlying gRPC client.

settingsTpuSettings

The base TpuSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

CreateNodeOperationsClient

public override OperationsClient CreateNodeOperationsClient { get; }

The long-running operations client for CreateNode.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteNodeOperationsClient

public override OperationsClient DeleteNodeOperationsClient { get; }

The long-running operations client for DeleteNode.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override Tpu.TpuClient GrpcClient { get; }

The underlying gRPC Tpu client

Property Value
TypeDescription
Tpu.TpuClient
Overrides

ReimageNodeOperationsClient

public override OperationsClient ReimageNodeOperationsClient { get; }

The long-running operations client for ReimageNode.

Property Value
TypeDescription
OperationsClient
Overrides

StartNodeOperationsClient

public override OperationsClient StartNodeOperationsClient { get; }

The long-running operations client for StartNode.

Property Value
TypeDescription
OperationsClient
Overrides

StopNodeOperationsClient

public override OperationsClient StopNodeOperationsClient { get; }

The long-running operations client for StopNode.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

CreateNode(CreateNodeRequest, CallSettings)

public override Operation<Node, OperationMetadata> CreateNode(CreateNodeRequest request, CallSettings callSettings = null)

Creates a node.

Parameters
NameDescription
requestCreateNodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Node, OperationMetadata>

The RPC response.

Overrides

CreateNodeAsync(CreateNodeRequest, CallSettings)

public override async Task<Operation<Node, OperationMetadata>> CreateNodeAsync(CreateNodeRequest request, CallSettings callSettings = null)

Creates a node.

Parameters
NameDescription
requestCreateNodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Node, OperationMetadata>>

A Task containing the RPC response.

Overrides

DeleteNode(DeleteNodeRequest, CallSettings)

public override Operation<Node, OperationMetadata> DeleteNode(DeleteNodeRequest request, CallSettings callSettings = null)

Deletes a node.

Parameters
NameDescription
requestDeleteNodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Node, OperationMetadata>

The RPC response.

Overrides

DeleteNodeAsync(DeleteNodeRequest, CallSettings)

public override async Task<Operation<Node, OperationMetadata>> DeleteNodeAsync(DeleteNodeRequest request, CallSettings callSettings = null)

Deletes a node.

Parameters
NameDescription
requestDeleteNodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Node, OperationMetadata>>

A Task containing the RPC response.

Overrides

GetAcceleratorType(GetAcceleratorTypeRequest, CallSettings)

public override AcceleratorType GetAcceleratorType(GetAcceleratorTypeRequest request, CallSettings callSettings = null)

Gets AcceleratorType.

Parameters
NameDescription
requestGetAcceleratorTypeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AcceleratorType

The RPC response.

Overrides

GetAcceleratorTypeAsync(GetAcceleratorTypeRequest, CallSettings)

public override Task<AcceleratorType> GetAcceleratorTypeAsync(GetAcceleratorTypeRequest request, CallSettings callSettings = null)

Gets AcceleratorType.

Parameters
NameDescription
requestGetAcceleratorTypeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AcceleratorType>

A Task containing the RPC response.

Overrides

GetNode(GetNodeRequest, CallSettings)

public override Node GetNode(GetNodeRequest request, CallSettings callSettings = null)

Gets the details of a node.

Parameters
NameDescription
requestGetNodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Node

The RPC response.

Overrides

GetNodeAsync(GetNodeRequest, CallSettings)

public override Task<Node> GetNodeAsync(GetNodeRequest request, CallSettings callSettings = null)

Gets the details of a node.

Parameters
NameDescription
requestGetNodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Node>

A Task containing the RPC response.

Overrides

GetTensorFlowVersion(GetTensorFlowVersionRequest, CallSettings)

public override TensorFlowVersion GetTensorFlowVersion(GetTensorFlowVersionRequest request, CallSettings callSettings = null)

Gets TensorFlow Version.

Parameters
NameDescription
requestGetTensorFlowVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TensorFlowVersion

The RPC response.

Overrides

GetTensorFlowVersionAsync(GetTensorFlowVersionRequest, CallSettings)

public override Task<TensorFlowVersion> GetTensorFlowVersionAsync(GetTensorFlowVersionRequest request, CallSettings callSettings = null)

Gets TensorFlow Version.

Parameters
NameDescription
requestGetTensorFlowVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TensorFlowVersion>

A Task containing the RPC response.

Overrides

ListAcceleratorTypes(ListAcceleratorTypesRequest, CallSettings)

public override PagedEnumerable<ListAcceleratorTypesResponse, AcceleratorType> ListAcceleratorTypes(ListAcceleratorTypesRequest request, CallSettings callSettings = null)

Lists accelerator types supported by this API.

Parameters
NameDescription
requestListAcceleratorTypesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListAcceleratorTypesResponse, AcceleratorType>

A pageable sequence of AcceleratorType resources.

Overrides

ListAcceleratorTypesAsync(ListAcceleratorTypesRequest, CallSettings)

public override PagedAsyncEnumerable<ListAcceleratorTypesResponse, AcceleratorType> ListAcceleratorTypesAsync(ListAcceleratorTypesRequest request, CallSettings callSettings = null)

Lists accelerator types supported by this API.

Parameters
NameDescription
requestListAcceleratorTypesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListAcceleratorTypesResponse, AcceleratorType>

A pageable asynchronous sequence of AcceleratorType resources.

Overrides

ListNodes(ListNodesRequest, CallSettings)

public override PagedEnumerable<ListNodesResponse, Node> ListNodes(ListNodesRequest request, CallSettings callSettings = null)

Lists nodes.

Parameters
NameDescription
requestListNodesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListNodesResponse, Node>

A pageable sequence of Node resources.

Overrides

ListNodesAsync(ListNodesRequest, CallSettings)

public override PagedAsyncEnumerable<ListNodesResponse, Node> ListNodesAsync(ListNodesRequest request, CallSettings callSettings = null)

Lists nodes.

Parameters
NameDescription
requestListNodesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListNodesResponse, Node>

A pageable asynchronous sequence of Node resources.

Overrides

ListTensorFlowVersions(ListTensorFlowVersionsRequest, CallSettings)

public override PagedEnumerable<ListTensorFlowVersionsResponse, TensorFlowVersion> ListTensorFlowVersions(ListTensorFlowVersionsRequest request, CallSettings callSettings = null)

List TensorFlow versions supported by this API.

Parameters
NameDescription
requestListTensorFlowVersionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListTensorFlowVersionsResponse, TensorFlowVersion>

A pageable sequence of TensorFlowVersion resources.

Overrides

ListTensorFlowVersionsAsync(ListTensorFlowVersionsRequest, CallSettings)

public override PagedAsyncEnumerable<ListTensorFlowVersionsResponse, TensorFlowVersion> ListTensorFlowVersionsAsync(ListTensorFlowVersionsRequest request, CallSettings callSettings = null)

List TensorFlow versions supported by this API.

Parameters
NameDescription
requestListTensorFlowVersionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListTensorFlowVersionsResponse, TensorFlowVersion>

A pageable asynchronous sequence of TensorFlowVersion resources.

Overrides

ReimageNode(ReimageNodeRequest, CallSettings)

public override Operation<Node, OperationMetadata> ReimageNode(ReimageNodeRequest request, CallSettings callSettings = null)

Reimages a node's OS.

Parameters
NameDescription
requestReimageNodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Node, OperationMetadata>

The RPC response.

Overrides

ReimageNodeAsync(ReimageNodeRequest, CallSettings)

public override async Task<Operation<Node, OperationMetadata>> ReimageNodeAsync(ReimageNodeRequest request, CallSettings callSettings = null)

Reimages a node's OS.

Parameters
NameDescription
requestReimageNodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Node, OperationMetadata>>

A Task containing the RPC response.

Overrides

StartNode(StartNodeRequest, CallSettings)

public override Operation<Node, OperationMetadata> StartNode(StartNodeRequest request, CallSettings callSettings = null)

Starts a node.

Parameters
NameDescription
requestStartNodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Node, OperationMetadata>

The RPC response.

Overrides

StartNodeAsync(StartNodeRequest, CallSettings)

public override async Task<Operation<Node, OperationMetadata>> StartNodeAsync(StartNodeRequest request, CallSettings callSettings = null)

Starts a node.

Parameters
NameDescription
requestStartNodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Node, OperationMetadata>>

A Task containing the RPC response.

Overrides

StopNode(StopNodeRequest, CallSettings)

public override Operation<Node, OperationMetadata> StopNode(StopNodeRequest request, CallSettings callSettings = null)

Stops a node.

Parameters
NameDescription
requestStopNodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Node, OperationMetadata>

The RPC response.

Overrides

StopNodeAsync(StopNodeRequest, CallSettings)

public override async Task<Operation<Node, OperationMetadata>> StopNodeAsync(StopNodeRequest request, CallSettings callSettings = null)

Stops a node.

Parameters
NameDescription
requestStopNodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Node, OperationMetadata>>

A Task containing the RPC response.

Overrides