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.
6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 |
# File 'lib/models/porcelain.rb', line 6004 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.
5994 5995 5996 |
# File 'lib/models/porcelain.rb', line 5994 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
5996 5997 5998 |
# File 'lib/models/porcelain.rb', line 5996 def name @name end |
#server_url ⇒ Object
The URL of the Delinea instance
5998 5999 6000 |
# File 'lib/models/porcelain.rb', line 5998 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
6000 6001 6002 |
# File 'lib/models/porcelain.rb', line 6000 def @tags end |
#tenant_name ⇒ Object
The tenant name to target
6002 6003 6004 |
# File 'lib/models/porcelain.rb', line 6002 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6018 6019 6020 6021 6022 6023 6024 |
# File 'lib/models/porcelain.rb', line 6018 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 |