Interface BenefitRecommendationsClient
public interface BenefitRecommendationsClient
An instance of this class provides access to all the operations defined in BenefitRecommendationsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.http.rest.PagedIterable<BenefitRecommendationModelInner>
List of recommendations for purchasing savings plan.com.azure.core.http.rest.PagedIterable<BenefitRecommendationModelInner>
list
(String billingScope, String filter, String orderby, String expand, com.azure.core.util.Context context) List of recommendations for purchasing savings plan.
-
Method Details
-
list
List of recommendations for purchasing savings plan.- Parameters:
billingScope
- The scope associated with benefit recommendation operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope, /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for enterprise agreement scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope.- Returns:
- result of listing benefit recommendations as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<BenefitRecommendationModelInner> list(String billingScope, String filter, String orderby, String expand, com.azure.core.util.Context context) List of recommendations for purchasing savings plan.- Parameters:
billingScope
- The scope associated with benefit recommendation operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope, /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for enterprise agreement scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope.filter
- Can be used to filter benefitRecommendations by: properties/scope with allowed values ['Single', 'Shared'] and default value 'Shared'; and properties/lookBackPeriod with allowed values ['Last7Days', 'Last30Days', 'Last60Days'] and default value 'Last60Days'; properties/term with allowed values ['P1Y', 'P3Y'] and default value 'P3Y'; properties/subscriptionId; properties/resourceGroup.orderby
- May be used to order the recommendations by: properties/armSkuName. For the savings plan, the results are in order by default. There is no need to use this clause.expand
- May be used to expand the properties by: properties/usage, properties/allRecommendationDetails.context
- The context to associate with this operation.- Returns:
- result of listing benefit recommendations as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-