Reference documentation and code samples for the Google Cloud Run V2 Client class Volume.
Volume represents a named volume in a container.
Generated from protobuf message google.cloud.run.v2.Volume
Namespace
Google \ Cloud \ Run \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Volume's name.
↳ secret
↳ cloud_sql_instance
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.
↳ empty_dir
↳ nfs
↳ gcs
getName
Required. Volume's name.
string
setName
Required. Volume's name.
var
string
$this
getSecret
Secret represents a secret that should populate this volume.
hasSecret
setSecret
Secret represents a secret that should populate this volume.
$this
getCloudSqlInstance
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.
hasCloudSqlInstance
setCloudSqlInstance
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
getEmptyDir
Ephemeral storage used as a shared volume.
hasEmptyDir
setEmptyDir
Ephemeral storage used as a shared volume.
$this
getNfs
For NFS Voumes, contains the path to the nfs Volume
hasNfs
setNfs
For NFS Voumes, contains the path to the nfs Volume
$this
getGcs
Persistent storage backed by a Google Cloud Storage bucket.
hasGcs
setGcs
Persistent storage backed by a Google Cloud Storage bucket.
$this
getVolumeType
string