import { ExposureControl } 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 { ExposureControlRequest , ExposureControlGetFeatureValueOptionalParams , ExposureControlGetFeatureValueResponse , ExposureControlGetFeatureValueByFactoryOptionalParams , ExposureControlGetFeatureValueByFactoryResponse , ExposureControlBatchRequest , ExposureControlQueryFeatureValuesByFactoryOptionalParams , ExposureControlQueryFeatureValuesByFactoryResponse } from "../models" ; /** Class containing ExposureControl operations. */ export class ExposureControlImpl implements ExposureControl { private readonly client : DataFactoryClient ; param client constructor ( client ) { this . client = client ; } param locationId param exposureControlRequest param options getFeatureValue ( locationId , exposureControlRequest , options ? ) { return this . client . sendOperationRequest ( { locationId , exposureControlRequest , options } , getFeatureValueOperationSpec ) ; } param resourceGroupName param factoryName param exposureControlRequest param options getFeatureValueByFactory ( resourceGroupName , factoryName , exposureControlRequest , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , factoryName , exposureControlRequest , options } , getFeatureValueByFactoryOperationSpec ) ; } param resourceGroupName param factoryName param exposureControlBatchRequest param options queryFeatureValuesByFactory ( resourceGroupName , factoryName , exposureControlBatchRequest , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , factoryName , exposureControlBatchRequest , options } , queryFeatureValuesByFactoryOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const getFeatureValueOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/getFeatureValue" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . ExposureControlResponse } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . exposureControlRequest , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . locationId ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getFeatureValueByFactoryOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getFeatureValue" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . ExposureControlResponse } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . exposureControlRequest , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . factoryName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const queryFeatureValuesByFactoryOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryFeaturesValue" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . ExposureControlBatchResponse } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . exposureControlBatchRequest , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . factoryName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ;