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.



15918
15919
15920
15921
15922
15923
15924
15925
15926
# File 'lib/models/porcelain.rb', line 15918

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.



15912
15913
15914
# File 'lib/models/porcelain.rb', line 15912

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



15914
15915
15916
# File 'lib/models/porcelain.rb', line 15914

def name
  @name
end

#tagsObject

Tags is a map of key, value pairs.



15916
15917
15918
# File 'lib/models/porcelain.rb', line 15916

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



15928
15929
15930
15931
15932
15933
15934
# File 'lib/models/porcelain.rb', line 15928

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