UNPKG

n8n-nodes-databricks-api

Version:
118 lines 4.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.modelServingOperations = void 0; exports.modelServingOperations = { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['modelServing'], }, }, options: [ { name: 'List Serving Endpoints', value: 'listEndpoints', description: 'List all serving endpoints', action: 'List serving endpoints', routing: { request: { method: 'GET', url: '/api/2.0/serving-endpoints', }, }, }, { name: 'Get Serving Endpoint', value: 'getEndpoint', description: 'Get a serving endpoint', action: 'Get a serving endpoint', routing: { request: { method: 'GET', url: '/api/2.0/serving-endpoints/{{$parameter.endpointName}}', }, }, }, { name: 'Create Serving Endpoint', value: 'createEndpoint', description: 'Create a new serving endpoint', action: 'Create a serving endpoint', routing: { request: { method: 'POST', url: '/api/2.0/serving-endpoints', body: { name: '={{$parameter.endpointName}}', config: { served_models: '={{$parameter.servedModels}}', traffic_config: '={{$parameter.trafficConfig}}', served_entities: '={{$parameter.additionalFields?.servedEntities}}', }, }, }, }, }, { name: 'Update Serving Endpoint', value: 'updateEndpoint', description: 'Update a serving endpoint configuration', action: 'Update a serving endpoint', routing: { request: { method: 'PUT', url: '/api/2.0/serving-endpoints/{{$parameter.endpointName}}/config', body: { served_models: '={{$parameter.servedModels}}', traffic_config: '={{$parameter.trafficConfig}}', served_entities: '={{$parameter.additionalFields?.servedEntities}}', }, }, }, }, { name: 'Delete Serving Endpoint', value: 'deleteEndpoint', description: 'Delete a serving endpoint', action: 'Delete a serving endpoint', routing: { request: { method: 'DELETE', url: '/api/2.0/serving-endpoints/{{$parameter.endpointName}}', }, }, }, { name: 'Query Endpoint', value: 'queryEndpoint', description: 'Query a serving endpoint', action: 'Query a serving endpoint', routing: { request: { method: 'POST', url: '/serving-endpoints/{{$parameter.endpointName}}/invocations', body: { inputs: '={{$parameter.inputs}}', }, }, }, }, { name: 'Get Serving Endpoint Logs', value: 'getEndpointLogs', description: 'Get serving endpoint logs', action: 'Get serving endpoint logs', routing: { request: { method: 'GET', url: '/api/2.0/serving-endpoints/{{$parameter.endpointName}}/logs', }, }, }, ], default: 'listEndpoints', }; //# sourceMappingURL=operations.js.map