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.
6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 |
# File 'lib/models/porcelain.rb', line 6509 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.
6501 6502 6503 |
# File 'lib/models/porcelain.rb', line 6501 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
6503 6504 6505 |
# File 'lib/models/porcelain.rb', line 6503 def name @name end |
#server_address ⇒ Object
Returns the value of attribute server_address.
6505 6506 6507 |
# File 'lib/models/porcelain.rb', line 6505 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
6507 6508 6509 |
# File 'lib/models/porcelain.rb', line 6507 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6529 6530 6531 6532 6533 6534 6535 |
# File 'lib/models/porcelain.rb', line 6529 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 |