Class: SDM::HTTPAuth
- Inherits:
-
Object
- Object
- SDM::HTTPAuth
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#auth_header ⇒ Object
Returns the value of attribute auth_header.
-
#default_path ⇒ Object
Returns the value of attribute default_path.
-
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
-
#headers_blacklist ⇒ Object
Returns the value of attribute headers_blacklist.
-
#healthcheck_path ⇒ Object
Returns the value of attribute healthcheck_path.
-
#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.
-
#subdomain ⇒ Object
Returns the value of attribute subdomain.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, url: nil, healthcheck_path: nil, auth_header: nil, headers_blacklist: nil, default_path: nil, subdomain: nil) ⇒ HTTPAuth
constructor
A new instance of HTTPAuth.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, url: nil, healthcheck_path: nil, auth_header: nil, headers_blacklist: nil, default_path: nil, subdomain: nil) ⇒ HTTPAuth
Returns a new instance of HTTPAuth.
1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 |
# File 'lib/models/porcelain.rb', line 1964 def initialize( id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, url: nil, healthcheck_path: nil, auth_header: nil, headers_blacklist: nil, default_path: nil, subdomain: 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 egress_filter != nil @egress_filter = egress_filter end if url != nil @url = url end if healthcheck_path != nil @healthcheck_path = healthcheck_path end if auth_header != nil @auth_header = auth_header end if headers_blacklist != nil @headers_blacklist = headers_blacklist end if default_path != nil @default_path = default_path end if subdomain != nil @subdomain = subdomain end end |
Instance Attribute Details
#auth_header ⇒ Object
Returns the value of attribute auth_header.
1956 1957 1958 |
# File 'lib/models/porcelain.rb', line 1956 def auth_header @auth_header end |
#default_path ⇒ Object
Returns the value of attribute default_path.
1960 1961 1962 |
# File 'lib/models/porcelain.rb', line 1960 def default_path @default_path end |
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
1950 1951 1952 |
# File 'lib/models/porcelain.rb', line 1950 def egress_filter @egress_filter end |
#headers_blacklist ⇒ Object
Returns the value of attribute headers_blacklist.
1958 1959 1960 |
# File 'lib/models/porcelain.rb', line 1958 def headers_blacklist @headers_blacklist end |
#healthcheck_path ⇒ Object
Returns the value of attribute healthcheck_path.
1954 1955 1956 |
# File 'lib/models/porcelain.rb', line 1954 def healthcheck_path @healthcheck_path end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1944 1945 1946 |
# File 'lib/models/porcelain.rb', line 1944 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1940 1941 1942 |
# File 'lib/models/porcelain.rb', line 1940 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1942 1943 1944 |
# File 'lib/models/porcelain.rb', line 1942 def name @name end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
1948 1949 1950 |
# File 'lib/models/porcelain.rb', line 1948 def secret_store_id @secret_store_id end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
1962 1963 1964 |
# File 'lib/models/porcelain.rb', line 1962 def subdomain @subdomain end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1946 1947 1948 |
# File 'lib/models/porcelain.rb', line 1946 def @tags end |
#url ⇒ Object
Returns the value of attribute url.
1952 1953 1954 |
# File 'lib/models/porcelain.rb', line 1952 def url @url end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2016 2017 2018 2019 2020 2021 2022 |
# File 'lib/models/porcelain.rb', line 2016 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 |