Class: SDM::AzureStore

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

Returns a new instance of AzureStore.



1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
# File 'lib/models/porcelain.rb', line 1848

def initialize(
  id: nil,
  name: nil,
  tags: nil,
  vault_uri: nil
)
  if id != nil
    @id = id
  end
  if name != nil
    @name = name
  end
  if tags != nil
    @tags = tags
  end
  if vault_uri != nil
    @vault_uri = vault_uri
  end
end

Instance Attribute Details

#idObject

Unique identifier of the SecretStore.



1840
1841
1842
# File 'lib/models/porcelain.rb', line 1840

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



1842
1843
1844
# File 'lib/models/porcelain.rb', line 1842

def name
  @name
end

#tagsObject

Tags is a map of key, value pairs.



1844
1845
1846
# File 'lib/models/porcelain.rb', line 1844

def tags
  @tags
end

#vault_uriObject

Returns the value of attribute vault_uri.



1846
1847
1848
# File 'lib/models/porcelain.rb', line 1846

def vault_uri
  @vault_uri
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1868
1869
1870
1871
1872
1873
1874
# File 'lib/models/porcelain.rb', line 1868

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