public virtual PSJob CreateOrUpdatePSJob(string resourceGroupName, string jobName, string rawJsonContent)
{
if (string.IsNullOrWhiteSpace(rawJsonContent))
{
throw new ArgumentNullException("rawJsonContent");
}
// If create failed, the current behavior is to throw
var response =
StreamAnalyticsManagementClient.StreamingJobs.CreateOrUpdateWithRawJsonContent(
resourceGroupName,
jobName,
new JobCreateOrUpdateWithRawJsonContentParameters() { Content = rawJsonContent });
return new PSJob(response.Job)
{
ResourceGroupName = resourceGroupName,
JobName = jobName
};
}