Class: KubernetesReferences::ObjectReference

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from API

#_set!, #schema, #to_hash

Constructor Details

#initialize(obj) ⇒ ObjectReference

Returns a new instance of ObjectReference.



18
19
20
# File 'lib/kubernetes_references/object_reference.rb', line 18

def initialize(obj)
  _set!(obj)
end

Instance Attribute Details

#api_versionObject

Returns the value of attribute api_version.



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

def api_version
  @api_version
end

#field_pathObject

Returns the value of attribute field_path.



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

def field_path
  @field_path
end

#kindObject

Returns the value of attribute kind.



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

def kind
  @kind
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



12
13
14
# File 'lib/kubernetes_references/object_reference.rb', line 12

def namespace
  @namespace
end

#resource_versionObject

Returns the value of attribute resource_version.



14
15
16
# File 'lib/kubernetes_references/object_reference.rb', line 14

def resource_version
  @resource_version
end

#uidObject

Returns the value of attribute uid.



16
17
18
# File 'lib/kubernetes_references/object_reference.rb', line 16

def uid
  @uid
end

Instance Method Details

#_schemaObject



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/kubernetes_references/object_reference.rb', line 22

def _schema
  {
    apiVersion: @api_version,
    fieldPath: @field_path,
    kind: @kind,
    name: @name,
    namespace: @namespace,
    resourceVersion: @resource_version,
    uid: @uid
  }
end