Class: SDM::AWSStore
- Inherits:
-
Object
- Object
- SDM::AWSStore
- 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.
-
#region ⇒ Object
Returns the value of attribute region.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, region: nil, tags: nil) ⇒ AWSStore
constructor
A new instance of AWSStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, region: nil, tags: nil) ⇒ AWSStore
Returns a new instance of AWSStore.
5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 |
# File 'lib/models/porcelain.rb', line 5406 def initialize( id: nil, name: nil, region: nil, tags: nil ) if id != nil @id = id end if name != nil @name = name end if region != nil @region = region end if != nil @tags = end end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
5398 5399 5400 |
# File 'lib/models/porcelain.rb', line 5398 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
5400 5401 5402 |
# File 'lib/models/porcelain.rb', line 5400 def name @name end |
#region ⇒ Object
Returns the value of attribute region.
5402 5403 5404 |
# File 'lib/models/porcelain.rb', line 5402 def region @region end |
#tags ⇒ Object
Tags is a map of key, value pairs.
5404 5405 5406 |
# File 'lib/models/porcelain.rb', line 5404 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5426 5427 5428 5429 5430 5431 5432 |
# File 'lib/models/porcelain.rb', line 5426 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 |