50 explicit Compute(std::shared_ptr<internal::IHttpClient> http_client);
120 std::unique_ptr<Impl> pimpl_;
122 bool compute_operation(
const std::string& cluster_id,
const std::string& endpoint,
const std::string& operation_name);
123 static std::vector<Cluster> parse_compute_list(
const std::string& json_str);
124 static Cluster parse_compute(
const std::string& json_str);
Client for interacting with the Databricks Clusters/Compute API.
bool terminate_compute(const std::string &cluster_id)
Terminate a running compute cluster.
std::vector< Cluster > list_compute()
List all compute clusters in the workspace.
Cluster get_compute(const std::string &cluster_id)
Get detailed information about a specific compute cluster.
Compute & operator=(const Compute &)=delete
bool start_compute(const std::string &cluster_id)
Start a terminated compute cluster.
Compute(const Compute &)=delete
Compute(std::shared_ptr< internal::IHttpClient > http_client)
Construct a Compute API client with dependency injection (for testing)
bool restart_compute(const std::string &cluster_id)
Restart a compute cluster.
bool create_compute(const Cluster &cluster_config)
Create a new Spark Cluster.
Compute(const AuthConfig &auth)
Construct a Compute API client.
Core authentication configuration shared across all Databricks features.
Represents a Databricks cluster.