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;
}