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.



8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
# File 'lib/models/porcelain.rb', line 8135

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.



8125
8126
8127
# File 'lib/models/porcelain.rb', line 8125

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



8127
8128
8129
# File 'lib/models/porcelain.rb', line 8127

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



8129
8130
8131
# File 'lib/models/porcelain.rb', line 8129

def namespace
  @namespace
end

#server_addressObject

Returns the value of attribute server_address.



8131
8132
8133
# File 'lib/models/porcelain.rb', line 8131

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



8133
8134
8135
# File 'lib/models/porcelain.rb', line 8133

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8149
8150
8151
8152
8153
8154
8155
# File 'lib/models/porcelain.rb', line 8149

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