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.
6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 |
# File 'lib/models/porcelain.rb', line 6770 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.
6762 6763 6764 |
# File 'lib/models/porcelain.rb', line 6762 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
6764 6765 6766 |
# File 'lib/models/porcelain.rb', line 6764 def name @name end |
#server_address ⇒ Object
Returns the value of attribute server_address.
6766 6767 6768 |
# File 'lib/models/porcelain.rb', line 6766 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
6768 6769 6770 |
# File 'lib/models/porcelain.rb', line 6768 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6790 6791 6792 6793 6794 6795 6796 |
# File 'lib/models/porcelain.rb', line 6790 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 |