ComputeEngineLicenseUsageFee(
mapping=None, *, ignore_unknown_fields=False, **kwargs
)Details about a SKU pricing usage of a Compute Engine
License <https://cloud.google.com/compute/docs/licenses/about>__.
The SKU applies to a single license, and may be further scoped to a
Compute Engine VM
Instance <https://cloud.google.com/compute/docs/instances>
machine resource type (e.g. "vCPU") and size range for that machine
resource. Instances deployed from Compute Engine
Images <https://cloud.google.com/compute/docs/images>
incorporating the target license and (if applicable) matching the
machine resource type size range will be charged by the SKU. A
single license may be priced by multiple SKUs covering different
combinations of machine resource type and size range, allowing a
single running instance to be charged by up to one SKU per machine
resource type, with pricing tiered according to machine shape.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes |
|
|---|---|
| Name | Description |
price_per_unit |
google.type.money_pb2.Money
The price per unit of usage. The customer's usage charge is computed by measuring the customer's consumption denominated in price units and multiplying by this price. This field is a member of oneof_ price_structure.
|
license_code |
str
Output only. The license code of the target Compute Engine License. Note that this is the numeric license code itself in uint64 format used to reference licenses attached to images, not the resource name of the related `Compute Engine LicenseCode resource |
machine_resource |
google.cloud.commerceproducer_v1beta.types.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource
Output only. The machine resource type that the SKU applies to, if any. SKUs with a non-default value are referred to as "resource-based" SKUs. |
machine_resource_range |
google.cloud.commerceproducer_v1beta.types.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange
Output only. The range of machine resource values that the SKU applies to. Unset when the SKU is not scoped to a particular machine resource type. The collection of SKUs in effect at any given time targeting the same license and machine resource type will cover all possible values for that machine resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the machine resource, with each SKU acting as a "tier". NOTE: This is distinct from a SKU with `tiered pricing |
usage_calculation |
google.cloud.commerceproducer_v1beta.types.Sku.SkuPrice.ComputeEngineLicenseUsageFee.UsageCalculation
Output only. Determines how the customer's usage is calculated. |
unit |
str
Output only. The price unit of the SKU. See https://ucum.org/ucum.html for the format of the price unit. For linear-priced memory SKUs, the price unit is 'GiBy.h'. For all other SKUs, the price unit is 'h'. This includes linear-priced vCPU and GPU SKUs because these resources have unitless dimensions and the application of these scaling factors does not change the price unit. |
Classes
MachineResource
MachineResource(value)The machine resource type that the SKU applies to, if any.
MachineResourceRange
MachineResourceRange(mapping=None, *, ignore_unknown_fields=False, **kwargs)The range of machine resource values that the SKU applies to.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
UsageCalculation
UsageCalculation(value)Determines how the customer's usage is calculated.
A SKU using this usage calculation is referred to as "flat"
because the customer's usage charge is independent of the
instance's machine resource shape apart from determining
whether the SKU applies to the instance.
LINEAR_RESOURCE_SCALED_INSTANCE_RUNTIME (2):
Usage is calculated from instance runtime and size. This
calculation mode is only applicable to resource-based SKUs.
Usage is calculated by measuring the instance runtime in the
same manner as for `INSTANCE_RUNTIME` and multiplying by
the instance's machine resource value matching the SKU's
machine resource type. This converts the price from
per-instance-hour to per-instance-hour-per-machine-resource,
which changes the price unit for memory SKUs to 'GiBy.h'.
The price unit otherwise remains 'h' because the other
machine resources are dimensionless.
A SKU using this usage calculation is referred to as
"linear" because the customer's usage charge is linearly
proportional to the instance's machine resource value.