Class: SDM::AWSStore

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, name: nil, region: nil, tags: nil) ⇒ AWSStore

Returns a new instance of AWSStore.



709
710
711
712
713
714
715
716
717
718
719
# File 'lib/models/porcelain.rb', line 709

def initialize(
  id: nil,
  name: nil,
  region: nil,
  tags: nil
)
  @id = id == nil ? "" : id
  @name = name == nil ? "" : name
  @region = region == nil ? "" : region
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
end

Instance Attribute Details

#idObject

Unique identifier of the SecretStore.



701
702
703
# File 'lib/models/porcelain.rb', line 701

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



703
704
705
# File 'lib/models/porcelain.rb', line 703

def name
  @name
end

#regionObject

The AWS region to target e.g. us-east-1



705
706
707
# File 'lib/models/porcelain.rb', line 705

def region
  @region
end

#tagsObject

Tags is a map of key, value pairs.



707
708
709
# File 'lib/models/porcelain.rb', line 707

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



721
722
723
724
725
726
727
# File 'lib/models/porcelain.rb', line 721

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end