Class: SDM::KubernetesBasicAuth
- Inherits:
-
Object
- Object
- SDM::KubernetesBasicAuth
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#healthcheck_namespace ⇒ Object
Returns the value of attribute healthcheck_namespace.
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#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.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, hostname: nil, port: nil, username: nil, password: nil, healthcheck_namespace: nil) ⇒ KubernetesBasicAuth
constructor
A new instance of KubernetesBasicAuth.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, hostname: nil, port: nil, username: nil, password: nil, healthcheck_namespace: nil) ⇒ KubernetesBasicAuth
Returns a new instance of KubernetesBasicAuth.
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 1814 1815 1816 |
# File 'lib/models/porcelain.rb', line 1774 def initialize( id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, hostname: nil, port: nil, username: nil, password: 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 secret_store_id != nil @secret_store_id = secret_store_id end if hostname != nil @hostname = hostname end if port != nil @port = port end if username != nil @username = username end if password != nil @password = password end if healthcheck_namespace != nil @healthcheck_namespace = healthcheck_namespace end end |
Instance Attribute Details
#healthcheck_namespace ⇒ Object
Returns the value of attribute healthcheck_namespace.
1772 1773 1774 |
# File 'lib/models/porcelain.rb', line 1772 def healthcheck_namespace @healthcheck_namespace end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1758 1759 1760 |
# File 'lib/models/porcelain.rb', line 1758 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
1764 1765 1766 |
# File 'lib/models/porcelain.rb', line 1764 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1754 1755 1756 |
# File 'lib/models/porcelain.rb', line 1754 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1756 1757 1758 |
# File 'lib/models/porcelain.rb', line 1756 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
1770 1771 1772 |
# File 'lib/models/porcelain.rb', line 1770 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
1766 1767 1768 |
# File 'lib/models/porcelain.rb', line 1766 def port @port end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
1762 1763 1764 |
# File 'lib/models/porcelain.rb', line 1762 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1760 1761 1762 |
# File 'lib/models/porcelain.rb', line 1760 def end |
#username ⇒ Object
Returns the value of attribute username.
1768 1769 1770 |
# File 'lib/models/porcelain.rb', line 1768 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1818 1819 1820 1821 1822 1823 1824 |
# File 'lib/models/porcelain.rb', line 1818 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 |