Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TPU

import { TPU } from "https://googleapis.deno.dev/v1/tpu:v2.ts";

TPU API provides customers with access to Google TPU technology.

class TPU {
constructor(client?: CredentialsClient, baseUrl?: string);
async projectsLocationsAcceleratorTypesGet(name: string): Promise<AcceleratorType>;
async projectsLocationsAcceleratorTypesList(parent: string, opts?: ProjectsLocationsAcceleratorTypesListOptions): Promise<ListAcceleratorTypesResponse>;
async projectsLocationsGenerateServiceIdentity(parent: string, req: GenerateServiceIdentityRequest): Promise<GenerateServiceIdentityResponse>;
async projectsLocationsGet(name: string): Promise<Location>;
async projectsLocationsList(name: string, opts?: ProjectsLocationsListOptions): Promise<ListLocationsResponse>;
async projectsLocationsNodesCreate(
parent: string,
req: Node,
): Promise<Operation>;
async projectsLocationsNodesDelete(name: string): Promise<Operation>;
async projectsLocationsNodesGet(name: string): Promise<Node>;
async projectsLocationsNodesGetGuestAttributes(name: string, req: GetGuestAttributesRequest): Promise<GetGuestAttributesResponse>;
async projectsLocationsNodesList(parent: string, opts?: ProjectsLocationsNodesListOptions): Promise<ListNodesResponse>;
async projectsLocationsNodesPatch(
name: string,
req: Node,
): Promise<Operation>;
async projectsLocationsNodesStart(name: string, req: StartNodeRequest): Promise<Operation>;
async projectsLocationsNodesStop(name: string, req: StopNodeRequest): Promise<Operation>;
async projectsLocationsOperationsCancel(name: string): Promise<Empty>;
async projectsLocationsOperationsDelete(name: string): Promise<Empty>;
async projectsLocationsOperationsGet(name: string): Promise<Operation>;
async projectsLocationsOperationsList(name: string, opts?: ProjectsLocationsOperationsListOptions): Promise<ListOperationsResponse>;
async projectsLocationsQueuedResourcesCreate(
parent: string,
): Promise<Operation>;
async projectsLocationsQueuedResourcesDelete(name: string, opts?: ProjectsLocationsQueuedResourcesDeleteOptions): Promise<Operation>;
async projectsLocationsQueuedResourcesGet(name: string): Promise<QueuedResource>;
async projectsLocationsQueuedResourcesList(parent: string, opts?: ProjectsLocationsQueuedResourcesListOptions): Promise<ListQueuedResourcesResponse>;
async projectsLocationsQueuedResourcesReset(name: string, req: ResetQueuedResourceRequest): Promise<Operation>;
async projectsLocationsRuntimeVersionsGet(name: string): Promise<RuntimeVersion>;
async projectsLocationsRuntimeVersionsList(parent: string, opts?: ProjectsLocationsRuntimeVersionsListOptions): Promise<ListRuntimeVersionsResponse>;
}

§Constructors

