Class: KubernetesReferences::ConfigMapEnvSource

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from API

#_set!, #schema, #to_hash

Constructor Details

#initialize(obj) ⇒ ConfigMapEnvSource

Returns a new instance of ConfigMapEnvSource.



7
8
9
# File 'lib/kubernetes_references/config_map/config_map_env_source.rb', line 7

def initialize(obj)
  _set!(obj)
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#optionalObject

Returns the value of attribute optional.



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

def optional
  @optional
end

Instance Method Details

#_schemaObject



11
12
13
14
15
16
# File 'lib/kubernetes_references/config_map/config_map_env_source.rb', line 11

def _schema
  {
    name: @name,
    optional: @optional
  }
end