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.
18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 |
# File 'lib/models/porcelain.rb', line 18740 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.
18730 18731 18732 |
# File 'lib/models/porcelain.rb', line 18730 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
18732 18733 18734 |
# File 'lib/models/porcelain.rb', line 18732 def name @name end |
#namespace ⇒ Object
The namespace to make requests within
18734 18735 18736 |
# File 'lib/models/porcelain.rb', line 18734 def namespace @namespace end |
#server_address ⇒ Object
The URL of the Vault to target
18736 18737 18738 |
# File 'lib/models/porcelain.rb', line 18736 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
18738 18739 18740 |
# File 'lib/models/porcelain.rb', line 18738 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
18754 18755 18756 18757 18758 18759 18760 |
# File 'lib/models/porcelain.rb', line 18754 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 |