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



4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
# File 'lib/models/porcelain.rb', line 4106

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.



4098
4099
4100
# File 'lib/models/porcelain.rb', line 4098

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



4100
4101
4102
# File 'lib/models/porcelain.rb', line 4100

def name
  @name
end

#tagsObject

Tags is a map of key, value pairs.



4102
4103
4104
# File 'lib/models/porcelain.rb', line 4102

def tags
  @tags
end

#vault_uriObject

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



4104
4105
4106
# File 'lib/models/porcelain.rb', line 4104

def vault_uri
  @vault_uri
end

Instance Method Details

#to_json(options = {}) ⇒ Object



4118
4119
4120
4121
4122
4123
4124
# File 'lib/models/porcelain.rb', line 4118

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