AI Platform Notebooks v1 API - Class ManagedNotebookServiceClientImpl (2.0.0)

public sealed class ManagedNotebookServiceClientImpl : ManagedNotebookServiceClient

Reference documentation and code samples for the AI Platform Notebooks v1 API class ManagedNotebookServiceClientImpl.

ManagedNotebookService client wrapper implementation, for convenient use.

Inheritance

Object > ManagedNotebookServiceClient > ManagedNotebookServiceClientImpl

Namespace

Google.Cloud.Notebooks.V1

Assembly

Google.Cloud.Notebooks.V1.dll

Remarks

API v1 service for Managed Notebooks.

Constructors

ManagedNotebookServiceClientImpl(ManagedNotebookService.ManagedNotebookServiceClient, ManagedNotebookServiceSettings, ILogger)

public ManagedNotebookServiceClientImpl(ManagedNotebookService.ManagedNotebookServiceClient grpcClient, ManagedNotebookServiceSettings settings, ILogger logger)

Constructs a client wrapper for the ManagedNotebookService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient ManagedNotebookService.ManagedNotebookServiceClient

The underlying gRPC client.

settings ManagedNotebookServiceSettings

The base ManagedNotebookServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

CreateRuntimeOperationsClient

public override OperationsClient CreateRuntimeOperationsClient { get; }

The long-running operations client for CreateRuntime.

Property Value
Type Description
OperationsClient
Overrides

DeleteRuntimeOperationsClient

public override OperationsClient DeleteRuntimeOperationsClient { get; }

The long-running operations client for DeleteRuntime.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override ManagedNotebookService.ManagedNotebookServiceClient GrpcClient { get; }

The underlying gRPC ManagedNotebookService client

Property Value
Type Description
ManagedNotebookService.ManagedNotebookServiceClient
Overrides

ReportRuntimeEventOperationsClient

public override OperationsClient ReportRuntimeEventOperationsClient { get; }

The long-running operations client for ReportRuntimeEvent.

Property Value
Type Description
OperationsClient
Overrides

ResetRuntimeOperationsClient

public override OperationsClient ResetRuntimeOperationsClient { get; }

The long-running operations client for ResetRuntime.

Property Value
Type Description
OperationsClient
Overrides

StartRuntimeOperationsClient

public override OperationsClient StartRuntimeOperationsClient { get; }

The long-running operations client for StartRuntime.

Property Value
Type Description
OperationsClient
Overrides

StopRuntimeOperationsClient

public override OperationsClient StopRuntimeOperationsClient { get; }

The long-running operations client for StopRuntime.

Property Value
Type Description
OperationsClient
Overrides

SwitchRuntimeOperationsClient

public override OperationsClient SwitchRuntimeOperationsClient { get; }

The long-running operations client for SwitchRuntime.

Property Value
Type Description
OperationsClient
Overrides

Methods

CreateRuntime(CreateRuntimeRequest, CallSettings)

public override Operation<Runtime, OperationMetadata> CreateRuntime(CreateRuntimeRequest request, CallSettings callSettings = null)

Creates a new Runtime in a given project and location.

Parameters
Name Description
request CreateRuntimeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Runtime, OperationMetadata>

The RPC response.

Overrides

CreateRuntimeAsync(CreateRuntimeRequest, CallSettings)

public override async Task<Operation<Runtime, OperationMetadata>> CreateRuntimeAsync(CreateRuntimeRequest request, CallSettings callSettings = null)

Creates a new Runtime in a given project and location.

Parameters
Name Description
request CreateRuntimeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Runtime, OperationMetadata>>

A Task containing the RPC response.

Overrides

DeleteRuntime(DeleteRuntimeRequest, CallSettings)

public override Operation<Empty, OperationMetadata> DeleteRuntime(DeleteRuntimeRequest request, CallSettings callSettings = null)

Deletes a single Runtime.

Parameters
Name Description
request DeleteRuntimeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Empty, OperationMetadata>

The RPC response.

Overrides

DeleteRuntimeAsync(DeleteRuntimeRequest, CallSettings)

public override async Task<Operation<Empty, OperationMetadata>> DeleteRuntimeAsync(DeleteRuntimeRequest request, CallSettings callSettings = null)

Deletes a single Runtime.

Parameters
Name Description
request DeleteRuntimeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Overrides

GetRuntime(GetRuntimeRequest, CallSettings)

