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.



422
423
424
425
426
427
428
429
430
431
432
# File 'lib/models/porcelain.rb', line 422

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.



414
415
416
# File 'lib/models/porcelain.rb', line 414

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



416
417
418
# File 'lib/models/porcelain.rb', line 416

def name
  @name
end

#regionObject

Returns the value of attribute region.



418
419
420
# File 'lib/models/porcelain.rb', line 418

def region
  @region
end

#tagsObject

Tags is a map of key, value pairs.



420
421
422
# File 'lib/models/porcelain.rb', line 420

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



434
435
436
437
438
439
440
# File 'lib/models/porcelain.rb', line 434

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