Class protos.google.cloud.tpu.v2alpha1.Tpu (2.1.0)

Represents a Tpu

Inheritance

$protobuf.rpc.Service > protos.google.cloud.tpu.v2alpha1.Tpu

Package

@google-cloud/tpu

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Tpu service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Tpu;

Creates new Tpu service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
Tpu

RPC service. Useful where requests and/or responses are streamed.

createNode(request, callback)

public createNode(request: google.cloud.tpu.v2alpha1.ICreateNodeRequest, callback: google.cloud.tpu.v2alpha1.Tpu.CreateNodeCallback): void;

Calls CreateNode.

Parameters
NameDescription
request ICreateNodeRequest

CreateNodeRequest message or plain object

callback google.cloud.tpu.v2alpha1.Tpu.CreateNodeCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

createNode(request)

public createNode(request: google.cloud.tpu.v2alpha1.ICreateNodeRequest): Promise<google.longrunning.Operation>;

Calls CreateNode.

Parameter
NameDescription
request ICreateNodeRequest

CreateNodeRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteNode(request, callback)

public deleteNode(request: google.cloud.tpu.v2alpha1.IDeleteNodeRequest, callback: google.cloud.tpu.v2alpha1.Tpu.DeleteNodeCallback): void;

Calls DeleteNode.

Parameters
NameDescription
request IDeleteNodeRequest

DeleteNodeRequest message or plain object

callback google.cloud.tpu.v2alpha1.Tpu.DeleteNodeCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

deleteNode(request)

public deleteNode(request: google.cloud.tpu.v2alpha1.IDeleteNodeRequest): Promise<google.longrunning.Operation>;

Calls DeleteNode.

Parameter
NameDescription
request IDeleteNodeRequest

DeleteNodeRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

generateServiceIdentity(request, callback)

public generateServiceIdentity(request: google.cloud.tpu.v2alpha1.IGenerateServiceIdentityRequest, callback: google.cloud.tpu.v2alpha1.Tpu.GenerateServiceIdentityCallback): void;

Calls GenerateServiceIdentity.

Parameters
NameDescription
request IGenerateServiceIdentityRequest

GenerateServiceIdentityRequest message or plain object

callback google.cloud.tpu.v2alpha1.Tpu.GenerateServiceIdentityCallback

Node-style callback called with the error, if any, and GenerateServiceIdentityResponse

Returns
TypeDescription
void

generateServiceIdentity(request)

public generateServiceIdentity(request: google.cloud.tpu.v2alpha1.IGenerateServiceIdentityRequest): Promise<google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse>;

Calls GenerateServiceIdentity.

Parameter
NameDescription
request IGenerateServiceIdentityRequest

GenerateServiceIdentityRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse>

Promise

getAcceleratorType(request, callback)

public getAcceleratorType(request: google.cloud.tpu.v2alpha1.IGetAcceleratorTypeRequest, callback: google.cloud.tpu.v2alpha1.Tpu.GetAcceleratorTypeCallback): void;

Calls GetAcceleratorType.

Parameters
NameDescription
request IGetAcceleratorTypeRequest

GetAcceleratorTypeRequest message or plain object

callback google.cloud.tpu.v2alpha1.Tpu.GetAcceleratorTypeCallback

Node-style callback called with the error, if any, and AcceleratorType

Returns
TypeDescription
void

getAcceleratorType(request)

public getAcceleratorType(request: google.cloud.tpu.v2alpha1.IGetAcceleratorTypeRequest): Promise<google.cloud.tpu.v2alpha1.AcceleratorType>;

Calls GetAcceleratorType.

Parameter
NameDescription
request IGetAcceleratorTypeRequest

GetAcceleratorTypeRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tpu.v2alpha1.AcceleratorType>

Promise

getGuestAttributes(request, callback)

public getGuestAttributes(request: google.cloud.tpu.v2alpha1.IGetGuestAttributesRequest, callback: google.cloud.tpu.v2alpha1.Tpu.GetGuestAttributesCallback): void;

Calls GetGuestAttributes.

Parameters
NameDescription
request google.cloud.tpu.v2alpha1.IGetGuestAttributesRequest

GetGuestAttributesRequest message or plain object

callback google.cloud.tpu.v2alpha1.Tpu.GetGuestAttributesCallback

Node-style callback called with the error, if any, and GetGuestAttributesResponse

Returns
TypeDescription
void

getGuestAttributes(request)

public getGuestAttributes(request: google.cloud.tpu.v2alpha1.IGetGuestAttributesRequest): Promise<google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>;

Calls GetGuestAttributes.

Parameter
NameDescription
request google.cloud.tpu.v2alpha1.IGetGuestAttributesRequest

GetGuestAttributesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>

Promise

getNode(request, callback)

public getNode(request: google.cloud.tpu.v2alpha1.IGetNodeRequest, callback: google.cloud.tpu.v2alpha1.Tpu.GetNodeCallback): void;

Calls GetNode.

Parameters
NameDescription
request google.cloud.tpu.v2alpha1.IGetNodeRequest

GetNodeRequest message or plain object

callback google.cloud.tpu.v2alpha1.Tpu.GetNodeCallback

Node-style callback called with the error, if any, and Node

Returns
TypeDescription
void

getNode(request)

public getNode(request: google.cloud.tpu.v2alpha1.IGetNodeRequest): Promise<google.cloud.tpu.v2alpha1.Node>;

Calls GetNode.

Parameter
NameDescription
request google.cloud.tpu.v2alpha1.IGetNodeRequest

GetNodeRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tpu.v2alpha1.Node>

Promise

getRuntimeVersion(request, callback)

public getRuntimeVersion(request: google.cloud.tpu.v2alpha1.IGetRuntimeVersionRequest, callback: google.cloud.tpu.v2alpha1.Tpu.GetRuntimeVersionCallback): void;

