/// <summary> /// Kill a statement within a session. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='sessionId'> /// Identifier for the session. /// </param> /// <param name='statementId'> /// Identifier for the statement. /// </param> /// <param name='requestedBy'> /// Add default value for X-Requested-By in header. /// </param> public static SparkStatementCancellationResult DeleteSparkStatementJob(this IJobOperations operations, int sessionId, int statementId, string requestedBy = "ambari") { return(operations.DeleteSparkStatementJobAsync(sessionId, statementId, requestedBy).GetAwaiter().GetResult()); }