Class: SDM::Athena
- Inherits:
-
Object
- Object
- SDM::Athena
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#output ⇒ Object
Returns the value of attribute output.
-
#port_override ⇒ Object
Returns the value of attribute port_override.
-
#region ⇒ Object
Returns the value of attribute region.
-
#role_arn ⇒ Object
Returns the value of attribute role_arn.
-
#role_external_id ⇒ Object
Returns the value of attribute role_external_id.
-
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
-
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#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, role_arn: nil, role_external_id: nil) ⇒ Athena
constructor
A new instance of Athena.
- #to_json(options = {}) ⇒ Object
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, role_arn: nil, role_external_id: nil) ⇒ Athena
Returns a new instance of Athena.
712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 |
# File 'lib/models/porcelain.rb', line 712 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, role_arn: nil, role_external_id: nil ) if id != nil @id = id end if name != nil @name = name end if healthy != nil @healthy = healthy end if != nil @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 if role_arn != nil @role_arn = role_arn end if role_external_id != nil @role_external_id = role_external_id end end |
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
698 699 700 |
# File 'lib/models/porcelain.rb', line 698 def access_key @access_key end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
692 693 694 |
# File 'lib/models/porcelain.rb', line 692 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
688 689 690 |
# File 'lib/models/porcelain.rb', line 688 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
690 691 692 |
# File 'lib/models/porcelain.rb', line 690 def name @name end |
#output ⇒ Object
Returns the value of attribute output.
702 703 704 |
# File 'lib/models/porcelain.rb', line 702 def output @output end |
#port_override ⇒ Object
Returns the value of attribute port_override.
704 705 706 |
# File 'lib/models/porcelain.rb', line 704 def port_override @port_override end |
#region ⇒ Object
Returns the value of attribute region.
706 707 708 |
# File 'lib/models/porcelain.rb', line 706 def region @region end |
#role_arn ⇒ Object
Returns the value of attribute role_arn.
708 709 710 |
# File 'lib/models/porcelain.rb', line 708 def role_arn @role_arn end |
#role_external_id ⇒ Object
Returns the value of attribute role_external_id.
710 711 712 |
# File 'lib/models/porcelain.rb', line 710 def role_external_id @role_external_id end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
700 701 702 |
# File 'lib/models/porcelain.rb', line 700 def secret_access_key @secret_access_key end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
696 697 698 |
# File 'lib/models/porcelain.rb', line 696 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
694 695 696 |
# File 'lib/models/porcelain.rb', line 694 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
764 765 766 767 768 769 770 |
# File 'lib/models/porcelain.rb', line 764 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |