Class: Gitlab::Kubernetes::GenericSecret
- Inherits:
-
Object
- Object
- Gitlab::Kubernetes::GenericSecret
- Defined in:
- lib/gitlab/kubernetes/generic_secret.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#namespace_name ⇒ Object
readonly
Returns the value of attribute namespace_name.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(name, data, namespace_name) ⇒ GenericSecret
constructor
A new instance of GenericSecret.
Constructor Details
#initialize(name, data, namespace_name) ⇒ GenericSecret
Returns a new instance of GenericSecret.
8 9 10 11 12 |
# File 'lib/gitlab/kubernetes/generic_secret.rb', line 8 def initialize(name, data, namespace_name) @name = name @data = data @namespace_name = namespace_name end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
6 7 8 |
# File 'lib/gitlab/kubernetes/generic_secret.rb', line 6 def data @data end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/gitlab/kubernetes/generic_secret.rb', line 6 def name @name end |
#namespace_name ⇒ Object (readonly)
Returns the value of attribute namespace_name.
6 7 8 |
# File 'lib/gitlab/kubernetes/generic_secret.rb', line 6 def namespace_name @namespace_name end |
Instance Method Details
#generate ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/gitlab/kubernetes/generic_secret.rb', line 14 def generate ::Kubeclient::Resource.new( type: generic_secret_type, metadata: , data: data ) end |