Class: SDM::VaultAppRoleCertX509Store

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

Returns a new instance of VaultAppRoleCertX509Store.



11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
# File 'lib/models/porcelain.rb', line 11225

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.



11209
11210
11211
# File 'lib/models/porcelain.rb', line 11209

def id
  @id
end

#issuedcertttlminutesObject

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



11211
11212
11213
# File 'lib/models/porcelain.rb', line 11211

def issuedcertttlminutes
  @issuedcertttlminutes
end

#nameObject

Unique human-readable name of the SecretStore.



11213
11214
11215
# File 'lib/models/porcelain.rb', line 11213

def name
  @name
end

#namespaceObject

The namespace to make requests within



11215
11216
11217
# File 'lib/models/porcelain.rb', line 11215

def namespace
  @namespace
end

#pki_mount_pointObject

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



11217
11218
11219
# File 'lib/models/porcelain.rb', line 11217

def pki_mount_point
  @pki_mount_point
end

#server_addressObject

The URL of the Vault to target



11219
11220
11221
# File 'lib/models/porcelain.rb', line 11219

def server_address
  @server_address
end

#signing_roleObject

The signing role to be used for signing certificates



11221
11222
11223
# File 'lib/models/porcelain.rb', line 11221

def signing_role
  @signing_role
end

#tagsObject

Tags is a map of key, value pairs.



11223
11224
11225
# File 'lib/models/porcelain.rb', line 11223

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



11245
11246
11247
11248
11249
11250
11251
# File 'lib/models/porcelain.rb', line 11245

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