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.



8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
# File 'lib/models/porcelain.rb', line 8593

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

Returns the value of attribute ca_cert_path.



8577
8578
8579
# File 'lib/models/porcelain.rb', line 8577

def ca_cert_path
  @ca_cert_path
end

#client_cert_pathObject

Returns the value of attribute client_cert_path.



8579
8580
8581
# File 'lib/models/porcelain.rb', line 8579

def client_cert_path
  @client_cert_path
end

#client_key_pathObject

Returns the value of attribute client_key_path.



8581
8582
8583
# File 'lib/models/porcelain.rb', line 8581

def client_key_path
  @client_key_path
end

#idObject

Unique identifier of the SecretStore.



8583
8584
8585
# File 'lib/models/porcelain.rb', line 8583

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



8585
8586
8587
# File 'lib/models/porcelain.rb', line 8585

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



8587
8588
8589
# File 'lib/models/porcelain.rb', line 8587

def namespace
  @namespace
end

#server_addressObject

Returns the value of attribute server_address.



8589
8590
8591
# File 'lib/models/porcelain.rb', line 8589

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



8591
8592
8593
# File 'lib/models/porcelain.rb', line 8591

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8613
8614
8615
8616
8617
8618
8619
# File 'lib/models/porcelain.rb', line 8613

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