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.
8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 |
# File 'lib/models/porcelain.rb', line 8366 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.
8350 8351 8352 |
# File 'lib/models/porcelain.rb', line 8350 def ca_cert_path @ca_cert_path end |
#client_cert_path ⇒ Object
Returns the value of attribute client_cert_path.
8352 8353 8354 |
# File 'lib/models/porcelain.rb', line 8352 def client_cert_path @client_cert_path end |
#client_key_path ⇒ Object
Returns the value of attribute client_key_path.
8354 8355 8356 |
# File 'lib/models/porcelain.rb', line 8354 def client_key_path @client_key_path end |
#id ⇒ Object
Unique identifier of the SecretStore.
8356 8357 8358 |
# File 'lib/models/porcelain.rb', line 8356 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
8358 8359 8360 |
# File 'lib/models/porcelain.rb', line 8358 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace.
8360 8361 8362 |
# File 'lib/models/porcelain.rb', line 8360 def namespace @namespace end |
#server_address ⇒ Object
Returns the value of attribute server_address.
8362 8363 8364 |
# File 'lib/models/porcelain.rb', line 8362 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
8364 8365 8366 |
# File 'lib/models/porcelain.rb', line 8364 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8386 8387 8388 8389 8390 8391 8392 |
# File 'lib/models/porcelain.rb', line 8386 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 |