/// <summary>
 /// List active and completed jobs for a storage account in a subscription
 /// </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='type'>
 /// Indicates whether this is an import job or an export job. . Possible
 /// values include: 'Import', 'Export'
 /// </param>
 /// <param name='fromParameter'>
 /// Specifies that only jobs created at the specified time or later should be
 /// returned.
 /// </param>
 /// <param name='to'>
 /// Specifies that only jobs created at the specified time or earlier should
 /// be returned.
 /// </param>
 /// <param name='states'>
 /// Optional. Specifies that only jobs whose state matches the specified value
 /// should be returned. Valid values are Creating, Shipping, Transferring,
 /// Packaging, and Completed. Values are case-sensitive. To specify multiple
 /// states, separate values with a comma, without spaces.
 /// </param>
 /// <param name='top'>
 /// An integer value that specifies how many jobs should be returned.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ListJobsResponse> ListJobsAsync(this IStorageImportExportLib operations, string storageAccountName, JobType?type = default(JobType?), string fromParameter = default(string), string to = default(string), string states = default(string), int?top = default(int?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListJobsWithHttpMessagesAsync(storageAccountName, type, fromParameter, to, states, top, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }