Resource: Price
Encapsulates the latest price for a SKU
.
JSON representation |
---|
{ "name" : string , "currencyCode" : string , "valueType" : string , // Union field |
name
string
Resource name for the latest price.
currencyCode
string
ISO-4217 currency code for the price.
valueType
string
Type of the price. It can have values: ["unspecified", "rate"].
Union field value
.
value
can be only one of the following:
rate
object (
Rate
)
Rate price metadata. SKUs
with Rate
price are offered by pricing tiers. The price can have 1 or more rate pricing tiers.
Rate
Encapsulates a Rate
price. SKUs
with Rate
price are offered by pricing tiers. The price have 1 or more rate pricing tiers.
JSON representation |
---|
{ "tiers" : [ { object ( |
Fields | |
---|---|
tiers[]
|
All tiers associated with the |
unitInfo
|
Unit info such as name and quantity. |
aggregationInfo
|
Aggregation info for tiers such as aggregation level and interval. |
RateTier
Encapsulates a rate price tier.
JSON representation |
---|
{ "startAmount" : { object ( |
Fields | |
---|---|
startAmount
|
Lower bound amount for a tier. Tiers 0-100, 100-200 will be represented with two tiers with |
listPrice
|
List price of one tier. |
UnitInfo
Encapsulates the unit information for a Rate
JSON representation |
---|
{
"unit"
:
string
,
"unitDescription"
:
string
,
"unitQuantity"
:
{
object (
|
Fields | |
---|---|
unit
|
Shorthand for the unit. Example: GiBy.mo. |
unitDescription
|
Human-readable description of the unit. Example: gibibyte month. |
unitQuantity
|
Unit quantity for the tier. Example: if the RateTier price is $1 per 1000000 Bytes, then |
AggregationInfo
Encapsulates the aggregation information such as aggregation level and interval for a price
.
JSON representation |
---|
{ "level" : enum ( |
Fields | |
---|---|
level
|
Level at which usage is aggregated to compute cost. Example: "ACCOUNT" level indicates that usage is aggregated across all projects in a single account. |
interval
|
Interval at which usage is aggregated to compute cost. Example: "MONTHLY" interval indicates that usage is aggregated every month. |
Level
Different aggregation levels.
Enums | |
---|---|
LEVEL_UNSPECIFIED
|
Default unspecified value. |
LEVEL_ACCOUNT
|
Usage is aggregated at an account level. |
LEVEL_PROJECT
|
Usage is aggregated at a project level. |
Interval
Different aggregation intervals.
Enums | |
---|---|
INTERVAL_UNSPECIFIED
|
Default unspecified value. |
INTERVAL_MONTHLY
|
Usage is aggregated every month. |
INTERVAL_DAILY
|
Usage is aggregated every day. |
Methods |
|
---|---|
|
Gets the latest price for the given SKU
. |