Class: SDM::VaultTLSStore

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.



6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
# File 'lib/models/porcelain.rb', line 6719

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 tags != nil
    @tags = tags
  end
end

Instance Attribute Details

#ca_cert_pathObject

Returns the value of attribute ca_cert_path.



6711
6712
6713
# File 'lib/models/porcelain.rb', line 6711

def ca_cert_path
  @ca_cert_path
end

#client_cert_pathObject

Returns the value of attribute client_cert_path.



6713
6714
6715
# File 'lib/models/porcelain.rb', line 6713

def client_cert_path
  @client_cert_path
end

#client_key_pathObject

Returns the value of attribute client_key_path.



6715
6716
6717
# File 'lib/models/porcelain.rb', line 6715

def client_key_path
  @client_key_path
end

#idObject

Unique identifier of the SecretStore.



6705
6706
6707
# File 'lib/models/porcelain.rb', line 6705

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



6707
6708
6709
# File 'lib/models/porcelain.rb', line 6707

def name
  @name
end

#server_addressObject

Returns the value of attribute server_address.



6709
6710
6711
# File 'lib/models/porcelain.rb', line 6709

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



6717
6718
6719
# File 'lib/models/porcelain.rb', line 6717

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6751
6752
6753
6754
6755
6756
6757
# File 'lib/models/porcelain.rb', line 6751

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end