class Google::Apis::RunV1alpha1::VolumeMount

VolumeMount describes a mounting of a Volume within a container.

Attributes

mount_path[RW]

Path within the container at which the volume should be mounted. Must not contain ':'. Corresponds to the JSON property `mountPath` @return [String]

name[RW]

The name of the volume. There must be a corresponding Volume with the same name. Corresponds to the JSON property `name` @return [String]

read_only[RW]

(Optional) Only true is accepted. Defaults to true. Corresponds to the JSON property `readOnly` @return [Boolean]

read_only?[RW]

(Optional) Only true is accepted. Defaults to true. Corresponds to the JSON property `readOnly` @return [Boolean]

sub_path[RW]

(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

new(**args) click to toggle source
# File lib/google/apis/run_v1alpha1/classes.rb, line 1710
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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