Class Instance (1.3.2)

Instance(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The definition of a notebook instance.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
name str
Output only. The name of this notebook instance. Format: projects/{project_id}/locations/{location}/instances/{instance_id}
vm_image google.cloud.notebooks_v1beta1.types.VmImage
Use a Compute Engine VM image to start the notebook instance. This field is a member of oneof_ environment.
container_image google.cloud.notebooks_v1beta1.types.ContainerImage
Use a container image to start the notebook instance. This field is a member of oneof_ environment.
post_startup_script str
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).
proxy_uri str
Output only. The proxy endpoint that is used to access the Jupyter notebook.
instance_owners Sequence[str]
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.
service_account str
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
machine_type str
Required. The `Compute Engine machine type
accelerator_config google.cloud.notebooks_v1beta1.types.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
state google.cloud.notebooks_v1beta1.types.Instance.State
Output only. The state of this instance.
install_gpu_driver 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.
custom_gpu_driver_path str
Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.
boot_disk_type google.cloud.notebooks_v1beta1.types.Instance.DiskType
Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (PD_STANDARD).
boot_disk_size_gb int
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.
data_disk_type google.cloud.notebooks_v1beta1.types.Instance.DiskType
Input only. The type of the data disk attached to this instance, defaults to standard persistent disk (PD_STANDARD).
data_disk_size_gb int
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.
no_remove_data_disk bool
Input only. If true, the data disk will not be auto deleted when deleting the instance.
disk_encryption google.cloud.notebooks_v1beta1.types.Instance.DiskEncryption
Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
kms_key str
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
no_public_ip bool
If true, no public IP will be assigned to this instance.
no_proxy_access bool
If true, the notebook instance will not register with the proxy.
network str
The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}
subnet str
The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
labels Mapping[str, str]
Labels to apply to this instance. These can be later modified by the setLabels method.
metadata Mapping[str, str]
Custom metadata to apply to this instance.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Instance creation time.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. Instance update time.

Classes

AcceleratorConfig

AcceleratorConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Definition of a hardware accelerator. Note that not all combinations of type and core_count are valid. Check GPUs on Compute Engine </compute/docs/gpus/#gpus-list>__ to find a valid combination. TPUs are not supported.

AcceleratorType

AcceleratorType(value)

Definition of the types of hardware accelerators that can be used on this instance.

DiskEncryption

DiskEncryption(value)

Definition of the disk encryption options.

DiskType

DiskType(value)

Possible disk types for notebook instances.

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

MetadataEntry

MetadataEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

State

State(value)

The definition of the states of this instance.