Class: SDM::DelineaDSVStore
- Inherits:
-
Object
- Object
- SDM::DelineaDSVStore
- Defined in:
- lib/models/porcelain.rb
Overview
DelineaDSVStore is currently unstable, and its API may change, or it may be removed, without a major version bump.
Instance Attribute Summary collapse
-
#id ⇒ Object
Unique identifier of the SecretStore.
-
#name ⇒ Object
Unique human-readable name of the SecretStore.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#tenant ⇒ Object
The tenant name to target, e.g.
-
#tld ⇒ Object
The top level domain of the DSV instance, e.g.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, tags: nil, tenant: nil, tld: nil) ⇒ DelineaDSVStore
constructor
A new instance of DelineaDSVStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, tags: nil, tenant: nil, tld: nil) ⇒ DelineaDSVStore
Returns a new instance of DelineaDSVStore.
6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 |
# File 'lib/models/porcelain.rb', line 6457 def initialize( id: nil, name: nil, tags: nil, tenant: nil, tld: nil ) @id = id == nil ? "" : id @name = name == nil ? "" : name @tags = == nil ? SDM::() : @tenant = tenant == nil ? "" : tenant @tld = tld == nil ? "" : tld end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
6447 6448 6449 |
# File 'lib/models/porcelain.rb', line 6447 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
6449 6450 6451 |
# File 'lib/models/porcelain.rb', line 6449 def name @name end |
#tags ⇒ Object
Tags is a map of key, value pairs.
6451 6452 6453 |
# File 'lib/models/porcelain.rb', line 6451 def @tags end |
#tenant ⇒ Object
The tenant name to target, e.g. "acme" for acme.secretsvaultcloud.com
6453 6454 6455 |
# File 'lib/models/porcelain.rb', line 6453 def tenant @tenant end |
#tld ⇒ Object
The top level domain of the DSV instance, e.g. "com". Defaults to "com".
6455 6456 6457 |
# File 'lib/models/porcelain.rb', line 6455 def tld @tld end |
Instance Method Details
#to_json(options = {}) ⇒ Object
6471 6472 6473 6474 6475 6476 6477 |
# File 'lib/models/porcelain.rb', line 6471 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 |