Class: SDM::StrongVaultStore
- Inherits:
-
Object
- Object
- SDM::StrongVaultStore
- Defined in:
- lib/models/porcelain.rb
Overview
StrongVaultStore is currently unstable, and its API may change, or it may be removed, without a major version bump.
Instance Attribute Summary collapse
-
#id ⇒ Object
Unique identifier of the SecretStore.
-
#name ⇒ Object
Unique human-readable name of the SecretStore.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, tags: nil) ⇒ StrongVaultStore
constructor
A new instance of StrongVaultStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, tags: nil) ⇒ StrongVaultStore
Returns a new instance of StrongVaultStore.
15834 15835 15836 15837 15838 15839 15840 15841 15842 |
# File 'lib/models/porcelain.rb', line 15834 def initialize( id: nil, name: nil, tags: nil ) @id = id == nil ? "" : id @name = name == nil ? "" : name @tags = == nil ? SDM::() : end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
15828 15829 15830 |
# File 'lib/models/porcelain.rb', line 15828 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
15830 15831 15832 |
# File 'lib/models/porcelain.rb', line 15830 def name @name end |
#tags ⇒ Object
Tags is a map of key, value pairs.
15832 15833 15834 |
# File 'lib/models/porcelain.rb', line 15832 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
15844 15845 15846 15847 15848 15849 15850 |
# File 'lib/models/porcelain.rb', line 15844 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 |