Class: SDM::StrongVaultStore

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

Overview

StrongVaultStore 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, tags: nil) ⇒ StrongVaultStore

Returns a new instance of StrongVaultStore.



15834
15835
15836
15837
15838
15839
15840
15841
15842
# File 'lib/models/porcelain.rb', line 15834

def initialize(
  id: nil,
  name: nil,
  tags: nil
)
  @id = id == nil ? "" : id
  @name = name == nil ? "" : name
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
end

Instance Attribute Details

#idObject

Unique identifier of the SecretStore.



15828
15829
15830
# File 'lib/models/porcelain.rb', line 15828

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



15830
15831
15832
# File 'lib/models/porcelain.rb', line 15830

def name
  @name
end

#tagsObject

Tags is a map of key, value pairs.



15832
15833
15834
# File 'lib/models/porcelain.rb', line 15832

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



15844
15845
15846
15847
15848
15849
15850
# File 'lib/models/porcelain.rb', line 15844

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