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.



4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
# File 'lib/models/porcelain.rb', line 4102

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.



4094
4095
4096
# File 'lib/models/porcelain.rb', line 4094

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



4096
4097
4098
# File 'lib/models/porcelain.rb', line 4096

def name
  @name
end

#tagsObject

Tags is a map of key, value pairs.



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

def tags
  @tags
end

#vault_uriObject

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



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

def vault_uri
  @vault_uri
end

Instance Method Details

#to_json(options = {}) ⇒ Object



4114
4115
4116
4117
4118
4119
4120
# File 'lib/models/porcelain.rb', line 4114

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