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.



6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
# File 'lib/models/porcelain.rb', line 6348

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.



6332
6333
6334
# File 'lib/models/porcelain.rb', line 6332

def ca_cert_path
  @ca_cert_path
end

#client_cert_pathObject

Returns the value of attribute client_cert_path.



6334
6335
6336
# File 'lib/models/porcelain.rb', line 6334

def client_cert_path
  @client_cert_path
end

#client_key_pathObject

Returns the value of attribute client_key_path.



6336
6337
6338
# File 'lib/models/porcelain.rb', line 6336

def client_key_path
  @client_key_path
end

#idObject

Unique identifier of the SecretStore.



6338
6339
6340
# File 'lib/models/porcelain.rb', line 6338

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



6340
6341
6342
# File 'lib/models/porcelain.rb', line 6340

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



6342
6343
6344
# File 'lib/models/porcelain.rb', line 6342

def namespace
  @namespace
end

#server_addressObject

Returns the value of attribute server_address.



6344
6345
6346
# File 'lib/models/porcelain.rb', line 6344

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



6346
6347
6348
# File 'lib/models/porcelain.rb', line 6346

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6368
6369
6370
6371
6372
6373
6374
# File 'lib/models/porcelain.rb', line 6368

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