/// <summary> /// Create or update an input for a stream analytics job. The raw json /// content will be used. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.StreamAnalytics.IInputOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the stream analytics job. /// </param> /// <param name='jobName'> /// Required. The name of the stream analytics job. /// </param> /// <param name='inputName'> /// Required. The name of the input for the stream analytics job. /// </param> /// <param name='parameters'> /// Required. The parameters required to create or update an input for /// a stream analytics job. /// </param> /// <returns> /// The response of the input CreateOrUpdate operation. /// </returns> public static Task<InputCreateOrUpdateResponse> CreateOrUpdateWithRawJsonContentAsync(this IInputOperations operations, string resourceGroupName, string jobName, string inputName, InputCreateOrUpdateWithRawJsonContentParameters parameters) { return operations.CreateOrUpdateWithRawJsonContentAsync(resourceGroupName, jobName, inputName, parameters, CancellationToken.None); }
/// <summary> /// Create or update an input for a stream analytics job. The raw json /// content will be used. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.StreamAnalytics.IInputOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the stream analytics job. /// </param> /// <param name='jobName'> /// Required. The name of the stream analytics job. /// </param> /// <param name='inputName'> /// Required. The name of the input for the stream analytics job. /// </param> /// <param name='parameters'> /// Required. The parameters required to create or update an input for /// a stream analytics job. /// </param> /// <returns> /// The response of the input CreateOrUpdate operation. /// </returns> public static InputCreateOrUpdateResponse CreateOrUpdateWithRawJsonContent(this IInputOperations operations, string resourceGroupName, string jobName, string inputName, InputCreateOrUpdateWithRawJsonContentParameters parameters) { return Task.Factory.StartNew((object s) => { return ((IInputOperations)s).CreateOrUpdateWithRawJsonContentAsync(resourceGroupName, jobName, inputName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }