# Class GceSetup (1.17.0)

1.17.0 (latest) 1.16.0 1.15.0 1.14.0 1.13.3 1.12.0 1.11.1 1.10.5 1.9.0 1.8.0 1.7.1 1.6.1 1.5.1 1.4.4 1.3.2 1.2.1 1.1.1 1.0.0 0.4.3 0.3.2 0.2.0 0.1.2

    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 ||
|---|---|
| **Name** | **Description** |
| `machine_type` | `str` Optional. The machine type of the VM instance. https://cloud.google.com/compute/docs/machine-resource |
| `accelerator_configs` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/notebooks/latest/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[https://docs.cloud.google.com/python/docs/reference/notebooks/latest/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` | `https://docs.cloud.google.com/python/docs/reference/notebooks/latest/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` | `https://docs.cloud.google.com/python/docs/reference/notebooks/latest/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` | `https://docs.cloud.google.com/python/docs/reference/notebooks/latest/google.cloud.notebooks_v2.types.BootDisk` Optional. The boot disk for the VM. |
| `data_disks` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/notebooks/latest/google.cloud.notebooks_v2.types.DataDisk]` Optional. Data disks attached to the VM instance. Currently supports only one data disk. |
| `shielded_instance_config` | `https://docs.cloud.google.com/python/docs/reference/notebooks/latest/google.cloud.notebooks_v2.types.ShieldedInstanceConfig` Optional. Shielded VM configuration. \`Images using supported Shielded VM features |
| `network_interfaces` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/notebooks/latest/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` | `https://docs.cloud.google.com/python/docs/reference/notebooks/latest/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** ||
|---|---|
| **Name** | **Description** |
| `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. |