import { PagedAsyncIterableIterator } from "@azure/core-paging" ; import { NetworkWatchers } 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 { NetworkWatcher , NetworkWatchersListOptionalParams , NetworkWatchersListAllOptionalParams , NetworkWatchersCreateOrUpdateOptionalParams , NetworkWatchersCreateOrUpdateResponse , NetworkWatchersGetOptionalParams , NetworkWatchersGetResponse , NetworkWatchersDeleteOptionalParams , TagsObject , NetworkWatchersUpdateTagsOptionalParams , NetworkWatchersUpdateTagsResponse , NetworkWatchersListResponse , NetworkWatchersListAllResponse , TopologyParameters , NetworkWatchersGetTopologyOptionalParams , NetworkWatchersGetTopologyResponse , VerificationIPFlowParameters , NetworkWatchersVerifyIPFlowOptionalParams , NetworkWatchersVerifyIPFlowResponse , NextHopParameters , NetworkWatchersGetNextHopOptionalParams , NetworkWatchersGetNextHopResponse , SecurityGroupViewParameters , NetworkWatchersGetVMSecurityRulesOptionalParams , NetworkWatchersGetVMSecurityRulesResponse , TroubleshootingParameters , NetworkWatchersGetTroubleshootingOptionalParams , NetworkWatchersGetTroubleshootingResponse , QueryTroubleshootingParameters , NetworkWatchersGetTroubleshootingResultOptionalParams , NetworkWatchersGetTroubleshootingResultResponse , FlowLogInformation , NetworkWatchersSetFlowLogConfigurationOptionalParams , NetworkWatchersSetFlowLogConfigurationResponse , FlowLogStatusParameters , NetworkWatchersGetFlowLogStatusOptionalParams , NetworkWatchersGetFlowLogStatusResponse , ConnectivityParameters , NetworkWatchersCheckConnectivityOptionalParams , NetworkWatchersCheckConnectivityResponse , AzureReachabilityReportParameters , NetworkWatchersGetAzureReachabilityReportOptionalParams , NetworkWatchersGetAzureReachabilityReportResponse , AvailableProvidersListParameters , NetworkWatchersListAvailableProvidersOptionalParams , NetworkWatchersListAvailableProvidersResponse , NetworkConfigurationDiagnosticParameters , NetworkWatchersGetNetworkConfigurationDiagnosticOptionalParams , NetworkWatchersGetNetworkConfigurationDiagnosticResponse } from "../models" ; /** Class containing NetworkWatchers operations. */ export class NetworkWatchersImpl implements NetworkWatchers { 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 || [ ] ; } private async * listPagingAll ( resourceGroupName , options ? ) { for await ( const page of this . listPagingPage ( resourceGroupName , options ) ) { yield * page ; } } param options public listAll ( options ? ) { const iter = this . listAllPagingAll ( options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listAllPagingPage ( options ) ; } } ; } private async * listAllPagingPage ( options ? ) { let result = await this . _listAll ( options ) ; yield result . value || [ ] ; } private async * listAllPagingAll ( options ? ) { for await ( const page of this . listAllPagingPage ( options ) ) { yield * page ; } } param resourceGroupName param networkWatcherName param parameters param options createOrUpdate ( resourceGroupName , networkWatcherName , parameters , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , networkWatcherName , parameters , options } , createOrUpdateOperationSpec ) ; } param resourceGroupName param networkWatcherName param options get ( resourceGroupName , networkWatcherName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , networkWatcherName , options } , getOperationSpec ) ; } param resourceGroupName param networkWatcherName param options async beginDelete ( resourceGroupName , networkWatcherName , 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 , networkWatcherName , options } , deleteOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkWatcherName param options async beginDeleteAndWait ( resourceGroupName , networkWatcherName , options ? ) { const poller = await this . beginDelete ( resourceGroupName , networkWatcherName , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkWatcherName param parameters param options updateTags ( resourceGroupName , networkWatcherName , parameters , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , networkWatcherName , parameters , options } , updateTagsOperationSpec ) ; } param resourceGroupName param options private _list ( resourceGroupName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , options } , listOperationSpec ) ; } param options private _listAll ( options ? ) { return this . client . sendOperationRequest ( { options } , listAllOperationSpec ) ; } param resourceGroupName param networkWatcherName param parameters param options getTopology ( resourceGroupName , networkWatcherName , parameters , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , networkWatcherName , parameters , options } , getTopologyOperationSpec ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginVerifyIPFlow ( resourceGroupName , networkWatcherName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkWatchersVerifyIPFlowResponse > => { 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 , networkWatcherName , parameters , options } , verifyIPFlowOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginVerifyIPFlowAndWait ( resourceGroupName , networkWatcherName , parameters , options ? ) { const poller = await this . beginVerifyIPFlow ( resourceGroupName , networkWatcherName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetNextHop ( resourceGroupName , networkWatcherName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkWatchersGetNextHopResponse > => { 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 , networkWatcherName , parameters , options } , getNextHopOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetNextHopAndWait ( resourceGroupName , networkWatcherName , parameters , options ? ) { const poller = await this . beginGetNextHop ( resourceGroupName , networkWatcherName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetVMSecurityRules ( resourceGroupName , networkWatcherName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkWatchersGetVMSecurityRulesResponse > => { 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 , networkWatcherName , parameters , options } , getVMSecurityRulesOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetVMSecurityRulesAndWait ( resourceGroupName , networkWatcherName , parameters , options ? ) { const poller = await this . beginGetVMSecurityRules ( resourceGroupName , networkWatcherName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetTroubleshooting ( resourceGroupName , networkWatcherName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkWatchersGetTroubleshootingResponse > => { 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 , networkWatcherName , parameters , options } , getTroubleshootingOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetTroubleshootingAndWait ( resourceGroupName , networkWatcherName , parameters , options ? ) { const poller = await this . beginGetTroubleshooting ( resourceGroupName , networkWatcherName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetTroubleshootingResult ( resourceGroupName , networkWatcherName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkWatchersGetTroubleshootingResultResponse > => { 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 , networkWatcherName , parameters , options } , getTroubleshootingResultOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetTroubleshootingResultAndWait ( resourceGroupName , networkWatcherName , parameters , options ? ) { const poller = await this . beginGetTroubleshootingResult ( resourceGroupName , networkWatcherName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginSetFlowLogConfiguration ( resourceGroupName , networkWatcherName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkWatchersSetFlowLogConfigurationResponse > => { 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 , networkWatcherName , parameters , options } , setFlowLogConfigurationOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginSetFlowLogConfigurationAndWait ( resourceGroupName , networkWatcherName , parameters , options ? ) { const poller = await this . beginSetFlowLogConfiguration ( resourceGroupName , networkWatcherName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetFlowLogStatus ( resourceGroupName , networkWatcherName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkWatchersGetFlowLogStatusResponse > => { 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 , networkWatcherName , parameters , options } , getFlowLogStatusOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetFlowLogStatusAndWait ( resourceGroupName , networkWatcherName , parameters , options ? ) { const poller = await this . beginGetFlowLogStatus ( resourceGroupName , networkWatcherName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginCheckConnectivity ( resourceGroupName , networkWatcherName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkWatchersCheckConnectivityResponse > => { 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 , networkWatcherName , parameters , options } , checkConnectivityOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginCheckConnectivityAndWait ( resourceGroupName , networkWatcherName , parameters , options ? ) { const poller = await this . beginCheckConnectivity ( resourceGroupName , networkWatcherName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetAzureReachabilityReport ( resourceGroupName , networkWatcherName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkWatchersGetAzureReachabilityReportResponse > => { 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 , networkWatcherName , parameters , options } , getAzureReachabilityReportOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetAzureReachabilityReportAndWait ( resourceGroupName , networkWatcherName , parameters , options ? ) { const poller = await this . beginGetAzureReachabilityReport ( resourceGroupName , networkWatcherName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginListAvailableProviders ( resourceGroupName , networkWatcherName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkWatchersListAvailableProvidersResponse > => { 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 , networkWatcherName , parameters , options } , listAvailableProvidersOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginListAvailableProvidersAndWait ( resourceGroupName , networkWatcherName , parameters , options ? ) { const poller = await this . beginListAvailableProviders ( resourceGroupName , networkWatcherName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetNetworkConfigurationDiagnostic ( resourceGroupName , networkWatcherName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkWatchersGetNetworkConfigurationDiagnosticResponse > => { 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 , networkWatcherName , parameters , options } , getNetworkConfigurationDiagnosticOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkWatcherName param parameters param options async beginGetNetworkConfigurationDiagnosticAndWait ( resourceGroupName , networkWatcherName , parameters , options ? ) { const poller = await this . beginGetNetworkConfigurationDiagnostic ( resourceGroupName , networkWatcherName , parameters , options ) ; return poller . pollUntilDone ( ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const createOrUpdateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . NetworkWatcher } , 201 : { bodyMapper : Mappers . NetworkWatcher } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters32 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkWatcher } , default : { bodyMapper : Mappers . ErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept ] , serializer } ; const deleteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}" , httpMethod : "DELETE" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . ErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept ] , serializer } ; const updateTagsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}" , httpMethod : "PATCH" , responses : { 200 : { bodyMapper : Mappers . NetworkWatcher } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters1 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const listOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkWatcherListResult } , default : { bodyMapper : Mappers . ErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const listAllOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkWatcherListResult } , default : { bodyMapper : Mappers . ErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const getTopologyOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/topology" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . Topology } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters33 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const verifyIPFlowOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . VerificationIPFlowResult } , 201 : { bodyMapper : Mappers . VerificationIPFlowResult } , 202 : { bodyMapper : Mappers . VerificationIPFlowResult } , 204 : { bodyMapper : Mappers . VerificationIPFlowResult } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters34 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getNextHopOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/nextHop" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . NextHopResult } , 201 : { bodyMapper : Mappers . NextHopResult } , 202 : { bodyMapper : Mappers . NextHopResult } , 204 : { bodyMapper : Mappers . NextHopResult } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters35 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getVMSecurityRulesOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . SecurityGroupViewResult } , 201 : { bodyMapper : Mappers . SecurityGroupViewResult } , 202 : { bodyMapper : Mappers . SecurityGroupViewResult } , 204 : { bodyMapper : Mappers . SecurityGroupViewResult } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters36 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getTroubleshootingOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . TroubleshootingResult } , 201 : { bodyMapper : Mappers . TroubleshootingResult } , 202 : { bodyMapper : Mappers . TroubleshootingResult } , 204 : { bodyMapper : Mappers . TroubleshootingResult } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters37 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getTroubleshootingResultOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryTroubleshootResult" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . TroubleshootingResult } , 201 : { bodyMapper : Mappers . TroubleshootingResult } , 202 : { bodyMapper : Mappers . TroubleshootingResult } , 204 : { bodyMapper : Mappers . TroubleshootingResult } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters38 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const setFlowLogConfigurationOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . FlowLogInformation } , 201 : { bodyMapper : Mappers . FlowLogInformation } , 202 : { bodyMapper : Mappers . FlowLogInformation } , 204 : { bodyMapper : Mappers . FlowLogInformation } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters39 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getFlowLogStatusOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . FlowLogInformation } , 201 : { bodyMapper : Mappers . FlowLogInformation } , 202 : { bodyMapper : Mappers . FlowLogInformation } , 204 : { bodyMapper : Mappers . FlowLogInformation } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters40 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const checkConnectivityOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectivityCheck" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . ConnectivityInformation } , 201 : { bodyMapper : Mappers . ConnectivityInformation } , 202 : { bodyMapper : Mappers . ConnectivityInformation } , 204 : { bodyMapper : Mappers . ConnectivityInformation } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters41 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getAzureReachabilityReportOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/azureReachabilityReport" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . AzureReachabilityReport } , 201 : { bodyMapper : Mappers . AzureReachabilityReport } , 202 : { bodyMapper : Mappers . AzureReachabilityReport } , 204 : { bodyMapper : Mappers . AzureReachabilityReport } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters42 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const listAvailableProvidersOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/availableProvidersList" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . AvailableProvidersList } , 201 : { bodyMapper : Mappers . AvailableProvidersList } , 202 : { bodyMapper : Mappers . AvailableProvidersList } , 204 : { bodyMapper : Mappers . AvailableProvidersList } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters43 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getNetworkConfigurationDiagnosticOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/networkConfigurationDiagnostic" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . NetworkConfigurationDiagnosticResponse } , 201 : { bodyMapper : Mappers . NetworkConfigurationDiagnosticResponse } , 202 : { bodyMapper : Mappers . NetworkConfigurationDiagnosticResponse } , 204 : { bodyMapper : Mappers . NetworkConfigurationDiagnosticResponse } , default : { bodyMapper : Mappers . ErrorResponse } } , requestBody : Parameters . parameters44 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkWatcherName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ;