public virtual Hub CreateOrUpdateHub(
string resourceGroupName,
string dataFactoryName,
string hubName,
string rawJsonContent)
{
if (string.IsNullOrWhiteSpace(rawJsonContent))
{
throw new ArgumentNullException("rawJsonContent");
}
// If create or update failed, the current behavior is to throw
var response = DataPipelineManagementClient.Hubs.CreateOrUpdateWithRawJsonContent(
resourceGroupName,
dataFactoryName,
hubName,
new HubCreateOrUpdateWithRawJsonContentParameters() { Content = rawJsonContent });
return response.Hub;
}