Package com.google.cloud.notebooks.v1
Class ManagedNotebookServiceGrpc.ManagedNotebookServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<ManagedNotebookServiceGrpc.ManagedNotebookServiceStub>
-
- com.google.cloud.notebooks.v1.ManagedNotebookServiceGrpc.ManagedNotebookServiceStub
-
- Enclosing class:
- ManagedNotebookServiceGrpc
public static final class ManagedNotebookServiceGrpc.ManagedNotebookServiceStub extends io.grpc.stub.AbstractAsyncStub<ManagedNotebookServiceGrpc.ManagedNotebookServiceStub>
A stub to allow clients to do asynchronous rpc calls to service ManagedNotebookService.API v1 service for Managed Notebooks.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ManagedNotebookServiceGrpc.ManagedNotebookServiceStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
createRuntime(CreateRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new Runtime in a given project and location.void
deleteRuntime(DeleteRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Deletes a single Runtime.void
diagnoseRuntime(DiagnoseRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.void
getRuntime(GetRuntimeRequest request, io.grpc.stub.StreamObserver<Runtime> responseObserver)
Gets details of a single Runtime.void
listRuntimes(ListRuntimesRequest request, io.grpc.stub.StreamObserver<ListRuntimesResponse> responseObserver)
Lists Runtimes in a given project and location.void
refreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest request, io.grpc.stub.StreamObserver<RefreshRuntimeTokenInternalResponse> responseObserver)
Gets an access token for the consumer service account that the customer attached to the runtime.void
reportRuntimeEvent(ReportRuntimeEventRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Report and process a runtime event.void
resetRuntime(ResetRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Resets a Managed Notebook Runtime.void
startRuntime(StartRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Starts a Managed Notebook Runtime.void
stopRuntime(StopRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Stops a Managed Notebook Runtime.void
switchRuntime(SwitchRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Switch a Managed Notebook Runtime.void
updateRuntime(UpdateRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Update Notebook Runtime configuration.void
upgradeRuntime(UpgradeRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Upgrades a Managed Notebook Runtime to the latest version.
-
-
-
Method Detail
-
build
protected ManagedNotebookServiceGrpc.ManagedNotebookServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<ManagedNotebookServiceGrpc.ManagedNotebookServiceStub>
-
listRuntimes
public void listRuntimes(ListRuntimesRequest request, io.grpc.stub.StreamObserver<ListRuntimesResponse> responseObserver)
Lists Runtimes in a given project and location.
-
getRuntime
public void getRuntime(GetRuntimeRequest request, io.grpc.stub.StreamObserver<Runtime> responseObserver)
Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.
-
createRuntime
public void createRuntime(CreateRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new Runtime in a given project and location.
-
updateRuntime
public void updateRuntime(UpdateRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Update Notebook Runtime configuration.
-
deleteRuntime
public void deleteRuntime(DeleteRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Deletes a single Runtime.
-
startRuntime
public void startRuntime(StartRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.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
-
stopRuntime
public void stopRuntime(StopRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.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
-
switchRuntime
public void switchRuntime(SwitchRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Switch a Managed Notebook Runtime.
-
resetRuntime
public void resetRuntime(ResetRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Resets a Managed Notebook Runtime.
-
upgradeRuntime
public void upgradeRuntime(UpgradeRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Upgrades a Managed Notebook Runtime to the latest version.
-
reportRuntimeEvent
public void reportRuntimeEvent(ReportRuntimeEventRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Report and process a runtime event.
-
refreshRuntimeTokenInternal
public void refreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest request, io.grpc.stub.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.
-
diagnoseRuntime
public void diagnoseRuntime(DiagnoseRuntimeRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
-
-