/// <summary> /// Submits a job to the specified Data Lake Analytics account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='accountName'> /// The Azure Data Lake Analytics account to execute job operations on. /// </param> /// <param name='jobIdentity'> /// Job identifier. Uniquely identifies the job across all jobs submitted to /// the service. /// </param> /// <param name='parameters'> /// The parameters to submit a job. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <JobInformation> CreateAsync(this IJobOperations operations, string accountName, System.Guid jobIdentity, CreateJobParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(accountName, jobIdentity, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Create a job of the runbook. /// <see href="http://aka.ms/azureautomationsdk/joboperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='jobName'> /// The job name. /// </param> /// <param name='parameters'> /// The parameters supplied to the create job operation. /// </param> /// <param name='clientRequestId'> /// Identifies this specific client request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Job> CreateAsync(this IJobOperations operations, string resourceGroupName, string automationAccountName, string jobName, JobCreateParameters parameters, string clientRequestId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobName, parameters, clientRequestId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }