Class: SDM::AKSBasicAuth
- Inherits:
-
Object
- Object
- SDM::AKSBasicAuth
- 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.
-
#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, hostname: nil, port: nil, username: nil, password: nil, healthcheck_namespace: nil) ⇒ AKSBasicAuth
constructor
A new instance of AKSBasicAuth.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, hostname: nil, port: nil, username: nil, password: nil, healthcheck_namespace: nil) ⇒ AKSBasicAuth
Returns a new instance of AKSBasicAuth.
1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 |
# File 'lib/models/porcelain.rb', line 1948 def initialize( id: nil, name: nil, healthy: nil, tags: 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 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.
1946 1947 1948 |
# File 'lib/models/porcelain.rb', line 1946 def healthcheck_namespace @healthcheck_namespace end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1934 1935 1936 |
# File 'lib/models/porcelain.rb', line 1934 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
1938 1939 1940 |
# File 'lib/models/porcelain.rb', line 1938 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1930 1931 1932 |
# File 'lib/models/porcelain.rb', line 1930 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1932 1933 1934 |
# File 'lib/models/porcelain.rb', line 1932 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
1944 1945 1946 |
# File 'lib/models/porcelain.rb', line 1944 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
1940 1941 1942 |
# File 'lib/models/porcelain.rb', line 1940 def port @port end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1936 1937 1938 |
# File 'lib/models/porcelain.rb', line 1936 def @tags end |
#username ⇒ Object
Returns the value of attribute username.
1942 1943 1944 |
# File 'lib/models/porcelain.rb', line 1942 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1988 1989 1990 1991 1992 1993 1994 |
# File 'lib/models/porcelain.rb', line 1988 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 |