Class: SDM::AmazonEKS
- Inherits:
-
Object
- Object
- SDM::AmazonEKS
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#certificate_authority ⇒ Object
Returns the value of attribute certificate_authority.
-
#cluster_name ⇒ Object
Returns the value of attribute cluster_name.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#healthcheck_namespace ⇒ Object
Returns the value of attribute healthcheck_namespace.
-
#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.
-
#region ⇒ Object
Returns the value of attribute region.
-
#role_arn ⇒ Object
Returns the value of attribute role_arn.
-
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, endpoint: nil, access_key: nil, secret_access_key: nil, certificate_authority: nil, region: nil, cluster_name: nil, role_arn: nil, healthcheck_namespace: nil) ⇒ AmazonEKS
constructor
A new instance of AmazonEKS.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, endpoint: nil, access_key: nil, secret_access_key: nil, certificate_authority: nil, region: nil, cluster_name: nil, role_arn: nil, healthcheck_namespace: nil) ⇒ AmazonEKS
Returns a new instance of AmazonEKS.
1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 |
# File 'lib/models/porcelain.rb', line 1763 def initialize( id: nil, name: nil, healthy: nil, tags: nil, endpoint: nil, access_key: nil, secret_access_key: nil, certificate_authority: nil, region: nil, cluster_name: nil, role_arn: nil, healthcheck_namespace: nil ) if id != nil @id = id end if name != nil @name = name end if healthy != nil @healthy = healthy end if != nil @tags = end if endpoint != nil @endpoint = endpoint end if access_key != nil @access_key = access_key end if secret_access_key != nil @secret_access_key = secret_access_key end if != nil @certificate_authority = end if region != nil @region = region end if cluster_name != nil @cluster_name = cluster_name end if role_arn != nil @role_arn = role_arn end if healthcheck_namespace != nil @healthcheck_namespace = healthcheck_namespace end end |
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
1749 1750 1751 |
# File 'lib/models/porcelain.rb', line 1749 def access_key @access_key end |
#certificate_authority ⇒ Object
Returns the value of attribute certificate_authority.
1753 1754 1755 |
# File 'lib/models/porcelain.rb', line 1753 def @certificate_authority end |
#cluster_name ⇒ Object
Returns the value of attribute cluster_name.
1757 1758 1759 |
# File 'lib/models/porcelain.rb', line 1757 def cluster_name @cluster_name end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
1747 1748 1749 |
# File 'lib/models/porcelain.rb', line 1747 def endpoint @endpoint end |
#healthcheck_namespace ⇒ Object
Returns the value of attribute healthcheck_namespace.
1761 1762 1763 |
# File 'lib/models/porcelain.rb', line 1761 def healthcheck_namespace @healthcheck_namespace end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1743 1744 1745 |
# File 'lib/models/porcelain.rb', line 1743 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1739 1740 1741 |
# File 'lib/models/porcelain.rb', line 1739 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1741 1742 1743 |
# File 'lib/models/porcelain.rb', line 1741 def name @name end |
#region ⇒ Object
Returns the value of attribute region.
1755 1756 1757 |
# File 'lib/models/porcelain.rb', line 1755 def region @region end |
#role_arn ⇒ Object
Returns the value of attribute role_arn.
1759 1760 1761 |
# File 'lib/models/porcelain.rb', line 1759 def role_arn @role_arn end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
1751 1752 1753 |
# File 'lib/models/porcelain.rb', line 1751 def secret_access_key @secret_access_key end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1745 1746 1747 |
# File 'lib/models/porcelain.rb', line 1745 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1815 1816 1817 1818 1819 1820 1821 |
# File 'lib/models/porcelain.rb', line 1815 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 |