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
17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 |
# File 'lib/models/porcelain.rb', line 17261 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 = == nil ? SDM::() : end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
17251 17252 17253 |
# File 'lib/models/porcelain.rb', line 17251 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
17253 17254 17255 |
# File 'lib/models/porcelain.rb', line 17253 def name @name end |
#namespace ⇒ Object
The namespace to make requests within
17255 17256 17257 |
# File 'lib/models/porcelain.rb', line 17255 def namespace @namespace end |
#server_address ⇒ Object
The URL of the Vault to target
17257 17258 17259 |
# File 'lib/models/porcelain.rb', line 17257 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
17259 17260 17261 |
# File 'lib/models/porcelain.rb', line 17259 def end |
Instance Method Details
#to_json(options = {}) ⇒ Object
17275 17276 17277 17278 17279 17280 17281 |
# File 'lib/models/porcelain.rb', line 17275 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 |