Class: SDM::GoogleGKE
- Inherits:
-
Object
- Object
- SDM::GoogleGKE
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#certificate_authority ⇒ Object
Returns the value of attribute certificate_authority.
-
#certificate_authority_filename ⇒ Object
Returns the value of attribute certificate_authority_filename.
-
#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.
-
#service_account_key ⇒ Object
Returns the value of attribute service_account_key.
-
#service_account_key_filename ⇒ Object
Returns the value of attribute service_account_key_filename.
-
#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, certificate_authority: nil, certificate_authority_filename: nil, service_account_key: nil, service_account_key_filename: nil, healthcheck_namespace: nil) ⇒ GoogleGKE
constructor
A new instance of GoogleGKE.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, endpoint: nil, certificate_authority: nil, certificate_authority_filename: nil, service_account_key: nil, service_account_key_filename: nil, healthcheck_namespace: nil) ⇒ GoogleGKE
Returns a new instance of GoogleGKE.
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 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 |
# File 'lib/models/porcelain.rb', line 1782 def initialize( id: nil, name: nil, healthy: nil, tags: nil, endpoint: nil, certificate_authority: nil, certificate_authority_filename: nil, service_account_key: nil, service_account_key_filename: nil, healthcheck_namespace: nil ) if id != nil @id = id end if name != nil @name = name end if healthy != nil @healthy = healthy end if != nil = end if endpoint != nil @endpoint = endpoint end if != nil = end if != nil = end if service_account_key != nil @service_account_key = service_account_key end if service_account_key_filename != nil @service_account_key_filename = service_account_key_filename end if healthcheck_namespace != nil @healthcheck_namespace = healthcheck_namespace end end |
Instance Attribute Details
#certificate_authority ⇒ Object
Returns the value of attribute certificate_authority.
1772 1773 1774 |
# File 'lib/models/porcelain.rb', line 1772 def end |
#certificate_authority_filename ⇒ Object
Returns the value of attribute certificate_authority_filename.
1774 1775 1776 |
# File 'lib/models/porcelain.rb', line 1774 def end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
1770 1771 1772 |
# File 'lib/models/porcelain.rb', line 1770 def endpoint @endpoint end |
#healthcheck_namespace ⇒ Object
Returns the value of attribute healthcheck_namespace.
1780 1781 1782 |
# File 'lib/models/porcelain.rb', line 1780 def healthcheck_namespace @healthcheck_namespace end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1766 1767 1768 |
# File 'lib/models/porcelain.rb', line 1766 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1762 1763 1764 |
# File 'lib/models/porcelain.rb', line 1762 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1764 1765 1766 |
# File 'lib/models/porcelain.rb', line 1764 def name @name end |
#service_account_key ⇒ Object
Returns the value of attribute service_account_key.
1776 1777 1778 |
# File 'lib/models/porcelain.rb', line 1776 def service_account_key @service_account_key end |
#service_account_key_filename ⇒ Object
Returns the value of attribute service_account_key_filename.
1778 1779 1780 |
# File 'lib/models/porcelain.rb', line 1778 def service_account_key_filename @service_account_key_filename end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1768 1769 1770 |
# File 'lib/models/porcelain.rb', line 1768 def end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1826 1827 1828 1829 1830 1831 1832 |
# File 'lib/models/porcelain.rb', line 1826 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 |