REST Resource: skus.price

Resource: Price

Encapsulates the latest price for a SKU.

JSON representation
{
  "name": string,
  "currencyCode": string,
  "valueType": string,

  // Union field value can be only one of the following:
  "rate": {
    object (Rate)
  }
  // End of list of possible types for union field value.
}
Fields
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 (RateTier)
    }
  ],
  "unitInfo": {
    object (UnitInfo)
  },
  "aggregationInfo": {
    object (AggregationInfo)
  }
}
Fields
tiers[]

object (RateTier)

All tiers associated with the Rate price.

unitInfo

object (UnitInfo)

Unit info such as name and quantity.

aggregationInfo

object (AggregationInfo)

Aggregation info for tiers such as aggregation level and interval.

RateTier

Encapsulates a rate price tier.

JSON representation
{
  "startAmount": {
    object (Decimal)
  },
  "listPrice": {
    object (Money)
  }
}
Fields
startAmount

object (Decimal)

Lower bound amount for a tier. Tiers 0-100, 100-200 will be represented with two tiers with startAmount 0 and 100.

listPrice

object (Money)

List price of one tier.

UnitInfo

Encapsulates the unit information for a Rate

JSON representation
{
  "unit": string,
  "unitDescription": string,
  "unitQuantity": {
    object (Decimal)
  }
}
Fields
unit

string

Shorthand for the unit. Example: GiBy.mo.

unitDescription

string

Human-readable description of the unit. Example: gibibyte month.

unitQuantity

object (Decimal)

Unit quantity for the tier. Example: if the RateTier price is $1 per 1000000 Bytes, then unitQuantity is set to 1000000.

AggregationInfo

Encapsulates the aggregation information such as aggregation level and interval for a price.

JSON representation
{
  "level": enum (Level),
  "interval": enum (Interval)
}
Fields
level

enum (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

enum (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

get

Gets the latest price for the given SKU.