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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VolumeDevice

Returns a new instance of VolumeDevice



4822
4823
4824
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4822

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)


4815
4816
4817
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4815

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)


4820
4821
4822
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4820

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4827
4828
4829
4830
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4827

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