/// <summary>
 /// Returns the list of containers which can be migrated in the specified
 /// share.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Resource group name.
 /// </param>
 /// <param name='farmId'>
 /// Farm Id.
 /// </param>
 /// <param name='shareName'>
 /// Share name.
 /// </param>
 /// <param name='intent'>
 /// The container migration intent.
 /// </param>
 /// <param name='maxCount'>
 /// The maximum number of containers.
 /// </param>
 /// <param name='startIndex'>
 /// The starting index the resource provider uses.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <Container> > ListAsync(this IContainersOperations operations, string resourceGroupName, string farmId, string shareName, string intent, int?maxCount = default(int?), int?startIndex = default(int?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, farmId, shareName, intent, maxCount, startIndex, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }