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.
-
#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, 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, hostname: nil, port: nil, username: nil, password: nil, healthcheck_namespace: nil) ⇒ KubernetesBasicAuth
Returns a new instance of KubernetesBasicAuth.
1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 |
# File 'lib/models/porcelain.rb', line 1589 def initialize( id: nil, name: nil, healthy: nil, tags: 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 @tags = 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.
1587 1588 1589 |
# File 'lib/models/porcelain.rb', line 1587 def healthcheck_namespace @healthcheck_namespace end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1575 1576 1577 |
# File 'lib/models/porcelain.rb', line 1575 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
1579 1580 1581 |
# File 'lib/models/porcelain.rb', line 1579 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1571 1572 1573 |
# File 'lib/models/porcelain.rb', line 1571 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1573 1574 1575 |
# File 'lib/models/porcelain.rb', line 1573 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
1585 1586 1587 |
# File 'lib/models/porcelain.rb', line 1585 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
1581 1582 1583 |
# File 'lib/models/porcelain.rb', line 1581 def port @port end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1577 1578 1579 |
# File 'lib/models/porcelain.rb', line 1577 def @tags end |
#username ⇒ Object
Returns the value of attribute username.
1583 1584 1585 |
# File 'lib/models/porcelain.rb', line 1583 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1629 1630 1631 1632 1633 1634 1635 |
# File 'lib/models/porcelain.rb', line 1629 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 |