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.
5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 |
# File 'lib/models/porcelain.rb', line 5102 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.
5092 5093 5094 |
# File 'lib/models/porcelain.rb', line 5092 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
5094 5095 5096 |
# File 'lib/models/porcelain.rb', line 5094 def name @name end |
#server_url ⇒ Object
The URL of the Delinea instance
5096 5097 5098 |
# File 'lib/models/porcelain.rb', line 5096 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
5098 5099 5100 |
# File 'lib/models/porcelain.rb', line 5098 def @tags end |
#tenant_name ⇒ Object
The tenant name to target
5100 5101 5102 |
# File 'lib/models/porcelain.rb', line 5100 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5116 5117 5118 5119 5120 5121 5122 |
# File 'lib/models/porcelain.rb', line 5116 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 |