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.
3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 |
# File 'lib/models/porcelain.rb', line 3200 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.
3190 3191 3192 |
# File 'lib/models/porcelain.rb', line 3190 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
3192 3193 3194 |
# File 'lib/models/porcelain.rb', line 3192 def name @name end |
#server_url ⇒ Object
The URL of the Delinea instance
3194 3195 3196 |
# File 'lib/models/porcelain.rb', line 3194 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
3196 3197 3198 |
# File 'lib/models/porcelain.rb', line 3196 def @tags end |
#tenant_name ⇒ Object
The tenant name to target
3198 3199 3200 |
# File 'lib/models/porcelain.rb', line 3198 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
3214 3215 3216 3217 3218 3219 3220 |
# File 'lib/models/porcelain.rb', line 3214 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 |