Class: SDM::VaultAWSEC2CertX509Store

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, pki_mount_point: nil, server_address: nil, signing_role: nil, tags: nil) ⇒ VaultAWSEC2CertX509Store

Returns a new instance of VaultAWSEC2CertX509Store.



16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
# File 'lib/models/porcelain.rb', line 16672

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

Instance Attribute Details

#idObject

Unique identifier of the SecretStore.



16656
16657
16658
# File 'lib/models/porcelain.rb', line 16656

def id
  @id
end

#issuedcertttlminutesObject

The lifetime of certificates issued by this CA represented in minutes.



16658
16659
16660
# File 'lib/models/porcelain.rb', line 16658

def issuedcertttlminutes
  @issuedcertttlminutes
end

#nameObject

Unique human-readable name of the SecretStore.



16660
16661
16662
# File 'lib/models/porcelain.rb', line 16660

def name
  @name
end

#namespaceObject

The namespace to make requests within



16662
16663
16664
# File 'lib/models/porcelain.rb', line 16662

def namespace
  @namespace
end

#pki_mount_pointObject

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



16664
16665
16666
# File 'lib/models/porcelain.rb', line 16664

def pki_mount_point
  @pki_mount_point
end

#server_addressObject

The URL of the Vault to target



16666
16667
16668
# File 'lib/models/porcelain.rb', line 16666

def server_address
  @server_address
end

#signing_roleObject

The signing role to be used for signing certificates



16668
16669
16670
# File 'lib/models/porcelain.rb', line 16668

def signing_role
  @signing_role
end

#tagsObject

Tags is a map of key, value pairs.



16670
16671
16672
# File 'lib/models/porcelain.rb', line 16670

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



16692
16693
16694
16695
16696
16697
16698
# File 'lib/models/porcelain.rb', line 16692

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