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.
8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 |
# File 'lib/models/porcelain.rb', line 8593 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.
8577 8578 8579 |
# File 'lib/models/porcelain.rb', line 8577 def ca_cert_path @ca_cert_path end |
#client_cert_path ⇒ Object
Returns the value of attribute client_cert_path.
8579 8580 8581 |
# File 'lib/models/porcelain.rb', line 8579 def client_cert_path @client_cert_path end |
#client_key_path ⇒ Object
Returns the value of attribute client_key_path.
8581 8582 8583 |
# File 'lib/models/porcelain.rb', line 8581 def client_key_path @client_key_path end |
#id ⇒ Object
Unique identifier of the SecretStore.
8583 8584 8585 |
# File 'lib/models/porcelain.rb', line 8583 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
8585 8586 8587 |
# File 'lib/models/porcelain.rb', line 8585 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace.
8587 8588 8589 |
# File 'lib/models/porcelain.rb', line 8587 def namespace @namespace end |
#server_address ⇒ Object
Returns the value of attribute server_address.
8589 8590 8591 |
# File 'lib/models/porcelain.rb', line 8589 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
8591 8592 8593 |
# File 'lib/models/porcelain.rb', line 8591 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8613 8614 8615 8616 8617 8618 8619 |
# File 'lib/models/porcelain.rb', line 8613 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 |