# Class Volume (0.16.1)

0.16.1 (latest) 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.19 0.9.1 0.8.1 0.7.1 0.6.0 0.5.0 0.4.2 0.3.0 0.2.1 0.1.0

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

Volume represents a named volume in a container.

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** |
| `name` | `str` Required. Volume's name. |
| `secret` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.SecretVolumeSource` Secret represents a secret that should populate this volume. This field is a member of `oneof`_ `volume_type`. |
| `cloud_sql_instance` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.CloudSqlInstance` For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. This field is a member of `oneof`_ `volume_type`. |
| `empty_dir` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.EmptyDirVolumeSource` Ephemeral storage used as a shared volume. This field is a member of `oneof`_ `volume_type`. |
| `nfs` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.NFSVolumeSource` For NFS Voumes, contains the path to the nfs Volume This field is a member of `oneof`_ `volume_type`. |
| `gcs` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.GCSVolumeSource` Persistent storage backed by a Google Cloud Storage bucket. This field is a member of `oneof`_ `volume_type`. |