Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class KubernetesEnginePodUsageFee.
Details about a SKU pricing usage of software running on a Kubernetes Engine pod.
The SKU applies to pods annotated with the SKU's parent service name, and may be further scoped to a k8s pod resource type (e.g. "CPU") and size range for that resource type. Running pods annotated with the parent service's service name and matching the pod resource type size range will be charged by the SKU. A service may be priced by multiple SKUs covering different combinations of pod resource type and size range, allowing a single running pod to be charged by up to one SKU per pod resource type, with pricing tiered according to pod shape.
Generated from protobuf message google.cloud.commerceproducer.v1beta.Sku.SkuPrice.KubernetesEnginePodUsageFee
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. |
↳ pod_resource |
int
Output only. The pod resource type that the SKU applies to. SKUs with a non-default value are referred to as "resource-based" SKUs. |
↳ pod_resource_range |
KubernetesEnginePodUsageFee\PodResourceRange
Output only. The range of pod resource values that the SKU applies to. The collection of SKUs in effect at any given time targeting the same service annotation and pod resource type will cover all possible values for that pod resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the pod 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, GPU, and TPU 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 |
|
getPodResource
Output only. The pod resource type that the SKU applies to.
SKUs with a non-default value are referred to as "resource-based" SKUs.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type PodResource. |
setPodResource
Output only. The pod resource type that the SKU applies to.
SKUs with a non-default value are referred to as "resource-based" SKUs.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type PodResource. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPodResourceRange
Output only. The range of pod resource values that the SKU applies to.
The collection of SKUs in effect at any given time targeting the same service annotation and pod resource type will cover all possible values for that pod resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the pod resource, with each SKU acting as a "tier". NOTE: This is distinct from a SKU with tiered pricing.
| Returns | |
|---|---|
| Type | Description |
KubernetesEnginePodUsageFee\PodResourceRange|null |
|
hasPodResourceRange
clearPodResourceRange
setPodResourceRange
Output only. The range of pod resource values that the SKU applies to.
The collection of SKUs in effect at any given time targeting the same service annotation and pod resource type will cover all possible values for that pod resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the pod resource, with each SKU acting as a "tier". NOTE: This is distinct from a SKU with tiered pricing.
| Parameter | |
|---|---|
| Name | Description |
var |
KubernetesEnginePodUsageFee\PodResourceRange
|
| 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, GPU, and TPU 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, GPU, and TPU 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 |
|