Class Volume (0.13.0)

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

Attributes

NameDescription
namestr
Required. Volume's name.
secretgoogle.cloud.run_v2.types.SecretVolumeSource
Secret represents a secret that should populate this volume. This field is a member ofoneof_volume_type.
cloud_sql_instancegoogle.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 ofoneof_volume_type.
empty_dirgoogle.cloud.run_v2.types.EmptyDirVolumeSource
Ephemeral storage used as a shared volume. This field is a member ofoneof_volume_type.
nfsgoogle.cloud.run_v2.types.NFSVolumeSource
For NFS Voumes, contains the path to the nfs Volume This field is a member ofoneof_volume_type.
gcsgoogle.cloud.run_v2.types.GCSVolumeSource
Persistent storage backed by a Google Cloud Storage bucket. This field is a member ofoneof_volume_type.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-22 UTC.