Class: Google::Apis::RunV1alpha1::VolumeDevice
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::VolumeDevice
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1alpha1/classes.rb,
lib/google/apis/run_v1alpha1/representations.rb,
lib/google/apis/run_v1alpha1/representations.rb
Overview
volumeDevice describes a mapping of a raw block device within a container.
Instance Attribute Summary collapse
-
#device_path ⇒ String
devicePath is the path inside of the container that the device will be mapped to.
-
#name ⇒ String
name must match the name of a persistentVolumeClaim in the pod Corresponds to the JSON property
name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VolumeDevice
constructor
A new instance of VolumeDevice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VolumeDevice
Returns a new instance of VolumeDevice.
2011 2012 2013 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2011 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_path ⇒ String
devicePath is the path inside of the container that the device will be mapped
to.
Corresponds to the JSON property devicePath
2004 2005 2006 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2004 def device_path @device_path end |
#name ⇒ String
name must match the name of a persistentVolumeClaim in the pod
Corresponds to the JSON property name
2009 2010 2011 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2009 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2016 2017 2018 2019 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 2016 def update!(**args) @device_path = args[:device_path] if args.key?(:device_path) @name = args[:name] if args.key?(:name) end |