AI Platform Notebooks v1 API - Class ManagedNotebookService.ManagedNotebookServiceClient (2.3.0)

public class ManagedNotebookService.ManagedNotebookServiceClient : ClientBase<ManagedNotebookService.ManagedNotebookServiceClient>

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

Client for ManagedNotebookService

Inheritance

object > ClientBase > ClientBaseManagedNotebookServiceManagedNotebookServiceClient > ManagedNotebookService.ManagedNotebookServiceClient

Namespace

Google.Cloud.Notebooks.V1

Assembly

Google.Cloud.Notebooks.V1.dll

Constructors

ManagedNotebookServiceClient()

protected ManagedNotebookServiceClient()

Protected parameterless constructor to allow creation of test doubles.

ManagedNotebookServiceClient(CallInvoker)

public ManagedNotebookServiceClient(CallInvoker callInvoker)

Creates a new client for ManagedNotebookService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

ManagedNotebookServiceClient(ChannelBase)

public ManagedNotebookServiceClient(ChannelBase channel)

Creates a new client for ManagedNotebookService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

ManagedNotebookServiceClient(ClientBaseConfiguration)

protected ManagedNotebookServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateIAMPolicyClient()

public virtual IAMPolicy.IAMPolicyClient CreateIAMPolicyClient()

Creates a new instance of IAMPolicy.IAMPolicyClient using the same call invoker as this client.

Returns
TypeDescription
IAMPolicyIAMPolicyClient

A new IAMPolicy.IAMPolicyClient for the same target as this client.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
TypeDescription
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
TypeDescription
OperationsOperationsClient

A new Operations client for the same target as this client.

CreateRuntime(CreateRuntimeRequest, CallOptions)

public virtual Operation CreateRuntime(CreateRuntimeRequest request, CallOptions options)

Creates a new Runtime in a given project and location.

Parameters
NameDescription
requestCreateRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

