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.
-
#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) ⇒ 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) ⇒ GoogleGKE
Returns a new instance of GoogleGKE.
1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 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 |
# File 'lib/models/porcelain.rb', line 1742 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 \ ) 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 != nil @certificate_authority = end if != nil @certificate_authority_filename = 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 end |
Instance Attribute Details
#certificate_authority ⇒ Object
Returns the value of attribute certificate_authority.
1735 1736 1737 |
# File 'lib/models/porcelain.rb', line 1735 def @certificate_authority end |
#certificate_authority_filename ⇒ Object
Returns the value of attribute certificate_authority_filename.
1737 1738 1739 |
# File 'lib/models/porcelain.rb', line 1737 def @certificate_authority_filename end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
1733 1734 1735 |
# File 'lib/models/porcelain.rb', line 1733 def endpoint @endpoint end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1729 1730 1731 |
# File 'lib/models/porcelain.rb', line 1729 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1725 1726 1727 |
# File 'lib/models/porcelain.rb', line 1725 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1727 1728 1729 |
# File 'lib/models/porcelain.rb', line 1727 def name @name end |
#service_account_key ⇒ Object
Returns the value of attribute service_account_key.
1739 1740 1741 |
# File 'lib/models/porcelain.rb', line 1739 def service_account_key @service_account_key end |
#service_account_key_filename ⇒ Object
Returns the value of attribute service_account_key_filename.
1741 1742 1743 |
# File 'lib/models/porcelain.rb', line 1741 def service_account_key_filename @service_account_key_filename end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1731 1732 1733 |
# File 'lib/models/porcelain.rb', line 1731 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1789 1790 1791 1792 1793 1794 1795 |
# File 'lib/models/porcelain.rb', line 1789 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 |