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.
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 |
# File 'lib/models/porcelain.rb', line 1656 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.
1654 1655 1656 |
# File 'lib/models/porcelain.rb', line 1654 def healthcheck_namespace @healthcheck_namespace end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1644 1645 1646 |
# File 'lib/models/porcelain.rb', line 1644 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
1648 1649 1650 |
# File 'lib/models/porcelain.rb', line 1648 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1640 1641 1642 |
# File 'lib/models/porcelain.rb', line 1640 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1642 1643 1644 |
# File 'lib/models/porcelain.rb', line 1642 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
1650 1651 1652 |
# File 'lib/models/porcelain.rb', line 1650 def port @port end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1646 1647 1648 |
# File 'lib/models/porcelain.rb', line 1646 def @tags end |
#token ⇒ Object
Returns the value of attribute token.
1652 1653 1654 |
# File 'lib/models/porcelain.rb', line 1652 def token @token end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1692 1693 1694 1695 1696 1697 1698 |
# File 'lib/models/porcelain.rb', line 1692 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 |