Class: SDM::GoogleGKE

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, name: nil, healthy: nil, tags: nil, endpoint: nil, certificate_authority: nil, service_account_key: nil, healthcheck_namespace: nil) ⇒ GoogleGKE

Returns a new instance of GoogleGKE.



1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
# File 'lib/models/porcelain.rb', line 1806

def initialize(
  id: nil,
  name: nil,
  healthy: nil,
  tags: nil,
  endpoint: nil,
  certificate_authority: nil,
  service_account_key: nil,
  healthcheck_namespace: nil
)
  if id != nil
    @id = id
  end
  if name != nil
    @name = name
  end
  if healthy != nil
    @healthy = healthy
  end
  if tags != nil
    @tags = tags
  end
  if endpoint != nil
    @endpoint = endpoint
  end
  if certificate_authority != nil
    @certificate_authority = certificate_authority
  end
  if  != nil
    @service_account_key = 
  end
  if healthcheck_namespace != nil
    @healthcheck_namespace = healthcheck_namespace
  end
end

Instance Attribute Details

#certificate_authorityObject

Returns the value of attribute certificate_authority.



1800
1801
1802
# File 'lib/models/porcelain.rb', line 1800

def certificate_authority
  @certificate_authority
end

#endpointObject

Returns the value of attribute endpoint.



1798
1799
1800
# File 'lib/models/porcelain.rb', line 1798

def endpoint
  @endpoint
end

#healthcheck_namespaceObject

Returns the value of attribute healthcheck_namespace.



1804
1805
1806
# File 'lib/models/porcelain.rb', line 1804

def healthcheck_namespace
  @healthcheck_namespace
end

#healthyObject

True if the datasource is reachable and the credentials are valid.



1794
1795
1796
# File 'lib/models/porcelain.rb', line 1794

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



1790
1791
1792
# File 'lib/models/porcelain.rb', line 1790

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



1792
1793
1794
# File 'lib/models/porcelain.rb', line 1792

def name
  @name
end

#service_account_keyObject

Returns the value of attribute service_account_key.



1802
1803
1804
# File 'lib/models/porcelain.rb', line 1802

def 
  @service_account_key
end

#tagsObject

Tags is a map of key, value pairs.



1796
1797
1798
# File 'lib/models/porcelain.rb', line 1796

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1842
1843
1844
1845
1846
1847
1848
# File 'lib/models/porcelain.rb', line 1842

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end