/// <summary>
 /// Lists managed private endpoints.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='factoryName'>
 /// The factory name.
 /// </param>
 /// <param name='managedVirtualNetworkName'>
 /// Managed virtual network name
 /// </param>
 public static IPage <ManagedPrivateEndpointResource> ListByFactory(this IManagedPrivateEndpointsOperations operations, string resourceGroupName, string factoryName, string managedVirtualNetworkName)
 {
     return(operations.ListByFactoryAsync(resourceGroupName, factoryName, managedVirtualNetworkName).GetAwaiter().GetResult());
 }