Class: KubernetesReferences::HostPathVolumeSource

Inherits:
API
  • Object
show all
Defined in:
lib/kubernetes_references/volume_source/host_path_volume_source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from API

#_set!, #schema, #to_hash

Constructor Details

#initialize(obj) ⇒ HostPathVolumeSource

Returns a new instance of HostPathVolumeSource.



8
9
10
# File 'lib/kubernetes_references/volume_source/host_path_volume_source.rb', line 8

def initialize(obj)
  _set!(obj)
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/kubernetes_references/volume_source/host_path_volume_source.rb', line 4

def path
  @path
end

#typeObject

Returns the value of attribute type.



6
7
8
# File 'lib/kubernetes_references/volume_source/host_path_volume_source.rb', line 6

def type
  @type
end

Instance Method Details

#_schemaObject



12
13
14
15
16
17
# File 'lib/kubernetes_references/volume_source/host_path_volume_source.rb', line 12

def _schema
  {
    path: @path,
    type: @type
  }
end