예제 #1
0
 /// <summary>
 /// Sets the active period of a pipeline.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.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));
 }
 public async Task <AzureOperationResponse> SetActivePeriodAsync(
     string resourceGroupName,
     string dataFactoryName,
     string dataPipelineName,
     PipelineSetActivePeriodParameters parameters,
     CancellationToken cancellationToken)
 {
     return(await this.Client.InternalClient.Pipelines.SetActivePeriodAsync(
                resourceGroupName,
                dataFactoryName,
                dataPipelineName,
                parameters,
                cancellationToken));
 }
예제 #3
0
 /// <summary>
 /// Sets the active period of a pipeline.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.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>ume
 /// <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(
                s => ((IPipelineOperations)s).SetActivePeriodAsync(
                    resourceGroupName,
                    dataFactoryName,
                    dataPipelineName,
                    parameters),
                operations,
                CancellationToken.None,
                TaskCreationOptions.None,
                TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Sets the active period of a pipeline.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.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.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>ume
 /// <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(
             s => ((IPipelineOperations)s).SetActivePeriodAsync(
                 resourceGroupName,
                 dataFactoryName,
                 dataPipelineName,
                 parameters),
             operations,
             CancellationToken.None,
             TaskCreationOptions.None,
             TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }