/// <summary> /// Delete an existing job, purging the related data from the system. Only /// jobs in the Creating or Completed states can be deleted. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='storageAccountName'> /// The name of the storage account where data will be imported to or exported /// from. /// </param> /// <param name='jobName'> /// The name of the import/export job. /// </param> /// <param name='ifModifiedSince'> /// A DateTime value. Specify this header to perform the operation only if the /// resource has been modified since the specified time /// </param> /// <param name='ifUnmodifiedSince'> /// A DateTime value. Specify this header to perform the operation only if the /// resource has not been modified since the specified date/time. /// </param> /// <param name='ifMatch'> /// An ETag value. Specify this header to perform the operation only if the /// resource's ETag matches the value specified. /// </param> /// <param name='ifNoneMatch'> /// An ETag value, or the wildcard character (*). Specify this header to /// perform the operation only if the resource's ETag does not match the /// value specified. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <int?> DeleteJobAsync(this IStorageImportExportLib operations, string storageAccountName, string jobName, string ifModifiedSince = default(string), string ifUnmodifiedSince = default(string), string ifMatch = default(string), string ifNoneMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteJobWithHttpMessagesAsync(storageAccountName, jobName, ifModifiedSince, ifUnmodifiedSince, ifMatch, ifNoneMatch, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }