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.
-
#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, server_address: nil, tags: nil) ⇒ VaultTokenStore
constructor
A new instance of VaultTokenStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, server_address: nil, tags: nil) ⇒ VaultTokenStore
Returns a new instance of VaultTokenStore.
5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 |
# File 'lib/models/porcelain.rb', line 5502 def initialize( id: nil, name: nil, server_address: nil, tags: nil ) if id != nil @id = id end if name != nil @name = name end if server_address != nil @server_address = server_address end if != nil @tags = end end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
5494 5495 5496 |
# File 'lib/models/porcelain.rb', line 5494 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
5496 5497 5498 |
# File 'lib/models/porcelain.rb', line 5496 def name @name end |
#server_address ⇒ Object
Returns the value of attribute server_address.
5498 5499 5500 |
# File 'lib/models/porcelain.rb', line 5498 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
5500 5501 5502 |
# File 'lib/models/porcelain.rb', line 5500 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5522 5523 5524 5525 5526 5527 5528 |
# File 'lib/models/porcelain.rb', line 5522 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 |