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.
6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 |
# File 'lib/models/porcelain.rb', line 6456 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.
6446 6447 6448 |
# File 'lib/models/porcelain.rb', line 6446 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
6448 6449 6450 |
# File 'lib/models/porcelain.rb', line 6448 def name @name end |
#server_url ⇒ Object
The URL of the Delinea instance
6450 6451 6452 |
# File 'lib/models/porcelain.rb', line 6450 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
6452 6453 6454 |
# File 'lib/models/porcelain.rb', line 6452 def @tags end |
#tenant_name ⇒ Object
The tenant name to target
6454 6455 6456 |
# File 'lib/models/porcelain.rb', line 6454 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6470 6471 6472 6473 6474 6475 6476 |
# File 'lib/models/porcelain.rb', line 6470 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 |