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.
-
#namespace ⇒ Object
The namespace to make requests within.
-
#server_address ⇒ Object
The URL of the Vault to target.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, namespace: nil, server_address: nil, tags: nil) ⇒ VaultTokenStore
constructor
A new instance of VaultTokenStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, namespace: nil, server_address: nil, tags: nil) ⇒ VaultTokenStore
Returns a new instance of VaultTokenStore.
18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 |
# File 'lib/models/porcelain.rb', line 18994 def initialize( id: nil, name: nil, namespace: nil, server_address: nil, tags: nil ) @id = id == nil ? "" : id @name = name == nil ? "" : name @namespace = namespace == nil ? "" : namespace @server_address = server_address == nil ? "" : server_address @tags = == nil ? SDM::() : end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
18984 18985 18986 |
# File 'lib/models/porcelain.rb', line 18984 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
18986 18987 18988 |
# File 'lib/models/porcelain.rb', line 18986 def name @name end |
#namespace ⇒ Object
The namespace to make requests within
18988 18989 18990 |
# File 'lib/models/porcelain.rb', line 18988 def namespace @namespace end |
#server_address ⇒ Object
The URL of the Vault to target
18990 18991 18992 |
# File 'lib/models/porcelain.rb', line 18990 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
18992 18993 18994 |
# File 'lib/models/porcelain.rb', line 18992 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
19008 19009 19010 19011 19012 19013 19014 |
# File 'lib/models/porcelain.rb', line 19008 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 |