Interface LotsOperations


  • public interface LotsOperations
    Resource collection API of LotsOperations.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.azure.core.http.rest.PagedIterable<LotSummary> listByBillingAccount​(String billingAccountId)
      Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile.
      com.azure.core.http.rest.PagedIterable<LotSummary> listByBillingAccount​(String billingAccountId, String filter, com.azure.core.util.Context context)
      Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile.
      com.azure.core.http.rest.PagedIterable<LotSummary> listByBillingProfile​(String billingAccountId, String billingProfileId)
      Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile.
      com.azure.core.http.rest.PagedIterable<LotSummary> listByBillingProfile​(String billingAccountId, String billingProfileId, com.azure.core.util.Context context)
      Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile.
    • Method Detail

      • listByBillingProfile

        com.azure.core.http.rest.PagedIterable<LotSummary> listByBillingProfile​(String billingAccountId,
                                                                                String billingProfileId)
        Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope.
        Parameters:
        billingAccountId - BillingAccount ID.
        billingProfileId - Azure Billing Profile ID.
        Returns:
        result of listing lot summary.
        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.
      • listByBillingProfile

        com.azure.core.http.rest.PagedIterable<LotSummary> listByBillingProfile​(String billingAccountId,
                                                                                String billingProfileId,
                                                                                com.azure.core.util.Context context)
        Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope.
        Parameters:
        billingAccountId - BillingAccount ID.
        billingProfileId - Azure Billing Profile ID.
        context - The context to associate with this operation.
        Returns:
        result of listing lot summary.
        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.
      • listByBillingAccount

        com.azure.core.http.rest.PagedIterable<LotSummary> listByBillingAccount​(String billingAccountId)
        Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope.
        Parameters:
        billingAccountId - BillingAccount ID.
        Returns:
        result of listing lot summary.
        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.
      • listByBillingAccount

        com.azure.core.http.rest.PagedIterable<LotSummary> listByBillingAccount​(String billingAccountId,
                                                                                String filter,
                                                                                com.azure.core.util.Context context)
        Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope.
        Parameters:
        billingAccountId - BillingAccount ID.
        filter - May be used to filter the lots by Status, Source etc. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).
        context - The context to associate with this operation.
        Returns:
        result of listing lot summary.
        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.