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(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.



9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
# File 'lib/models/porcelain.rb', line 9801

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 = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
end

Instance Attribute Details

#ca_cert_pathObject

A path to a CA file accessible by a Node



9785
9786
9787
# File 'lib/models/porcelain.rb', line 9785

def ca_cert_path
  @ca_cert_path
end

#client_cert_pathObject

A path to a client certificate file accessible by a Node



9787
9788
9789
# File 'lib/models/porcelain.rb', line 9787

def client_cert_path
  @client_cert_path
end

#client_key_pathObject

A path to a client key file accessible by a Node



9789
9790
9791
# File 'lib/models/porcelain.rb', line 9789

def client_key_path
  @client_key_path
end

#idObject

Unique identifier of the SecretStore.



9791
9792
9793
# File 'lib/models/porcelain.rb', line 9791

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



9793
9794
9795
# File 'lib/models/porcelain.rb', line 9793

def name
  @name
end

#namespaceObject

The namespace to make requests within



9795
9796
9797
# File 'lib/models/porcelain.rb', line 9795

def namespace
  @namespace
end

#server_addressObject

The URL of the Vault to target



9797
9798
9799
# File 'lib/models/porcelain.rb', line 9797

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



9799
9800
9801
# File 'lib/models/porcelain.rb', line 9799

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



9821
9822
9823
9824
9825
9826
9827
# File 'lib/models/porcelain.rb', line 9821

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