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.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#healthcheck_namespace ⇒ Object
Returns the value of attribute healthcheck_namespace.
-
#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.
-
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
-
#service_account_key ⇒ Object
Returns the value of attribute service_account_key.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, endpoint: nil, certificate_authority: nil, service_account_key: nil, healthcheck_namespace: nil) ⇒ GoogleGKE
constructor
A new instance of GoogleGKE.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, endpoint: nil, certificate_authority: nil, service_account_key: nil, healthcheck_namespace: nil) ⇒ GoogleGKE
Returns a new instance of GoogleGKE.
2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 |
# File 'lib/models/porcelain.rb', line 2009 def initialize( id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: 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 != nil @tags = end if secret_store_id != nil @secret_store_id = secret_store_id end if endpoint != nil @endpoint = endpoint end if != nil @certificate_authority = end if service_account_key != nil @service_account_key = service_account_key end if healthcheck_namespace != nil @healthcheck_namespace = healthcheck_namespace end end |
Instance Attribute Details
#certificate_authority ⇒ Object
Returns the value of attribute certificate_authority.
2003 2004 2005 |
# File 'lib/models/porcelain.rb', line 2003 def @certificate_authority end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
2001 2002 2003 |
# File 'lib/models/porcelain.rb', line 2001 def endpoint @endpoint end |
#healthcheck_namespace ⇒ Object
Returns the value of attribute healthcheck_namespace.
2007 2008 2009 |
# File 'lib/models/porcelain.rb', line 2007 def healthcheck_namespace @healthcheck_namespace end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1995 1996 1997 |
# File 'lib/models/porcelain.rb', line 1995 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1991 1992 1993 |
# File 'lib/models/porcelain.rb', line 1991 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1993 1994 1995 |
# File 'lib/models/porcelain.rb', line 1993 def name @name end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
1999 2000 2001 |
# File 'lib/models/porcelain.rb', line 1999 def secret_store_id @secret_store_id end |
#service_account_key ⇒ Object
Returns the value of attribute service_account_key.
2005 2006 2007 |
# File 'lib/models/porcelain.rb', line 2005 def service_account_key @service_account_key end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1997 1998 1999 |
# File 'lib/models/porcelain.rb', line 1997 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2049 2050 2051 2052 2053 2054 2055 |
# File 'lib/models/porcelain.rb', line 2049 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 |