Class: SDM::MongoLegacyHost
- Inherits:
-
Object
- Object
- SDM::MongoLegacyHost
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#auth_database ⇒ Object
Returns the value of attribute auth_database.
-
#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.
-
#port_override ⇒ Object
Returns the value of attribute port_override.
-
#replica_set ⇒ Object
Returns the value of attribute replica_set.
-
#tls_required ⇒ Object
Returns the value of attribute tls_required.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, auth_database: nil, port_override: nil, username: nil, password: nil, port: nil, replica_set: nil, tls_required: nil) ⇒ MongoLegacyHost
constructor
A new instance of MongoLegacyHost.
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, auth_database: nil, port_override: nil, username: nil, password: nil, port: nil, replica_set: nil, tls_required: nil) ⇒ MongoLegacyHost
Returns a new instance of MongoLegacyHost.
1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 |
# File 'lib/models/porcelain.rb', line 1694 def initialize( id:nil \ , name:nil \ , healthy:nil \ , hostname:nil \ , auth_database:nil \ , port_override:nil \ , username:nil \ , password:nil \ , port:nil \ , replica_set:nil \ , tls_required: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 auth_database != nil @auth_database = auth_database end if port_override != nil @port_override = port_override end if username != nil @username = username end if password != nil @password = password end if port != nil @port = port end if replica_set != nil @replica_set = replica_set end if tls_required != nil @tls_required = tls_required end end |
Instance Attribute Details
#auth_database ⇒ Object
Returns the value of attribute auth_database.
1681 1682 1683 |
# File 'lib/models/porcelain.rb', line 1681 def auth_database @auth_database end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1677 1678 1679 |
# File 'lib/models/porcelain.rb', line 1677 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
1679 1680 1681 |
# File 'lib/models/porcelain.rb', line 1679 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1673 1674 1675 |
# File 'lib/models/porcelain.rb', line 1673 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1675 1676 1677 |
# File 'lib/models/porcelain.rb', line 1675 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
1687 1688 1689 |
# File 'lib/models/porcelain.rb', line 1687 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
1689 1690 1691 |
# File 'lib/models/porcelain.rb', line 1689 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
1683 1684 1685 |
# File 'lib/models/porcelain.rb', line 1683 def port_override @port_override end |
#replica_set ⇒ Object
Returns the value of attribute replica_set.
1691 1692 1693 |
# File 'lib/models/porcelain.rb', line 1691 def replica_set @replica_set end |
#tls_required ⇒ Object
Returns the value of attribute tls_required.
1693 1694 1695 |
# File 'lib/models/porcelain.rb', line 1693 def tls_required @tls_required end |
#username ⇒ Object
Returns the value of attribute username.
1685 1686 1687 |
# File 'lib/models/porcelain.rb', line 1685 def username @username end |