Reference documentation and code samples for the Cloud Commerce Producer V1BETA API class Google::Cloud::CommerceProducer::V1beta::Sku::SkuPrice::ComputeEngineLicenseUsageFee.
Details about a SKU pricing usage of a Compute Engine License.
The SKU applies to a single license, and may be further scoped to a Compute Engine VM Instance machine resource type (e.g. "vCPU") and size range for that machine resource. Instances deployed from Compute Engine 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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#license_code
def license_code() -> ::String-
(::String) — 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.
Example: "1234567890123456789"
#machine_resource
def machine_resource() -> ::Google::Cloud::CommerceProducer::V1beta::Sku::SkuPrice::ComputeEngineLicenseUsageFee::MachineResource- (::Google::Cloud::CommerceProducer::V1beta::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
def machine_resource_range() -> ::Google::Cloud::CommerceProducer::V1beta::Sku::SkuPrice::ComputeEngineLicenseUsageFee::MachineResourceRange-
(::Google::Cloud::CommerceProducer::V1beta::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.
#price_per_unit
def price_per_unit() -> ::Google::Type::Money- (::Google::Type::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.
#price_per_unit=
def price_per_unit=(value) -> ::Google::Type::Money- value (::Google::Type::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.
- (::Google::Type::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.
#unit
def unit() -> ::String- (::String) — 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.
#usage_calculation
def usage_calculation() -> ::Google::Cloud::CommerceProducer::V1beta::Sku::SkuPrice::ComputeEngineLicenseUsageFee::UsageCalculation- (::Google::Cloud::CommerceProducer::V1beta::Sku::SkuPrice::ComputeEngineLicenseUsageFee::UsageCalculation) — Output only. Determines how the customer's usage is calculated.