Class: SDM::KubernetesBasicAuth
- Inherits:
-
Object
- Object
- SDM::KubernetesBasicAuth
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#healthcheck_namespace ⇒ Object
Returns the value of attribute healthcheck_namespace.
-
#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.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, hostname: nil, port: nil, username: nil, password: nil, healthcheck_namespace: nil) ⇒ KubernetesBasicAuth
constructor
A new instance of KubernetesBasicAuth.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, hostname: nil, port: nil, username: nil, password: nil, healthcheck_namespace: nil) ⇒ KubernetesBasicAuth
Returns a new instance of KubernetesBasicAuth.
1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 |
# File 'lib/models/porcelain.rb', line 1876 def initialize( id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, hostname: nil, port: nil, username: nil, password: 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 hostname != nil @hostname = hostname end if port != nil @port = port end if username != nil @username = username end if password != nil @password = password end if healthcheck_namespace != nil @healthcheck_namespace = healthcheck_namespace end end |
Instance Attribute Details
#healthcheck_namespace ⇒ Object
Returns the value of attribute healthcheck_namespace.
1874 1875 1876 |
# File 'lib/models/porcelain.rb', line 1874 def healthcheck_namespace @healthcheck_namespace end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1860 1861 1862 |
# File 'lib/models/porcelain.rb', line 1860 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
1866 1867 1868 |
# File 'lib/models/porcelain.rb', line 1866 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1856 1857 1858 |
# File 'lib/models/porcelain.rb', line 1856 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1858 1859 1860 |
# File 'lib/models/porcelain.rb', line 1858 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
1872 1873 1874 |
# File 'lib/models/porcelain.rb', line 1872 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
1868 1869 1870 |
# File 'lib/models/porcelain.rb', line 1868 def port @port end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
1864 1865 1866 |
# File 'lib/models/porcelain.rb', line 1864 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1862 1863 1864 |
# File 'lib/models/porcelain.rb', line 1862 def @tags end |
#username ⇒ Object
Returns the value of attribute username.
1870 1871 1872 |
# File 'lib/models/porcelain.rb', line 1870 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1920 1921 1922 1923 1924 1925 1926 |
# File 'lib/models/porcelain.rb', line 1920 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 |