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
Returns the value of attribute server_url.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#tenant_name ⇒ Object
Returns the value of attribute tenant_name.
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.
3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 |
# File 'lib/models/porcelain.rb', line 3059 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.
3049 3050 3051 |
# File 'lib/models/porcelain.rb', line 3049 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
3051 3052 3053 |
# File 'lib/models/porcelain.rb', line 3051 def name @name end |
#server_url ⇒ Object
Returns the value of attribute server_url.
3053 3054 3055 |
# File 'lib/models/porcelain.rb', line 3053 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
3055 3056 3057 |
# File 'lib/models/porcelain.rb', line 3055 def @tags end |
#tenant_name ⇒ Object
Returns the value of attribute tenant_name.
3057 3058 3059 |
# File 'lib/models/porcelain.rb', line 3057 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
3073 3074 3075 3076 3077 3078 3079 |
# File 'lib/models/porcelain.rb', line 3073 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 |