import { ActivityRuns } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { DataFactoryClient } from "../dataFactoryClient" ; import { RunFilterParameters , ActivityRunsQueryByPipelineRunOptionalParams , ActivityRunsQueryByPipelineRunResponse } from "../models" ; /** Class containing ActivityRuns operations. */ export class ActivityRunsImpl implements ActivityRuns { private readonly client : DataFactoryClient ; param client constructor ( client ) { this . client = client ; } param resourceGroupName param factoryName param runId param filterParameters param options queryByPipelineRun ( resourceGroupName , factoryName , runId , filterParameters , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , factoryName , runId , filterParameters , options } , queryByPipelineRunOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const queryByPipelineRunOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . ActivityRunsQueryResponse } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . filterParameters , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . factoryName , Parameters . runId ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ;