Class: Google::Apis::LifesciencesV2beta::Mount

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/lifesciences_v2beta/classes.rb,
generated/google/apis/lifesciences_v2beta/representations.rb,
generated/google/apis/lifesciences_v2beta/representations.rb

Overview

Carries information about a particular disk mount inside a container.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Mount

Returns a new instance of Mount.



755
756
757
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 755

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#diskString

The name of the disk to mount, as specified in the resources section. Corresponds to the JSON property disk

Returns:

  • (String)


742
743
744
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 742

def disk
  @disk
end

#pathString

The path to mount the disk inside the container. Corresponds to the JSON property path

Returns:

  • (String)


747
748
749
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 747

def path
  @path
end

#read_onlyBoolean Also known as: read_only?

If true, the disk is mounted read-only inside the container. Corresponds to the JSON property readOnly

Returns:

  • (Boolean)


752
753
754
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 752

def read_only
  @read_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



760
761
762
763
764
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 760

def update!(**args)
  @disk = args[:disk] if args.key?(:disk)
  @path = args[:path] if args.key?(:path)
  @read_only = args[:read_only] if args.key?(:read_only)
end