Represents a Tpu
Inheritance
$protobuf.rpc.Service > protos.google.cloud.tpu.v2.TpuPackage
@google-cloud/tpuConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Tpu service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
Tpu | RPC service. Useful where requests and/or responses are streamed. |
createNode(request, callback)
public createNode(request: google.cloud.tpu.v2.ICreateNodeRequest, callback: google.cloud.tpu.v2.Tpu.CreateNodeCallback): void;
Calls CreateNode.
Parameters | |
---|---|
Name | Description |
request |
ICreateNodeRequest
CreateNodeRequest message or plain object |
callback |
google.cloud.tpu.v2.Tpu.CreateNodeCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
createNode(request)
public createNode(request: google.cloud.tpu.v2.ICreateNodeRequest): Promise<google.longrunning.Operation>;
Calls CreateNode.
Parameter | |
---|---|
Name | Description |
request |
ICreateNodeRequest
CreateNodeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
deleteNode(request, callback)
public deleteNode(request: google.cloud.tpu.v2.IDeleteNodeRequest, callback: google.cloud.tpu.v2.Tpu.DeleteNodeCallback): void;
Calls DeleteNode.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.tpu.v2.IDeleteNodeRequest
DeleteNodeRequest message or plain object |
callback |
google.cloud.tpu.v2.Tpu.DeleteNodeCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
deleteNode(request)
public deleteNode(request: google.cloud.tpu.v2.IDeleteNodeRequest): Promise<google.longrunning.Operation>;
Calls DeleteNode.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.tpu.v2.IDeleteNodeRequest
DeleteNodeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
generateServiceIdentity(request, callback)
public generateServiceIdentity(request: google.cloud.tpu.v2.IGenerateServiceIdentityRequest, callback: google.cloud.tpu.v2.Tpu.GenerateServiceIdentityCallback): void;
Calls GenerateServiceIdentity.
Parameters | |
---|---|
Name | Description |
request |
IGenerateServiceIdentityRequest
GenerateServiceIdentityRequest message or plain object |
callback |
google.cloud.tpu.v2.Tpu.GenerateServiceIdentityCallback
Node-style callback called with the error, if any, and GenerateServiceIdentityResponse |
Returns | |
---|---|
Type | Description |
void |
generateServiceIdentity(request)
public generateServiceIdentity(request: google.cloud.tpu.v2.IGenerateServiceIdentityRequest): Promise<google.cloud.tpu.v2.GenerateServiceIdentityResponse>;
Calls GenerateServiceIdentity.
Parameter | |
---|---|
Name | Description |
request |
IGenerateServiceIdentityRequest
GenerateServiceIdentityRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.tpu.v2.GenerateServiceIdentityResponse> | Promise |
getAcceleratorType(request, callback)
public getAcceleratorType(request: google.cloud.tpu.v2.IGetAcceleratorTypeRequest, callback: google.cloud.tpu.v2.Tpu.GetAcceleratorTypeCallback): void;
Calls GetAcceleratorType.
Parameters | |
---|---|
Name | Description |
request |
IGetAcceleratorTypeRequest
GetAcceleratorTypeRequest message or plain object |
callback |
google.cloud.tpu.v2.Tpu.GetAcceleratorTypeCallback
Node-style callback called with the error, if any, and AcceleratorType |
Returns | |
---|---|
Type | Description |
void |
getAcceleratorType(request)
public getAcceleratorType(request: google.cloud.tpu.v2.IGetAcceleratorTypeRequest): Promise<google.cloud.tpu.v2.AcceleratorType>;
Calls GetAcceleratorType.
Parameter | |
---|---|
Name | Description |
request |
IGetAcceleratorTypeRequest
GetAcceleratorTypeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.tpu.v2.AcceleratorType> | Promise |
getGuestAttributes(request, callback)
public getGuestAttributes(request: google.cloud.tpu.v2.IGetGuestAttributesRequest, callback: google.cloud.tpu.v2.Tpu.GetGuestAttributesCallback): void;
Calls GetGuestAttributes.
Parameters | |
---|---|
Name | Description |
request |
IGetGuestAttributesRequest
GetGuestAttributesRequest message or plain object |
callback |
google.cloud.tpu.v2.Tpu.GetGuestAttributesCallback
Node-style callback called with the error, if any, and GetGuestAttributesResponse |
Returns | |
---|---|
Type | Description |
void |
getGuestAttributes(request)
public getGuestAttributes(request: google.cloud.tpu.v2.IGetGuestAttributesRequest): Promise<google.cloud.tpu.v2.GetGuestAttributesResponse>;
Calls GetGuestAttributes.
Parameter | |
---|---|
Name | Description |
request |
IGetGuestAttributesRequest
GetGuestAttributesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.tpu.v2.GetGuestAttributesResponse> | Promise |
getNode(request, callback)
public getNode(request: google.cloud.tpu.v2.IGetNodeRequest, callback: google.cloud.tpu.v2.Tpu.GetNodeCallback): void;
Calls GetNode.
Parameters | |
---|---|
Name | Description |
request |
IGetNodeRequest
GetNodeRequest message or plain object |
callback |
google.cloud.tpu.v2.Tpu.GetNodeCallback
Node-style callback called with the error, if any, and Node |
Returns | |
---|---|
Type | Description |
void |
getNode(request)
public getNode(request: google.cloud.tpu.v2.IGetNodeRequest): Promise<google.cloud.tpu.v2.Node>;
Calls GetNode.
Parameter | |
---|---|
Name | Description |
request |
IGetNodeRequest
GetNodeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.tpu.v2.Node> | Promise |
getRuntimeVersion(request, callback)
public getRuntimeVersion(request: google.cloud.tpu.v2.IGetRuntimeVersionRequest, callback: google.cloud.tpu.v2.Tpu.GetRuntimeVersionCallback): void;
Calls GetRuntimeVersion.
Parameters | |
---|---|
Name | Description |
request |
IGetRuntimeVersionRequest
GetRuntimeVersionRequest message or plain object |
callback |
google.cloud.tpu.v2.Tpu.GetRuntimeVersionCallback
Node-style callback called with the error, if any, and RuntimeVersion |
Returns | |
---|---|
Type | Description |
void |
getRuntimeVersion(request)
public getRuntimeVersion(request: google.cloud.tpu.v2.IGetRuntimeVersionRequest): Promise<google.cloud.tpu.v2.RuntimeVersion>;
Calls GetRuntimeVersion.
Parameter | |
---|---|
Name | Description |
request |
IGetRuntimeVersionRequest
GetRuntimeVersionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.tpu.v2.RuntimeVersion> | Promise |
listAcceleratorTypes(request, callback)
public listAcceleratorTypes(request: google.cloud.tpu.v2.IListAcceleratorTypesRequest, callback: google.cloud.tpu.v2.Tpu.ListAcceleratorTypesCallback): void;
Calls ListAcceleratorTypes.
Parameters | |
---|---|
Name | Description |
request |
IListAcceleratorTypesRequest
ListAcceleratorTypesRequest message or plain object |
callback |
google.cloud.tpu.v2.Tpu.ListAcceleratorTypesCallback
Node-style callback called with the error, if any, and ListAcceleratorTypesResponse |
Returns | |
---|---|
Type | Description |
void |
listAcceleratorTypes(request)
public listAcceleratorTypes(request: google.cloud.tpu.v2.IListAcceleratorTypesRequest): Promise<google.cloud.tpu.v2.ListAcceleratorTypesResponse>;
Calls ListAcceleratorTypes.
Parameter | |
---|---|
Name | Description |
request |
IListAcceleratorTypesRequest
ListAcceleratorTypesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.tpu.v2.ListAcceleratorTypesResponse> | Promise |
listNodes(request, callback)
public listNodes(request: google.cloud.tpu.v2.IListNodesRequest, callback: google.cloud.tpu.v2.Tpu.ListNodesCallback): void;
Calls ListNodes.
Parameters | |
---|---|
Name | Description |
request |
IListNodesRequest
ListNodesRequest message or plain object |
callback |
google.cloud.tpu.v2.Tpu.ListNodesCallback
Node-style callback called with the error, if any, and ListNodesResponse |
Returns | |
---|---|
Type | Description |
void |
listNodes(request)
public listNodes(request: google.cloud.tpu.v2.IListNodesRequest): Promise<google.cloud.tpu.v2.ListNodesResponse>;
Calls ListNodes.
Parameter | |
---|---|
Name | Description |
request |
IListNodesRequest
ListNodesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.tpu.v2.ListNodesResponse> | Promise |
listRuntimeVersions(request, callback)
public listRuntimeVersions(request: google.cloud.tpu.v2.IListRuntimeVersionsRequest, callback: google.cloud.tpu.v2.Tpu.ListRuntimeVersionsCallback): void;
Calls ListRuntimeVersions.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.tpu.v2.IListRuntimeVersionsRequest
ListRuntimeVersionsRequest message or plain object |
callback |
google.cloud.tpu.v2.Tpu.ListRuntimeVersionsCallback
Node-style callback called with the error, if any, and ListRuntimeVersionsResponse |
Returns | |
---|---|
Type | Description |
void |
listRuntimeVersions(request)
public listRuntimeVersions(request: google.cloud.tpu.v2.IListRuntimeVersionsRequest): Promise<google.cloud.tpu.v2.ListRuntimeVersionsResponse>;
Calls ListRuntimeVersions.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.tpu.v2.IListRuntimeVersionsRequest
ListRuntimeVersionsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.tpu.v2.ListRuntimeVersionsResponse> | Promise |
startNode(request, callback)
public startNode(request: google.cloud.tpu.v2.IStartNodeRequest, callback: google.cloud.tpu.v2.Tpu.StartNodeCallback): void;
Calls StartNode.
Parameters | |
---|---|
Name | Description |
request |
IStartNodeRequest
StartNodeRequest message or plain object |
callback |
google.cloud.tpu.v2.Tpu.StartNodeCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
startNode(request)
public startNode(request: google.cloud.tpu.v2.IStartNodeRequest): Promise<google.longrunning.Operation>;
Calls StartNode.
Parameter | |
---|---|
Name | Description |
request |
IStartNodeRequest
StartNodeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
stopNode(request, callback)
public stopNode(request: google.cloud.tpu.v2.IStopNodeRequest, callback: google.cloud.tpu.v2.Tpu.StopNodeCallback): void;
Calls StopNode.
Parameters | |
---|---|
Name | Description |
request |
IStopNodeRequest
StopNodeRequest message or plain object |
callback |
google.cloud.tpu.v2.Tpu.StopNodeCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
stopNode(request)
public stopNode(request: google.cloud.tpu.v2.IStopNodeRequest): Promise<google.longrunning.Operation>;
Calls StopNode.
Parameter | |
---|---|
Name | Description |
request |
IStopNodeRequest
StopNodeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
updateNode(request, callback)
public updateNode(request: google.cloud.tpu.v2.IUpdateNodeRequest, callback: google.cloud.tpu.v2.Tpu.UpdateNodeCallback): void;
Calls UpdateNode.
Parameters | |
---|---|
Name | Description |
request |
IUpdateNodeRequest
UpdateNodeRequest message or plain object |
callback |
google.cloud.tpu.v2.Tpu.UpdateNodeCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
updateNode(request)
public updateNode(request: google.cloud.tpu.v2.IUpdateNodeRequest): Promise<google.longrunning.Operation>;
Calls UpdateNode.
Parameter | |
---|---|
Name | Description |
request |
IUpdateNodeRequest
UpdateNodeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |