Class: SDM::VaultAppRoleStore

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

Returns a new instance of VaultAppRoleStore.



6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
# File 'lib/models/porcelain.rb', line 6308

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.



6298
6299
6300
# File 'lib/models/porcelain.rb', line 6298

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



6300
6301
6302
# File 'lib/models/porcelain.rb', line 6300

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



6302
6303
6304
# File 'lib/models/porcelain.rb', line 6302

def namespace
  @namespace
end

#server_addressObject

Returns the value of attribute server_address.



6304
6305
6306
# File 'lib/models/porcelain.rb', line 6304

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



6306
6307
6308
# File 'lib/models/porcelain.rb', line 6306

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6322
6323
6324
6325
6326
6327
6328
# File 'lib/models/porcelain.rb', line 6322

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