Class: SDM::VaultTokenCertSSHStore

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) ⇒ VaultTokenCertSSHStore

Returns a new instance of VaultTokenCertSSHStore.



11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
# File 'lib/models/porcelain.rb', line 11619

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.



11603
11604
11605
# File 'lib/models/porcelain.rb', line 11603

def id
  @id
end

#issuedcertttlminutesObject

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



11605
11606
11607
# File 'lib/models/porcelain.rb', line 11605

def issuedcertttlminutes
  @issuedcertttlminutes
end

#nameObject

Unique human-readable name of the SecretStore.



11607
11608
11609
# File 'lib/models/porcelain.rb', line 11607

def name
  @name
end

#namespaceObject

The namespace to make requests within



11609
11610
11611
# File 'lib/models/porcelain.rb', line 11609

def namespace
  @namespace
end

#server_addressObject

The URL of the Vault to target



11611
11612
11613
# File 'lib/models/porcelain.rb', line 11611

def server_address
  @server_address
end

#signing_roleObject

The signing role to be used for signing certificates



11613
11614
11615
# File 'lib/models/porcelain.rb', line 11613

def signing_role
  @signing_role
end

#ssh_mount_pointObject

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



11615
11616
11617
# File 'lib/models/porcelain.rb', line 11615

def ssh_mount_point
  @ssh_mount_point
end

#tagsObject

Tags is a map of key, value pairs.



11617
11618
11619
# File 'lib/models/porcelain.rb', line 11617

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



11639
11640
11641
11642
11643
11644
11645
# File 'lib/models/porcelain.rb', line 11639

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