|
Databricks C++ SDK 0.2.4
Interact with Databricks via an SDK
|
Core authentication configuration shared across all Databricks features. More...
#include <config.h>
Public Member Functions | |
| bool | is_valid () const |
| Validate that all required fields are set. | |
Static Public Member Functions | |
| static AuthConfig | from_profile (const std::string &profile="DEFAULT") |
| Load authentication configuration from Databricks CLI profile. | |
| static AuthConfig | from_env () |
| Load authentication configuration from environment variables. | |
| static AuthConfig | from_environment (const std::string &profile="DEFAULT") |
| Load authentication configuration from all available sources. | |
Public Attributes | |
| std::string | host |
| Databricks workspace URL (e.g., "https://your-workspace.cloud.databricks.com") | |
| std::string | token |
| Authentication token (personal access token or OAuth token) | |
| int | timeout_seconds = 60 |
| Request timeout in seconds (default: 60) | |
Core authentication configuration shared across all Databricks features.
This configuration contains the fundamental authentication and connection settings needed to connect to Databricks. It can be shared across multiple client types (SQL, Workspace, Delta, etc.).
|
static |
Load authentication configuration from environment variables.
Reads from:
| std::runtime_error | if required environment variables are not set |
|
static |
Load authentication configuration from all available sources.
Precedence (highest to lowest):
| profile | The profile name to try loading (default: "DEFAULT") |
| std::runtime_error | if no valid configuration is found |
|
static |
Load authentication configuration from Databricks CLI profile.
Reads from ~/.databrickscfg file and loads the specified profile section.
| profile | The profile name to load (default: "DEFAULT") |
| std::runtime_error | if profile is not found or incomplete |
| bool databricks::AuthConfig::is_valid | ( | ) | const |
Validate that all required fields are set.
| std::string databricks::AuthConfig::host |
| int databricks::AuthConfig::timeout_seconds = 60 |
| std::string databricks::AuthConfig::token |