Interface PriceSheets


  • public interface PriceSheets
    Resource collection API of PriceSheets.
    • Method Detail

      • get

        PriceSheetResult get()
        Gets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later.
        Returns:
        the price sheet for a subscription.
        Throws:
        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.
      • getWithResponse

        com.azure.core.http.rest.Response<PriceSheetResult> getWithResponse​(String expand,
                                                                            String skiptoken,
                                                                            Integer top,
                                                                            com.azure.core.util.Context context)
        Gets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later.
        Parameters:
        expand - May be used to expand the properties/meterDetails within a price sheet. By default, these fields are not included when returning price sheet.
        skiptoken - Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.
        top - May be used to limit the number of results to the top N results.
        context - The context to associate with this operation.
        Returns:
        the price sheet for a subscription.
        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.
      • getByBillingPeriod

        PriceSheetResult getByBillingPeriod​(String billingPeriodName)
        Get the price sheet for a scope by subscriptionId and billing period. Price sheet is available via this API only for May 1, 2014 or later.
        Parameters:
        billingPeriodName - Billing Period Name.
        Returns:
        the price sheet for a scope by subscriptionId and billing period.
        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.
      • getByBillingPeriodWithResponse

        com.azure.core.http.rest.Response<PriceSheetResult> getByBillingPeriodWithResponse​(String billingPeriodName,
                                                                                           String expand,
                                                                                           String skiptoken,
                                                                                           Integer top,
                                                                                           com.azure.core.util.Context context)
        Get the price sheet for a scope by subscriptionId and billing period. Price sheet is available via this API only for May 1, 2014 or later.
        Parameters:
        billingPeriodName - Billing Period Name.
        expand - May be used to expand the properties/meterDetails within a price sheet. By default, these fields are not included when returning price sheet.
        skiptoken - Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.
        top - May be used to limit the number of results to the top N results.
        context - The context to associate with this operation.
        Returns:
        the price sheet for a scope by subscriptionId and billing period.
        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.