Class: SDM::VaultAWSEC2Store

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

Overview

VaultAWSEC2Store is currently unstable, and its API may change, or it may be removed, without a major version bump.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of VaultAWSEC2Store.



11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
# File 'lib/models/porcelain.rb', line 11019

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.



11009
11010
11011
# File 'lib/models/porcelain.rb', line 11009

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



11011
11012
11013
# File 'lib/models/porcelain.rb', line 11011

def name
  @name
end

#namespaceObject

The namespace to make requests within



11013
11014
11015
# File 'lib/models/porcelain.rb', line 11013

def namespace
  @namespace
end

#server_addressObject

The URL of the Vault to target



11015
11016
11017
# File 'lib/models/porcelain.rb', line 11015

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



11017
11018
11019
# File 'lib/models/porcelain.rb', line 11017

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



11033
11034
11035
11036
11037
11038
11039
# File 'lib/models/porcelain.rb', line 11033

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