Class: SDM::VaultAWSEC2CertSSHStore

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, issuedcertttlminutes: nil, name: nil, namespace: nil, server_address: nil, signing_role: nil, ssh_mount_point: nil, tags: nil) ⇒ VaultAWSEC2CertSSHStore

Returns a new instance of VaultAWSEC2CertSSHStore.



17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
# File 'lib/models/porcelain.rb', line 17321

def initialize(
  id: nil,
  issuedcertttlminutes: nil,
  name: nil,
  namespace: nil,
  server_address: nil,
  signing_role: nil,
  ssh_mount_point: nil,
  tags: nil
)
  @id = id == nil ? "" : id
  @issuedcertttlminutes = issuedcertttlminutes == nil ? 0 : issuedcertttlminutes
  @name = name == nil ? "" : name
  @namespace = namespace == nil ? "" : namespace
  @server_address = server_address == nil ? "" : server_address
  @signing_role = signing_role == nil ? "" : signing_role
  @ssh_mount_point = ssh_mount_point == nil ? "" : ssh_mount_point
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
end

Instance Attribute Details

#idObject

Unique identifier of the SecretStore.



17305
17306
17307
# File 'lib/models/porcelain.rb', line 17305

def id
  @id
end

#issuedcertttlminutesObject

The lifetime of certificates issued by this CA in minutes. Recommended value is 5.



17307
17308
17309
# File 'lib/models/porcelain.rb', line 17307

def issuedcertttlminutes
  @issuedcertttlminutes
end

#nameObject

Unique human-readable name of the SecretStore.



17309
17310
17311
# File 'lib/models/porcelain.rb', line 17309

def name
  @name
end

#namespaceObject

The namespace to make requests within



17311
17312
17313
# File 'lib/models/porcelain.rb', line 17311

def namespace
  @namespace
end

#server_addressObject

The URL of the Vault to target



17313
17314
17315
# File 'lib/models/porcelain.rb', line 17313

def server_address
  @server_address
end

#signing_roleObject

The signing role to be used for signing certificates



17315
17316
17317
# File 'lib/models/porcelain.rb', line 17315

def signing_role
  @signing_role
end

#ssh_mount_pointObject

The mount point of the SSH engine configured with the desired CA



17317
17318
17319
# File 'lib/models/porcelain.rb', line 17317

def ssh_mount_point
  @ssh_mount_point
end

#tagsObject

Tags is a map of key, value pairs.



17319
17320
17321
# File 'lib/models/porcelain.rb', line 17319

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



17341
17342
17343
17344
17345
17346
17347
# File 'lib/models/porcelain.rb', line 17341

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