Class: KubernetesReferences::ObjectReference
- Defined in:
- lib/kubernetes_references/object_reference.rb
Instance Attribute Summary collapse
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#field_path ⇒ Object
Returns the value of attribute field_path.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#uid ⇒ Object
Returns the value of attribute uid.
Instance Method Summary collapse
- #_schema ⇒ Object
-
#initialize(obj) ⇒ ObjectReference
constructor
A new instance of ObjectReference.
Methods inherited from API
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_version ⇒ Object
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_path ⇒ Object
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 |
#kind ⇒ Object
Returns the value of attribute kind.
8 9 10 |
# File 'lib/kubernetes_references/object_reference.rb', line 8 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/kubernetes_references/object_reference.rb', line 10 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace.
12 13 14 |
# File 'lib/kubernetes_references/object_reference.rb', line 12 def namespace @namespace end |
#resource_version ⇒ Object
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 |
#uid ⇒ Object
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
#_schema ⇒ Object
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 |