class
Qdrant::Api::Configuration
- Qdrant::Api::Configuration
- Reference
- Object
Defined in:
qdrant-api/configuration.crConstructors
-
.new
Create a new
Configuration. -
.new(&)
Create a new
Configurationwith block.
Class Method Summary
-
.default
The default Configuration object.
Instance Method Summary
-
#access_token : String | Nil
Defines the access token (Bearer) used with OAuth2.
-
#access_token=(access_token : String | Nil)
Defines the access token (Bearer) used with OAuth2.
-
#api_key : Hash(Symbol, String)
Defines API keys used with API Key authentications.
-
#api_key=(api_key : Hash(Symbol, String))
Defines API keys used with API Key authentications.
-
#api_key_prefix : Hash(Symbol, String)
Defines API key prefixes used with API Key authentications.
-
#api_key_prefix=(api_key_prefix : Hash(Symbol, String))
Defines API key prefixes used with API Key authentications.
-
#api_key_with_prefix(param_name)
Gets API key (with prefix if set).
-
#apply_auth!(headers : HTTP::Headers, params : Hash(String, String | Array(String)), auth_names : Array(String)) : Nil
Applies authentication credentials to request headers and query params.
-
#base_path : String
Defines url base path
-
#base_path=(base_path : String)
Defines url base path
- #base_path=(base_path)
-
#base_url
Returns the base URL for requests.
-
#basic_auth_token
Gets Basic Auth token string
-
#client_side_validation : Bool
Set this to false to skip client side validation in the operation.
-
#client_side_validation=(client_side_validation : Bool)
Set this to false to skip client side validation in the operation.
-
#configure(&)
Configure object with block.
-
#debugging : Bool
Set this to enable/disable debugging.
-
#debugging=(debugging : Bool)
Set this to enable/disable debugging.
-
#default_headers : HTTP::Headers
Default headers sent with every request.
-
#default_headers=(default_headers : HTTP::Headers)
Default headers sent with every request.
-
#host : String
Defines url host
-
#host=(host : String)
Defines url host
- #host=(host)
-
#logger : Crest::Logger
Logger used by crest when
#loggingis enabled. -
#logger=(logger : Crest::Logger)
Logger used by crest when
#loggingis enabled. -
#logging : Bool
Enable the underlying HTTP client's (crest) request/response logging.
-
#logging=(logging : Bool)
Enable the underlying HTTP client's (crest) request/response logging.
-
#params_encoder : Crest::ParamsEncoder.class
Params encoder used to encode array query parameters.
-
#params_encoder=(params_encoder : Crest::ParamsEncoder.class)
Params encoder used to encode array query parameters.
-
#password : String | Nil
Defines the password used with HTTP basic authentication.
-
#password=(password : String | Nil)
Defines the password used with HTTP basic authentication.
-
#scheme : String
Defines url scheme
-
#scheme=(scheme : String)
Defines url scheme
- #scheme=(scheme)
-
#temp_folder_path : String | Nil
Defines the temporary folder to store downloaded files (for API endpoints that have file response).
-
#temp_folder_path=(temp_folder_path : String | Nil)
Defines the temporary folder to store downloaded files (for API endpoints that have file response).
-
#timeout : Int32
The time limit for HTTP request in seconds.
-
#timeout=(timeout : Int32)
The time limit for HTTP request in seconds.
-
#username : String | Nil
Defines the username used with HTTP basic authentication.
-
#username=(username : String | Nil)
Defines the username used with HTTP basic authentication.
Constructor Detail
Create a new Configuration with block.
config = Qdrant::Api::Configuration.new do |config|
config.username = "xxx"
config.password = "xxx"
end
Class Method Detail
Instance Method Detail
Defines the access token (Bearer) used with OAuth2.
Defines API keys used with API Key authentications.
@return [Hash] key: parameter name, value: parameter value (API key)
@example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string) config.api_key[:api_key] = "xxx"
Defines API keys used with API Key authentications.
@return [Hash] key: parameter name, value: parameter value (API key)
@example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string) config.api_key[:api_key] = "xxx"
Defines API key prefixes used with API Key authentications.
@return [Hash] key: parameter name, value: API key prefix
@example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers) config.api_key_prefix[:api_key] = "Token"
Defines API key prefixes used with API Key authentications.
@return [Hash] key: parameter name, value: API key prefix
@example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers) config.api_key_prefix[:api_key] = "Token"
Gets API key (with prefix if set). @param [String] param_name the parameter name of API key auth
Applies authentication credentials to request headers and query params. Called by Connection#request for every outgoing request.
Set this to false to skip client side validation in the operation. Default to true. @return [true, false]
Set this to false to skip client side validation in the operation. Default to true. @return [true, false]
Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
details will be logged with logger.debug (see the #logger attribute).
Default to false.
@return [true, false]
Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
details will be logged with logger.debug (see the #logger attribute).
Default to false.
@return [true, false]
Logger used by crest when #logging is enabled. Defaults to Crest::CommonLogger; assign a
custom Crest::Logger to control formatting/output.
Logger used by crest when #logging is enabled. Defaults to Crest::CommonLogger; assign a
custom Crest::Logger to control formatting/output.
Enable the underlying HTTP client's (crest) request/response logging. Off by default, so the
shard produces no log output unless a consumer opts in (e.g. a higher-level client wrapper
can expose config.logging = true). Independent of #debugging.
Enable the underlying HTTP client's (crest) request/response logging. Off by default, so the
shard produces no log output unless a consumer opts in (e.g. a higher-level client wrapper
can expose config.logging = true). Independent of #debugging.
Params encoder used to encode array query parameters. Default: Crest::NestedParamsEncoder (encodes arrays as key=a&key=b).
Params encoder used to encode array query parameters. Default: Crest::NestedParamsEncoder (encodes arrays as key=a&key=b).
Defines the password used with HTTP basic authentication.
@return [String]
Defines the password used with HTTP basic authentication.
@return [String]
Defines the temporary folder to store downloaded files
(for API endpoints that have file response).
Default to use Tempfile.
@return [String]
Defines the temporary folder to store downloaded files
(for API endpoints that have file response).
Default to use Tempfile.
@return [String]
The time limit for HTTP request in seconds. Default to 0 (never times out).
Defines the username used with HTTP basic authentication.
@return [String]
Defines the username used with HTTP basic authentication.
@return [String]