public override Runtime GetRuntime(GetRuntimeRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetRuntimeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Runtime

The RPC response.

Overrides

GetRuntimeAsync(GetRuntimeRequest, CallSettings)

public override Task<Runtime> GetRuntimeAsync(GetRuntimeRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetRuntimeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Runtime>

A Task containing the RPC response.

Overrides

ListRuntimes(ListRuntimesRequest, CallSettings)

public override PagedEnumerable<ListRuntimesResponse, Runtime> ListRuntimes(ListRuntimesRequest request, CallSettings callSettings = null)

Lists Runtimes in a given project and location.

Parameters
Name Description
request ListRuntimesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListRuntimesResponse, Runtime>

A pageable sequence of Runtime resources.

Overrides

ListRuntimesAsync(ListRuntimesRequest, CallSettings)

public override PagedAsyncEnumerable<ListRuntimesResponse, Runtime> ListRuntimesAsync(ListRuntimesRequest request, CallSettings callSettings = null)

Lists Runtimes in a given project and location.

Parameters
Name Description
request ListRuntimesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListRuntimesResponse, Runtime>

A pageable asynchronous sequence of Runtime resources.

Overrides

RefreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest, CallSettings)

public override RefreshRuntimeTokenInternalResponse RefreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest request, CallSettings callSettings = null)

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

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RefreshRuntimeTokenInternalResponse

The RPC response.

Overrides

RefreshRuntimeTokenInternalAsync(RefreshRuntimeTokenInternalRequest, CallSettings)

public override Task<RefreshRuntimeTokenInternalResponse> RefreshRuntimeTokenInternalAsync(RefreshRuntimeTokenInternalRequest request, CallSettings callSettings = null)

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

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<RefreshRuntimeTokenInternalResponse>

A Task containing the RPC response.

Overrides

ReportRuntimeEvent(ReportRuntimeEventRequest, CallSettings)

public override Operation<Runtime, OperationMetadata> ReportRuntimeEvent(ReportRuntimeEventRequest request, CallSettings callSettings = null)

Report and process a runtime event.

Parameters
Name Description
request ReportRuntimeEventRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Runtime, OperationMetadata>

The RPC response.

Overrides

ReportRuntimeEventAsync(ReportRuntimeEventRequest, CallSettings)

public override async Task<Operation<Runtime, OperationMetadata>> ReportRuntimeEventAsync(ReportRuntimeEventRequest request, CallSettings callSettings = null)

Report and process a runtime event.

Parameters
Name Description
request ReportRuntimeEventRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Runtime, OperationMetadata>>

A Task containing the RPC response.

Overrides

ResetRuntime(ResetRuntimeRequest, CallSettings)

public override Operation<Runtime, OperationMetadata> ResetRuntime(ResetRuntimeRequest request, CallSettings callSettings = null)

Resets a Managed Notebook Runtime.

Parameters
Name Description
request ResetRuntimeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Runtime, OperationMetadata>

The RPC response.

Overrides

ResetRuntimeAsync(ResetRuntimeRequest, CallSettings)

public override async Task<Operation<Runtime, OperationMetadata>> ResetRuntimeAsync(ResetRuntimeRequest request, CallSettings callSettings = null)

Resets a Managed Notebook Runtime.

Parameters
Name Description
request ResetRuntimeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Runtime, OperationMetadata>>

A Task containing the RPC response.

Overrides

StartRuntime(StartRuntimeRequest, CallSettings)

public override Operation<Runtime, OperationMetadata> StartRuntime(StartRuntimeRequest request, CallSettings callSettings = null)

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

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Runtime, OperationMetadata>

The RPC response.

Overrides

StartRuntimeAsync(StartRuntimeRequest, CallSettings)

public override async Task<Operation<Runtime, OperationMetadata>> StartRuntimeAsync(StartRuntimeRequest request, CallSettings callSettings = null)

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

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Runtime, OperationMetadata>>

A Task containing the RPC response.

Overrides

StopRuntime(StopRuntimeRequest, CallSettings)

public override Operation<Runtime, OperationMetadata> StopRuntime(StopRuntimeRequest request, CallSettings callSettings = null)

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

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Runtime, OperationMetadata>

The RPC response.

Overrides

StopRuntimeAsync(StopRuntimeRequest, CallSettings)

public override async Task<Operation<Runtime, OperationMetadata>> StopRuntimeAsync(StopRuntimeRequest request, CallSettings callSettings = null)

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

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Runtime, OperationMetadata>>

A Task containing the RPC response.

Overrides

SwitchRuntime(SwitchRuntimeRequest, CallSettings)

public override Operation<Runtime, OperationMetadata> SwitchRuntime(SwitchRuntimeRequest request, CallSettings callSettings = null)

Switch a Managed Notebook Runtime.

Parameters
Name Description
request SwitchRuntimeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Runtime, OperationMetadata>

The RPC response.

Overrides

SwitchRuntimeAsync(SwitchRuntimeRequest, CallSettings)

public override async Task<Operation<Runtime, OperationMetadata>> SwitchRuntimeAsync(SwitchRuntimeRequest request, CallSettings callSettings = null)

Switch a Managed Notebook Runtime.

Parameters
Name Description
request SwitchRuntimeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Runtime, OperationMetadata>>

A Task containing the RPC response.

Overrides