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.
5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 |
# File 'lib/models/porcelain.rb', line 5665 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.
5655 5656 5657 |
# File 'lib/models/porcelain.rb', line 5655 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
5657 5658 5659 |
# File 'lib/models/porcelain.rb', line 5657 def name @name end |
#server_url ⇒ Object
The URL of the Delinea instance
5659 5660 5661 |
# File 'lib/models/porcelain.rb', line 5659 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
5661 5662 5663 |
# File 'lib/models/porcelain.rb', line 5661 def @tags end |
#tenant_name ⇒ Object
The tenant name to target
5663 5664 5665 |
# File 'lib/models/porcelain.rb', line 5663 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5679 5680 5681 5682 5683 5684 5685 |
# File 'lib/models/porcelain.rb', line 5679 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 |