§
new TPU(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
projectsLocationsAcceleratorTypesGet(name: string): Promise<AcceleratorType>
[src]

Gets AcceleratorType.

@param name

Required. The resource name.

§
projectsLocationsAcceleratorTypesList(parent: string, opts?: ProjectsLocationsAcceleratorTypesListOptions): Promise<ListAcceleratorTypesResponse>
[src]

Lists accelerator types supported by this API.

@param parent

Required. The parent resource name.

§
projectsLocationsGenerateServiceIdentity(parent: string, req: GenerateServiceIdentityRequest): Promise<GenerateServiceIdentityResponse>
[src]

Generates the Cloud TPU service identity for the project.

@param parent

Required. The parent resource name.

§
projectsLocationsGet(name: string): Promise<Location>
[src]

Gets information about a location.

@param name

Resource name for the location.

§
projectsLocationsList(name: string, opts?: ProjectsLocationsListOptions): Promise<ListLocationsResponse>
[src]

Lists information about the supported locations for this service.

@param name

The resource that owns the locations collection, if applicable.

§
projectsLocationsNodesCreate(parent: string, req: Node, opts?: ProjectsLocationsNodesCreateOptions): Promise<Operation>
[src]

Creates a node.

@param parent

Required. The parent resource name.

§
projectsLocationsNodesDelete(name: string): Promise<Operation>
[src]

Deletes a node.

@param name

Required. The resource name.

§
projectsLocationsNodesGet(name: string): Promise<Node>
[src]

Gets the details of a node.

@param name

Required. The resource name.

§
projectsLocationsNodesGetGuestAttributes(name: string, req: GetGuestAttributesRequest): Promise<GetGuestAttributesResponse>
[src]

Retrieves the guest attributes for the node.

@param name

Required. The resource name.

§
projectsLocationsNodesList(parent: string, opts?: ProjectsLocationsNodesListOptions): Promise<ListNodesResponse>
[src]

Lists nodes.

@param parent

Required. The parent resource name.

§
projectsLocationsNodesPatch(name: string, req: Node, opts?: ProjectsLocationsNodesPatchOptions): Promise<Operation>
[src]

Updates the configurations of a node.

@param name

Output only. Immutable. The name of the TPU.

§
projectsLocationsNodesStart(name: string, req: StartNodeRequest): Promise<Operation>
[src]

Starts a node.

@param name

Required. The resource name.

§
projectsLocationsNodesStop(name: string, req: StopNodeRequest): Promise<Operation>
[src]

Stops a node. This operation is only available with single TPU nodes.

@param name

Required. The resource name.

§
projectsLocationsOperationsCancel(name: string): Promise<Empty>
[src]

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

@param name

The name of the operation resource to be cancelled.

§
projectsLocationsOperationsDelete(name: string): Promise<Empty>
[src]

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

@param name

The name of the operation resource to be deleted.

§
projectsLocationsOperationsGet(name: string): Promise<Operation>
[src]

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

@param name

The name of the operation resource.

§
projectsLocationsOperationsList(name: string, opts?: ProjectsLocationsOperationsListOptions): Promise<ListOperationsResponse>
[src]

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.

@param name

The name of the operation's parent resource.

§
projectsLocationsQueuedResourcesCreate(parent: string, req: QueuedResource, opts?: ProjectsLocationsQueuedResourcesCreateOptions): Promise<Operation>
[src]

Creates a QueuedResource TPU instance.

@param parent

Required. The parent resource name.

§
projectsLocationsQueuedResourcesDelete(name: string, opts?: ProjectsLocationsQueuedResourcesDeleteOptions): Promise<Operation>
[src]

Deletes a QueuedResource TPU instance.

@param name

Required. The resource name.

§
projectsLocationsQueuedResourcesGet(name: string): Promise<QueuedResource>
[src]

Gets details of a queued resource.

@param name

Required. The resource name.

§
projectsLocationsQueuedResourcesList(parent: string, opts?: ProjectsLocationsQueuedResourcesListOptions): Promise<ListQueuedResourcesResponse>
[src]

Lists queued resources.

@param parent

Required. The parent resource name.

§
projectsLocationsQueuedResourcesReset(name: string, req: ResetQueuedResourceRequest): Promise<Operation>
[src]

Resets a QueuedResource TPU instance

@param name

Required. The name of the queued resource.

§
projectsLocationsRuntimeVersionsGet(name: string): Promise<RuntimeVersion>
[src]

Gets a runtime version.

@param name

Required. The resource name.

§
projectsLocationsRuntimeVersionsList(parent: string, opts?: ProjectsLocationsRuntimeVersionsListOptions): Promise<ListRuntimeVersionsResponse>
[src]

Lists runtime versions supported by this API.

@param parent

Required. The parent resource name.