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.
13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 |
# File 'lib/models/porcelain.rb', line 13608 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.
13598 13599 13600 |
# File 'lib/models/porcelain.rb', line 13598 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
13600 13601 13602 |
# File 'lib/models/porcelain.rb', line 13600 def name @name end |
#namespace ⇒ Object
The namespace to make requests within
13602 13603 13604 |
# File 'lib/models/porcelain.rb', line 13602 def namespace @namespace end |
#server_address ⇒ Object
The URL of the Vault to target
13604 13605 13606 |
# File 'lib/models/porcelain.rb', line 13604 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
13606 13607 13608 |
# File 'lib/models/porcelain.rb', line 13606 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
13622 13623 13624 13625 13626 13627 13628 |
# File 'lib/models/porcelain.rb', line 13622 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 |