UNPKG

n8n-nodes-databricks-api

Version:
50 lines 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Databricks = void 0; class Databricks { constructor() { this.name = 'databricks'; this.displayName = 'Databricks'; this.documentationUrl = 'https://docs.databricks.com/dev-tools/api/latest/authentication.html'; this.properties = [ { displayName: 'Host', name: 'host', type: 'string', default: '', placeholder: 'https://adb-xxxxx.xx.azure.databricks.com', required: true, description: 'Domain of your Databricks workspace', }, { displayName: 'Personal Access Token', name: 'token', type: 'string', typeOptions: { password: true, }, default: '', placeholder: 'dapixxxxxxxxxxxxxxxxxxxxxx', required: true, description: 'Databricks personal access token', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.token}}', }, }, }; this.test = { request: { baseURL: '={{$credentials.host}}', url: '/api/2.0/serving-endpoints', method: 'GET', }, }; } } exports.Databricks = Databricks; //# sourceMappingURL=Databricks.credentials.js.map