/// <summary> /// Lists eligible SKUs for a PowerBI Dedicated resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the Azure Resource group of which a given PowerBIDedicated /// capacity is part. This name must be at least 1 character in length, and no /// more than 90. /// </param> /// <param name='dedicatedCapacityName'> /// The name of the Dedicated capacity. It must be at least 3 characters in /// length, and no more than 63. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SkuEnumerationForExistingResourceResult> ListSkusForCapacityAsync(this ICapacitiesOperations operations, string resourceGroupName, string dedicatedCapacityName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListSkusForCapacityWithHttpMessagesAsync(resourceGroupName, dedicatedCapacityName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <inheritdoc/> public async Task <AzureOperationResponse <SkuEnumerationForExistingResourceResult> > ListSkusForCapacityWithHttpMessagesAsync(string resourceGroupName, string dedicatedCapacityName, Dictionary <string, List <string> > customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { return(await innerCapacityOperations .ListSkusForCapacityWithHttpMessagesAsync(resourceGroupName, dedicatedCapacityName, customHeaders, cancellationToken) .ConfigureAwait(false)); }