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.
-
#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(id: nil, name: nil, server_address: nil, ca_cert_path: nil, client_cert_path: nil, client_key_path: nil, tags: nil) ⇒ VaultTLSStore
constructor
A new instance of VaultTLSStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, server_address: nil, ca_cert_path: nil, client_cert_path: nil, client_key_path: nil, tags: nil) ⇒ VaultTLSStore
Returns a new instance of VaultTLSStore.
5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 |
# File 'lib/models/porcelain.rb', line 5451 def initialize( id: nil, name: nil, server_address: nil, ca_cert_path: nil, client_cert_path: nil, client_key_path: nil, tags: nil ) if id != nil @id = id end if name != nil @name = name end if server_address != nil @server_address = server_address end if ca_cert_path != nil @ca_cert_path = ca_cert_path end if client_cert_path != nil @client_cert_path = client_cert_path end if client_key_path != nil @client_key_path = client_key_path end if != nil @tags = end end |
Instance Attribute Details
#ca_cert_path ⇒ Object
Returns the value of attribute ca_cert_path.
5443 5444 5445 |
# File 'lib/models/porcelain.rb', line 5443 def ca_cert_path @ca_cert_path end |
#client_cert_path ⇒ Object
Returns the value of attribute client_cert_path.
5445 5446 5447 |
# File 'lib/models/porcelain.rb', line 5445 def client_cert_path @client_cert_path end |
#client_key_path ⇒ Object
Returns the value of attribute client_key_path.
5447 5448 5449 |
# File 'lib/models/porcelain.rb', line 5447 def client_key_path @client_key_path end |
#id ⇒ Object
Unique identifier of the SecretStore.
5437 5438 5439 |
# File 'lib/models/porcelain.rb', line 5437 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
5439 5440 5441 |
# File 'lib/models/porcelain.rb', line 5439 def name @name end |
#server_address ⇒ Object
Returns the value of attribute server_address.
5441 5442 5443 |
# File 'lib/models/porcelain.rb', line 5441 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
5449 5450 5451 |
# File 'lib/models/porcelain.rb', line 5449 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5483 5484 5485 5486 5487 5488 5489 |
# File 'lib/models/porcelain.rb', line 5483 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 |