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.



4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
# File 'lib/models/porcelain.rb', line 4627

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

Instance Attribute Details

#idObject

Unique identifier of the SecretStore.



4619
4620
4621
# File 'lib/models/porcelain.rb', line 4619

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



4621
4622
4623
# File 'lib/models/porcelain.rb', line 4621

def name
  @name
end

#tagsObject

Tags is a map of key, value pairs.



4623
4624
4625
# File 'lib/models/porcelain.rb', line 4623

def tags
  @tags
end

#vault_uriObject

The URI of the key vault to target e.g. https://myvault.vault.azure.net



4625
4626
4627
# File 'lib/models/porcelain.rb', line 4625

def vault_uri
  @vault_uri
end

Instance Method Details

#to_json(options = {}) ⇒ Object



4639
4640
4641
4642
4643
4644
4645
# File 'lib/models/porcelain.rb', line 4639

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