NAME

Google::Cloud::Notebooks::V1beta1::Instance - Compiled Protocol Buffers messages for google/cloud/notebooks/v1beta1/instance.proto

SYNOPSIS

use Google::Cloud::Notebooks::V1beta1::Instance;

my $msg = Google::Cloud::Notebooks::V1beta1::Instance::ReservationAffinity->new({
    consume_reservation_type => $consume_reservation_type,
    key => $key,
    values => $values,
});

# Read or update a field
my $val = $msg->consume_reservation_type();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Notebooks::V1beta1::Instance::ReservationAffinity->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/notebooks/v1beta1/instance.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::V1beta1::Instance::ReservationAffinity

Reservation Affinity for consuming Zonal reservation.

Inherits from Protobuf::Message.

Accessors

  • $msg->consume_reservation_type() / $msg->consume_reservation_type($value)

    Type: Enum (Google::Cloud::Notebooks::V1beta1::ReservationAffinity::Type)

    Optional. Type of reservation to consume

  • $msg->key() / $msg->key($value)

    Type: String

    Optional. Corresponds to the label key of reservation resource.

  • $msg->values() / $msg->values($value)

    Type: String

    Optional. Corresponds to the label values of reservation resource.

Enum: ReservationAffinity::Type

  • TYPE_UNSPECIFIED => 0

  • NO_RESERVATION => 1

  • ANY_RESERVATION => 2

  • SPECIFIC_RESERVATION => 3

Google::Cloud::Notebooks::V1beta1::Instance::Instance

The definition of a notebook instance.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

  • $msg->vm_image() / $msg->vm_image($value)

    Type: Message (Google::Cloud::Notebooks::V1beta1::Environment::VmImage)

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

  • $msg->container_image() / $msg->container_image($value)

    Type: Message (Google::Cloud::Notebooks::V1beta1::Environment::ContainerImage)

    Use a container image to start the notebook instance.

  • $msg->post_startup_script() / $msg->post_startup_script($value)

    Type: 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`).

  • $msg->proxy_uri() / $msg->proxy_uri($value)

    Type: String

    Output only. The proxy endpoint that is used to access the Jupyter notebook.

  • $msg->instance_owners() / $msg->instance_owners($value)

    Type: String

    Input only. The owner of this instance after creation. Format: `alias@example.com`

    Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.

  • $msg->service_account() / $msg->service_account($value)

    Type: String

    The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance.

    If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.

  • $msg->machine_type() / $msg->machine_type($value)

    Type: String

    Required. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-types) of this instance.

  • $msg->accelerator_config() / $msg->accelerator_config($value)

    Type: Message (Google::Cloud::Notebooks::V1beta1::Instance::Instance::AcceleratorConfig)

    The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has [enough vCPUs and memory to support the `machine_type` you have selected](https://cloud.google.com/compute/docs/gpus/#gpus-list).

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Notebooks::V1beta1::Instance::State)

    Output only. The state of this instance.

  • $msg->install_gpu_driver() / $msg->install_gpu_driver($value)

    Type: Bool

    Whether the end user authorizes Google Cloud to install GPU driver on this instance. If this field is empty or set to false, the GPU driver won't be installed. Only applicable to instances with GPUs.

  • $msg->custom_gpu_driver_path() / $msg->custom_gpu_driver_path($value)

    Type: String

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

  • $msg->boot_disk_type() / $msg->boot_disk_type($value)

    Type: Enum (Google::Cloud::Notebooks::V1beta1::Instance::DiskType)

    Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).

  • $msg->boot_disk_size_gb() / $msg->boot_disk_size_gb($value)

    Type: Int64

    Input only. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.

  • $msg->data_disk_type() / $msg->data_disk_type($value)

    Type: Enum (Google::Cloud::Notebooks::V1beta1::Instance::DiskType)

    Input only. The type of the data disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).

  • $msg->data_disk_size_gb() / $msg->data_disk_size_gb($value)

    Type: Int64

    Input only. The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.

  • $msg->no_remove_data_disk() / $msg->no_remove_data_disk($value)

    Type: Bool

    Input only. If true, the data disk will not be auto deleted when deleting the instance.

  • $msg->disk_encryption() / $msg->disk_encryption($value)

    Type: Enum (Google::Cloud::Notebooks::V1beta1::Instance::DiskEncryption)

    Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.

  • $msg->kms_key() / $msg->kms_key($value)

    Type: String

    Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}`

    Learn more about [using your own encryption keys](https://cloud.google.com/kms/docs/quickstart).

  • $msg->no_public_ip() / $msg->no_public_ip($value)

    Type: Bool

    If true, no public IP will be assigned to this instance.

  • $msg->no_proxy_access() / $msg->no_proxy_access($value)

    Type: Bool

    If true, the notebook instance will not register with the proxy.

  • $msg->network() / $msg->network($value)

    Type: String

    The name of the VPC that this instance is in. Format: `projects/{project_id}/global/networks/{network_id}`

  • $msg->subnet() / $msg->subnet($value)

    Type: String

    The name of the subnet that this instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Notebooks::V1beta1::Instance::Instance::LabelsEntry)

    Labels to apply to this instance. These can be later modified by the setLabels method.

  • $msg->metadata() / $msg->metadata($value)

    Type: Message (Google::Cloud::Notebooks::V1beta1::Instance::Instance::MetadataEntry)

    Custom metadata to apply to this instance.

  • $msg->nic_type() / $msg->nic_type($value)

    Type: Enum (Google::Cloud::Notebooks::V1beta1::Instance::NicType)

    Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

  • $msg->reservation_affinity() / $msg->reservation_affinity($value)

    Type: Message (Google::Cloud::Notebooks::V1beta1::Instance::ReservationAffinity)

    Optional. The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this notebook instance.

  • $msg->can_ip_forward() / $msg->can_ip_forward($value)

    Type: Bool

    Optional. Flag to enable ip forwarding or not, default false/off. https://cloud.google.com/vpc/docs/using-routes#canipforward

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Instance creation time.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Instance update time.

Enum: Instance::AcceleratorType

  • ACCELERATOR_TYPE_UNSPECIFIED => 0

  • NVIDIA_TESLA_K80 => 1

  • NVIDIA_TESLA_P100 => 2

  • NVIDIA_TESLA_V100 => 3

  • NVIDIA_TESLA_P4 => 4

  • NVIDIA_TESLA_T4 => 5

  • NVIDIA_TESLA_T4_VWS => 8

  • NVIDIA_TESLA_P100_VWS => 9

  • NVIDIA_TESLA_P4_VWS => 10

  • TPU_V2 => 6

  • TPU_V3 => 7

Enum: Instance::State

  • STATE_UNSPECIFIED => 0

  • STARTING => 1

  • PROVISIONING => 2

  • ACTIVE => 3

  • STOPPING => 4

  • STOPPED => 5

  • DELETED => 6

  • UPGRADING => 7

  • INITIALIZING => 8

  • REGISTERING => 9

  • SUSPENDING => 10

  • SUSPENDED => 11

Enum: Instance::DiskType

  • DISK_TYPE_UNSPECIFIED => 0

  • PD_STANDARD => 1

  • PD_SSD => 2

  • PD_BALANCED => 3

Enum: Instance::DiskEncryption

  • DISK_ENCRYPTION_UNSPECIFIED => 0

  • GMEK => 1

  • CMEK => 2

Enum: Instance::NicType

  • UNSPECIFIED_NIC_TYPE => 0

  • VIRTIO_NET => 1

  • GVNIC => 2

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Notebooks::V1beta1::Instance::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.