Class ManagedNotebookServiceGrpc.ManagedNotebookServiceFutureStub (1.22.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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestCreateRuntimeRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteRuntime(DeleteRuntimeRequest request)

public ListenableFuture<Operation> deleteRuntime(DeleteRuntimeRequest request)

Deletes a single Runtime.

Parameter
NameDescription
requestDeleteRuntimeRequest
Returns
TypeDescription
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
NameDescription
requestDiagnoseRuntimeRequest
Returns
TypeDescription
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
NameDescription
requestGetRuntimeRequest
Returns
TypeDescription
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
NameDescription
requestListRuntimesRequest
Returns
TypeDescription
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
NameDescription
requestRefreshRuntimeTokenInternalRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<RefreshRuntimeTokenInternalResponse>

reportRuntimeEvent(ReportRuntimeEventRequest request)

public ListenableFuture<Operation> reportRuntimeEvent(ReportRuntimeEventRequest request)

Report and process a runtime event.

Parameter
NameDescription
requestReportRuntimeEventRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

resetRuntime(ResetRuntimeRequest request)

public ListenableFuture<Operation> resetRuntime(ResetRuntimeRequest request)

Resets a Managed Notebook Runtime.

Parameter
NameDescription
requestResetRuntimeRequest
Returns
TypeDescription
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
NameDescription
requestStartRuntimeRequest
Returns
TypeDescription
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
NameDescription
requestStopRuntimeRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

switchRuntime(SwitchRuntimeRequest request)

public ListenableFuture<Operation> switchRuntime(SwitchRuntimeRequest request)

Switch a Managed Notebook Runtime.

Parameter
NameDescription
requestSwitchRuntimeRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

updateRuntime(UpdateRuntimeRequest request)

public ListenableFuture<Operation> updateRuntime(UpdateRuntimeRequest request)

Update Notebook Runtime configuration.

Parameter
NameDescription
requestUpdateRuntimeRequest
Returns
TypeDescription
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
NameDescription
requestUpgradeRuntimeRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>