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.
15918 15919 15920 15921 15922 15923 15924 15925 15926 |
# File 'lib/models/porcelain.rb', line 15918 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.
15912 15913 15914 |
# File 'lib/models/porcelain.rb', line 15912 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
15914 15915 15916 |
# File 'lib/models/porcelain.rb', line 15914 def name @name end |
#tags ⇒ Object
Tags is a map of key, value pairs.
15916 15917 15918 |
# File 'lib/models/porcelain.rb', line 15916 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
15928 15929 15930 15931 15932 15933 15934 |
# File 'lib/models/porcelain.rb', line 15928 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 |