Class: SDM::GoogleGKE
- Inherits:
-
Object
- Object
- SDM::GoogleGKE
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#certificate_authority ⇒ Object
Returns the value of attribute certificate_authority.
-
#certificate_authority_filename ⇒ Object
Returns the value of attribute certificate_authority_filename.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#service_account_key ⇒ Object
Returns the value of attribute service_account_key.
-
#service_account_key_filename ⇒ Object
Returns the value of attribute service_account_key_filename.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, endpoint: nil, certificate_authority: nil, certificate_authority_filename: nil, service_account_key: nil, service_account_key_filename: nil) ⇒ GoogleGKE
constructor
A new instance of GoogleGKE.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, endpoint: nil, certificate_authority: nil, certificate_authority_filename: nil, service_account_key: nil, service_account_key_filename: nil) ⇒ GoogleGKE
Returns a new instance of GoogleGKE.
1583 1584 1585 1586 1587 1588 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 |
# File 'lib/models/porcelain.rb', line 1583 def initialize( id: nil, name: nil, healthy: nil, endpoint: nil, certificate_authority: nil, certificate_authority_filename: nil, service_account_key: nil, service_account_key_filename: nil ) if id != nil @id = id end if name != nil @name = name end if healthy != nil @healthy = healthy end if endpoint != nil @endpoint = endpoint end if != nil @certificate_authority = end if != nil @certificate_authority_filename = end if service_account_key != nil @service_account_key = service_account_key end if service_account_key_filename != nil @service_account_key_filename = service_account_key_filename end end |
Instance Attribute Details
#certificate_authority ⇒ Object
Returns the value of attribute certificate_authority.
1575 1576 1577 |
# File 'lib/models/porcelain.rb', line 1575 def @certificate_authority end |
#certificate_authority_filename ⇒ Object
Returns the value of attribute certificate_authority_filename.
1577 1578 1579 |
# File 'lib/models/porcelain.rb', line 1577 def @certificate_authority_filename end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
1573 1574 1575 |
# File 'lib/models/porcelain.rb', line 1573 def endpoint @endpoint end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1571 1572 1573 |
# File 'lib/models/porcelain.rb', line 1571 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1567 1568 1569 |
# File 'lib/models/porcelain.rb', line 1567 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1569 1570 1571 |
# File 'lib/models/porcelain.rb', line 1569 def name @name end |
#service_account_key ⇒ Object
Returns the value of attribute service_account_key.
1579 1580 1581 |
# File 'lib/models/porcelain.rb', line 1579 def service_account_key @service_account_key end |
#service_account_key_filename ⇒ Object
Returns the value of attribute service_account_key_filename.
1581 1582 1583 |
# File 'lib/models/porcelain.rb', line 1581 def service_account_key_filename @service_account_key_filename end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1619 1620 1621 1622 1623 1624 1625 |
# File 'lib/models/porcelain.rb', line 1619 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 |