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
The namespace to make requests within.
-
#server_address ⇒ Object
The URL of the Vault to target.
-
#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.
18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 |
# File 'lib/models/porcelain.rb', line 18644 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.
18634 18635 18636 |
# File 'lib/models/porcelain.rb', line 18634 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
18636 18637 18638 |
# File 'lib/models/porcelain.rb', line 18636 def name @name end |
#namespace ⇒ Object
The namespace to make requests within
18638 18639 18640 |
# File 'lib/models/porcelain.rb', line 18638 def namespace @namespace end |
#server_address ⇒ Object
The URL of the Vault to target
18640 18641 18642 |
# File 'lib/models/porcelain.rb', line 18640 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
18642 18643 18644 |
# File 'lib/models/porcelain.rb', line 18642 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
18658 18659 18660 18661 18662 18663 18664 |
# File 'lib/models/porcelain.rb', line 18658 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 |