class Google::Apis::RunV1alpha1::VolumeMount
VolumeMount
describes a mounting of a Volume
within a container.
Attributes
Path within the container at which the volume should be mounted. Must not contain ':'. Corresponds to the JSON property `mountPath` @return [String]
The name of the volume. There must be a corresponding Volume
with the same name. Corresponds to the JSON property `name` @return [String]
(Optional) Only true is accepted. Defaults to true. Corresponds to the JSON property `readOnly` @return [Boolean]
(Optional) Only true is accepted. Defaults to true. Corresponds to the JSON property `readOnly` @return [Boolean]
(Optional) Path within the volume from which the container's volume should be mounted. Defaults to “” (volume's root). Corresponds to the JSON property `subPath` @return [String]
Public Class Methods
# File lib/google/apis/run_v1alpha1/classes.rb, line 1710 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/run_v1alpha1/classes.rb, line 1715 def update!(**args) @mount_path = args[:mount_path] if args.key?(:mount_path) @name = args[:name] if args.key?(:name) @read_only = args[:read_only] if args.key?(:read_only) @sub_path = args[:sub_path] if args.key?(:sub_path) end