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.
3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 |
# File 'lib/models/porcelain.rb', line 3267 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.
3257 3258 3259 |
# File 'lib/models/porcelain.rb', line 3257 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
3259 3260 3261 |
# File 'lib/models/porcelain.rb', line 3259 def name @name end |
#server_url ⇒ Object
The URL of the Delinea instance
3261 3262 3263 |
# File 'lib/models/porcelain.rb', line 3261 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
3263 3264 3265 |
# File 'lib/models/porcelain.rb', line 3263 def @tags end |
#tenant_name ⇒ Object
The tenant name to target
3265 3266 3267 |
# File 'lib/models/porcelain.rb', line 3265 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
3281 3282 3283 3284 3285 3286 3287 |
# File 'lib/models/porcelain.rb', line 3281 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 |