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.
9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 |
# File 'lib/models/porcelain.rb', line 9930 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.
9920 9921 9922 |
# File 'lib/models/porcelain.rb', line 9920 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
9922 9923 9924 |
# File 'lib/models/porcelain.rb', line 9922 def name @name end |
#namespace ⇒ Object
The namespace to make requests within
9924 9925 9926 |
# File 'lib/models/porcelain.rb', line 9924 def namespace @namespace end |
#server_address ⇒ Object
The URL of the Vault to target
9926 9927 9928 |
# File 'lib/models/porcelain.rb', line 9926 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
9928 9929 9930 |
# File 'lib/models/porcelain.rb', line 9928 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
9944 9945 9946 9947 9948 9949 9950 |
# File 'lib/models/porcelain.rb', line 9944 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 |