CreateRuntime(CreateRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation CreateRuntime(CreateRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new Runtime in a given project and location.

Parameters
NameDescription
requestCreateRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

CreateRuntimeAsync(CreateRuntimeRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CreateRuntimeAsync(CreateRuntimeRequest request, CallOptions options)

Creates a new Runtime in a given project and location.

Parameters
NameDescription
requestCreateRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

CreateRuntimeAsync(CreateRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> CreateRuntimeAsync(CreateRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new Runtime in a given project and location.

Parameters
NameDescription
requestCreateRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteRuntime(DeleteRuntimeRequest, CallOptions)

public virtual Operation DeleteRuntime(DeleteRuntimeRequest request, CallOptions options)

Deletes a single Runtime.

Parameters
NameDescription
requestDeleteRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteRuntime(DeleteRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation DeleteRuntime(DeleteRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a single Runtime.

Parameters
NameDescription
requestDeleteRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteRuntimeAsync(DeleteRuntimeRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteRuntimeAsync(DeleteRuntimeRequest request, CallOptions options)

Deletes a single Runtime.

Parameters
NameDescription
requestDeleteRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteRuntimeAsync(DeleteRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteRuntimeAsync(DeleteRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a single Runtime.

Parameters
NameDescription
requestDeleteRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DiagnoseRuntime(DiagnoseRuntimeRequest, CallOptions)

public virtual Operation DiagnoseRuntime(DiagnoseRuntimeRequest request, CallOptions options)

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

Parameters
NameDescription
requestDiagnoseRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

DiagnoseRuntime(DiagnoseRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation DiagnoseRuntime(DiagnoseRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestDiagnoseRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DiagnoseRuntimeAsync(DiagnoseRuntimeRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DiagnoseRuntimeAsync(DiagnoseRuntimeRequest request, CallOptions options)

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

Parameters
NameDescription
requestDiagnoseRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DiagnoseRuntimeAsync(DiagnoseRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DiagnoseRuntimeAsync(DiagnoseRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestDiagnoseRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

GetRuntime(GetRuntimeRequest, CallOptions)

public virtual Runtime GetRuntime(GetRuntimeRequest request, CallOptions options)

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

Parameters
NameDescription
requestGetRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Runtime

The response received from the server.

GetRuntime(GetRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual Runtime GetRuntime(GetRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestGetRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Runtime

The response received from the server.

GetRuntimeAsync(GetRuntimeRequest, CallOptions)

public virtual AsyncUnaryCall<Runtime> GetRuntimeAsync(GetRuntimeRequest request, CallOptions options)

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

Parameters
NameDescription
requestGetRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallRuntime

The call object.

GetRuntimeAsync(GetRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Runtime> GetRuntimeAsync(GetRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestGetRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallRuntime

The call object.

ListRuntimes(ListRuntimesRequest, CallOptions)

public virtual ListRuntimesResponse ListRuntimes(ListRuntimesRequest request, CallOptions options)

Lists Runtimes in a given project and location.

Parameters
NameDescription
requestListRuntimesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListRuntimesResponse

The response received from the server.

ListRuntimes(ListRuntimesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListRuntimesResponse ListRuntimes(ListRuntimesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists Runtimes in a given project and location.

Parameters
NameDescription
requestListRuntimesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListRuntimesResponse

The response received from the server.

ListRuntimesAsync(ListRuntimesRequest, CallOptions)

public virtual AsyncUnaryCall<ListRuntimesResponse> ListRuntimesAsync(ListRuntimesRequest request, CallOptions options)

Lists Runtimes in a given project and location.

Parameters
NameDescription
requestListRuntimesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListRuntimesResponse

The call object.

ListRuntimesAsync(ListRuntimesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListRuntimesResponse> ListRuntimesAsync(ListRuntimesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists Runtimes in a given project and location.

Parameters
NameDescription
requestListRuntimesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListRuntimesResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override ManagedNotebookService.ManagedNotebookServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
ManagedNotebookServiceManagedNotebookServiceClient
Overrides

RefreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest, CallOptions)

public virtual RefreshRuntimeTokenInternalResponse RefreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest request, CallOptions options)

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
RefreshRuntimeTokenInternalResponse

The response received from the server.

RefreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest, Metadata, DateTime?, CancellationToken)

public virtual RefreshRuntimeTokenInternalResponse RefreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
RefreshRuntimeTokenInternalResponse

The response received from the server.

RefreshRuntimeTokenInternalAsync(RefreshRuntimeTokenInternalRequest, CallOptions)

public virtual AsyncUnaryCall<RefreshRuntimeTokenInternalResponse> RefreshRuntimeTokenInternalAsync(RefreshRuntimeTokenInternalRequest request, CallOptions options)

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallRefreshRuntimeTokenInternalResponse

The call object.

RefreshRuntimeTokenInternalAsync(RefreshRuntimeTokenInternalRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<RefreshRuntimeTokenInternalResponse> RefreshRuntimeTokenInternalAsync(RefreshRuntimeTokenInternalRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallRefreshRuntimeTokenInternalResponse

The call object.

ReportRuntimeEvent(ReportRuntimeEventRequest, CallOptions)

public virtual Operation ReportRuntimeEvent(ReportRuntimeEventRequest request, CallOptions options)

Report and process a runtime event.

Parameters
NameDescription
requestReportRuntimeEventRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

ReportRuntimeEvent(ReportRuntimeEventRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation ReportRuntimeEvent(ReportRuntimeEventRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Report and process a runtime event.

Parameters
NameDescription
requestReportRuntimeEventRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

ReportRuntimeEventAsync(ReportRuntimeEventRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> ReportRuntimeEventAsync(ReportRuntimeEventRequest request, CallOptions options)

Report and process a runtime event.

Parameters
NameDescription
requestReportRuntimeEventRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

ReportRuntimeEventAsync(ReportRuntimeEventRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> ReportRuntimeEventAsync(ReportRuntimeEventRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Report and process a runtime event.

Parameters
NameDescription
requestReportRuntimeEventRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

ResetRuntime(ResetRuntimeRequest, CallOptions)

public virtual Operation ResetRuntime(ResetRuntimeRequest request, CallOptions options)

Resets a Managed Notebook Runtime.

Parameters
NameDescription
requestResetRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

ResetRuntime(ResetRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation ResetRuntime(ResetRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Resets a Managed Notebook Runtime.

Parameters
NameDescription
requestResetRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

ResetRuntimeAsync(ResetRuntimeRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> ResetRuntimeAsync(ResetRuntimeRequest request, CallOptions options)

Resets a Managed Notebook Runtime.

Parameters
NameDescription
requestResetRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

ResetRuntimeAsync(ResetRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> ResetRuntimeAsync(ResetRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Resets a Managed Notebook Runtime.

Parameters
NameDescription
requestResetRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

StartRuntime(StartRuntimeRequest, CallOptions)

public virtual Operation StartRuntime(StartRuntimeRequest request, CallOptions options)

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

StartRuntime(StartRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation StartRuntime(StartRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

StartRuntimeAsync(StartRuntimeRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> StartRuntimeAsync(StartRuntimeRequest request, CallOptions options)

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

StartRuntimeAsync(StartRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> StartRuntimeAsync(StartRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

StopRuntime(StopRuntimeRequest, CallOptions)

public virtual Operation StopRuntime(StopRuntimeRequest request, CallOptions options)

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

StopRuntime(StopRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation StopRuntime(StopRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

StopRuntimeAsync(StopRuntimeRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> StopRuntimeAsync(StopRuntimeRequest request, CallOptions options)

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

StopRuntimeAsync(StopRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> StopRuntimeAsync(StopRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

SwitchRuntime(SwitchRuntimeRequest, CallOptions)

public virtual Operation SwitchRuntime(SwitchRuntimeRequest request, CallOptions options)

Switch a Managed Notebook Runtime.

Parameters
NameDescription
requestSwitchRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

SwitchRuntime(SwitchRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation SwitchRuntime(SwitchRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Switch a Managed Notebook Runtime.

Parameters
NameDescription
requestSwitchRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

SwitchRuntimeAsync(SwitchRuntimeRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> SwitchRuntimeAsync(SwitchRuntimeRequest request, CallOptions options)

Switch a Managed Notebook Runtime.

Parameters
NameDescription
requestSwitchRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

SwitchRuntimeAsync(SwitchRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> SwitchRuntimeAsync(SwitchRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Switch a Managed Notebook Runtime.

Parameters
NameDescription
requestSwitchRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

UpdateRuntime(UpdateRuntimeRequest, CallOptions)

public virtual Operation UpdateRuntime(UpdateRuntimeRequest request, CallOptions options)

Update Notebook Runtime configuration.

Parameters
NameDescription
requestUpdateRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

UpdateRuntime(UpdateRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation UpdateRuntime(UpdateRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update Notebook Runtime configuration.

Parameters
NameDescription
requestUpdateRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

UpdateRuntimeAsync(UpdateRuntimeRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateRuntimeAsync(UpdateRuntimeRequest request, CallOptions options)

Update Notebook Runtime configuration.

Parameters
NameDescription
requestUpdateRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

UpdateRuntimeAsync(UpdateRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> UpdateRuntimeAsync(UpdateRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update Notebook Runtime configuration.

Parameters
NameDescription
requestUpdateRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

UpgradeRuntime(UpgradeRuntimeRequest, CallOptions)

public virtual Operation UpgradeRuntime(UpgradeRuntimeRequest request, CallOptions options)

Upgrades a Managed Notebook Runtime to the latest version.

Parameters
NameDescription
requestUpgradeRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

UpgradeRuntime(UpgradeRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation UpgradeRuntime(UpgradeRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Upgrades a Managed Notebook Runtime to the latest version.

Parameters
NameDescription
requestUpgradeRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

UpgradeRuntimeAsync(UpgradeRuntimeRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpgradeRuntimeAsync(UpgradeRuntimeRequest request, CallOptions options)

Upgrades a Managed Notebook Runtime to the latest version.

Parameters
NameDescription
requestUpgradeRuntimeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

UpgradeRuntimeAsync(UpgradeRuntimeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> UpgradeRuntimeAsync(UpgradeRuntimeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Upgrades a Managed Notebook Runtime to the latest version.

Parameters
NameDescription
requestUpgradeRuntimeRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.