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.
6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 |
# File 'lib/models/porcelain.rb', line 6332 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.
6322 6323 6324 |
# File 'lib/models/porcelain.rb', line 6322 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
6324 6325 6326 |
# File 'lib/models/porcelain.rb', line 6324 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace.
6326 6327 6328 |
# File 'lib/models/porcelain.rb', line 6326 def namespace @namespace end |
#server_address ⇒ Object
Returns the value of attribute server_address.
6328 6329 6330 |
# File 'lib/models/porcelain.rb', line 6328 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
6330 6331 6332 |
# File 'lib/models/porcelain.rb', line 6330 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6346 6347 6348 6349 6350 6351 6352 |
# File 'lib/models/porcelain.rb', line 6346 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 |