Google Cloud Notebooks V1 Client - Class Runtime (1.0.5)

Reference documentation and code samples for the Google Cloud Notebooks V1 Client class Runtime.

The definition of a Runtime for a managed notebook instance.

Generated from protobuf message google.cloud.notebooks.v1.Runtime

Namespace

Google \ Cloud \ Notebooks \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource name of the runtime. Format: projects/{project}/locations/{location}/runtimes/{runtimeId}

↳ virtual_machine VirtualMachine

Use a Compute Engine VM image to start the managed notebook instance.

↳ state int

Output only. Runtime state.

↳ health_state int

Output only. Runtime health_state.

↳ access_config RuntimeAccessConfig

The config settings for accessing runtime.

↳ software_config RuntimeSoftwareConfig

The config settings for software inside the runtime.

↳ metrics RuntimeMetrics

Output only. Contains Runtime daemon metrics such as Service status and JupyterLab stats.

↳ create_time Google\Protobuf\Timestamp

Output only. Runtime creation time.

↳ update_time Google\Protobuf\Timestamp

Output only. Runtime update time.

getName

Output only. The resource name of the runtime.

Format: projects/{project}/locations/{location}/runtimes/{runtimeId}

Returns
Type Description
string

setName

Output only. The resource name of the runtime.

Format: projects/{project}/locations/{location}/runtimes/{runtimeId}

Parameter
Name Description
var string
Returns
Type Description
$this

getVirtualMachine

Use a Compute Engine VM image to start the managed notebook instance.

Returns
Type Description
VirtualMachine|null

hasVirtualMachine

setVirtualMachine

Use a Compute Engine VM image to start the managed notebook instance.

Parameter
Name Description
var VirtualMachine
Returns
Type Description
$this

getState

Output only. Runtime state.

Returns
Type Description
int Enum of type State.

setState

Output only. Runtime state.

Parameter
Name Description
var int

Enum of type State.

Returns
Type Description
$this

getHealthState

Output only. Runtime health_state.

Returns
Type Description
int Enum of type HealthState.

setHealthState

Output only. Runtime health_state.

Parameter
Name Description
var int

Enum of type HealthState.

Returns
Type Description
$this

getAccessConfig

The config settings for accessing runtime.

Returns
Type Description
RuntimeAccessConfig|null

hasAccessConfig

clearAccessConfig

setAccessConfig

The config settings for accessing runtime.

Parameter
Name Description
var RuntimeAccessConfig
Returns
Type Description
$this

getSoftwareConfig

The config settings for software inside the runtime.

Returns
Type Description
RuntimeSoftwareConfig|null

hasSoftwareConfig

clearSoftwareConfig

setSoftwareConfig

The config settings for software inside the runtime.

Parameter
Name Description
var RuntimeSoftwareConfig
Returns
Type Description
$this

getMetrics

Output only. Contains Runtime daemon metrics such as Service status and JupyterLab stats.

Returns
Type Description
RuntimeMetrics|null

hasMetrics

clearMetrics

setMetrics

Output only. Contains Runtime daemon metrics such as Service status and JupyterLab stats.

Parameter
Name Description
var RuntimeMetrics
Returns
Type Description
$this

getCreateTime

Output only. Runtime creation time.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Runtime creation time.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. Runtime update time.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Runtime update time.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getRuntimeType

Returns
Type Description
string