Calls GetRuntimeVersion.

Parameters
NameDescription
request IGetRuntimeVersionRequest

GetRuntimeVersionRequest message or plain object

callback google.cloud.tpu.v2alpha1.Tpu.GetRuntimeVersionCallback

Node-style callback called with the error, if any, and RuntimeVersion

Returns
TypeDescription
void

getRuntimeVersion(request)

public getRuntimeVersion(request: google.cloud.tpu.v2alpha1.IGetRuntimeVersionRequest): Promise<google.cloud.tpu.v2alpha1.RuntimeVersion>;

Calls GetRuntimeVersion.

Parameter
NameDescription
request IGetRuntimeVersionRequest

GetRuntimeVersionRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tpu.v2alpha1.RuntimeVersion>

Promise

listAcceleratorTypes(request, callback)

public listAcceleratorTypes(request: google.cloud.tpu.v2alpha1.IListAcceleratorTypesRequest, callback: google.cloud.tpu.v2alpha1.Tpu.ListAcceleratorTypesCallback): void;

Calls ListAcceleratorTypes.

Parameters
NameDescription
request google.cloud.tpu.v2alpha1.IListAcceleratorTypesRequest

ListAcceleratorTypesRequest message or plain object

callback google.cloud.tpu.v2alpha1.Tpu.ListAcceleratorTypesCallback

Node-style callback called with the error, if any, and ListAcceleratorTypesResponse

Returns
TypeDescription
void

listAcceleratorTypes(request)

public listAcceleratorTypes(request: google.cloud.tpu.v2alpha1.IListAcceleratorTypesRequest): Promise<google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse>;

Calls ListAcceleratorTypes.

Parameter
NameDescription
request google.cloud.tpu.v2alpha1.IListAcceleratorTypesRequest

ListAcceleratorTypesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse>

Promise

listNodes(request, callback)

public listNodes(request: google.cloud.tpu.v2alpha1.IListNodesRequest, callback: google.cloud.tpu.v2alpha1.Tpu.ListNodesCallback): void;

Calls ListNodes.

Parameters
NameDescription
request google.cloud.tpu.v2alpha1.IListNodesRequest

ListNodesRequest message or plain object

callback google.cloud.tpu.v2alpha1.Tpu.ListNodesCallback

Node-style callback called with the error, if any, and ListNodesResponse

Returns
TypeDescription
void

listNodes(request)

public listNodes(request: google.cloud.tpu.v2alpha1.IListNodesRequest): Promise<google.cloud.tpu.v2alpha1.ListNodesResponse>;

Calls ListNodes.

Parameter
NameDescription
request google.cloud.tpu.v2alpha1.IListNodesRequest

ListNodesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tpu.v2alpha1.ListNodesResponse>

Promise

listRuntimeVersions(request, callback)

public listRuntimeVersions(request: google.cloud.tpu.v2alpha1.IListRuntimeVersionsRequest, callback: google.cloud.tpu.v2alpha1.Tpu.ListRuntimeVersionsCallback): void;

Calls ListRuntimeVersions.

Parameters
NameDescription
request IListRuntimeVersionsRequest

ListRuntimeVersionsRequest message or plain object

callback google.cloud.tpu.v2alpha1.Tpu.ListRuntimeVersionsCallback

Node-style callback called with the error, if any, and ListRuntimeVersionsResponse

Returns
TypeDescription
void

listRuntimeVersions(request)

public listRuntimeVersions(request: google.cloud.tpu.v2alpha1.IListRuntimeVersionsRequest): Promise<google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse>;

Calls ListRuntimeVersions.

Parameter
NameDescription
request IListRuntimeVersionsRequest

ListRuntimeVersionsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse>

Promise

startNode(request, callback)

public startNode(request: google.cloud.tpu.v2alpha1.IStartNodeRequest, callback: google.cloud.tpu.v2alpha1.Tpu.StartNodeCallback): void;

Calls StartNode.

Parameters
NameDescription
request IStartNodeRequest

StartNodeRequest message or plain object

callback google.cloud.tpu.v2alpha1.Tpu.StartNodeCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

startNode(request)

public startNode(request: google.cloud.tpu.v2alpha1.IStartNodeRequest): Promise<google.longrunning.Operation>;

Calls StartNode.

Parameter
NameDescription
request IStartNodeRequest

StartNodeRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

stopNode(request, callback)

public stopNode(request: google.cloud.tpu.v2alpha1.IStopNodeRequest, callback: google.cloud.tpu.v2alpha1.Tpu.StopNodeCallback): void;

Calls StopNode.

Parameters
NameDescription
request IStopNodeRequest

StopNodeRequest message or plain object

callback google.cloud.tpu.v2alpha1.Tpu.StopNodeCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

stopNode(request)

public stopNode(request: google.cloud.tpu.v2alpha1.IStopNodeRequest): Promise<google.longrunning.Operation>;

Calls StopNode.

Parameter
NameDescription
request IStopNodeRequest

StopNodeRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateNode(request, callback)

public updateNode(request: google.cloud.tpu.v2alpha1.IUpdateNodeRequest, callback: google.cloud.tpu.v2alpha1.Tpu.UpdateNodeCallback): void;

Calls UpdateNode.

Parameters
NameDescription
request IUpdateNodeRequest

UpdateNodeRequest message or plain object

callback google.cloud.tpu.v2alpha1.Tpu.UpdateNodeCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

updateNode(request)

public updateNode(request: google.cloud.tpu.v2alpha1.IUpdateNodeRequest): Promise<google.longrunning.Operation>;

Calls UpdateNode.

Parameter
NameDescription
request IUpdateNodeRequest

UpdateNodeRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise