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.



605
606
607
608
609
610
611
612
613
614
615
# File 'lib/models/porcelain.rb', line 605

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.



597
598
599
# File 'lib/models/porcelain.rb', line 597

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



599
600
601
# File 'lib/models/porcelain.rb', line 599

def name
  @name
end

#regionObject

Returns the value of attribute region.



601
602
603
# File 'lib/models/porcelain.rb', line 601

def region
  @region
end

#tagsObject

Tags is a map of key, value pairs.



603
604
605
# File 'lib/models/porcelain.rb', line 603

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



617
618
619
620
621
622
623
# File 'lib/models/porcelain.rb', line 617

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