Represents a Tpu
Inheritance
$protobuf. rpc.Service > protos.google.cloud.tpu.v1.TpuPackage
@google-cloud/tpuConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor
(
rpcImpl
:
$protobuf
.
RPCImpl
,
requestDelimited
?:
boolean
,
responseDelimited
?:
boolean
);
Constructs a new Tpu service.
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.
rpcImpl
$protobuf. RPCImpl
RPC implementation
requestDelimited
boolean
Whether requests are length-delimited
responseDelimited
boolean
Whether responses are length-delimited
Tpu
RPC service. Useful where requests and/or responses are streamed.
createNode(request, callback)
public
createNode
(
request
:
google
.
cloud
.
tpu
.
v1
.
ICreateNodeRequest
,
callback
:
google
.
cloud
.
tpu
.
v1
.
Tpu
.
CreateNodeCallback
)
:
void
;
Calls CreateNode.
request
ICreateNodeRequest
CreateNodeRequest message or plain object
callback
google.cloud.tpu.v1.Tpu.CreateNodeCallback
Node-style callback called with the error, if any, and Operation
void
createNode(request)
public
createNode
(
request
:
google
.
cloud
.
tpu
.
v1
.
ICreateNodeRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls CreateNode.
request
ICreateNodeRequest
CreateNodeRequest message or plain object
Promise
< google.longrunning.Operation
>
Promise
deleteNode(request, callback)
public
deleteNode
(
request
:
google
.
cloud
.
tpu
.
v1
.
IDeleteNodeRequest
,
callback
:
google
.
cloud
.
tpu
.
v1
.
Tpu
.
DeleteNodeCallback
)
:
void
;
Calls DeleteNode.
request
IDeleteNodeRequest
DeleteNodeRequest message or plain object
callback
google.cloud.tpu.v1.Tpu.DeleteNodeCallback
Node-style callback called with the error, if any, and Operation
void
deleteNode(request)
public
deleteNode
(
request
:
google
.
cloud
.
tpu
.
v1
.
IDeleteNodeRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls DeleteNode.
request
IDeleteNodeRequest
DeleteNodeRequest message or plain object
Promise
< google.longrunning.Operation
>
Promise
getAcceleratorType(request, callback)
public
getAcceleratorType
(
request
:
google
.
cloud
.
tpu
.
v1
.
IGetAcceleratorTypeRequest
,
callback
:
google
.
cloud
.
tpu
.
v1
.
Tpu
.
GetAcceleratorTypeCallback
)
:
void
;
Calls GetAcceleratorType.
request
IGetAcceleratorTypeRequest
GetAcceleratorTypeRequest message or plain object
callback
google.cloud.tpu.v1.Tpu.GetAcceleratorTypeCallback
Node-style callback called with the error, if any, and AcceleratorType
void
getAcceleratorType(request)
public
getAcceleratorType
(
request
:
google
.
cloud
.
tpu
.
v1
.
IGetAcceleratorTypeRequest
)
:
Promise<google
.
cloud
.
tpu
.
v1
.
AcceleratorType
> ;
Calls GetAcceleratorType.
request
IGetAcceleratorTypeRequest
GetAcceleratorTypeRequest message or plain object
Promise
< google.cloud.tpu.v1.AcceleratorType
>
Promise
getNode(request, callback)
public
getNode
(
request
:
google
.
cloud
.
tpu
.
v1
.
IGetNodeRequest
,
callback
:
google
.
cloud
.
tpu
.
v1
.
Tpu
.
GetNodeCallback
)
:
void
;
Calls GetNode.
request
IGetNodeRequest
GetNodeRequest message or plain object
callback
google.cloud.tpu.v1.Tpu.GetNodeCallback
Node-style callback called with the error, if any, and Node
void
getNode(request)
public
getNode
(
request
:
google
.
cloud
.
tpu
.
v1
.
IGetNodeRequest
)
:
Promise<google
.
cloud
.
tpu
.
v1
.
Node
> ;
Calls GetNode.
request
IGetNodeRequest
GetNodeRequest message or plain object
Promise
< google.cloud.tpu.v1.Node
>
Promise
getTensorFlowVersion(request, callback)
public
getTensorFlowVersion
(
request
:
google
.
cloud
.
tpu
.
v1
.
IGetTensorFlowVersionRequest
,
callback
:
google
.
cloud
.
tpu
.
v1
.
Tpu
.
GetTensorFlowVersionCallback
)
:
void
;
Calls GetTensorFlowVersion.
request
IGetTensorFlowVersionRequest
GetTensorFlowVersionRequest message or plain object
callback
google.cloud.tpu.v1.Tpu.GetTensorFlowVersionCallback
Node-style callback called with the error, if any, and TensorFlowVersion
void
getTensorFlowVersion(request)
public
getTensorFlowVersion
(
request
:
google
.
cloud
.
tpu
.
v1
.
IGetTensorFlowVersionRequest
)
:
Promise<google
.
cloud
.
tpu
.
v1
.
TensorFlowVersion
> ;
Calls GetTensorFlowVersion.
request
IGetTensorFlowVersionRequest
GetTensorFlowVersionRequest message or plain object
Promise
< google.cloud.tpu.v1.TensorFlowVersion
>
Promise
listAcceleratorTypes(request, callback)
public
listAcceleratorTypes
(
request
:
google
.
cloud
.
tpu
.
v1
.
IListAcceleratorTypesRequest
,
callback
:
google
.
cloud
.
tpu
.
v1
.
Tpu
.
ListAcceleratorTypesCallback
)
:
void
;
Calls ListAcceleratorTypes.
request
IListAcceleratorTypesRequest
ListAcceleratorTypesRequest message or plain object
callback
google.cloud.tpu.v1.Tpu.ListAcceleratorTypesCallback
Node-style callback called with the error, if any, and ListAcceleratorTypesResponse
void
listAcceleratorTypes(request)
public
listAcceleratorTypes
(
request
:
google
.
cloud
.
tpu
.
v1
.
IListAcceleratorTypesRequest
)
:
Promise<google
.
cloud
.
tpu
.
v1
.
ListAcceleratorTypesResponse
> ;
Calls ListAcceleratorTypes.
request
IListAcceleratorTypesRequest
ListAcceleratorTypesRequest message or plain object
Promise
< google.cloud.tpu.v1.ListAcceleratorTypesResponse
>
Promise
listNodes(request, callback)
public
listNodes
(
request
:
google
.
cloud
.
tpu
.
v1
.
IListNodesRequest
,
callback
:
google
.
cloud
.
tpu
.
v1
.
Tpu
.
ListNodesCallback
)
:
void
;
Calls ListNodes.
request
IListNodesRequest
ListNodesRequest message or plain object
callback
google.cloud.tpu.v1.Tpu.ListNodesCallback
Node-style callback called with the error, if any, and ListNodesResponse
void
listNodes(request)
public
listNodes
(
request
:
google
.
cloud
.
tpu
.
v1
.
IListNodesRequest
)
:
Promise<google
.
cloud
.
tpu
.
v1
.
ListNodesResponse
> ;
Calls ListNodes.
request
IListNodesRequest
ListNodesRequest message or plain object
Promise
< google.cloud.tpu.v1.ListNodesResponse
>
Promise
listTensorFlowVersions(request, callback)
public
listTensorFlowVersions
(
request
:
google
.
cloud
.
tpu
.
v1
.
IListTensorFlowVersionsRequest
,
callback
:
google
.
cloud
.
tpu
.
v1
.
Tpu
.
ListTensorFlowVersionsCallback
)
:
void
;
Calls ListTensorFlowVersions.
request
IListTensorFlowVersionsRequest
ListTensorFlowVersionsRequest message or plain object
callback
google.cloud.tpu.v1.Tpu.ListTensorFlowVersionsCallback
Node-style callback called with the error, if any, and ListTensorFlowVersionsResponse
void
listTensorFlowVersions(request)
public
listTensorFlowVersions
(
request
:
google
.
cloud
.
tpu
.
v1
.
IListTensorFlowVersionsRequest
)
:
Promise<google
.
cloud
.
tpu
.
v1
.
ListTensorFlowVersionsResponse
> ;
Calls ListTensorFlowVersions.
request
IListTensorFlowVersionsRequest
ListTensorFlowVersionsRequest message or plain object
Promise
< google.cloud.tpu.v1.ListTensorFlowVersionsResponse
>
Promise
reimageNode(request, callback)
public
reimageNode
(
request
:
google
.
cloud
.
tpu
.
v1
.
IReimageNodeRequest
,
callback
:
google
.
cloud
.
tpu
.
v1
.
Tpu
.
ReimageNodeCallback
)
:
void
;
Calls ReimageNode.
request
IReimageNodeRequest
ReimageNodeRequest message or plain object
callback
google.cloud.tpu.v1.Tpu.ReimageNodeCallback
Node-style callback called with the error, if any, and Operation
void
reimageNode(request)
public
reimageNode
(
request
:
google
.
cloud
.
tpu
.
v1
.
IReimageNodeRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls ReimageNode.
request
IReimageNodeRequest
ReimageNodeRequest message or plain object
Promise
< google.longrunning.Operation
>
Promise
startNode(request, callback)
public
startNode
(
request
:
google
.
cloud
.
tpu
.
v1
.
IStartNodeRequest
,
callback
:
google
.
cloud
.
tpu
.
v1
.
Tpu
.
StartNodeCallback
)
:
void
;
Calls StartNode.
request
IStartNodeRequest
StartNodeRequest message or plain object
callback
google.cloud.tpu.v1.Tpu.StartNodeCallback
Node-style callback called with the error, if any, and Operation
void
startNode(request)
public
startNode
(
request
:
google
.
cloud
.
tpu
.
v1
.
IStartNodeRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls StartNode.
request
IStartNodeRequest
StartNodeRequest message or plain object
Promise
< google.longrunning.Operation
>
Promise
stopNode(request, callback)
public
stopNode
(
request
:
google
.
cloud
.
tpu
.
v1
.
IStopNodeRequest
,
callback
:
google
.
cloud
.
tpu
.
v1
.
Tpu
.
StopNodeCallback
)
:
void
;
Calls StopNode.
request
IStopNodeRequest
StopNodeRequest message or plain object
callback
google.cloud.tpu.v1.Tpu.StopNodeCallback
Node-style callback called with the error, if any, and Operation
void
stopNode(request)
public
stopNode
(
request
:
google
.
cloud
.
tpu
.
v1
.
IStopNodeRequest
)
:
Promise<google
.
longrunning
.
Operation
> ;
Calls StopNode.
request
IStopNodeRequest
StopNodeRequest message or plain object
Promise
< google.longrunning.Operation
>
Promise