Class: SDM::Athena

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, healthy: nil, tags: nil, secret_store_id: nil, access_key: nil, secret_access_key: nil, output: nil, port_override: nil, region: nil) ⇒ Athena

Returns a new instance of Athena.



682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
# File 'lib/models/porcelain.rb', line 682

def initialize(
  id: nil,
  name: nil,
  healthy: nil,
  tags: nil,
  secret_store_id: nil,
  access_key: nil,
  secret_access_key: nil,
  output: nil,
  port_override: nil,
  region: nil
)
  if id != nil
    @id = id
  end
  if name != nil
    @name = name
  end
  if healthy != nil
    @healthy = healthy
  end
  if tags != nil
    @tags = tags
  end
  if secret_store_id != nil
    @secret_store_id = secret_store_id
  end
  if access_key != nil
    @access_key = access_key
  end
  if secret_access_key != nil
    @secret_access_key = secret_access_key
  end
  if output != nil
    @output = output
  end
  if port_override != nil
    @port_override = port_override
  end
  if region != nil
    @region = region
  end
end

Instance Attribute Details

#access_keyObject

Returns the value of attribute access_key.



672
673
674
# File 'lib/models/porcelain.rb', line 672

def access_key
  @access_key
end

#healthyObject

True if the datasource is reachable and the credentials are valid.



666
667
668
# File 'lib/models/porcelain.rb', line 666

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



662
663
664
# File 'lib/models/porcelain.rb', line 662

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



664
665
666
# File 'lib/models/porcelain.rb', line 664

def name
  @name
end

#outputObject

Returns the value of attribute output.



676
677
678
# File 'lib/models/porcelain.rb', line 676

def output
  @output
end

#port_overrideObject

Returns the value of attribute port_override.



678
679
680
# File 'lib/models/porcelain.rb', line 678

def port_override
  @port_override
end

#regionObject

Returns the value of attribute region.



680
681
682
# File 'lib/models/porcelain.rb', line 680

def region
  @region
end

#secret_access_keyObject

Returns the value of attribute secret_access_key.



674
675
676
# File 'lib/models/porcelain.rb', line 674

def secret_access_key
  @secret_access_key
end

#secret_store_idObject

ID of the secret store containing credentials for this resource, if any.



670
671
672
# File 'lib/models/porcelain.rb', line 670

def secret_store_id
  @secret_store_id
end

#tagsObject

Tags is a map of key, value pairs.



668
669
670
# File 'lib/models/porcelain.rb', line 668

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



726
727
728
729
730
731
732
# File 'lib/models/porcelain.rb', line 726

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