Class: SDM::AKS
- Inherits:
-
Object
- Object
- SDM::AKS
- 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.
-
#client_certificate ⇒ Object
Returns the value of attribute client_certificate.
-
#client_certificate_filename ⇒ Object
Returns the value of attribute client_certificate_filename.
-
#client_key ⇒ Object
Returns the value of attribute client_key.
-
#client_key_filename ⇒ Object
Returns the value of attribute client_key_filename.
-
#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.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, port: nil, certificate_authority: nil, certificate_authority_filename: nil, client_certificate: nil, client_certificate_filename: nil, client_key: nil, client_key_filename: nil) ⇒ AKS
constructor
A new instance of AKS.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, port: nil, certificate_authority: nil, certificate_authority_filename: nil, client_certificate: nil, client_certificate_filename: nil, client_key: nil, client_key_filename: nil) ⇒ AKS
Returns a new instance of AKS.
1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 |
# File 'lib/models/porcelain.rb', line 1652 def initialize( id: nil, name: nil, healthy: nil, hostname: nil, port: nil, certificate_authority: nil, certificate_authority_filename: nil, client_certificate: nil, client_certificate_filename: nil, client_key: nil, client_key_filename: 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 != nil @certificate_authority = end if != nil @certificate_authority_filename = end if client_certificate != nil @client_certificate = client_certificate end if client_certificate_filename != nil @client_certificate_filename = client_certificate_filename end if client_key != nil @client_key = client_key end if client_key_filename != nil @client_key_filename = client_key_filename end end |
Instance Attribute Details
#certificate_authority ⇒ Object
Returns the value of attribute certificate_authority.
1640 1641 1642 |
# File 'lib/models/porcelain.rb', line 1640 def @certificate_authority end |
#certificate_authority_filename ⇒ Object
Returns the value of attribute certificate_authority_filename.
1642 1643 1644 |
# File 'lib/models/porcelain.rb', line 1642 def @certificate_authority_filename end |
#client_certificate ⇒ Object
Returns the value of attribute client_certificate.
1644 1645 1646 |
# File 'lib/models/porcelain.rb', line 1644 def client_certificate @client_certificate end |
#client_certificate_filename ⇒ Object
Returns the value of attribute client_certificate_filename.
1646 1647 1648 |
# File 'lib/models/porcelain.rb', line 1646 def client_certificate_filename @client_certificate_filename end |
#client_key ⇒ Object
Returns the value of attribute client_key.
1648 1649 1650 |
# File 'lib/models/porcelain.rb', line 1648 def client_key @client_key end |
#client_key_filename ⇒ Object
Returns the value of attribute client_key_filename.
1650 1651 1652 |
# File 'lib/models/porcelain.rb', line 1650 def client_key_filename @client_key_filename end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1634 1635 1636 |
# File 'lib/models/porcelain.rb', line 1634 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
1636 1637 1638 |
# File 'lib/models/porcelain.rb', line 1636 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1630 1631 1632 |
# File 'lib/models/porcelain.rb', line 1630 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1632 1633 1634 |
# File 'lib/models/porcelain.rb', line 1632 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
1638 1639 1640 |
# File 'lib/models/porcelain.rb', line 1638 def port @port end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1700 1701 1702 1703 1704 1705 1706 |
# File 'lib/models/porcelain.rb', line 1700 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 |