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.
3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 |
# File 'lib/models/porcelain.rb', line 3514 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 = == nil ? SDM::() : @tenant_name = tenant_name == nil ? "" : tenant_name end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
3504 3505 3506 |
# File 'lib/models/porcelain.rb', line 3504 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
3506 3507 3508 |
# File 'lib/models/porcelain.rb', line 3506 def name @name end |
#server_url ⇒ Object
The URL of the Delinea instance
3508 3509 3510 |
# File 'lib/models/porcelain.rb', line 3508 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
3510 3511 3512 |
# File 'lib/models/porcelain.rb', line 3510 def end |
#tenant_name ⇒ Object
The tenant name to target
3512 3513 3514 |
# File 'lib/models/porcelain.rb', line 3512 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
3528 3529 3530 3531 3532 3533 3534 |
# File 'lib/models/porcelain.rb', line 3528 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 |