The above expresses a pricing formula where the first 20GB is free,
the next 80GB is priced at $10 per GB followed by $5 per GB for
additional usage.
Attributes
Name
Description
usage_unit
str
The short hand for unit of usage this pricing is specified
in. Example: usage_unit of "GiBy" means that usage is
specified in "Gibi Byte".
display_quantity
float
The recommended quantity of units for displaying pricing
info. When displaying pricing info it is recommended to
display: (unit_price \* display_quantity) per
display_quantity usage_unit. This field does not affect the
pricing formula and is for display purposes only. Example:
If the unit_price is "0.0001 USD", the usage_unit is "GB"
and the display_quantity is "1000" then the recommended way
of displaying the pricing info is "0.10 USD per 1000 GB".
tiered_rates
MutableSequence[google.cloud.billing_v1.types.PricingExpression.TierRate]
The list of tiered rates for this pricing. The total cost is
computed by applying each of the tiered rates on usage. This
repeated list is sorted by ascending order of
start_usage_amount.
usage_unit_description
str
The unit of usage in human readable form.
Example: "gibi byte".
base_unit
str
The base unit for the SKU which is the unit
used in usage exports. Example: "By".
base_unit_description
str
The base unit in human readable form.
Example: "byte".
base_unit_conversion_factor
float
Conversion factor for converting from price per usage_unit
to price per base_unit, and start_usage_amount to
start_usage_amount in base_unit. unit_price /
base_unit_conversion_factor = price per base_unit.
start_usage_amount \* base_unit_conversion_factor =
start_usage_amount in base_unit.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Class PricingExpression (1.16.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.16.3 (latest)](/python/docs/reference/cloudbilling/latest/google.cloud.billing_v1.types.PricingExpression)\n- [1.16.2](/python/docs/reference/cloudbilling/1.16.2/google.cloud.billing_v1.types.PricingExpression)\n- [1.15.0](/python/docs/reference/cloudbilling/1.15.0/google.cloud.billing_v1.types.PricingExpression)\n- [1.14.1](/python/docs/reference/cloudbilling/1.14.1/google.cloud.billing_v1.types.PricingExpression)\n- [1.13.6](/python/docs/reference/cloudbilling/1.13.6/google.cloud.billing_v1.types.PricingExpression)\n- [1.12.1](/python/docs/reference/cloudbilling/1.12.1/google.cloud.billing_v1.types.PricingExpression)\n- [1.11.5](/python/docs/reference/cloudbilling/1.11.5/google.cloud.billing_v1.types.PricingExpression)\n- [1.10.1](/python/docs/reference/cloudbilling/1.10.1/google.cloud.billing_v1.types.PricingExpression)\n- [1.9.1](/python/docs/reference/cloudbilling/1.9.1/google.cloud.billing_v1.types.PricingExpression)\n- [1.8.0](/python/docs/reference/cloudbilling/1.8.0/google.cloud.billing_v1.types.PricingExpression)\n- [1.7.3](/python/docs/reference/cloudbilling/1.7.3/google.cloud.billing_v1.types.PricingExpression)\n- [1.6.1](/python/docs/reference/cloudbilling/1.6.1/google.cloud.billing_v1.types.PricingExpression)\n- [1.5.1](/python/docs/reference/cloudbilling/1.5.1/google.cloud.billing_v1.types.PricingExpression)\n- [1.4.1](/python/docs/reference/cloudbilling/1.4.1/google.cloud.billing_v1.types.PricingExpression)\n- [1.3.4](/python/docs/reference/cloudbilling/1.3.4/google.cloud.billing_v1.types.PricingExpression)\n- [1.2.1](/python/docs/reference/cloudbilling/1.2.1/google.cloud.billing_v1.types.PricingExpression)\n- [1.1.1](/python/docs/reference/cloudbilling/1.1.1/google.cloud.billing_v1.types.PricingExpression)\n- [1.0.0](/python/docs/reference/cloudbilling/1.0.0/google.cloud.billing_v1.types.PricingExpression)\n- [0.1.0](/python/docs/reference/cloudbilling/0.1.0/google.cloud.billing_v1.types.PricingExpression) \n\n PricingExpression(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nExpresses a mathematical pricing formula. For Example:-\n\n`usage_unit: GBy` `tiered_rates:`\n`[start_usage_amount: 20, unit_price: $10]`\n`[start_usage_amount: 100, unit_price: $5]`\n\nThe above expresses a pricing formula where the first 20GB is free,\nthe next 80GB is priced at $10 per GB followed by $5 per GB for\nadditional usage.\n\nClasses\n-------\n\n### TierRate\n\n TierRate(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe price rate indicating starting usage and its\ncorresponding price."]]