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.
5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 |
# File 'lib/models/porcelain.rb', line 5333 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.
5323 5324 5325 |
# File 'lib/models/porcelain.rb', line 5323 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
5325 5326 5327 |
# File 'lib/models/porcelain.rb', line 5325 def name @name end |
#server_url ⇒ Object
The URL of the Delinea instance
5327 5328 5329 |
# File 'lib/models/porcelain.rb', line 5327 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
5329 5330 5331 |
# File 'lib/models/porcelain.rb', line 5329 def @tags end |
#tenant_name ⇒ Object
The tenant name to target
5331 5332 5333 |
# File 'lib/models/porcelain.rb', line 5331 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5347 5348 5349 5350 5351 5352 5353 |
# File 'lib/models/porcelain.rb', line 5347 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 |