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
The AWS region to target e.g.
-
#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.
681 682 683 684 685 686 687 688 689 690 691 |
# File 'lib/models/porcelain.rb', line 681 def initialize( id: nil, name: nil, region: nil, tags: nil ) @id = id == nil ? "" : id @name = name == nil ? "" : name @region = region == nil ? "" : region @tags = == nil ? SDM::() : end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
673 674 675 |
# File 'lib/models/porcelain.rb', line 673 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
675 676 677 |
# File 'lib/models/porcelain.rb', line 675 def name @name end |
#region ⇒ Object
The AWS region to target e.g. us-east-1
677 678 679 |
# File 'lib/models/porcelain.rb', line 677 def region @region end |
#tags ⇒ Object
Tags is a map of key, value pairs.
679 680 681 |
# File 'lib/models/porcelain.rb', line 679 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
693 694 695 696 697 698 699 |
# File 'lib/models/porcelain.rb', line 693 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 |