Class: SDM::VaultTLSCertSSHStore
- Inherits:
-
Object
- Object
- SDM::VaultTLSCertSSHStore
- Defined in:
- lib/models/porcelain.rb
Overview
VaultTLSCertSSHStore is currently unstable, and its API may change, or it may be removed, without a major version bump.
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.
-
#signing_role ⇒ Object
The signing role to be used for signing certificates.
-
#ssh_mount_point ⇒ Object
The mount point of the SSH engine configured with the desired CA.
-
#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, signing_role: nil, ssh_mount_point: nil, tags: nil) ⇒ VaultTLSCertSSHStore
constructor
A new instance of VaultTLSCertSSHStore.
- #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, signing_role: nil, ssh_mount_point: nil, tags: nil) ⇒ VaultTLSCertSSHStore
Returns a new instance of VaultTLSCertSSHStore.
10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 |
# File 'lib/models/porcelain.rb', line 10097 def initialize( ca_cert_path: nil, client_cert_path: nil, client_key_path: nil, id: nil, name: nil, namespace: nil, server_address: nil, signing_role: nil, ssh_mount_point: 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 @signing_role = signing_role == nil ? "" : signing_role @ssh_mount_point = ssh_mount_point == nil ? "" : ssh_mount_point = == nil ? SDM::() : end |
Instance Attribute Details
#ca_cert_path ⇒ Object
A path to a CA file accessible by a Node
10077 10078 10079 |
# File 'lib/models/porcelain.rb', line 10077 def ca_cert_path @ca_cert_path end |
#client_cert_path ⇒ Object
A path to a client certificate file accessible by a Node
10079 10080 10081 |
# File 'lib/models/porcelain.rb', line 10079 def client_cert_path @client_cert_path end |
#client_key_path ⇒ Object
A path to a client key file accessible by a Node
10081 10082 10083 |
# File 'lib/models/porcelain.rb', line 10081 def client_key_path @client_key_path end |
#id ⇒ Object
Unique identifier of the SecretStore.
10083 10084 10085 |
# File 'lib/models/porcelain.rb', line 10083 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
10085 10086 10087 |
# File 'lib/models/porcelain.rb', line 10085 def name @name end |
#namespace ⇒ Object
The namespace to make requests within
10087 10088 10089 |
# File 'lib/models/porcelain.rb', line 10087 def namespace @namespace end |
#server_address ⇒ Object
The URL of the Vault to target
10089 10090 10091 |
# File 'lib/models/porcelain.rb', line 10089 def server_address @server_address end |
#signing_role ⇒ Object
The signing role to be used for signing certificates
10091 10092 10093 |
# File 'lib/models/porcelain.rb', line 10091 def signing_role @signing_role end |
#ssh_mount_point ⇒ Object
The mount point of the SSH engine configured with the desired CA
10093 10094 10095 |
# File 'lib/models/porcelain.rb', line 10093 def ssh_mount_point @ssh_mount_point end |
#tags ⇒ Object
Tags is a map of key, value pairs.
10095 10096 10097 |
# File 'lib/models/porcelain.rb', line 10095 def end |
Instance Method Details
#to_json(options = {}) ⇒ Object
10121 10122 10123 10124 10125 10126 10127 |
# File 'lib/models/porcelain.rb', line 10121 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 |