import { PagedAsyncIterableIterator } from "@azure/core-paging" ; import { PrivateLinkServices } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { NetworkManagementClient } from "../networkManagementClient" ; import { PollerLike , PollOperationState , LroEngine } from "@azure/core-lro" ; import { LroImpl } from "../lroImpl" ; import { PrivateLinkService , PrivateLinkServicesListNextOptionalParams , PrivateLinkServicesListOptionalParams , PrivateLinkServicesListBySubscriptionNextOptionalParams , PrivateLinkServicesListBySubscriptionOptionalParams , PrivateEndpointConnection , PrivateLinkServicesListPrivateEndpointConnectionsNextOptionalParams , PrivateLinkServicesListPrivateEndpointConnectionsOptionalParams , AutoApprovedPrivateLinkService , PrivateLinkServicesListAutoApprovedPrivateLinkServicesNextOptionalParams , PrivateLinkServicesListAutoApprovedPrivateLinkServicesOptionalParams , PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupNextOptionalParams , PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupOptionalParams , PrivateLinkServicesDeleteOptionalParams , PrivateLinkServicesGetOptionalParams , PrivateLinkServicesGetResponse , PrivateLinkServicesCreateOrUpdateOptionalParams , PrivateLinkServicesCreateOrUpdateResponse , PrivateLinkServicesListResponse , PrivateLinkServicesListBySubscriptionResponse , PrivateLinkServicesGetPrivateEndpointConnectionOptionalParams , PrivateLinkServicesGetPrivateEndpointConnectionResponse , PrivateLinkServicesUpdatePrivateEndpointConnectionOptionalParams , PrivateLinkServicesUpdatePrivateEndpointConnectionResponse , PrivateLinkServicesDeletePrivateEndpointConnectionOptionalParams , PrivateLinkServicesListPrivateEndpointConnectionsResponse , CheckPrivateLinkServiceVisibilityRequest , PrivateLinkServicesCheckPrivateLinkServiceVisibilityOptionalParams , PrivateLinkServicesCheckPrivateLinkServiceVisibilityResponse , PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupOptionalParams , PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupResponse , PrivateLinkServicesListAutoApprovedPrivateLinkServicesResponse , PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupResponse , PrivateLinkServicesListNextResponse , PrivateLinkServicesListBySubscriptionNextResponse , PrivateLinkServicesListPrivateEndpointConnectionsNextResponse , PrivateLinkServicesListAutoApprovedPrivateLinkServicesNextResponse , PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupNextResponse } from "../models" ; /** Class containing PrivateLinkServices operations. */ export class PrivateLinkServicesImpl implements PrivateLinkServices { private readonly client : NetworkManagementClient ; param client constructor ( client ) { this . client = client ; } param resourceGroupName param options public list ( resourceGroupName , options ? ) { const iter = this . listPagingAll ( resourceGroupName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listPagingPage ( resourceGroupName , options ) ; } } ; } private async * listPagingPage ( resourceGroupName , options ? ) { let result = await this . _list ( resourceGroupName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listNext ( resourceGroupName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listPagingAll ( resourceGroupName , options ? ) { for await ( const page of this . listPagingPage ( resourceGroupName , options ) ) { yield * page ; } } param options public listBySubscription ( options ? ) { const iter = this . listBySubscriptionPagingAll ( options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listBySubscriptionPagingPage ( options ) ; } } ; } private async * listBySubscriptionPagingPage ( options ? ) { let result = await this . _listBySubscription ( options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listBySubscriptionNext ( continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listBySubscriptionPagingAll ( options ? ) { for await ( const page of this . listBySubscriptionPagingPage ( options ) ) { yield * page ; } } param resourceGroupName param serviceName param options public listPrivateEndpointConnections ( resourceGroupName , serviceName , options ? ) { const iter = this . listPrivateEndpointConnectionsPagingAll ( resourceGroupName , serviceName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listPrivateEndpointConnectionsPagingPage ( resourceGroupName , serviceName , options ) ; } } ; } private async * listPrivateEndpointConnectionsPagingPage ( resourceGroupName , serviceName , options ? ) { let result = await this . _listPrivateEndpointConnections ( resourceGroupName , serviceName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listPrivateEndpointConnectionsNext ( resourceGroupName , serviceName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listPrivateEndpointConnectionsPagingAll ( resourceGroupName , serviceName , options ? ) { for await ( const page of this . listPrivateEndpointConnectionsPagingPage ( resourceGroupName , serviceName , options ) ) { yield * page ; } } param location param options public listAutoApprovedPrivateLinkServices ( location , options ? ) { const iter = this . listAutoApprovedPrivateLinkServicesPagingAll ( location , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listAutoApprovedPrivateLinkServicesPagingPage ( location , options ) ; } } ; } private async * listAutoApprovedPrivateLinkServicesPagingPage ( location , options ? ) { let result = await this . _listAutoApprovedPrivateLinkServices ( location , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listAutoApprovedPrivateLinkServicesNext ( location , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listAutoApprovedPrivateLinkServicesPagingAll ( location , options ? ) { for await ( const page of this . listAutoApprovedPrivateLinkServicesPagingPage ( location , options ) ) { yield * page ; } } param location param resourceGroupName param options public listAutoApprovedPrivateLinkServicesByResourceGroup ( location , resourceGroupName , options ? ) { const iter = this . listAutoApprovedPrivateLinkServicesByResourceGroupPagingAll ( location , resourceGroupName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listAutoApprovedPrivateLinkServicesByResourceGroupPagingPage ( location , resourceGroupName , options ) ; } } ; } private async * listAutoApprovedPrivateLinkServicesByResourceGroupPagingPage ( location , resourceGroupName , options ? ) { let result = await this . _listAutoApprovedPrivateLinkServicesByResourceGroup ( location , resourceGroupName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listAutoApprovedPrivateLinkServicesByResourceGroupNext ( location , resourceGroupName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listAutoApprovedPrivateLinkServicesByResourceGroupPagingAll ( location , resourceGroupName , options ? ) { for await ( const page of this . listAutoApprovedPrivateLinkServicesByResourceGroupPagingPage ( location , resourceGroupName , options ) ) { yield * page ; } } param resourceGroupName param serviceName param options async beginDelete ( resourceGroupName , serviceName , options ? ) { const directSendOperation = async ( args , spec ) : Promise < void > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { resourceGroupName , serviceName , options } , deleteOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param serviceName param options async beginDeleteAndWait ( resourceGroupName , serviceName , options ? ) { const poller = await this . beginDelete ( resourceGroupName , serviceName , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param serviceName param options get ( resourceGroupName , serviceName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , serviceName , options } , getOperationSpec ) ; } param resourceGroupName param serviceName param parameters param options async beginCreateOrUpdate ( resourceGroupName , serviceName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < PrivateLinkServicesCreateOrUpdateResponse > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { resourceGroupName , serviceName , parameters , options } , createOrUpdateOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "azure-async-operation" } ) ; } param resourceGroupName param serviceName param parameters param options async beginCreateOrUpdateAndWait ( resourceGroupName , serviceName , parameters , options ? ) { const poller = await this . beginCreateOrUpdate ( resourceGroupName , serviceName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param options private _list ( resourceGroupName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , options } , listOperationSpec ) ; } param options private _listBySubscription ( options ? ) { return this . client . sendOperationRequest ( { options } , listBySubscriptionOperationSpec ) ; } param resourceGroupName param serviceName param peConnectionName param options getPrivateEndpointConnection ( resourceGroupName , serviceName , peConnectionName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , serviceName , peConnectionName , options } , getPrivateEndpointConnectionOperationSpec ) ; } param resourceGroupName param serviceName param peConnectionName param parameters param options updatePrivateEndpointConnection ( resourceGroupName , serviceName , peConnectionName , parameters , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , serviceName , peConnectionName , parameters , options } , updatePrivateEndpointConnectionOperationSpec ) ; } param resourceGroupName param serviceName param peConnectionName param options async beginDeletePrivateEndpointConnection ( resourceGroupName , serviceName , peConnectionName , options ? ) { const directSendOperation = async ( args , spec ) : Promise < void > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { resourceGroupName , serviceName , peConnectionName , options } , deletePrivateEndpointConnectionOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param serviceName param peConnectionName param options async beginDeletePrivateEndpointConnectionAndWait ( resourceGroupName , serviceName , peConnectionName , options ? ) { const poller = await this . beginDeletePrivateEndpointConnection ( resourceGroupName , serviceName , peConnectionName , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param serviceName param options private _listPrivateEndpointConnections ( resourceGroupName , serviceName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , serviceName , options } , listPrivateEndpointConnectionsOperationSpec ) ; } param location param parameters param options async beginCheckPrivateLinkServiceVisibility ( location , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < PrivateLinkServicesCheckPrivateLinkServiceVisibilityResponse > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { location , parameters , options } , checkPrivateLinkServiceVisibilityOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param location param parameters param options async beginCheckPrivateLinkServiceVisibilityAndWait ( location , parameters , options ? ) { const poller = await this . beginCheckPrivateLinkServiceVisibility ( location , parameters , options ) ; return poller . pollUntilDone ( ) ; } param location param resourceGroupName param parameters param options async beginCheckPrivateLinkServiceVisibilityByResourceGroup ( location , resourceGroupName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupResponse > => { return this . client . sendOperationRequest ( args , spec ) ; } ; const sendOperation = async ( args , spec ) => { let currentRawResponse = undefined ; const providedCallback = args . options ?. onResponse ; const callback = ( rawResponse , flatResponse ) => { currentRawResponse = rawResponse ; providedCallback ?. ( rawResponse , flatResponse ) ; } ; const updatedArgs = { ... args , options : { ... args . options , onResponse : callback } } ; const flatResponse = await directSendOperation ( updatedArgs , spec ) ; return { flatResponse , rawResponse : { statusCode : currentRawResponse ! . status , body : currentRawResponse ! . parsedBody , headers : currentRawResponse ! . headers . toJSON ( ) } } ; } ; const lro = new LroImpl ( sendOperation , { location , resourceGroupName , parameters , options } , checkPrivateLinkServiceVisibilityByResourceGroupOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param location param resourceGroupName param parameters param options async beginCheckPrivateLinkServiceVisibilityByResourceGroupAndWait ( location , resourceGroupName , parameters , options ? ) { const poller = await this . beginCheckPrivateLinkServiceVisibilityByResourceGroup ( location , resourceGroupName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param location param options private _listAutoApprovedPrivateLinkServices ( location , options ? ) { return this . client . sendOperationRequest ( { location , options } , listAutoApprovedPrivateLinkServicesOperationSpec ) ; } param location param resourceGroupName param options private _listAutoApprovedPrivateLinkServicesByResourceGroup ( location , resourceGroupName , options ? ) { return this . client . sendOperationRequest ( { location , resourceGroupName , options } , listAutoApprovedPrivateLinkServicesByResourceGroupOperationSpec ) ; } param resourceGroupName param nextLink param options private _listNext ( resourceGroupName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , nextLink , options } , listNextOperationSpec ) ; } param nextLink param options private _listBySubscriptionNext ( nextLink , options ? ) { return this . client . sendOperationRequest ( { nextLink , options } , listBySubscriptionNextOperationSpec ) ; } param resourceGroupName param serviceName param nextLink param options private _listPrivateEndpointConnectionsNext ( resourceGroupName , serviceName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , serviceName , nextLink , options } , listPrivateEndpointConnectionsNextOperationSpec ) ; } param location param nextLink param options private _listAutoApprovedPrivateLinkServicesNext ( location , nextLink , options ? ) { return this . client . sendOperationRequest ( { location , nextLink , options } , listAutoApprovedPrivateLinkServicesNextOperationSpec ) ; } param location param resourceGroupName param nextLink param options private _listAutoApprovedPrivateLinkServicesByResourceGroupNext ( location , resourceGroupName , nextLink , options ? ) { return this . client . sendOperationRequest ( { location , resourceGroupName , nextLink , options } , listAutoApprovedPrivateLinkServicesByResourceGroupNextOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const deleteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}" , httpMethod : "DELETE" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . ErrorModel } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . serviceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const getOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateLinkService } , default : { bodyMapper : Mappers . ErrorModel } } , queryParameters : [ Parameters . apiVersion , Parameters . expand ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . serviceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const createOrUpdateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . PrivateLinkService } , 201 : { bodyMapper : Mappers . PrivateLinkService } , 202 : { bodyMapper : Mappers . PrivateLinkService } , 204 : { bodyMapper : Mappers . PrivateLinkService } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . parameters50 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . serviceName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const listOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateLinkServiceListResult } , default : { bodyMapper : Mappers . ErrorModel } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const listBySubscriptionOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateLinkServices" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateLinkServiceListResult } , default : { bodyMapper : Mappers . ErrorModel } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const getPrivateEndpointConnectionOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateEndpointConnection } , default : { bodyMapper : Mappers . ErrorModel } } , queryParameters : [ Parameters . apiVersion , Parameters . expand ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . serviceName , Parameters . peConnectionName ] , headerParameters : [ Parameters . accept ] , serializer } ; const updatePrivateEndpointConnectionOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . PrivateEndpointConnection } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . parameters51 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . serviceName , Parameters . peConnectionName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const deletePrivateEndpointConnectionOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}" , httpMethod : "DELETE" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . ErrorModel } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . serviceName , Parameters . peConnectionName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listPrivateEndpointConnectionsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateEndpointConnectionListResult } , default : { bodyMapper : Mappers . ErrorModel } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . serviceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const checkPrivateLinkServiceVisibilityOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . PrivateLinkServiceVisibility } , 201 : { bodyMapper : Mappers . PrivateLinkServiceVisibility } , 202 : { bodyMapper : Mappers . PrivateLinkServiceVisibility } , 204 : { bodyMapper : Mappers . PrivateLinkServiceVisibility } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters52 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . location ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const checkPrivateLinkServiceVisibilityByResourceGroupOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . PrivateLinkServiceVisibility } , 201 : { bodyMapper : Mappers . PrivateLinkServiceVisibility } , 202 : { bodyMapper : Mappers . PrivateLinkServiceVisibility } , 204 : { bodyMapper : Mappers . PrivateLinkServiceVisibility } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters52 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . location ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const listAutoApprovedPrivateLinkServicesOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . AutoApprovedPrivateLinkServicesResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . location ] , headerParameters : [ Parameters . accept ] , serializer } ; const listAutoApprovedPrivateLinkServicesByResourceGroupOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . AutoApprovedPrivateLinkServicesResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . location ] , headerParameters : [ Parameters . accept ] , serializer } ; const listNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateLinkServiceListResult } , default : { bodyMapper : Mappers . ErrorModel } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const listBySubscriptionNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateLinkServiceListResult } , default : { bodyMapper : Mappers . ErrorModel } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const listPrivateEndpointConnectionsNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateEndpointConnectionListResult } , default : { bodyMapper : Mappers . ErrorModel } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . nextLink , Parameters . serviceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listAutoApprovedPrivateLinkServicesNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . AutoApprovedPrivateLinkServicesResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . nextLink , Parameters . location ] , headerParameters : [ Parameters . accept ] , serializer } ; const listAutoApprovedPrivateLinkServicesByResourceGroupNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . AutoApprovedPrivateLinkServicesResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . nextLink , Parameters . location ] , headerParameters : [ Parameters . accept ] , serializer } ;