Class: KubernetesReferences::ConfigMapProjection

Inherits:
API
  • Object
show all
Defined in:
lib/kubernetes_references/config_map/config_map_projection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from API

#_set!, #schema, #to_hash

Constructor Details

#initialize(obj) ⇒ ConfigMapProjection

Returns a new instance of ConfigMapProjection.



8
9
10
# File 'lib/kubernetes_references/config_map/config_map_projection.rb', line 8

def initialize(obj)
  _set!(obj)
end

Instance Attribute Details

#itemsObject

Returns the value of attribute items.



4
5
6
# File 'lib/kubernetes_references/config_map/config_map_projection.rb', line 4

def items
  @items
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/kubernetes_references/config_map/config_map_projection.rb', line 5

def name
  @name
end

#optionalObject

Returns the value of attribute optional.



6
7
8
# File 'lib/kubernetes_references/config_map/config_map_projection.rb', line 6

def optional
  @optional
end

Instance Method Details

#_schemaObject



12
13
14
15
16
17
18
# File 'lib/kubernetes_references/config_map/config_map_projection.rb', line 12

def _schema
  {
    items: @items.map{|r| r.schema},
    name: @name,
    optional: @optional
  }
end