Class: KubernetesReferences::ConfigMapVolumeSource
- Defined in:
- lib/kubernetes_references/volume_source/config_map_volume_source.rb
Instance Attribute Summary collapse
-
#default_mode ⇒ Object
Returns the value of attribute default_mode.
-
#items ⇒ Object
Returns the value of attribute items.
-
#name ⇒ Object
Returns the value of attribute name.
-
#optional ⇒ Object
Returns the value of attribute optional.
Instance Method Summary collapse
- #_schema ⇒ Object
-
#initialize(obj) ⇒ ConfigMapVolumeSource
constructor
A new instance of ConfigMapVolumeSource.
Methods inherited from API
Constructor Details
#initialize(obj) ⇒ ConfigMapVolumeSource
Returns a new instance of ConfigMapVolumeSource.
12 13 14 |
# File 'lib/kubernetes_references/volume_source/config_map_volume_source.rb', line 12 def initialize(obj) _set!(obj) end |
Instance Attribute Details
#default_mode ⇒ Object
Returns the value of attribute default_mode.
4 5 6 |
# File 'lib/kubernetes_references/volume_source/config_map_volume_source.rb', line 4 def default_mode @default_mode end |
#items ⇒ Object
Returns the value of attribute items.
6 7 8 |
# File 'lib/kubernetes_references/volume_source/config_map_volume_source.rb', line 6 def items @items end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/kubernetes_references/volume_source/config_map_volume_source.rb', line 8 def name @name end |
#optional ⇒ Object
Returns the value of attribute optional.
10 11 12 |
# File 'lib/kubernetes_references/volume_source/config_map_volume_source.rb', line 10 def optional @optional end |
Instance Method Details
#_schema ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/kubernetes_references/volume_source/config_map_volume_source.rb', line 16 def _schema { defaultMode: @default_mode, items: @items.map{|r| r.schema}, name: @name, optional: @optional } end |