Class: Google::Apis::RunV1alpha1::VolumeDevice

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VolumeDevice

Returns a new instance of VolumeDevice.



5230
5231
5232
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 5230

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

Instance Attribute Details

#device_pathString

devicePath is the path inside of the container that the device will be mapped to. Corresponds to the JSON property devicePath

Returns:

  • (String)


5223
5224
5225
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 5223

def device_path
  @device_path
end

#nameString

name must match the name of a persistentVolumeClaim in the pod Corresponds to the JSON property name

Returns:

  • (String)


5228
5229
5230
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 5228

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5235
5236
5237
5238
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 5235

def update!(**args)
  @device_path = args[:device_path] if args.key?(:device_path)
  @name = args[:name] if args.key?(:name)
end