Class: SDM::VaultTokenStore
- Inherits:
-
Object
- Object
- SDM::VaultTokenStore
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Unique identifier of the SecretStore.
-
#name ⇒ Object
Unique human-readable name of the SecretStore.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#server_address ⇒ Object
Returns the value of attribute server_address.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, namespace: nil, server_address: nil, tags: nil) ⇒ VaultTokenStore
constructor
A new instance of VaultTokenStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, namespace: nil, server_address: nil, tags: nil) ⇒ VaultTokenStore
Returns a new instance of VaultTokenStore.
8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 |
# File 'lib/models/porcelain.rb', line 8698 def initialize( id: nil, name: nil, namespace: nil, server_address: nil, tags: nil ) @id = id == nil ? "" : id @name = name == nil ? "" : name @namespace = namespace == nil ? "" : namespace @server_address = server_address == nil ? "" : server_address @tags = == nil ? SDM::() : end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
8688 8689 8690 |
# File 'lib/models/porcelain.rb', line 8688 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
8690 8691 8692 |
# File 'lib/models/porcelain.rb', line 8690 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace.
8692 8693 8694 |
# File 'lib/models/porcelain.rb', line 8692 def namespace @namespace end |
#server_address ⇒ Object
Returns the value of attribute server_address.
8694 8695 8696 |
# File 'lib/models/porcelain.rb', line 8694 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
8696 8697 8698 |
# File 'lib/models/porcelain.rb', line 8696 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8712 8713 8714 8715 8716 8717 8718 |
# File 'lib/models/porcelain.rb', line 8712 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |