Class: SDM::VaultTokenStore

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, name: nil, namespace: nil, server_address: nil, tags: nil) ⇒ VaultTokenStore

Returns a new instance of VaultTokenStore.



6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
# File 'lib/models/porcelain.rb', line 6332

def initialize(
  id: nil,
  name: nil,
  namespace: nil,
  server_address: nil,
  tags: nil
)
  @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

#idObject

Unique identifier of the SecretStore.



6322
6323
6324
# File 'lib/models/porcelain.rb', line 6322

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



6324
6325
6326
# File 'lib/models/porcelain.rb', line 6324

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



6326
6327
6328
# File 'lib/models/porcelain.rb', line 6326

def namespace
  @namespace
end

#server_addressObject

Returns the value of attribute server_address.



6328
6329
6330
# File 'lib/models/porcelain.rb', line 6328

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



6330
6331
6332
# File 'lib/models/porcelain.rb', line 6330

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6346
6347
6348
6349
6350
6351
6352
# File 'lib/models/porcelain.rb', line 6346

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