/// <summary> /// Gets all images. /// </summary> /// <remarks> /// Gets all images from galleries attached to a lab plan. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='labPlanName'> /// The name of the lab plan that uniquely identifies it within containing /// resource group. Used in resource URIs and in UI. /// </param> /// <param name='filter'> /// The filter to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Image> > ListByLabPlanAsync(this IImagesOperations operations, string resourceGroupName, string labPlanName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByLabPlanWithHttpMessagesAsync(resourceGroupName, labPlanName, filter, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }