Class: SDM::VaultTLSStore
- Inherits:
-
Object
- Object
- SDM::VaultTLSStore
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#ca_cert_path ⇒ Object
A path to a CA file accessible by a Node.
-
#client_cert_path ⇒ Object
A path to a client certificate file accessible by a Node.
-
#client_key_path ⇒ Object
A path to a client key file accessible by a Node.
-
#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(ca_cert_path: nil, client_cert_path: nil, client_key_path: nil, id: nil, name: nil, namespace: nil, server_address: nil, tags: nil) ⇒ VaultTLSStore
constructor
A new instance of VaultTLSStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(ca_cert_path: nil, client_cert_path: nil, client_key_path: nil, id: nil, name: nil, namespace: nil, server_address: nil, tags: nil) ⇒ VaultTLSStore
Returns a new instance of VaultTLSStore.
10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 |
# File 'lib/models/porcelain.rb', line 10877 def initialize( ca_cert_path: nil, client_cert_path: nil, client_key_path: nil, id: nil, name: nil, namespace: nil, server_address: nil, tags: nil ) @ca_cert_path = ca_cert_path == nil ? "" : ca_cert_path @client_cert_path = client_cert_path == nil ? "" : client_cert_path @client_key_path = client_key_path == nil ? "" : client_key_path @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
#ca_cert_path ⇒ Object
A path to a CA file accessible by a Node
10861 10862 10863 |
# File 'lib/models/porcelain.rb', line 10861 def ca_cert_path @ca_cert_path end |
#client_cert_path ⇒ Object
A path to a client certificate file accessible by a Node
10863 10864 10865 |
# File 'lib/models/porcelain.rb', line 10863 def client_cert_path @client_cert_path end |
#client_key_path ⇒ Object
A path to a client key file accessible by a Node
10865 10866 10867 |
# File 'lib/models/porcelain.rb', line 10865 def client_key_path @client_key_path end |
#id ⇒ Object
Unique identifier of the SecretStore.
10867 10868 10869 |
# File 'lib/models/porcelain.rb', line 10867 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
10869 10870 10871 |
# File 'lib/models/porcelain.rb', line 10869 def name @name end |
#namespace ⇒ Object
The namespace to make requests within
10871 10872 10873 |
# File 'lib/models/porcelain.rb', line 10871 def namespace @namespace end |
#server_address ⇒ Object
The URL of the Vault to target
10873 10874 10875 |
# File 'lib/models/porcelain.rb', line 10873 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
10875 10876 10877 |
# File 'lib/models/porcelain.rb', line 10875 def end |
Instance Method Details
#to_json(options = {}) ⇒ Object
10897 10898 10899 10900 10901 10902 10903 |
# File 'lib/models/porcelain.rb', line 10897 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 |