Class: SDM::DelineaStore
- Inherits:
-
Object
- Object
- SDM::DelineaStore
- 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.
-
#server_url ⇒ Object
The URL of the Delinea instance.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#tenant_name ⇒ Object
The tenant name to target.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, server_url: nil, tags: nil, tenant_name: nil) ⇒ DelineaStore
constructor
A new instance of DelineaStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, server_url: nil, tags: nil, tenant_name: nil) ⇒ DelineaStore
Returns a new instance of DelineaStore.
4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 |
# File 'lib/models/porcelain.rb', line 4172 def initialize( id: nil, name: nil, server_url: nil, tags: nil, tenant_name: nil ) @id = id == nil ? "" : id @name = name == nil ? "" : name @server_url = server_url == nil ? "" : server_url @tags = == nil ? SDM::() : @tenant_name = tenant_name == nil ? "" : tenant_name end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
4162 4163 4164 |
# File 'lib/models/porcelain.rb', line 4162 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
4164 4165 4166 |
# File 'lib/models/porcelain.rb', line 4164 def name @name end |
#server_url ⇒ Object
The URL of the Delinea instance
4166 4167 4168 |
# File 'lib/models/porcelain.rb', line 4166 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
4168 4169 4170 |
# File 'lib/models/porcelain.rb', line 4168 def @tags end |
#tenant_name ⇒ Object
The tenant name to target
4170 4171 4172 |
# File 'lib/models/porcelain.rb', line 4170 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4186 4187 4188 4189 4190 4191 4192 |
# File 'lib/models/porcelain.rb', line 4186 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 |