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.



380
381
382
383
384
385
386
387
388
389
390
# File 'lib/models/porcelain.rb', line 380

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.



372
373
374
# File 'lib/models/porcelain.rb', line 372

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



374
375
376
# File 'lib/models/porcelain.rb', line 374

def name
  @name
end

#regionObject

Returns the value of attribute region.



376
377
378
# File 'lib/models/porcelain.rb', line 376

def region
  @region
end

#tagsObject

Tags is a map of key, value pairs.



378
379
380
# File 'lib/models/porcelain.rb', line 378

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



392
393
394
395
396
397
398
# File 'lib/models/porcelain.rb', line 392

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