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(auth_header: nil, default_path: nil, egress_filter: nil, headers_blacklist: nil, healthcheck_path: nil, healthy: nil, id: nil, name: nil, secret_store_id: nil, subdomain: nil, tags: nil, url: nil) ⇒ HTTPAuth
constructor
A new instance of HTTPAuth.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(auth_header: nil, default_path: nil, egress_filter: nil, headers_blacklist: nil, healthcheck_path: nil, healthy: nil, id: nil, name: nil, secret_store_id: nil, subdomain: nil, tags: nil, url: nil) ⇒ HTTPAuth
Returns a new instance of HTTPAuth.
3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 |
# File 'lib/models/porcelain.rb', line 3000 def initialize( auth_header: nil, default_path: nil, egress_filter: nil, headers_blacklist: nil, healthcheck_path: nil, healthy: nil, id: nil, name: nil, secret_store_id: nil, subdomain: nil, tags: nil, url: nil ) if auth_header != nil @auth_header = auth_header end if default_path != nil @default_path = default_path end if egress_filter != nil @egress_filter = egress_filter end if headers_blacklist != nil @headers_blacklist = headers_blacklist end if healthcheck_path != nil @healthcheck_path = healthcheck_path end if healthy != nil @healthy = healthy end if id != nil @id = id end if name != nil @name = name end if secret_store_id != nil @secret_store_id = secret_store_id end if subdomain != nil @subdomain = subdomain end if != nil @tags = end if url != nil @url = url end end |
Instance Attribute Details
#auth_header ⇒ Object
Returns the value of attribute auth_header.
2976 2977 2978 |
# File 'lib/models/porcelain.rb', line 2976 def auth_header @auth_header end |
#default_path ⇒ Object
Returns the value of attribute default_path.
2978 2979 2980 |
# File 'lib/models/porcelain.rb', line 2978 def default_path @default_path end |
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
2980 2981 2982 |
# File 'lib/models/porcelain.rb', line 2980 def egress_filter @egress_filter end |
#headers_blacklist ⇒ Object
Returns the value of attribute headers_blacklist.
2982 2983 2984 |
# File 'lib/models/porcelain.rb', line 2982 def headers_blacklist @headers_blacklist end |
#healthcheck_path ⇒ Object
Returns the value of attribute healthcheck_path.
2984 2985 2986 |
# File 'lib/models/porcelain.rb', line 2984 def healthcheck_path @healthcheck_path end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
2986 2987 2988 |
# File 'lib/models/porcelain.rb', line 2986 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
2988 2989 2990 |
# File 'lib/models/porcelain.rb', line 2988 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
2990 2991 2992 |
# File 'lib/models/porcelain.rb', line 2990 def name @name end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
2992 2993 2994 |
# File 'lib/models/porcelain.rb', line 2992 def secret_store_id @secret_store_id end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
2994 2995 2996 |
# File 'lib/models/porcelain.rb', line 2994 def subdomain @subdomain end |
#tags ⇒ Object
Tags is a map of key, value pairs.
2996 2997 2998 |
# File 'lib/models/porcelain.rb', line 2996 def @tags end |
#url ⇒ Object
Returns the value of attribute url.
2998 2999 3000 |
# File 'lib/models/porcelain.rb', line 2998 def url @url end |
Instance Method Details
#to_json(options = {}) ⇒ Object
3052 3053 3054 3055 3056 3057 3058 |
# File 'lib/models/porcelain.rb', line 3052 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 |