Package com.google.cloud.tpu.v2
Class TpuGrpc.TpuBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<TpuGrpc.TpuBlockingStub>
-
- com.google.cloud.tpu.v2.TpuGrpc.TpuBlockingStub
-
- Enclosing class:
- TpuGrpc
public static final class TpuGrpc.TpuBlockingStub extends io.grpc.stub.AbstractBlockingStub<TpuGrpc.TpuBlockingStub>
A stub to allow clients to do synchronous rpc calls to service Tpu.Manages TPU nodes and other resources TPU API v2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TpuGrpc.TpuBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
com.google.longrunning.Operation
createNode(CreateNodeRequest request)
Creates a node.com.google.longrunning.Operation
deleteNode(DeleteNodeRequest request)
Deletes a node.GenerateServiceIdentityResponse
generateServiceIdentity(GenerateServiceIdentityRequest request)
Generates the Cloud TPU service identity for the project.AcceleratorType
getAcceleratorType(GetAcceleratorTypeRequest request)
Gets AcceleratorType.GetGuestAttributesResponse
getGuestAttributes(GetGuestAttributesRequest request)
Retrieves the guest attributes for the node.Node
getNode(GetNodeRequest request)
Gets the details of a node.RuntimeVersion
getRuntimeVersion(GetRuntimeVersionRequest request)
Gets a runtime version.ListAcceleratorTypesResponse
listAcceleratorTypes(ListAcceleratorTypesRequest request)
Lists accelerator types supported by this API.ListNodesResponse
listNodes(ListNodesRequest request)
Lists nodes.ListRuntimeVersionsResponse
listRuntimeVersions(ListRuntimeVersionsRequest request)
Lists runtime versions supported by this API.com.google.longrunning.Operation
startNode(StartNodeRequest request)
Starts a node.com.google.longrunning.Operation
stopNode(StopNodeRequest request)
Stops a node.com.google.longrunning.Operation
updateNode(UpdateNodeRequest request)
Updates the configurations of a node.
-
-
-
Method Detail
-
build
protected TpuGrpc.TpuBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<TpuGrpc.TpuBlockingStub>
-
listNodes
public ListNodesResponse listNodes(ListNodesRequest request)
Lists nodes.
-
getNode
public Node getNode(GetNodeRequest request)
Gets the details of a node.
-
createNode
public com.google.longrunning.Operation createNode(CreateNodeRequest request)
Creates a node.
-
deleteNode
public com.google.longrunning.Operation deleteNode(DeleteNodeRequest request)
Deletes a node.
-
stopNode
public com.google.longrunning.Operation stopNode(StopNodeRequest request)
Stops a node. This operation is only available with single TPU nodes.
-
startNode
public com.google.longrunning.Operation startNode(StartNodeRequest request)
Starts a node.
-
updateNode
public com.google.longrunning.Operation updateNode(UpdateNodeRequest request)
Updates the configurations of a node.
-
generateServiceIdentity
public GenerateServiceIdentityResponse generateServiceIdentity(GenerateServiceIdentityRequest request)
Generates the Cloud TPU service identity for the project.
-
listAcceleratorTypes
public ListAcceleratorTypesResponse listAcceleratorTypes(ListAcceleratorTypesRequest request)
Lists accelerator types supported by this API.
-
getAcceleratorType
public AcceleratorType getAcceleratorType(GetAcceleratorTypeRequest request)
Gets AcceleratorType.
-
listRuntimeVersions
public ListRuntimeVersionsResponse listRuntimeVersions(ListRuntimeVersionsRequest request)
Lists runtime versions supported by this API.
-
getRuntimeVersion
public RuntimeVersion getRuntimeVersion(GetRuntimeVersionRequest request)
Gets a runtime version.
-
getGuestAttributes
public GetGuestAttributesResponse getGuestAttributes(GetGuestAttributesRequest request)
Retrieves the guest attributes for the node.
-
-