# Cloud Run V2 API - Class Google::Cloud::Run::V2::VolumeMount (v0.29.0)

0.29.0 (latest) 0.28.1 0.27.0 0.26.0 0.25.0 0.24.1 0.23.0 0.22.1 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.1 0.15.0 0.14.0 0.13.2 0.12.0 0.11.0 0.10.1 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::VolumeMount.

VolumeMount describes a mounting of a Volume within a container.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #mount_path

    def mount_path() -> ::String

**Returns**

- (::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

### #mount_path=

    def mount_path=(value) -> ::String

**Parameter**

- **value** (::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
**Returns**

- (::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

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. This must match the Name of a Volume.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. This must match the Name of a Volume.
**Returns**

- (::String) --- Required. This must match the Name of a Volume.

### #sub_path

    def sub_path() -> ::String

**Returns**

- (::String) --- Optional. Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).

### #sub_path=

    def sub_path=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
**Returns**

- (::String) --- Optional. Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).