public interface AzureUtils
Modifier and Type | Method and Description |
---|---|
default Map<String,String> |
addSpManagementToken(RefreshableTokenSource tokenSource,
Map<String,String> headers) |
default Map<String,String> |
addWorkspaceResourceId(DatabricksConfig config,
Map<String,String> headers) |
default void |
ensureHostPresent(DatabricksConfig config,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Resolves Azure Databricks workspace URL from ARM Resource ID
|
default String |
getWorkspaceFromJsonResponse(com.fasterxml.jackson.databind.node.ObjectNode jsonResponse) |
default RefreshableTokenSource |
tokenSourceFor(DatabricksConfig config,
String resource)
Creates a RefreshableTokenSource for the specified Azure resource.
|
default RefreshableTokenSource tokenSourceFor(DatabricksConfig config, String resource)
This function constructs a RefreshableTokenSource instance that fetches OAuth tokens for the given Azure resource. It uses the authentication parameters provided by the DatabricksConfig instance to generate the tokens.
config
- The DatabricksConfig instance containing the required authentication parameters.resource
- The Azure resource for which OAuth tokens need to be fetched.default String getWorkspaceFromJsonResponse(com.fasterxml.jackson.databind.node.ObjectNode jsonResponse) throws IOException
IOException
default void ensureHostPresent(DatabricksConfig config, com.fasterxml.jackson.databind.ObjectMapper mapper)
default Map<String,String> addWorkspaceResourceId(DatabricksConfig config, Map<String,String> headers)
Copyright © 2023. All rights reserved.