Class: SDM::AKSServiceAccount

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, hostname: nil, port: nil, token: nil, healthcheck_namespace: nil) ⇒ AKSServiceAccount

Returns a new instance of AKSServiceAccount.



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
2048
2049
# File 'lib/models/porcelain.rb', line 2015

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 tags != nil
    @tags = 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_namespaceObject

Returns the value of attribute healthcheck_namespace.



2013
2014
2015
# File 'lib/models/porcelain.rb', line 2013

def healthcheck_namespace
  @healthcheck_namespace
end

#healthyObject

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



2003
2004
2005
# File 'lib/models/porcelain.rb', line 2003

def healthy
  @healthy
end

#hostnameObject

Returns the value of attribute hostname.



2007
2008
2009
# File 'lib/models/porcelain.rb', line 2007

def hostname
  @hostname
end

#idObject

Unique identifier of the Resource.



1999
2000
2001
# File 'lib/models/porcelain.rb', line 1999

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



2001
2002
2003
# File 'lib/models/porcelain.rb', line 2001

def name
  @name
end

#portObject

Returns the value of attribute port.



2009
2010
2011
# File 'lib/models/porcelain.rb', line 2009

def port
  @port
end

#tagsObject

Tags is a map of key, value pairs.



2005
2006
2007
# File 'lib/models/porcelain.rb', line 2005

def tags
  @tags
end

#tokenObject

Returns the value of attribute token.



2011
2012
2013
# File 'lib/models/porcelain.rb', line 2011

def token
  @token
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2051
2052
2053
2054
2055
2056
2057
# File 'lib/models/porcelain.rb', line 2051

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