Class GceSetup (1.9.0)

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

The definition of how to configure a VM instance outside of Resources and Identity.

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
machine_type str
Optional. The machine type of the VM instance. https://cloud.google.com/compute/docs/machine-resource
accelerator_configs MutableSequence[google.cloud.notebooks_v2.types.AcceleratorConfig]
Optional. The hardware accelerators 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
service_accounts MutableSequence[google.cloud.notebooks_v2.types.ServiceAccount]
Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.
vm_image google.cloud.notebooks_v2.types.VmImage
Optional. Use a Compute Engine VM image to start the notebook instance. This field is a member of oneof_ image.
container_image google.cloud.notebooks_v2.types.ContainerImage
Optional. Use a container image to start the notebook instance. This field is a member of oneof_ image.
boot_disk google.cloud.notebooks_v2.types.BootDisk
Optional. The boot disk for the VM.
data_disks MutableSequence[google.cloud.notebooks_v2.types.DataDisk]
Optional. Data disks attached to the VM instance. Currently supports only one data disk.
shielded_instance_config google.cloud.notebooks_v2.types.ShieldedInstanceConfig
Optional. Shielded VM configuration. `Images using supported Shielded VM features
network_interfaces MutableSequence[google.cloud.notebooks_v2.types.NetworkInterface]
Optional. The network interfaces for the VM. Supports only one interface.
disable_public_ip bool
Optional. If true, no external IP will be assigned to this VM instance.
tags MutableSequence[str]
Optional. The Compute Engine tags to add to runtime (see `Tagging instances
metadata MutableMapping[str, str]
Optional. Custom metadata to apply to this instance.
enable_ip_forwarding bool
Optional. Flag to enable ip forwarding or not, default false/off. https://cloud.google.com/vpc/docs/using-routes#canipforward
gpu_driver_config google.cloud.notebooks_v2.types.GPUDriverConfig
Optional. Configuration for GPU drivers.

Classes

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.