Google Cloud Run V2 Client - Class VolumeMount (0.3.4)

Reference documentation and code samples for the Google Cloud Run V2 Client class VolumeMount.

VolumeMount describes a mounting of a Volume within a container.

Generated from protobuf message google.cloud.run.v2.VolumeMount

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. This must match the Name of a Volume.

↳ mount_path string

Required. Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run

getName

Required. This must match the Name of a Volume.

Returns
TypeDescription
string

setName

Required. This must match the Name of a Volume.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMountPath

Required. Path within the container at which the volume should be mounted.

Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run

Returns
TypeDescription
string

setMountPath

Required. Path within the container at which the volume should be mounted.

Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run

Parameter
NameDescription
var string
Returns
TypeDescription
$this