Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class 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.
Generated from protobuf message google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee
Namespace
Google \ Cloud \ CommerceProducer \ V1beta \ Sku \ SkuPriceMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ price_per_unit |
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. |
↳ license_code |
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 |
int
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 |
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 |
int
Output only. Determines how the customer's usage is calculated. |
↳ unit |
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. |
getPricePerUnit
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.
| Returns | |
|---|---|
| Type | Description |
Google\Type\Money|null |
|
hasPricePerUnit
setPricePerUnit
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.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Type\Money
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLicenseCode
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"
| Returns | |
|---|---|
| Type | Description |
string |
|
setLicenseCode
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"
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMachineResource
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.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type MachineResource. |
setMachineResource
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.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type MachineResource. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMachineResourceRange
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.
| Returns | |
|---|---|
| Type | Description |
ComputeEngineLicenseUsageFee\MachineResourceRange|null |
|
hasMachineResourceRange
clearMachineResourceRange
setMachineResourceRange
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.
| Parameter | |
|---|---|
| Name | Description |
var |
ComputeEngineLicenseUsageFee\MachineResourceRange
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUsageCalculation
Output only. Determines how the customer's usage is calculated.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type UsageCalculation. |
setUsageCalculation
Output only. Determines how the customer's usage is calculated.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type UsageCalculation. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUnit
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.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUnit
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPriceStructure
| Returns | |
|---|---|
| Type | Description |
string |
|