Class: SDM::AzureStore
- Inherits:
-
Object
- Object
- SDM::AzureStore
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Unique identifier of the SecretStore.
-
#name ⇒ Object
Unique human-readable name of the SecretStore.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#vault_uri ⇒ Object
The URI of the key vault to target e.g.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, tags: nil, vault_uri: nil) ⇒ AzureStore
constructor
A new instance of AzureStore.
- #to_json(options = {}) ⇒ Object
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 = == nil ? SDM::() : @vault_uri = vault_uri == nil ? "" : vault_uri end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
4094 4095 4096 |
# File 'lib/models/porcelain.rb', line 4094 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
4096 4097 4098 |
# File 'lib/models/porcelain.rb', line 4096 def name @name end |
#tags ⇒ Object
Tags is a map of key, value pairs.
4098 4099 4100 |
# File 'lib/models/porcelain.rb', line 4098 def end |
#vault_uri ⇒ Object
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( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |