Class ManagedNotebookServiceGrpc.ManagedNotebookServiceFutureStub (1.40.0)

public static final class ManagedNotebookServiceGrpc.ManagedNotebookServiceFutureStub extends AbstractFutureStub<ManagedNotebookServiceGrpc.ManagedNotebookServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service ManagedNotebookService.

API v1 service for Managed Notebooks.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > ManagedNotebookServiceGrpc.ManagedNotebookServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

createRuntime(CreateRuntimeRequest request)

public ListenableFuture<Operation> createRuntime(CreateRuntimeRequest request)

Creates a new Runtime in a given project and location.

Parameter
Name Description
request CreateRuntimeRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteRuntime(DeleteRuntimeRequest request)

public ListenableFuture<Operation> deleteRuntime(DeleteRuntimeRequest request)

Deletes a single Runtime.

Parameter
Name Description
request DeleteRuntimeRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

diagnoseRuntime(DiagnoseRuntimeRequest request)

public ListenableFuture<Operation> diagnoseRuntime(DiagnoseRuntimeRequest request)

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

Parameter
Name Description
request DiagnoseRuntimeRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

getRuntime(GetRuntimeRequest request)

public ListenableFuture<Runtime> getRuntime(GetRuntimeRequest request)

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

Parameter
Name Description
request GetRuntimeRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Runtime>

listRuntimes(ListRuntimesRequest request)

public ListenableFuture<ListRuntimesResponse> listRuntimes(ListRuntimesRequest request)

Lists Runtimes in a given project and location.

Parameter
Name Description
request ListRuntimesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListRuntimesResponse>

refreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest request)

public ListenableFuture<RefreshRuntimeTokenInternalResponse> refreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest request)

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

Parameter
Name Description
request RefreshRuntimeTokenInternalRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<RefreshRuntimeTokenInternalResponse>

reportRuntimeEvent(ReportRuntimeEventRequest request)

public ListenableFuture<Operation> reportRuntimeEvent(ReportRuntimeEventRequest request)

Report and process a runtime event.

Parameter
Name Description
request ReportRuntimeEventRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

resetRuntime(ResetRuntimeRequest request)

public ListenableFuture<Operation> resetRuntime(ResetRuntimeRequest request)

Resets a Managed Notebook Runtime.

Parameter
Name Description
request ResetRuntimeRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

startRuntime(StartRuntimeRequest request)

public ListenableFuture<Operation> startRuntime(StartRuntimeRequest request)

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

Parameter
Name Description
request StartRuntimeRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

stopRuntime(StopRuntimeRequest request)

public ListenableFuture<Operation> stopRuntime(StopRuntimeRequest request)

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

Parameter
Name Description
request StopRuntimeRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

switchRuntime(SwitchRuntimeRequest request)

public ListenableFuture<Operation> switchRuntime(SwitchRuntimeRequest request)

Switch a Managed Notebook Runtime.

Parameter
Name Description
request SwitchRuntimeRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

updateRuntime(UpdateRuntimeRequest request)

public ListenableFuture<Operation> updateRuntime(UpdateRuntimeRequest request)

Update Notebook Runtime configuration.

Parameter
Name Description
request UpdateRuntimeRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

upgradeRuntime(UpgradeRuntimeRequest request)

public ListenableFuture<Operation> upgradeRuntime(UpgradeRuntimeRequest request)

Upgrades a Managed Notebook Runtime to the latest version.

Parameter
Name Description
request UpgradeRuntimeRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>