NAME
Google::Cloud::Notebooks::V1::Runtime - Compiled Protocol Buffers messages for google/cloud/notebooks/v1/runtime.proto
SYNOPSIS
use Google::Cloud::Notebooks::V1::Runtime;
my $msg = Google::Cloud::Notebooks::V1::Runtime::Runtime->new({
name => $name,
virtual_machine => $virtual_machine,
state => $state,
health_state => $health_state,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Notebooks::V1::Runtime::Runtime->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/notebooks/v1/runtime.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Notebooks::V1::Runtime::Runtime
The definition of a Runtime for a managed notebook instance.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The resource name of the runtime. Format: `projects/{project}/locations/{location}/runtimes/{runtimeId}`
$msg->virtual_machine()/$msg->virtual_machine($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::VirtualMachine)Use a Compute Engine VM image to start the managed notebook instance.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Notebooks::V1::Runtime::State)Output only. Runtime state.
$msg->health_state()/$msg->health_state($value)Type:
Enum(Google::Cloud::Notebooks::V1::Runtime::HealthState)Output only. Runtime health_state.
$msg->access_config()/$msg->access_config($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::RuntimeAccessConfig)The config settings for accessing runtime.
$msg->software_config()/$msg->software_config($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::RuntimeSoftwareConfig)The config settings for software inside the runtime.
$msg->metrics()/$msg->metrics($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::RuntimeMetrics)Output only. Contains Runtime daemon metrics such as Service status and JupyterLab stats.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Runtime creation time.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Runtime update time.
Enum: Runtime::State
STATE_UNSPECIFIED=>0STARTING=>1PROVISIONING=>2ACTIVE=>3STOPPING=>4STOPPED=>5DELETING=>6UPGRADING=>7INITIALIZING=>8
Enum: Runtime::HealthState
HEALTH_STATE_UNSPECIFIED=>0HEALTHY=>1UNHEALTHY=>2AGENT_NOT_INSTALLED=>3AGENT_NOT_RUNNING=>4
Google::Cloud::Notebooks::V1::Runtime::RuntimeAcceleratorConfig
Definition of the types of hardware accelerators that can be used. Definition of the types of hardware accelerators that can be used. See [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes). Examples:
* `nvidia-tesla-k80` * `nvidia-tesla-p100` * `nvidia-tesla-v100` * `nvidia-tesla-p4` * `nvidia-tesla-t4` * `nvidia-tesla-a100`
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Notebooks::V1::RuntimeAcceleratorConfig::AcceleratorType)Accelerator model.
$msg->core_count()/$msg->core_count($value)Type:
Int64Count of cores of this accelerator.
Enum: RuntimeAcceleratorConfig::AcceleratorType
ACCELERATOR_TYPE_UNSPECIFIED=>0NVIDIA_TESLA_K80=>1NVIDIA_TESLA_P100=>2NVIDIA_TESLA_V100=>3NVIDIA_TESLA_P4=>4NVIDIA_TESLA_T4=>5NVIDIA_TESLA_A100=>6TPU_V2=>7TPU_V3=>8NVIDIA_TESLA_T4_VWS=>9NVIDIA_TESLA_P100_VWS=>10NVIDIA_TESLA_P4_VWS=>11
Google::Cloud::Notebooks::V1::Runtime::EncryptionConfig
Represents a custom encryption key configuration that can be applied to a resource. This will encrypt all disks in Virtual Machine.
Inherits from Protobuf::Message.
Accessors
$msg->kms_key()/$msg->kms_key($value)Type:
StringThe Cloud KMS resource identifier of the customer-managed encryption key used to protect a resource, such as a disks. It has the following format: `projects/{PROJECT_ID}/locations/{REGION}/keyRings/{KEY_RING_NAME}/cryptoKeys/{KEY_NAME}`
Google::Cloud::Notebooks::V1::Runtime::LocalDisk
A Local attached disk resource.
Inherits from Protobuf::Message.
Accessors
$msg->auto_delete()/$msg->auto_delete($value)Type:
BoolOptional. Output only. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
$msg->boot()/$msg->boot($value)Type:
BoolOptional. Output only. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
$msg->device_name()/$msg->device_name($value)Type:
StringOptional. Output only. Specifies a unique device name of your choice that is reflected into the `/dev/disk/by-id/google-*` tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.
If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
$msg->guest_os_features()/$msg->guest_os_features($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::LocalDisk::RuntimeGuestOsFeature)Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
$msg->index()/$msg->index($value)Type:
Int32Output only. A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
$msg->initialize_params()/$msg->initialize_params($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::LocalDiskInitializeParams)Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.
This property is mutually exclusive with the source property; you can only define one or the other, but not both.
$msg->interface()/$msg->interface($value)Type:
StringSpecifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values:
* `NVME` * `SCSI`
$msg->kind()/$msg->kind($value)Type:
StringOutput only. Type of the resource. Always compute#attachedDisk for attached disks.
$msg->licenses()/$msg->licenses($value)Type:
StringOutput only. Any valid publicly visible licenses.
$msg->mode()/$msg->mode($value)Type:
StringThe mode in which to attach this disk, either `READ_WRITE` or `READ_ONLY`. If not specified, the default is to attach the disk in `READ_WRITE` mode. Valid values:
* `READ_ONLY` * `READ_WRITE`
$msg->source()/$msg->source($value)Type:
StringSpecifies a valid partial or full URL to an existing Persistent Disk resource.
$msg->type()/$msg->type($value)Type:
StringSpecifies the type of the disk, either `SCRATCH` or `PERSISTENT`. If not specified, the default is `PERSISTENT`. Valid values:
* `PERSISTENT` * `SCRATCH`
Google::Cloud::Notebooks::V1::Runtime::LocalDiskInitializeParams
Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new runtime. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
Inherits from Protobuf::Message.
Accessors
$msg->description()/$msg->description($value)Type:
StringOptional. Provide this property when creating the disk.
$msg->disk_name()/$msg->disk_name($value)Type:
StringOptional. Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
$msg->disk_size_gb()/$msg->disk_size_gb($value)Type:
Int64Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.
$msg->disk_type()/$msg->disk_type($value)Type:
Enum(Google::Cloud::Notebooks::V1::LocalDiskInitializeParams::DiskType)Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::LocalDiskInitializeParams::LabelsEntry)Optional. Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
Enum: LocalDiskInitializeParams::DiskType
DISK_TYPE_UNSPECIFIED=>0PD_STANDARD=>1PD_SSD=>2PD_BALANCED=>3PD_EXTREME=>4
Google::Cloud::Notebooks::V1::Runtime::RuntimeAccessConfig
Specifies the login configuration for Runtime
Inherits from Protobuf::Message.
Accessors
$msg->access_type()/$msg->access_type($value)Type:
Enum(Google::Cloud::Notebooks::V1::RuntimeAccessConfig::RuntimeAccessType)The type of access mode this instance.
$msg->runtime_owner()/$msg->runtime_owner($value)Type:
StringThe owner of this runtime after creation. Format: `alias@example.com` Currently supports one owner only.
$msg->proxy_uri()/$msg->proxy_uri($value)Type:
StringOutput only. The proxy endpoint that is used to access the runtime.
Enum: RuntimeAccessConfig::RuntimeAccessType
RUNTIME_ACCESS_TYPE_UNSPECIFIED=>0SINGLE_USER=>1SERVICE_ACCOUNT=>2
Google::Cloud::Notebooks::V1::Runtime::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`
Inherits from Protobuf::Message.
Accessors
$msg->notebook_upgrade_schedule()/$msg->notebook_upgrade_schedule($value)Type:
StringCron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
$msg->enable_health_monitoring()/$msg->enable_health_monitoring($value)Type:
BoolVerifies core internal services are running. Default: True
$msg->idle_shutdown()/$msg->idle_shutdown($value)Type:
BoolRuntime will automatically shutdown after idle_shutdown_time. Default: True
$msg->idle_shutdown_timeout()/$msg->idle_shutdown_timeout($value)Type:
Int32Time in minutes to wait before shutting down runtime. Default: 180 minutes
$msg->install_gpu_driver()/$msg->install_gpu_driver($value)Type:
BoolInstall Nvidia Driver automatically. Default: True
$msg->custom_gpu_driver_path()/$msg->custom_gpu_driver_path($value)Type:
StringSpecify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.
$msg->post_startup_script()/$msg->post_startup_script($value)Type:
StringPath 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`).
$msg->kernels()/$msg->kernels($value)Type:
Message(Google::Cloud::Notebooks::V1::Environment::ContainerImage)Optional. Use a list of container images to use as Kernels in the notebook instance.
$msg->upgradeable()/$msg->upgradeable($value)Type:
BoolOutput only. Bool indicating whether an newer image is available in an image family.
$msg->post_startup_script_behavior()/$msg->post_startup_script_behavior($value)Type:
Enum(Google::Cloud::Notebooks::V1::RuntimeSoftwareConfig::PostStartupScriptBehavior)Behavior for the post startup script.
$msg->disable_terminal()/$msg->disable_terminal($value)Type:
BoolBool indicating whether JupyterLab terminal will be available or not. Default: False
$msg->version()/$msg->version($value)Type:
StringOutput only. version of boot image such as M100, from release label of the image.
Enum: RuntimeSoftwareConfig::PostStartupScriptBehavior
POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED=>0RUN_EVERY_START=>1DOWNLOAD_AND_RUN_EVERY_START=>2
Google::Cloud::Notebooks::V1::Runtime::RuntimeMetrics
Contains runtime daemon metrics, such as OS and kernels and sessions stats.
Inherits from Protobuf::Message.
Accessors
$msg->system_metrics()/$msg->system_metrics($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::RuntimeMetrics::SystemMetricsEntry)Output only. The system metrics.
Google::Cloud::Notebooks::V1::Runtime::RuntimeShieldedInstanceConfig
A set of Shielded Instance options. Check [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). Not all combinations are valid.
Inherits from Protobuf::Message.
Accessors
$msg->enable_secure_boot()/$msg->enable_secure_boot($value)Type:
BoolDefines whether the instance has Secure Boot enabled.
Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails. Disabled by default.
$msg->enable_vtpm()/$msg->enable_vtpm($value)Type:
BoolDefines whether the instance has the vTPM enabled. Enabled by default.
$msg->enable_integrity_monitoring()/$msg->enable_integrity_monitoring($value)Type:
BoolDefines whether the instance has integrity monitoring enabled.
Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created. Enabled by default.
Google::Cloud::Notebooks::V1::Runtime::VirtualMachine
Runtime using Virtual Machine for computing.
Inherits from Protobuf::Message.
Accessors
$msg->instance_name()/$msg->instance_name($value)Type:
StringOutput only. The user-friendly name of the Managed Compute Engine instance.
$msg->instance_id()/$msg->instance_id($value)Type:
StringOutput only. The unique identifier of the Managed Compute Engine instance.
$msg->virtual_machine_config()/$msg->virtual_machine_config($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::VirtualMachineConfig)Virtual Machine configuration settings.
Google::Cloud::Notebooks::V1::Runtime::VirtualMachineConfig
The config settings for virtual machine.
Inherits from Protobuf::Message.
Accessors
$msg->zone()/$msg->zone($value)Type:
StringOutput only. The zone where the virtual machine is located. If using regional request, the notebooks service will pick a location in the corresponding runtime region. On a get request, zone will always be present. Example: * `us-central1-b`
$msg->machine_type()/$msg->machine_type($value)Type:
StringRequired. The Compute Engine machine type used for runtimes. Short name is valid. Examples: * `n1-standard-2` * `e2-standard-8`
$msg->container_images()/$msg->container_images($value)Type:
Message(Google::Cloud::Notebooks::V1::Environment::ContainerImage)Optional. Use a list of container images to use as Kernels in the notebook instance.
$msg->data_disk()/$msg->data_disk($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::LocalDisk)Required. Data disk option configuration settings.
$msg->encryption_config()/$msg->encryption_config($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::EncryptionConfig)Optional. Encryption settings for virtual machine data disk.
$msg->shielded_instance_config()/$msg->shielded_instance_config($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::RuntimeShieldedInstanceConfig)Optional. Shielded VM Instance configuration settings.
$msg->accelerator_config()/$msg->accelerator_config($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::RuntimeAcceleratorConfig)Optional. The Compute Engine accelerator configuration for this runtime.
$msg->network()/$msg->network($value)Type:
StringOptional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork. If neither `network` nor `subnet` is specified, the "default" network of the project is used, if it exists.
A full URL or partial URI. Examples:
* `https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default` * `projects/[project_id]/global/networks/default`
Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations:
* Google Managed Network (Network & subnet are empty) * Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access. * Shared VPC (network & subnet are required). Requires configuring Private Service Access.
$msg->subnet()/$msg->subnet($value)Type:
StringOptional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network.
A full URL or partial URI are valid. Examples:
* `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0` * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
$msg->internal_ip_only()/$msg->internal_ip_only($value)Type:
BoolOptional. If true, runtime will only have internal IP addresses. By default, runtimes are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each vm. This `internal_ip_only` restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses.
$msg->tags()/$msg->tags($value)Type:
StringOptional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
$msg->guest_attributes()/$msg->guest_attributes($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::VirtualMachineConfig::GuestAttributesEntry)Output only. The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::VirtualMachineConfig::MetadataEntry)Optional. The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::VirtualMachineConfig::LabelsEntry)Optional. The labels to associate with this runtime. Label keys must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
$msg->nic_type()/$msg->nic_type($value)Type:
Enum(Google::Cloud::Notebooks::V1::VirtualMachineConfig::NicType)Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
$msg->reserved_ip_range()/$msg->reserved_ip_range($value)Type:
StringOptional. Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range *name* if it's assigned.
Example: managed-notebooks-range-c
PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24 \ --description="Google Cloud Managed Notebooks Range 24 c" \ --network=$NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERINGField value will be: `managed-notebooks-range-c`
$msg->boot_image()/$msg->boot_image($value)Type:
Message(Google::Cloud::Notebooks::V1::Runtime::VirtualMachineConfig::BootImage)Optional. Boot image metadata used for runtime upgradeability.
Enum: VirtualMachineConfig::NicType
UNSPECIFIED_NIC_TYPE=>0VIRTIO_NET=>1GVNIC=>2
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Notebooks::V1::Runtime::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.