import { PrivateEndpointConnection } 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 { PrivateLinkConnectionApprovalRequestResource , PrivateEndpointConnectionCreateOrUpdateOptionalParams , PrivateEndpointConnectionCreateOrUpdateResponse , PrivateEndpointConnectionGetOptionalParams , PrivateEndpointConnectionGetResponse , PrivateEndpointConnectionDeleteOptionalParams } from "../models" ; /** Class containing PrivateEndpointConnection operations. */ export class PrivateEndpointConnectionImpl implements PrivateEndpointConnection { private readonly client : DataFactoryClient ; param client constructor ( client ) { this . client = client ; } param resourceGroupName param factoryName param privateEndpointConnectionName param privateEndpointWrapper param options createOrUpdate ( resourceGroupName , factoryName , privateEndpointConnectionName , privateEndpointWrapper , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , factoryName , privateEndpointConnectionName , privateEndpointWrapper , options } , createOrUpdateOperationSpec ) ; } param resourceGroupName param factoryName param privateEndpointConnectionName param options get ( resourceGroupName , factoryName , privateEndpointConnectionName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , factoryName , privateEndpointConnectionName , options } , getOperationSpec ) ; } param resourceGroupName param factoryName param privateEndpointConnectionName param options delete ( resourceGroupName , factoryName , privateEndpointConnectionName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , factoryName , privateEndpointConnectionName , options } , deleteOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const createOrUpdateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . PrivateEndpointConnectionResource } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . privateEndpointWrapper , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . factoryName , Parameters . privateEndpointConnectionName ] , headerParameters : [ Parameters . accept , Parameters . contentType , Parameters . ifMatch ] , mediaType : "json" , serializer } ; const getOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateEndpointConnectionResource } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . factoryName , Parameters . privateEndpointConnectionName ] , headerParameters : [ Parameters . accept , Parameters . ifNoneMatch ] , serializer } ; const deleteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}" , httpMethod : "DELETE" , responses : { 200 : { } , 204 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . factoryName , Parameters . privateEndpointConnectionName ] , headerParameters : [ Parameters . accept ] , serializer } ;