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.
6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 |
# File 'lib/models/porcelain.rb', line 6338 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.
6328 6329 6330 |
# File 'lib/models/porcelain.rb', line 6328 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
6330 6331 6332 |
# File 'lib/models/porcelain.rb', line 6330 def name @name end |
#server_url ⇒ Object
The URL of the Delinea instance
6332 6333 6334 |
# File 'lib/models/porcelain.rb', line 6332 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
6334 6335 6336 |
# File 'lib/models/porcelain.rb', line 6334 def @tags end |
#tenant_name ⇒ Object
The tenant name to target
6336 6337 6338 |
# File 'lib/models/porcelain.rb', line 6336 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6352 6353 6354 6355 6356 6357 6358 |
# File 'lib/models/porcelain.rb', line 6352 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 |