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