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.



11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
# File 'lib/models/porcelain.rb', line 11572

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



11556
11557
11558
# File 'lib/models/porcelain.rb', line 11556

def ca_cert_path
  @ca_cert_path
end

#client_cert_pathObject

A path to a client certificate file accessible by a Node



11558
11559
11560
# File 'lib/models/porcelain.rb', line 11558

def client_cert_path
  @client_cert_path
end

#client_key_pathObject

A path to a client key file accessible by a Node



11560
11561
11562
# File 'lib/models/porcelain.rb', line 11560

def client_key_path
  @client_key_path
end

#idObject

Unique identifier of the SecretStore.



11562
11563
11564
# File 'lib/models/porcelain.rb', line 11562

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



11564
11565
11566
# File 'lib/models/porcelain.rb', line 11564

def name
  @name
end

#namespaceObject

The namespace to make requests within



11566
11567
11568
# File 'lib/models/porcelain.rb', line 11566

def namespace
  @namespace
end

#server_addressObject

The URL of the Vault to target



11568
11569
11570
# File 'lib/models/porcelain.rb', line 11568

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



11570
11571
11572
# File 'lib/models/porcelain.rb', line 11570

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



11592
11593
11594
11595
11596
11597
11598
# File 'lib/models/porcelain.rb', line 11592

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