Class: SDM::VaultAWSEC2Store

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



17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
# File 'lib/models/porcelain.rb', line 17190

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.



17180
17181
17182
# File 'lib/models/porcelain.rb', line 17180

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



17182
17183
17184
# File 'lib/models/porcelain.rb', line 17182

def name
  @name
end

#namespaceObject

The namespace to make requests within



17184
17185
17186
# File 'lib/models/porcelain.rb', line 17184

def namespace
  @namespace
end

#server_addressObject

The URL of the Vault to target



17186
17187
17188
# File 'lib/models/porcelain.rb', line 17186

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



17188
17189
17190
# File 'lib/models/porcelain.rb', line 17188

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



17204
17205
17206
17207
17208
17209
17210
# File 'lib/models/porcelain.rb', line 17204

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