Class: SDM::KubernetesServiceAccount
- Inherits:
-
Object
- Object
- SDM::KubernetesServiceAccount
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#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.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, port: nil, token: nil) ⇒ KubernetesServiceAccount
constructor
A new instance of KubernetesServiceAccount.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, port: nil, token: nil) ⇒ KubernetesServiceAccount
Returns a new instance of KubernetesServiceAccount.
1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 |
# File 'lib/models/porcelain.rb', line 1447 def initialize( id: nil, name: nil, healthy: nil, hostname: nil, port: nil, token: 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 token != nil @token = token end end |
Instance Attribute Details
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1439 1440 1441 |
# File 'lib/models/porcelain.rb', line 1439 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
1441 1442 1443 |
# File 'lib/models/porcelain.rb', line 1441 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1435 1436 1437 |
# File 'lib/models/porcelain.rb', line 1435 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1437 1438 1439 |
# File 'lib/models/porcelain.rb', line 1437 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
1443 1444 1445 |
# File 'lib/models/porcelain.rb', line 1443 def port @port end |
#token ⇒ Object
Returns the value of attribute token.
1445 1446 1447 |
# File 'lib/models/porcelain.rb', line 1445 def token @token end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1475 1476 1477 1478 1479 1480 1481 |
# File 'lib/models/porcelain.rb', line 1475 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 |