Skip to content

UsageAllocation

Source code in docs_src/capo_marketplace_metering/types/usage_allocation.py
class UsageAllocation(TypedDict, closed=True):
    allocated_usage_quantity: "capo_marketplace_metering.types.allocated_usage_quantity.AllocatedUsageQuantity"
    """<p>The total quantity allocated to this bucket of usage, as a whole number.</p> <p>Use <code>AllocatedUsageQuantityAsDecimal</code> instead. Each allocation must specify exactly one of <code>AllocatedUsageQuantity</code> or <code>AllocatedUsageQuantityAsDecimal</code>.</p>"""
    allocated_usage_quantity_as_decimal: NotRequired[
        "capo_marketplace_metering.types.allocated_usage_quantity_as_decimal_string.AllocatedUsageQuantityAsDecimalString"
    ]
    """<p>The total quantity allocated to this bucket of usage, as a decimal string. Use this when the usage quantity of the request or usage record is specified as a decimal (<code>UsageQuantityAsDecimal</code> or <code>QuantityAsDecimal</code>).</p> <p>A non-negative decimal number, for example <code>17.42</code>.</p> <p>Each allocation must specify exactly one of <code>AllocatedUsageQuantity</code> or <code>AllocatedUsageQuantityAsDecimal</code>.</p>"""
    tags: NotRequired["capo_marketplace_metering.types.tag_list.TagList"]
    """<p>The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can be left out.</p>"""

allocated_usage_quantity instance-attribute

allocated_usage_quantity: AllocatedUsageQuantity

The total quantity allocated to this bucket of usage, as a whole number.

Use AllocatedUsageQuantityAsDecimal instead. Each allocation must specify exactly one of AllocatedUsageQuantity or AllocatedUsageQuantityAsDecimal.

allocated_usage_quantity_as_decimal instance-attribute

allocated_usage_quantity_as_decimal: NotRequired[AllocatedUsageQuantityAsDecimalString]

The total quantity allocated to this bucket of usage, as a decimal string. Use this when the usage quantity of the request or usage record is specified as a decimal (UsageQuantityAsDecimal or QuantityAsDecimal).

A non-negative decimal number, for example 17.42.

Each allocation must specify exactly one of AllocatedUsageQuantity or AllocatedUsageQuantityAsDecimal.

tags instance-attribute

tags: NotRequired[TagList]

The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can be left out.