/// <summary>
 /// Gets a list of all virtual machine image versions for the specified
 /// location, publisher, offer, and SKU.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The name of a supported Azure region.
 /// </param>
 /// <param name='publisherName'>
 /// A valid image publisher.
 /// </param>
 /// <param name='offer'>
 /// A valid image publisher offer.
 /// </param>
 /// <param name='skus'>
 /// A valid image SKU.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <VirtualMachineImageResource> > ListAsync(this IVirtualMachineImagesOperations operations, string location, string publisherName, string offer, string skus, ODataQuery <VirtualMachineImageResource> odataQuery = default(ODataQuery <VirtualMachineImageResource>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(location, publisherName, offer, skus, odataQuery, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets a list of all virtual machine image versions for the specified
 /// location, publisher, offer, and SKU.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The name of a supported Azure region.
 /// </param>
 /// <param name='publisherName'>
 /// A valid image publisher.
 /// </param>
 /// <param name='offer'>
 /// A valid image publisher offer.
 /// </param>
 /// <param name='skus'>
 /// A valid image SKU.
 /// </param>
 /// <param name='expand'>
 /// The expand expression to apply on the operation.
 /// </param>
 /// <param name='top'>
 /// </param>
 /// <param name='orderby'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <VirtualMachineImageResource> > ListAsync(this IVirtualMachineImagesOperations operations, string location, string publisherName, string offer, string skus, string expand = default(string), int?top = default(int?), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(location, publisherName, offer, skus, expand, top, orderby, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }