Google Cloud Commerce Producer V1beta Client - Class Sku (0.2.0)

Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class Sku.

Message describing the Sku resource.

Encapsulates and represents a stock keeping unit (SKU), the atomic unit of pricing and billing in Google Cloud. Each customer charge is associated with and originates from exactly one SKU. While the Cloud Marketplace Sku resource shares a close relationship with the public Sku resource in the Cloud Billing API, Cloud Marketplace SKUs are represented here with additional information in an alternative format tailored for use by Cloud Marketplace partners, and are not necessarily public and by extension are not generally visible in the Cloud Billing API or the Google Cloud Public SKUs. Note on terminology: While the name of the resource derives from the acronym 'SKU' it is named 'Sku' for consistency with other resource type names, and may be rendered variously as 'Sku', 'sku', or 'SKU' across this and other documentation.

Generated from protobuf message google.cloud.commerceproducer.v1beta.Sku

Namespace

Google \ Cloud \ CommerceProducer \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Identifier. Name of the SKU.

↳ description string

Output only. Description of the SKU.

↳ sku_price_timeline array<Sku\SkuPrice>

Output only. Timeline of the SKU prices, in chronological order by effective_time. Each entry is active in the time range starting inclusively from the entry's effective_time and ending exclusively at the next entry's effective_time, if one exists, or else remaining active indefinitely if it is the final entry. The currently active entry is the entry with the latest effective_time that is in the past. Because of scheduled future price changes the currently active entry may not be the last entry in the timeline. A SKU does not necessarily have a currently active entry, as the SKU's first timeline entry may have an effective_time in the future.

getName

Output only. Identifier. Name of the SKU.

Returns
Type Description
string

setName

Output only. Identifier. Name of the SKU.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

Output only. Description of the SKU.

Returns
Type Description
string

setDescription

Output only. Description of the SKU.

Parameter
Name Description
var string
Returns
Type Description
$this

getSkuPriceTimeline

Output only. Timeline of the SKU prices, in chronological order by effective_time.

Each entry is active in the time range starting inclusively from the entry's effective_time and ending exclusively at the next entry's effective_time, if one exists, or else remaining active indefinitely if it is the final entry. The currently active entry is the entry with the latest effective_time that is in the past. Because of scheduled future price changes the currently active entry may not be the last entry in the timeline. A SKU does not necessarily have a currently active entry, as the SKU's first timeline entry may have an effective_time in the future.

Returns
Type Description
Google\Protobuf\RepeatedField<Sku\SkuPrice>

setSkuPriceTimeline

Output only. Timeline of the SKU prices, in chronological order by effective_time.

Each entry is active in the time range starting inclusively from the entry's effective_time and ending exclusively at the next entry's effective_time, if one exists, or else remaining active indefinitely if it is the final entry. The currently active entry is the entry with the latest effective_time that is in the past. Because of scheduled future price changes the currently active entry may not be the last entry in the timeline. A SKU does not necessarily have a currently active entry, as the SKU's first timeline entry may have an effective_time in the future.

Parameter
Name Description
var array<Sku\SkuPrice>
Returns
Type Description
$this