Microsoft.Azure.Commands.DataFactories.DataFactoryClient.CreateOrUpdatePipeline C# (CSharp) Method

CreateOrUpdatePipeline() public method

public CreateOrUpdatePipeline ( string resourceGroupName, string dataFactoryName, string pipelineName, string rawJsonContent ) : Microsoft.Azure.Management.DataFactories.Models.Pipeline
resourceGroupName string
dataFactoryName string
pipelineName string
rawJsonContent string
return Microsoft.Azure.Management.DataFactories.Models.Pipeline
        public virtual Pipeline CreateOrUpdatePipeline(string resourceGroupName, string dataFactoryName,
            string pipelineName, string rawJsonContent)
        {
            if (string.IsNullOrWhiteSpace(rawJsonContent))
            {
                throw new ArgumentNullException("rawJsonContent");
            }

            // If create failed, the current behavior is to throw
            var response =
                DataPipelineManagementClient.Pipelines.CreateOrUpdateWithRawJsonContent(
                    resourceGroupName,
                    dataFactoryName,
                    pipelineName,
                    new PipelineCreateOrUpdateWithRawJsonContentParameters() { Content = rawJsonContent });

            return response.Pipeline;
        }