Class: KubernetesReferences::TypedLocalObjectReference

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from API

#_set!, #schema, #to_hash

Constructor Details

#initialize(obj) ⇒ TypedLocalObjectReference

Returns a new instance of TypedLocalObjectReference.



10
11
12
# File 'lib/kubernetes_references/typed_local_object_reference.rb', line 10

def initialize(obj)
  _set!(obj)
end

Instance Attribute Details

#api_groupObject

Returns the value of attribute api_group.



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

def api_group
  @api_group
end

#kindObject

Returns the value of attribute kind.



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

def kind
  @kind
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#_schemaObject



14
15
16
17
18
19
20
# File 'lib/kubernetes_references/typed_local_object_reference.rb', line 14

def _schema
  {
    apiGroup: @api_group,
    kind: @kind,
    name: @name
  }
end