Class: SDM::AKSServiceAccount
- Inherits:
-
Object
- Object
- SDM::AKSServiceAccount
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#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.
-
#port ⇒ Object
Returns the value of attribute port.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, port: nil, token: nil) ⇒ AKSServiceAccount
constructor
A new instance of AKSServiceAccount.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, port: nil, token: nil) ⇒ AKSServiceAccount
Returns a new instance of AKSServiceAccount.
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 |
# File 'lib/models/porcelain.rb', line 1780 def initialize( id: nil, name: nil, healthy: nil, hostname: nil, port: nil, token: nil ) if id != nil @id = id end if name != nil @name = name end if healthy != nil @healthy = healthy end if hostname != nil @hostname = hostname end if port != nil @port = port end if token != nil @token = token end end |
Instance Attribute Details
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1772 1773 1774 |
# File 'lib/models/porcelain.rb', line 1772 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
1774 1775 1776 |
# File 'lib/models/porcelain.rb', line 1774 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1768 1769 1770 |
# File 'lib/models/porcelain.rb', line 1768 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1770 1771 1772 |
# File 'lib/models/porcelain.rb', line 1770 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
1776 1777 1778 |
# File 'lib/models/porcelain.rb', line 1776 def port @port end |
#token ⇒ Object
Returns the value of attribute token.
1778 1779 1780 |
# File 'lib/models/porcelain.rb', line 1778 def token @token end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1808 1809 1810 1811 1812 1813 1814 |
# File 'lib/models/porcelain.rb', line 1808 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 |