class SDM::HTTPBasicAuth

Attributes

default_path[RW]
egress_filter[RW]

A filter applied to the routing logic to pin datasource to nodes.

headers_blacklist[RW]
healthcheck_path[RW]
healthy[RW]

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

id[RW]

Unique identifier of the Resource.

name[RW]

Unique human-readable name of the Resource.

password[RW]
secret_store_id[RW]

ID of the secret store containing credentials for this resource, if any.

subdomain[RW]
tags[RW]

Tags is a map of key, value pairs.

url[RW]
username[RW]

Public Class Methods

new( default_path:nil \ , egress_filter:nil \ , headers_blacklist:nil \ , healthcheck_path:nil \ , healthy:nil \ , id:nil \ , name:nil \ , password:nil \ , secret_store_id:nil \ , subdomain:nil \ , tags:nil \ , url:nil \ , username:nil \ ) click to toggle source
# File lib/models/porcelain.rb, line 3545
                def initialize(
                        default_path:nil \
,
                        egress_filter:nil \
,
                        headers_blacklist:nil \
,
                        healthcheck_path:nil \
,
                        healthy:nil \
,
                        id:nil \
,
                        name:nil \
,
                        password:nil \
,
                        secret_store_id:nil \
,
                        subdomain:nil \
,
                        tags:nil \
,
                        url:nil \
,
                        username:nil \
                )
                        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 password != nil
                                @password = password
                        end
                        if secret_store_id != nil
                                @secret_store_id = secret_store_id
                        end
                        if subdomain != nil
                                @subdomain = subdomain
                        end
                        if tags != nil
                                @tags = tags
                        end
                        if url != nil
                                @url = url
                        end
                        if username != nil
                                @username = username
                        end
                end

Public Instance Methods

to_json(options={}) click to toggle source
# File lib/models/porcelain.rb, line 3612
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