Interface AzureUtils

    • Method Detail

      • tokenSourceFor

        default RefreshableTokenSource tokenSourceFor​(DatabricksConfig config,
                                                      String resource)
        Creates a RefreshableTokenSource for the specified Azure 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.

        Parameters:
        config - The DatabricksConfig instance containing the required authentication parameters.
        resource - The Azure resource for which OAuth tokens need to be fetched.
        Returns:
        A RefreshableTokenSource instance capable of fetching OAuth tokens for the specified Azure resource.
      • getWorkspaceFromJsonResponse

        default String getWorkspaceFromJsonResponse​(com.fasterxml.jackson.databind.node.ObjectNode jsonResponse)
                                             throws IOException
        Throws:
        IOException
      • ensureHostPresent

        default void ensureHostPresent​(DatabricksConfig config,
                                       com.fasterxml.jackson.databind.ObjectMapper mapper)
        Resolves Azure Databricks workspace URL from ARM Resource ID