Class: SDM::VaultTLSStore
- Inherits:
-
Object
- Object
- SDM::VaultTLSStore
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#ca_cert_path ⇒ Object
Returns the value of attribute ca_cert_path.
-
#client_cert_path ⇒ Object
Returns the value of attribute client_cert_path.
-
#client_key_path ⇒ Object
Returns the value of attribute client_key_path.
-
#id ⇒ Object
Unique identifier of the SecretStore.
-
#name ⇒ Object
Unique human-readable name of the SecretStore.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#server_address ⇒ Object
Returns the value of attribute server_address.
-
#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.
6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 |
# File 'lib/models/porcelain.rb', line 6291 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 @tags = == nil ? SDM::() : end |
Instance Attribute Details
#ca_cert_path ⇒ Object
Returns the value of attribute ca_cert_path.
6275 6276 6277 |
# File 'lib/models/porcelain.rb', line 6275 def ca_cert_path @ca_cert_path end |
#client_cert_path ⇒ Object
Returns the value of attribute client_cert_path.
6277 6278 6279 |
# File 'lib/models/porcelain.rb', line 6277 def client_cert_path @client_cert_path end |
#client_key_path ⇒ Object
Returns the value of attribute client_key_path.
6279 6280 6281 |
# File 'lib/models/porcelain.rb', line 6279 def client_key_path @client_key_path end |
#id ⇒ Object
Unique identifier of the SecretStore.
6281 6282 6283 |
# File 'lib/models/porcelain.rb', line 6281 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
6283 6284 6285 |
# File 'lib/models/porcelain.rb', line 6283 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace.
6285 6286 6287 |
# File 'lib/models/porcelain.rb', line 6285 def namespace @namespace end |
#server_address ⇒ Object
Returns the value of attribute server_address.
6287 6288 6289 |
# File 'lib/models/porcelain.rb', line 6287 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
6289 6290 6291 |
# File 'lib/models/porcelain.rb', line 6289 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6311 6312 6313 6314 6315 6316 6317 |
# File 'lib/models/porcelain.rb', line 6311 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 |