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.
5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 |
# File 'lib/models/porcelain.rb', line 5181 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.
5171 5172 5173 |
# File 'lib/models/porcelain.rb', line 5171 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
5173 5174 5175 |
# File 'lib/models/porcelain.rb', line 5173 def name @name end |
#server_url ⇒ Object
The URL of the Delinea instance
5175 5176 5177 |
# File 'lib/models/porcelain.rb', line 5175 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
5177 5178 5179 |
# File 'lib/models/porcelain.rb', line 5177 def @tags end |
#tenant_name ⇒ Object
The tenant name to target
5179 5180 5181 |
# File 'lib/models/porcelain.rb', line 5179 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5195 5196 5197 5198 5199 5200 5201 |
# File 'lib/models/porcelain.rb', line 5195 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 |