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.



6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
# File 'lib/models/porcelain.rb', line 6458

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.



6450
6451
6452
# File 'lib/models/porcelain.rb', line 6450

def ca_cert_path
  @ca_cert_path
end

#client_cert_pathObject

Returns the value of attribute client_cert_path.



6452
6453
6454
# File 'lib/models/porcelain.rb', line 6452

def client_cert_path
  @client_cert_path
end

#client_key_pathObject

Returns the value of attribute client_key_path.



6454
6455
6456
# File 'lib/models/porcelain.rb', line 6454

def client_key_path
  @client_key_path
end

#idObject

Unique identifier of the SecretStore.



6444
6445
6446
# File 'lib/models/porcelain.rb', line 6444

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



6446
6447
6448
# File 'lib/models/porcelain.rb', line 6446

def name
  @name
end

#server_addressObject

Returns the value of attribute server_address.



6448
6449
6450
# File 'lib/models/porcelain.rb', line 6448

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



6456
6457
6458
# File 'lib/models/porcelain.rb', line 6456

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6490
6491
6492
6493
6494
6495
6496
# File 'lib/models/porcelain.rb', line 6490

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