public async Task <PipelineCreateOrUpdateResponse> CreateOrUpdateWithRawJsonContentAsync(
            string resourceGroupName,
            string dataFactoryName,
            string dataPipelineName,
            PipelineCreateOrUpdateWithRawJsonContentParameters parameters,
            CancellationToken cancellationToken)
        {
            var internalParameters =
                new Core.Models.PipelineCreateOrUpdateWithRawJsonContentParameters(parameters.Content);

            Core.Models.PipelineCreateOrUpdateResponse response =
                await this.Client.InternalClient.Pipelines.CreateOrUpdateWithRawJsonContentAsync(
                    resourceGroupName,
                    dataFactoryName,
                    dataPipelineName,
                    internalParameters,
                    cancellationToken);

            return(new PipelineCreateOrUpdateResponse(response, this.Client));
        }
 /// <summary>
 /// Create a new pipeline instance with raw json content.
 /// </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. A unique pipeline instance name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a pipeline.
 /// </param>
 /// <returns>
 /// The create or update pipeline operation response.
 /// </returns>
 public static Task<PipelineCreateOrUpdateResponse> CreateOrUpdateWithRawJsonContentAsync(this IPipelineOperations operations, string resourceGroupName, string dataFactoryName, string dataPipelineName, PipelineCreateOrUpdateWithRawJsonContentParameters parameters)
 {
     return operations.CreateOrUpdateWithRawJsonContentAsync(resourceGroupName, dataFactoryName, dataPipelineName, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Create a new pipeline instance with raw json content.
 /// </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. A unique pipeline instance name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a pipeline.
 /// </param>
 /// <returns>
 /// The create or update pipeline operation response.
 /// </returns>
 public static PipelineCreateOrUpdateResponse CreateOrUpdateWithRawJsonContent(this IPipelineOperations operations, string resourceGroupName, string dataFactoryName, string dataPipelineName, PipelineCreateOrUpdateWithRawJsonContentParameters parameters)
 {
     return Task.Factory.StartNew((object s) =>
     {
         return ((IPipelineOperations)s).CreateOrUpdateWithRawJsonContentAsync(resourceGroupName, dataFactoryName, dataPipelineName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }