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.
11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 |
# File 'lib/models/porcelain.rb', line 11564 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 = == nil ? SDM::() : end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
11554 11555 11556 |
# File 'lib/models/porcelain.rb', line 11554 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
11556 11557 11558 |
# File 'lib/models/porcelain.rb', line 11556 def name @name end |
#namespace ⇒ Object
The namespace to make requests within
11558 11559 11560 |
# File 'lib/models/porcelain.rb', line 11558 def namespace @namespace end |
#server_address ⇒ Object
The URL of the Vault to target
11560 11561 11562 |
# File 'lib/models/porcelain.rb', line 11560 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
11562 11563 11564 |
# File 'lib/models/porcelain.rb', line 11562 def end |
Instance Method Details
#to_json(options = {}) ⇒ Object
11578 11579 11580 11581 11582 11583 11584 |
# File 'lib/models/porcelain.rb', line 11578 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 |