Class ManagedNotebookServiceGrpc.ManagedNotebookServiceStub (1.53.0)

public static final class ManagedNotebookServiceGrpc.ManagedNotebookServiceStub extends AbstractAsyncStub<ManagedNotebookServiceGrpc.ManagedNotebookServiceStub>

A stub to allow clients to do asynchronous rpc calls to service ManagedNotebookService.

API v1 service for Managed Notebooks.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > ManagedNotebookServiceGrpc.ManagedNotebookServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected ManagedNotebookServiceGrpc.ManagedNotebookServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
ManagedNotebookServiceGrpc.ManagedNotebookServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createRuntime(CreateRuntimeRequest request, StreamObserver<Operation> responseObserver)

public void createRuntime(CreateRuntimeRequest request, StreamObserver<Operation> responseObserver)

Creates a new Runtime in a given project and location.

Parameters
Name Description
request CreateRuntimeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteRuntime(DeleteRuntimeRequest request, StreamObserver<Operation> responseObserver)

public void deleteRuntime(DeleteRuntimeRequest request, StreamObserver<Operation> responseObserver)

Deletes a single Runtime.

Parameters
Name Description
request DeleteRuntimeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

diagnoseRuntime(DiagnoseRuntimeRequest request, StreamObserver<Operation> responseObserver)

public void diagnoseRuntime(DiagnoseRuntimeRequest request, StreamObserver<Operation> responseObserver)

Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.

Parameters
Name Description
request DiagnoseRuntimeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

getRuntime(GetRuntimeRequest request, StreamObserver<Runtime> responseObserver)

public void getRuntime(GetRuntimeRequest request, StreamObserver<Runtime> responseObserver)

Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.

Parameters
Name Description
request GetRuntimeRequest
responseObserver io.grpc.stub.StreamObserver<Runtime>

listRuntimes(ListRuntimesRequest request, StreamObserver<ListRuntimesResponse> responseObserver)

public void listRuntimes(ListRuntimesRequest request, StreamObserver<ListRuntimesResponse> responseObserver)

Lists Runtimes in a given project and location.

Parameters
Name Description
request ListRuntimesRequest
responseObserver io.grpc.stub.StreamObserver<ListRuntimesResponse>

refreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest request, StreamObserver<RefreshRuntimeTokenInternalResponse> responseObserver)

public void refreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest request, StreamObserver<RefreshRuntimeTokenInternalResponse> responseObserver)

Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.

Parameters
Name Description
request RefreshRuntimeTokenInternalRequest
responseObserver io.grpc.stub.StreamObserver<RefreshRuntimeTokenInternalResponse>

reportRuntimeEvent(ReportRuntimeEventRequest request, StreamObserver<Operation> responseObserver)

public void reportRuntimeEvent(ReportRuntimeEventRequest request, StreamObserver<Operation> responseObserver)

Report and process a runtime event.

Parameters
Name Description
request ReportRuntimeEventRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

resetRuntime(ResetRuntimeRequest request, StreamObserver<Operation> responseObserver)

public void resetRuntime(ResetRuntimeRequest request, StreamObserver<Operation> responseObserver)

Resets a Managed Notebook Runtime.

Parameters
Name Description
request ResetRuntimeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

startRuntime(StartRuntimeRequest request, StreamObserver<Operation> responseObserver)

public void startRuntime(StartRuntimeRequest request, StreamObserver<Operation> responseObserver)

Starts a Managed Notebook Runtime. Perform "Start" on GPU instances; "Resume" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-instance

Parameters
Name Description
request StartRuntimeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

stopRuntime(StopRuntimeRequest request, StreamObserver<Operation> responseObserver)

public void stopRuntime(StopRuntimeRequest request, StreamObserver<Operation> responseObserver)

Stops a Managed Notebook Runtime. Perform "Stop" on GPU instances; "Suspend" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-instance

Parameters
Name Description
request StopRuntimeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

switchRuntime(SwitchRuntimeRequest request, StreamObserver<Operation> responseObserver)

public void switchRuntime(SwitchRuntimeRequest request, StreamObserver<Operation> responseObserver)

Switch a Managed Notebook Runtime.

Parameters
Name Description
request SwitchRuntimeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

updateRuntime(UpdateRuntimeRequest request, StreamObserver<Operation> responseObserver)

public void updateRuntime(UpdateRuntimeRequest request, StreamObserver<Operation> responseObserver)

Update Notebook Runtime configuration.

Parameters
Name Description
request UpdateRuntimeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

upgradeRuntime(UpgradeRuntimeRequest request, StreamObserver<Operation> responseObserver)

public void upgradeRuntime(UpgradeRuntimeRequest request, StreamObserver<Operation> responseObserver)

Upgrades a Managed Notebook Runtime to the latest version.

Parameters
Name Description
request UpgradeRuntimeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>