Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::Volume.
Volume represents a named volume in a container.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cloud_sql_instance
def cloud_sql_instance() -> ::Google::Cloud::Run::V2::CloudSqlInstance
Returns
- (::Google::Cloud::Run::V2::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.
#cloud_sql_instance=
def cloud_sql_instance=(value) -> ::Google::Cloud::Run::V2::CloudSqlInstance
Parameter
- value (::Google::Cloud::Run::V2::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.
Returns
- (::Google::Cloud::Run::V2::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
def empty_dir() -> ::Google::Cloud::Run::V2::EmptyDirVolumeSource
Returns
- (::Google::Cloud::Run::V2::EmptyDirVolumeSource) — Ephemeral storage used as a shared volume.
#empty_dir=
def empty_dir=(value) -> ::Google::Cloud::Run::V2::EmptyDirVolumeSource
Parameter
- value (::Google::Cloud::Run::V2::EmptyDirVolumeSource) — Ephemeral storage used as a shared volume.
Returns
- (::Google::Cloud::Run::V2::EmptyDirVolumeSource) — Ephemeral storage used as a shared volume.
#name
def name() -> ::String
Returns
- (::String) — Required. Volume's name.
#name=
def name=(value) -> ::String
Parameter
- value (::String) — Required. Volume's name.
Returns
- (::String) — Required. Volume's name.
#secret
def secret() -> ::Google::Cloud::Run::V2::SecretVolumeSource
Returns
- (::Google::Cloud::Run::V2::SecretVolumeSource) — Secret represents a secret that should populate this volume.
#secret=
def secret=(value) -> ::Google::Cloud::Run::V2::SecretVolumeSource
Parameter
- value (::Google::Cloud::Run::V2::SecretVolumeSource) — Secret represents a secret that should populate this volume.
Returns
- (::Google::Cloud::Run::V2::SecretVolumeSource) — Secret represents a secret that should populate this volume.