/// <summary> /// Terminates a job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentName'> /// The name of the experiment. Experiment names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='jobName'> /// The name of the job within the specified resource group. Job names can only /// contain a combination of alphanumeric characters along with dash (-) and /// underscore (_). The name must be from 1 through 64 characters long. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginTerminateAsync(this IJobsOperations operations, string resourceGroupName, string workspaceName, string experimentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginTerminateWithHttpMessagesAsync(resourceGroupName, workspaceName, experimentName, jobName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }