Class: SDM::KubernetesServiceAccount
- Inherits:
-
Object
- Object
- SDM::KubernetesServiceAccount
- 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.
-
#port ⇒ Object
Returns the value of attribute port.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, hostname: nil, port: nil, token: nil, healthcheck_namespace: nil) ⇒ KubernetesServiceAccount
constructor
A new instance of KubernetesServiceAccount.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, hostname: nil, port: nil, token: nil, healthcheck_namespace: nil) ⇒ KubernetesServiceAccount
Returns a new instance of KubernetesServiceAccount.
1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 |
# File 'lib/models/porcelain.rb', line 1622 def initialize( id: nil, name: nil, healthy: nil, tags: nil, hostname: nil, port: nil, token: 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 token != nil @token = token end if healthcheck_namespace != nil @healthcheck_namespace = healthcheck_namespace end end |
Instance Attribute Details
#healthcheck_namespace ⇒ Object
Returns the value of attribute healthcheck_namespace.
1620 1621 1622 |
# File 'lib/models/porcelain.rb', line 1620 def healthcheck_namespace @healthcheck_namespace end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1610 1611 1612 |
# File 'lib/models/porcelain.rb', line 1610 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
1614 1615 1616 |
# File 'lib/models/porcelain.rb', line 1614 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1606 1607 1608 |
# File 'lib/models/porcelain.rb', line 1606 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1608 1609 1610 |
# File 'lib/models/porcelain.rb', line 1608 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
1616 1617 1618 |
# File 'lib/models/porcelain.rb', line 1616 def port @port end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1612 1613 1614 |
# File 'lib/models/porcelain.rb', line 1612 def @tags end |
#token ⇒ Object
Returns the value of attribute token.
1618 1619 1620 |
# File 'lib/models/porcelain.rb', line 1618 def token @token end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1658 1659 1660 1661 1662 1663 1664 |
# File 'lib/models/porcelain.rb', line 1658 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 |