Google Cloud Notebooks V1 Client - Class RuntimeSoftwareConfig (0.4.1)

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

Specifies the selection and configuration of software inside the runtime.

The properties to set on runtime. Properties keys are specified in key:value format, for example:

  • idle_shutdown: true
  • idle_shutdown_timeout: 180
  • enable_health_monitoring: true

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

Namespace

Google \ Cloud \ Notebooks \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ notebook_upgrade_schedule string

Cron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the cron format.

↳ enable_health_monitoring bool

Verifies core internal services are running. Default: True

↳ idle_shutdown bool

Runtime will automatically shutdown after idle_shutdown_time. Default: True

↳ idle_shutdown_timeout int

Time in minutes to wait before shutting down runtime. Default: 180 minutes

↳ install_gpu_driver bool

Install Nvidia Driver automatically. Default: True

↳ custom_gpu_driver_path string

Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.

↳ post_startup_script string

Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).

↳ kernels array<Google\Cloud\Notebooks\V1\ContainerImage>

Optional. Use a list of container images to use as Kernels in the notebook instance.

↳ upgradeable bool

Output only. Bool indicating whether an newer image is available in an image family.

↳ post_startup_script_behavior int

Behavior for the post startup script.

↳ disable_terminal bool

Bool indicating whether JupyterLab terminal will be available or not. Default: False

↳ version string

Output only. version of boot image such as M100, from release label of the image.

getNotebookUpgradeSchedule

Cron expression in UTC timezone, used to schedule instance auto upgrade.

Please follow the cron format.

Returns
TypeDescription
string

setNotebookUpgradeSchedule

Cron expression in UTC timezone, used to schedule instance auto upgrade.

Please follow the cron format.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEnableHealthMonitoring

Verifies core internal services are running.

Default: True

Returns
TypeDescription
bool

hasEnableHealthMonitoring

clearEnableHealthMonitoring

setEnableHealthMonitoring

Verifies core internal services are running.

Default: True

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getIdleShutdown

Runtime will automatically shutdown after idle_shutdown_time.

Default: True

Returns
TypeDescription
bool

hasIdleShutdown

clearIdleShutdown

setIdleShutdown

Runtime will automatically shutdown after idle_shutdown_time.

Default: True

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getIdleShutdownTimeout

Time in minutes to wait before shutting down runtime. Default: 180 minutes

Returns
TypeDescription
int

setIdleShutdownTimeout

Time in minutes to wait before shutting down runtime. Default: 180 minutes

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getInstallGpuDriver

Install Nvidia Driver automatically.

Default: True

Returns
TypeDescription
bool

setInstallGpuDriver

Install Nvidia Driver automatically.

Default: True

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getCustomGpuDriverPath

Specify a custom Cloud Storage path where the GPU driver is stored.

If not specified, we'll automatically choose from official GPU drivers.

Returns
TypeDescription
string

setCustomGpuDriverPath

Specify a custom Cloud Storage path where the GPU driver is stored.

If not specified, we'll automatically choose from official GPU drivers.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPostStartupScript

Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).

Returns
TypeDescription
string

setPostStartupScript

Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getKernels

Optional. Use a list of container images to use as Kernels in the notebook instance.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setKernels

Optional. Use a list of container images to use as Kernels in the notebook instance.

Parameter
NameDescription
var array<Google\Cloud\Notebooks\V1\ContainerImage>
Returns
TypeDescription
$this

getUpgradeable

Output only. Bool indicating whether an newer image is available in an image family.

Returns
TypeDescription
bool

hasUpgradeable

clearUpgradeable

setUpgradeable

Output only. Bool indicating whether an newer image is available in an image family.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getPostStartupScriptBehavior

Behavior for the post startup script.

Returns
TypeDescription
int

setPostStartupScriptBehavior

Behavior for the post startup script.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDisableTerminal

Bool indicating whether JupyterLab terminal will be available or not.

Default: False

Returns
TypeDescription
bool

hasDisableTerminal

clearDisableTerminal

setDisableTerminal

Bool indicating whether JupyterLab terminal will be available or not.

Default: False

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getVersion

Output only. version of boot image such as M100, from release label of the image.

Returns
TypeDescription
string

hasVersion

clearVersion

setVersion

Output only. version of boot image such as M100, from release label of the image.

Parameter
NameDescription
var string
Returns
TypeDescription
$this