/// <summary>
 /// Gets all the network mappings under a vault.
 /// </summary>
 /// <remarks>
 /// Lists all ASR network mappings in the vault.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <NetworkMapping> > ListNextAsync(this IReplicationNetworkMappingsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Updates network mapping.
 /// </summary>
 /// <remarks>
 /// The operation to update an ASR network mapping.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Primary fabric name.
 /// </param>
 /// <param name='networkName'>
 /// Primary network name.
 /// </param>
 /// <param name='networkMappingName'>
 /// Network mapping name.
 /// </param>
 /// <param name='input'>
 /// Update network mapping input.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <NetworkMapping> BeginUpdateAsync(this IReplicationNetworkMappingsOperations operations, string fabricName, string networkName, string networkMappingName, UpdateNetworkMappingInput input, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(fabricName, networkName, networkMappingName, input, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets network mapping by name.
 /// </summary>
 /// <remarks>
 /// Gets the details of an ASR network mapping
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Primary fabric name.
 /// </param>
 /// <param name='networkName'>
 /// Primary network name.
 /// </param>
 /// <param name='networkMappingName'>
 /// Network mapping name.
 /// </param>
 public static NetworkMapping Get(this IReplicationNetworkMappingsOperations operations, string fabricName, string networkName, string networkMappingName)
 {
     return(operations.GetAsync(fabricName, networkName, networkMappingName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets all the network mappings under a vault.
 /// </summary>
 /// <remarks>
 /// Lists all ASR network mappings in the vault.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <NetworkMapping> ListNext(this IReplicationNetworkMappingsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Updates network mapping.
 /// </summary>
 /// <remarks>
 /// The operation to update an ASR network mapping.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Primary fabric name.
 /// </param>
 /// <param name='networkName'>
 /// Primary network name.
 /// </param>
 /// <param name='networkMappingName'>
 /// Network mapping name.
 /// </param>
 /// <param name='input'>
 /// Update network mapping input.
 /// </param>
 public static NetworkMapping BeginUpdate(this IReplicationNetworkMappingsOperations operations, string fabricName, string networkName, string networkMappingName, UpdateNetworkMappingInput input)
 {
     return(operations.BeginUpdateAsync(fabricName, networkName, networkMappingName, input).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Delete network mapping.
 /// </summary>
 /// <remarks>
 /// The operation to delete a network mapping.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Primary fabric name.
 /// </param>
 /// <param name='networkName'>
 /// Primary network name.
 /// </param>
 /// <param name='networkMappingName'>
 /// ARM Resource Name for network mapping.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IReplicationNetworkMappingsOperations operations, string fabricName, string networkName, string networkMappingName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(fabricName, networkName, networkMappingName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Delete network mapping.
 /// </summary>
 /// <remarks>
 /// The operation to delete a network mapping.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Primary fabric name.
 /// </param>
 /// <param name='networkName'>
 /// Primary network name.
 /// </param>
 /// <param name='networkMappingName'>
 /// ARM Resource Name for network mapping.
 /// </param>
 public static void BeginDelete(this IReplicationNetworkMappingsOperations operations, string fabricName, string networkName, string networkMappingName)
 {
     operations.BeginDeleteAsync(fabricName, networkName, networkMappingName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Gets all the network mappings under a network.
 /// </summary>
 /// <remarks>
 /// Lists all ASR network mappings for the specified network.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Primary fabric name.
 /// </param>
 /// <param name='networkName'>
 /// Primary network name.
 /// </param>
 public static IPage <NetworkMapping> ListByReplicationNetworks(this IReplicationNetworkMappingsOperations operations, string fabricName, string networkName)
 {
     return(operations.ListByReplicationNetworksAsync(fabricName, networkName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets all the network mappings under a vault.
 /// </summary>
 /// <remarks>
 /// Lists all ASR network mappings in the vault.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <NetworkMapping> List(this IReplicationNetworkMappingsOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }