Google Cloud Notebooks V1 Client - Class Runtime (0.6.2)

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
NameDescription
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 Google\Cloud\Notebooks\V1\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 Google\Cloud\Notebooks\V1\RuntimeAccessConfig

The config settings for accessing runtime.

↳ software_config Google\Cloud\Notebooks\V1\RuntimeSoftwareConfig

The config settings for software inside the runtime.

↳ metrics Google\Cloud\Notebooks\V1\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
TypeDescription
string

setName

Output only. The resource name of the runtime.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVirtualMachine

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

Returns
TypeDescription
Google\Cloud\Notebooks\V1\VirtualMachine|null

hasVirtualMachine

setVirtualMachine

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

Parameter
NameDescription
var Google\Cloud\Notebooks\V1\VirtualMachine
Returns
TypeDescription
$this

getState

Output only. Runtime state.

Returns
TypeDescription
int

setState

Output only. Runtime state.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getHealthState

Output only. Runtime health_state.

Returns
TypeDescription
int

setHealthState

Output only. Runtime health_state.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAccessConfig

The config settings for accessing runtime.

Returns
TypeDescription
Google\Cloud\Notebooks\V1\RuntimeAccessConfig|null

hasAccessConfig

clearAccessConfig

setAccessConfig

The config settings for accessing runtime.

Parameter
NameDescription
var Google\Cloud\Notebooks\V1\RuntimeAccessConfig
Returns
TypeDescription
$this

getSoftwareConfig

The config settings for software inside the runtime.

Returns
TypeDescription
Google\Cloud\Notebooks\V1\RuntimeSoftwareConfig|null

hasSoftwareConfig

clearSoftwareConfig

setSoftwareConfig

The config settings for software inside the runtime.

Parameter
NameDescription
var Google\Cloud\Notebooks\V1\RuntimeSoftwareConfig
Returns
TypeDescription
$this

getMetrics

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

Returns
TypeDescription
Google\Cloud\Notebooks\V1\RuntimeMetrics|null

hasMetrics

clearMetrics

setMetrics

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

Parameter
NameDescription
var Google\Cloud\Notebooks\V1\RuntimeMetrics
Returns
TypeDescription
$this

getCreateTime

Output only. Runtime creation time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Runtime creation time.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. Runtime update time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Runtime update time.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getRuntimeType

Returns
TypeDescription
string