UNPKG

@coveo/platform-client

Version:

The main goal of this package is to provide an easy to configure and straightforward way of querying Coveo Cloud APIs using JavaScript.

15 lines 710 B
import API from '../../../APICore.js'; import Resource from '../../Resource.js'; export default class ModelAssociations extends Resource { static baseUrl = `/rest/organizations/${API.orgPlaceholder}/machinelearning/configuration/querypipelines`; /** * Lists the organization associations corresponding to the specified pipelineId. * @param pipelineId The unique identifier of the query pipeline. * @param params The pagination parameters. * @returns A list of associated models */ list(pipelineId, params) { return this.api.get(this.buildPath(`${ModelAssociations.baseUrl}/${pipelineId}/associations`, params)); } } //# sourceMappingURL=ModelAssociations.js.map