/// <summary>
 /// Sets the active period of a pipeline.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.IPipelineOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. A unique data factory instance name.
 /// </param>
 /// <param name='dataPipelineName'>
 /// Required. Name of the data pipeline.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters required to set the active period of a
 /// pipeline.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task<AzureOperationResponse> SetActivePeriodAsync(this IPipelineOperations operations, string resourceGroupName, string dataFactoryName, string dataPipelineName, PipelineSetActivePeriodParameters parameters)
 {
     return operations.SetActivePeriodAsync(resourceGroupName, dataFactoryName, dataPipelineName, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Sets the active period of a pipeline.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.IPipelineOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. A unique data factory instance name.
 /// </param>
 /// <param name='dataPipelineName'>
 /// Required. Name of the data pipeline.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters required to set the active period of a
 /// pipeline.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static AzureOperationResponse SetActivePeriod(this IPipelineOperations operations, string resourceGroupName, string dataFactoryName, string dataPipelineName, PipelineSetActivePeriodParameters parameters)
 {
     return Task.Factory.StartNew((object s) =>
     {
         return ((IPipelineOperations)s).SetActivePeriodAsync(resourceGroupName, dataFactoryName, dataPipelineName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }