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.
6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 |
# File 'lib/models/porcelain.rb', line 6492 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.
6482 6483 6484 |
# File 'lib/models/porcelain.rb', line 6482 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
6484 6485 6486 |
# File 'lib/models/porcelain.rb', line 6484 def name @name end |
#server_url ⇒ Object
The URL of the Delinea instance
6486 6487 6488 |
# File 'lib/models/porcelain.rb', line 6486 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
6488 6489 6490 |
# File 'lib/models/porcelain.rb', line 6488 def @tags end |
#tenant_name ⇒ Object
The tenant name to target
6490 6491 6492 |
# File 'lib/models/porcelain.rb', line 6490 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6506 6507 6508 6509 6510 6511 6512 |
# File 'lib/models/porcelain.rb', line 6506 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 |