Reference documentation and code samples for the Google Cloud Billing V1 Client class PricingInfo.
Represents the pricing information for a SKU at a single point of time.
Generated from protobuf message google.cloud.billing.v1.PricingInfo
Namespace
Google \ Cloud \ Billing \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ effective_time
Google\Protobuf\Timestamp
The timestamp from which this pricing was effective within the requested time range. This is guaranteed to be greater than or equal to the start_time field in the request and less than the end_time field in the request. If a time range was not specified in the request this field will be equivalent to a time within the last 12 hours, indicating the latest pricing info.
↳ summary
string
An optional human readable summary of the pricing information, has a maximum length of 256 characters.
↳ pricing_expression
Google\Cloud\Billing\V1\PricingExpression
Expresses the pricing formula. See PricingExpression
for an example.
↳ aggregation_info
Google\Cloud\Billing\V1\AggregationInfo
Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.
↳ currency_conversion_rate
float
Conversion rate used for currency conversion, from USD to the currency specified in the request. This includes any surcharge collected for billing in non USD currency. If a currency is not specified in the request this defaults to 1.0. Example: USD * currency_conversion_rate = JPY
getEffectiveTime
The timestamp from which this pricing was effective within the requested time range. This is guaranteed to be greater than or equal to the start_time field in the request and less than the end_time field in the request. If a time range was not specified in the request this field will be equivalent to a time within the last 12 hours, indicating the latest pricing info.
hasEffectiveTime
clearEffectiveTime
setEffectiveTime
The timestamp from which this pricing was effective within the requested time range. This is guaranteed to be greater than or equal to the start_time field in the request and less than the end_time field in the request. If a time range was not specified in the request this field will be equivalent to a time within the last 12 hours, indicating the latest pricing info.
$this
getSummary
An optional human readable summary of the pricing information, has a maximum length of 256 characters.
string
setSummary
An optional human readable summary of the pricing information, has a maximum length of 256 characters.
var
string
$this
getPricingExpression
Expresses the pricing formula. See PricingExpression
for an example.
hasPricingExpression
clearPricingExpression
setPricingExpression
Expresses the pricing formula. See PricingExpression
for an example.
$this
getAggregationInfo
Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.
hasAggregationInfo
clearAggregationInfo
setAggregationInfo
Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.
$this
getCurrencyConversionRate
Conversion rate used for currency conversion, from USD to the currency specified in the request. This includes any surcharge collected for billing in non USD currency. If a currency is not specified in the request this defaults to 1.0.
Example: USD * currency_conversion_rate = JPY
float
setCurrencyConversionRate
Conversion rate used for currency conversion, from USD to the currency specified in the request. This includes any surcharge collected for billing in non USD currency. If a currency is not specified in the request this defaults to 1.0.
Example: USD * currency_conversion_rate = JPY
var
float
$this