PriceSheets Interface

public interface PriceSheets

Resource collection API of PriceSheets.

Method Summary

Modifier and Type Method and Description
abstract PriceSheetResult get()

Gets the price sheet for a subscription.

abstract PriceSheetResult getByBillingPeriod(String billingPeriodName)

Get the price sheet for a scope by subscriptionId and billing period.

abstract Response<PriceSheetResult> getByBillingPeriodWithResponse(String billingPeriodName, String expand, String skiptoken, Integer top, Context context)

Get the price sheet for a scope by subscriptionId and billing period.

abstract Response<PriceSheetResult> getWithResponse(String expand, String skiptoken, Integer top, Context context)

Gets the price sheet for a subscription.

Method Details

get

public abstract 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.

getByBillingPeriod

public abstract 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.

getByBillingPeriodWithResponse

public abstract Response getByBillingPeriodWithResponse(String billingPeriodName, String expand, String skiptoken, Integer top, 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.

getWithResponse

public abstract Response getWithResponse(String expand, String skiptoken, Integer top, 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.

Applies to