Class ManagedNotebookServiceGrpc.ManagedNotebookServiceStub (1.10.0)

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

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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestCreateRuntimeRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteRuntime(DeleteRuntimeRequest request, StreamObserver<Operation> responseObserver)

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

Deletes a single Runtime.

Parameters
NameDescription
requestDeleteRuntimeRequest
responseObserverio.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
NameDescription
requestDiagnoseRuntimeRequest
responseObserverio.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
NameDescription
requestGetRuntimeRequest
responseObserverio.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
NameDescription
requestListRuntimesRequest
responseObserverio.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
NameDescription
requestRefreshRuntimeTokenInternalRequest
responseObserverio.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
NameDescription
requestReportRuntimeEventRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

resetRuntime(ResetRuntimeRequest request, StreamObserver<Operation> responseObserver)

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

Resets a Managed Notebook Runtime.

Parameters
NameDescription
requestResetRuntimeRequest
responseObserverio.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
NameDescription
requestStartRuntimeRequest
responseObserverio.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
NameDescription
requestStopRuntimeRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

switchRuntime(SwitchRuntimeRequest request, StreamObserver<Operation> responseObserver)

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

Switch a Managed Notebook Runtime.

Parameters
NameDescription
requestSwitchRuntimeRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateRuntime(UpdateRuntimeRequest request, StreamObserver<Operation> responseObserver)

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

Update Notebook Runtime configuration.

Parameters
NameDescription
requestUpdateRuntimeRequest
responseObserverio.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
NameDescription
requestUpgradeRuntimeRequest
responseObserverio.grpc.stub.StreamObserver<Operation>