import { PagedAsyncIterableIterator } from "@azure/core-paging" ; import { NetworkInterfaces } 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 { NetworkInterface , NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesNextOptionalParams , NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesOptionalParams , NetworkInterfacesListCloudServiceNetworkInterfacesNextOptionalParams , NetworkInterfacesListCloudServiceNetworkInterfacesOptionalParams , NetworkInterfacesListAllNextOptionalParams , NetworkInterfacesListAllOptionalParams , NetworkInterfacesListNextOptionalParams , NetworkInterfacesListOptionalParams , NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesNextOptionalParams , NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesOptionalParams , NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesNextOptionalParams , NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesOptionalParams , NetworkInterfaceIPConfiguration , NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsNextOptionalParams , NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsOptionalParams , NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesResponse , NetworkInterfacesListCloudServiceNetworkInterfacesResponse , NetworkInterfacesGetCloudServiceNetworkInterfaceOptionalParams , NetworkInterfacesGetCloudServiceNetworkInterfaceResponse , NetworkInterfacesDeleteOptionalParams , NetworkInterfacesGetOptionalParams , NetworkInterfacesGetResponse , NetworkInterfacesCreateOrUpdateOptionalParams , NetworkInterfacesCreateOrUpdateResponse , TagsObject , NetworkInterfacesUpdateTagsOptionalParams , NetworkInterfacesUpdateTagsResponse , NetworkInterfacesListAllResponse , NetworkInterfacesListResponse , NetworkInterfacesGetEffectiveRouteTableOptionalParams , NetworkInterfacesGetEffectiveRouteTableResponse , NetworkInterfacesListEffectiveNetworkSecurityGroupsOptionalParams , NetworkInterfacesListEffectiveNetworkSecurityGroupsResponse , NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesResponse , NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesResponse , NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceOptionalParams , NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceResponse , NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsResponse , NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationOptionalParams , NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationResponse , NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesNextResponse , NetworkInterfacesListCloudServiceNetworkInterfacesNextResponse , NetworkInterfacesListAllNextResponse , NetworkInterfacesListNextResponse , NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesNextResponse , NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesNextResponse , NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsNextResponse } from "../models" ; /** Class containing NetworkInterfaces operations. */ export class NetworkInterfacesImpl implements NetworkInterfaces { private readonly client : NetworkManagementClient ; param client constructor ( client ) { this . client = client ; } param resourceGroupName param cloudServiceName param roleInstanceName param options public listCloudServiceRoleInstanceNetworkInterfaces ( resourceGroupName , cloudServiceName , roleInstanceName , options ? ) { const iter = this . listCloudServiceRoleInstanceNetworkInterfacesPagingAll ( resourceGroupName , cloudServiceName , roleInstanceName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listCloudServiceRoleInstanceNetworkInterfacesPagingPage ( resourceGroupName , cloudServiceName , roleInstanceName , options ) ; } } ; } private async * listCloudServiceRoleInstanceNetworkInterfacesPagingPage ( resourceGroupName , cloudServiceName , roleInstanceName , options ? ) { let result = await this . _listCloudServiceRoleInstanceNetworkInterfaces ( resourceGroupName , cloudServiceName , roleInstanceName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listCloudServiceRoleInstanceNetworkInterfacesNext ( resourceGroupName , cloudServiceName , roleInstanceName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listCloudServiceRoleInstanceNetworkInterfacesPagingAll ( resourceGroupName , cloudServiceName , roleInstanceName , options ? ) { for await ( const page of this . listCloudServiceRoleInstanceNetworkInterfacesPagingPage ( resourceGroupName , cloudServiceName , roleInstanceName , options ) ) { yield * page ; } } param resourceGroupName param cloudServiceName param options public listCloudServiceNetworkInterfaces ( resourceGroupName , cloudServiceName , options ? ) { const iter = this . listCloudServiceNetworkInterfacesPagingAll ( resourceGroupName , cloudServiceName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listCloudServiceNetworkInterfacesPagingPage ( resourceGroupName , cloudServiceName , options ) ; } } ; } private async * listCloudServiceNetworkInterfacesPagingPage ( resourceGroupName , cloudServiceName , options ? ) { let result = await this . _listCloudServiceNetworkInterfaces ( resourceGroupName , cloudServiceName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listCloudServiceNetworkInterfacesNext ( resourceGroupName , cloudServiceName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listCloudServiceNetworkInterfacesPagingAll ( resourceGroupName , cloudServiceName , options ? ) { for await ( const page of this . listCloudServiceNetworkInterfacesPagingPage ( resourceGroupName , cloudServiceName , 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 || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listAllNext ( continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listAllPagingAll ( options ? ) { for await ( const page of this . listAllPagingPage ( options ) ) { yield * page ; } } 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 resourceGroupName param virtualMachineScaleSetName param virtualmachineIndex param options public listVirtualMachineScaleSetVMNetworkInterfaces ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , options ? ) { const iter = this . listVirtualMachineScaleSetVMNetworkInterfacesPagingAll ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listVirtualMachineScaleSetVMNetworkInterfacesPagingPage ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , options ) ; } } ; } private async * listVirtualMachineScaleSetVMNetworkInterfacesPagingPage ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , options ? ) { let result = await this . _listVirtualMachineScaleSetVMNetworkInterfaces ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listVirtualMachineScaleSetVMNetworkInterfacesNext ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listVirtualMachineScaleSetVMNetworkInterfacesPagingAll ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , options ? ) { for await ( const page of this . listVirtualMachineScaleSetVMNetworkInterfacesPagingPage ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , options ) ) { yield * page ; } } param resourceGroupName param virtualMachineScaleSetName param options public listVirtualMachineScaleSetNetworkInterfaces ( resourceGroupName , virtualMachineScaleSetName , options ? ) { const iter = this . listVirtualMachineScaleSetNetworkInterfacesPagingAll ( resourceGroupName , virtualMachineScaleSetName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listVirtualMachineScaleSetNetworkInterfacesPagingPage ( resourceGroupName , virtualMachineScaleSetName , options ) ; } } ; } private async * listVirtualMachineScaleSetNetworkInterfacesPagingPage ( resourceGroupName , virtualMachineScaleSetName , options ? ) { let result = await this . _listVirtualMachineScaleSetNetworkInterfaces ( resourceGroupName , virtualMachineScaleSetName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listVirtualMachineScaleSetNetworkInterfacesNext ( resourceGroupName , virtualMachineScaleSetName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listVirtualMachineScaleSetNetworkInterfacesPagingAll ( resourceGroupName , virtualMachineScaleSetName , options ? ) { for await ( const page of this . listVirtualMachineScaleSetNetworkInterfacesPagingPage ( resourceGroupName , virtualMachineScaleSetName , options ) ) { yield * page ; } } param resourceGroupName param virtualMachineScaleSetName param virtualmachineIndex param networkInterfaceName param options public listVirtualMachineScaleSetIpConfigurations ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , options ? ) { const iter = this . listVirtualMachineScaleSetIpConfigurationsPagingAll ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listVirtualMachineScaleSetIpConfigurationsPagingPage ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , options ) ; } } ; } private async * listVirtualMachineScaleSetIpConfigurationsPagingPage ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , options ? ) { let result = await this . _listVirtualMachineScaleSetIpConfigurations ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listVirtualMachineScaleSetIpConfigurationsNext ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listVirtualMachineScaleSetIpConfigurationsPagingAll ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , options ? ) { for await ( const page of this . listVirtualMachineScaleSetIpConfigurationsPagingPage ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , options ) ) { yield * page ; } } param resourceGroupName param cloudServiceName param roleInstanceName param options private _listCloudServiceRoleInstanceNetworkInterfaces ( resourceGroupName , cloudServiceName , roleInstanceName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , cloudServiceName , roleInstanceName , options } , listCloudServiceRoleInstanceNetworkInterfacesOperationSpec ) ; } param resourceGroupName param cloudServiceName param options private _listCloudServiceNetworkInterfaces ( resourceGroupName , cloudServiceName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , cloudServiceName , options } , listCloudServiceNetworkInterfacesOperationSpec ) ; } param resourceGroupName param cloudServiceName param roleInstanceName param networkInterfaceName param options getCloudServiceNetworkInterface ( resourceGroupName , cloudServiceName , roleInstanceName , networkInterfaceName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , cloudServiceName , roleInstanceName , networkInterfaceName , options } , getCloudServiceNetworkInterfaceOperationSpec ) ; } param resourceGroupName param networkInterfaceName param options async beginDelete ( resourceGroupName , networkInterfaceName , 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 , networkInterfaceName , options } , deleteOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkInterfaceName param options async beginDeleteAndWait ( resourceGroupName , networkInterfaceName , options ? ) { const poller = await this . beginDelete ( resourceGroupName , networkInterfaceName , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkInterfaceName param options get ( resourceGroupName , networkInterfaceName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , networkInterfaceName , options } , getOperationSpec ) ; } param resourceGroupName param networkInterfaceName param parameters param options async beginCreateOrUpdate ( resourceGroupName , networkInterfaceName , parameters , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkInterfacesCreateOrUpdateResponse > => { 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 , networkInterfaceName , parameters , options } , createOrUpdateOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "azure-async-operation" } ) ; } param resourceGroupName param networkInterfaceName param parameters param options async beginCreateOrUpdateAndWait ( resourceGroupName , networkInterfaceName , parameters , options ? ) { const poller = await this . beginCreateOrUpdate ( resourceGroupName , networkInterfaceName , parameters , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkInterfaceName param parameters param options updateTags ( resourceGroupName , networkInterfaceName , parameters , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , networkInterfaceName , parameters , options } , updateTagsOperationSpec ) ; } param options private _listAll ( options ? ) { return this . client . sendOperationRequest ( { options } , listAllOperationSpec ) ; } param resourceGroupName param options private _list ( resourceGroupName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , options } , listOperationSpec ) ; } param resourceGroupName param networkInterfaceName param options async beginGetEffectiveRouteTable ( resourceGroupName , networkInterfaceName , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkInterfacesGetEffectiveRouteTableResponse > => { 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 , networkInterfaceName , options } , getEffectiveRouteTableOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkInterfaceName param options async beginGetEffectiveRouteTableAndWait ( resourceGroupName , networkInterfaceName , options ? ) { const poller = await this . beginGetEffectiveRouteTable ( resourceGroupName , networkInterfaceName , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param networkInterfaceName param options async beginListEffectiveNetworkSecurityGroups ( resourceGroupName , networkInterfaceName , options ? ) { const directSendOperation = async ( args , spec ) : Promise < NetworkInterfacesListEffectiveNetworkSecurityGroupsResponse > => { 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 , networkInterfaceName , options } , listEffectiveNetworkSecurityGroupsOperationSpec ) ; return new LroEngine ( lro , { resumeFrom : options ?. resumeFrom , intervalInMs : options ?. updateIntervalInMs , lroResourceLocationConfig : "location" } ) ; } param resourceGroupName param networkInterfaceName param options async beginListEffectiveNetworkSecurityGroupsAndWait ( resourceGroupName , networkInterfaceName , options ? ) { const poller = await this . beginListEffectiveNetworkSecurityGroups ( resourceGroupName , networkInterfaceName , options ) ; return poller . pollUntilDone ( ) ; } param resourceGroupName param virtualMachineScaleSetName param virtualmachineIndex param options private _listVirtualMachineScaleSetVMNetworkInterfaces ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , options } , listVirtualMachineScaleSetVMNetworkInterfacesOperationSpec ) ; } param resourceGroupName param virtualMachineScaleSetName param options private _listVirtualMachineScaleSetNetworkInterfaces ( resourceGroupName , virtualMachineScaleSetName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , virtualMachineScaleSetName , options } , listVirtualMachineScaleSetNetworkInterfacesOperationSpec ) ; } param resourceGroupName param virtualMachineScaleSetName param virtualmachineIndex param networkInterfaceName param options getVirtualMachineScaleSetNetworkInterface ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , options } , getVirtualMachineScaleSetNetworkInterfaceOperationSpec ) ; } param resourceGroupName param virtualMachineScaleSetName param virtualmachineIndex param networkInterfaceName param options private _listVirtualMachineScaleSetIpConfigurations ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , options } , listVirtualMachineScaleSetIpConfigurationsOperationSpec ) ; } param resourceGroupName param virtualMachineScaleSetName param virtualmachineIndex param networkInterfaceName param ipConfigurationName param options getVirtualMachineScaleSetIpConfiguration ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , ipConfigurationName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , ipConfigurationName , options } , getVirtualMachineScaleSetIpConfigurationOperationSpec ) ; } param resourceGroupName param cloudServiceName param roleInstanceName param nextLink param options private _listCloudServiceRoleInstanceNetworkInterfacesNext ( resourceGroupName , cloudServiceName , roleInstanceName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , cloudServiceName , roleInstanceName , nextLink , options } , listCloudServiceRoleInstanceNetworkInterfacesNextOperationSpec ) ; } param resourceGroupName param cloudServiceName param nextLink param options private _listCloudServiceNetworkInterfacesNext ( resourceGroupName , cloudServiceName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , cloudServiceName , nextLink , options } , listCloudServiceNetworkInterfacesNextOperationSpec ) ; } param nextLink param options private _listAllNext ( nextLink , options ? ) { return this . client . sendOperationRequest ( { nextLink , options } , listAllNextOperationSpec ) ; } param resourceGroupName param nextLink param options private _listNext ( resourceGroupName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , nextLink , options } , listNextOperationSpec ) ; } param resourceGroupName param virtualMachineScaleSetName param virtualmachineIndex param nextLink param options private _listVirtualMachineScaleSetVMNetworkInterfacesNext ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , nextLink , options } , listVirtualMachineScaleSetVMNetworkInterfacesNextOperationSpec ) ; } param resourceGroupName param virtualMachineScaleSetName param nextLink param options private _listVirtualMachineScaleSetNetworkInterfacesNext ( resourceGroupName , virtualMachineScaleSetName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , virtualMachineScaleSetName , nextLink , options } , listVirtualMachineScaleSetNetworkInterfacesNextOperationSpec ) ; } param resourceGroupName param virtualMachineScaleSetName param virtualmachineIndex param networkInterfaceName param nextLink param options private _listVirtualMachineScaleSetIpConfigurationsNext ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName , nextLink , options } , listVirtualMachineScaleSetIpConfigurationsNextOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const listCloudServiceRoleInstanceNetworkInterfacesOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . cloudServiceName , Parameters . roleInstanceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listCloudServiceNetworkInterfacesOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/networkInterfaces" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . cloudServiceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const getCloudServiceNetworkInterfaceOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterface } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion , Parameters . expand ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . cloudServiceName , Parameters . roleInstanceName , Parameters . networkInterfaceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const deleteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}" , httpMethod : "DELETE" , responses : { 200 : { } , 201 : { } , 202 : { } , 204 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkInterfaceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const getOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterface } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion , Parameters . expand ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkInterfaceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const createOrUpdateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . NetworkInterface } , 201 : { bodyMapper : Mappers . NetworkInterface } , 202 : { bodyMapper : Mappers . NetworkInterface } , 204 : { bodyMapper : Mappers . NetworkInterface } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters6 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkInterfaceName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const updateTagsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}" , httpMethod : "PATCH" , responses : { 200 : { bodyMapper : Mappers . NetworkInterface } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . parameters1 , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkInterfaceName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const listAllOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const listOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const getEffectiveRouteTableOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . EffectiveRouteListResult } , 201 : { bodyMapper : Mappers . EffectiveRouteListResult } , 202 : { bodyMapper : Mappers . EffectiveRouteListResult } , 204 : { bodyMapper : Mappers . EffectiveRouteListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkInterfaceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listEffectiveNetworkSecurityGroupsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . EffectiveNetworkSecurityGroupListResult } , 201 : { bodyMapper : Mappers . EffectiveNetworkSecurityGroupListResult } , 202 : { bodyMapper : Mappers . EffectiveNetworkSecurityGroupListResult } , 204 : { bodyMapper : Mappers . EffectiveNetworkSecurityGroupListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkInterfaceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listVirtualMachineScaleSetVMNetworkInterfacesOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion1 ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . virtualMachineScaleSetName , Parameters . virtualmachineIndex ] , headerParameters : [ Parameters . accept ] , serializer } ; const listVirtualMachineScaleSetNetworkInterfacesOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion1 ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . virtualMachineScaleSetName ] , headerParameters : [ Parameters . accept ] , serializer } ; const getVirtualMachineScaleSetNetworkInterfaceOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterface } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . expand , Parameters . apiVersion1 ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkInterfaceName , Parameters . virtualMachineScaleSetName , Parameters . virtualmachineIndex ] , headerParameters : [ Parameters . accept ] , serializer } ; const listVirtualMachineScaleSetIpConfigurationsOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceIPConfigurationListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . expand , Parameters . apiVersion1 ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkInterfaceName , Parameters . virtualMachineScaleSetName , Parameters . virtualmachineIndex ] , headerParameters : [ Parameters . accept ] , serializer } ; const getVirtualMachineScaleSetIpConfigurationOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceIPConfiguration } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . expand , Parameters . apiVersion1 ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . networkInterfaceName , Parameters . virtualMachineScaleSetName , Parameters . virtualmachineIndex , Parameters . ipConfigurationName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listCloudServiceRoleInstanceNetworkInterfacesNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . nextLink , Parameters . cloudServiceName , Parameters . roleInstanceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listCloudServiceNetworkInterfacesNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . nextLink , Parameters . cloudServiceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listAllNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const listNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const listVirtualMachineScaleSetVMNetworkInterfacesNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion1 ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . nextLink , Parameters . virtualMachineScaleSetName , Parameters . virtualmachineIndex ] , headerParameters : [ Parameters . accept ] , serializer } ; const listVirtualMachineScaleSetNetworkInterfacesNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion1 ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . nextLink , Parameters . virtualMachineScaleSetName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listVirtualMachineScaleSetIpConfigurationsNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . NetworkInterfaceIPConfigurationListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . expand , Parameters . apiVersion1 ] , urlParameters : [ Parameters . $host , Parameters . resourceGroupName , Parameters . subscriptionId , Parameters . nextLink , Parameters . networkInterfaceName , Parameters . virtualMachineScaleSetName , Parameters . virtualmachineIndex ] , headerParameters : [ Parameters . accept ] , serializer } ;