Google Cloud Billing V1 Client - Class Sku (1.9.7)

Reference documentation and code samples for the Google Cloud Billing V1 Client class Sku.

Encapsulates a single SKU in Google Cloud Platform

Generated from protobuf message google.cloud.billing.v1.Sku

Namespace

Google \ Cloud \ Billing \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"

↳ sku_id string

The identifier for the SKU. Example: "AA95-CD31-42FE"

↳ description string

A human readable description of the SKU, has a maximum length of 256 characters.

↳ category Google\Cloud\Billing\V1\Category

The category hierarchy of this SKU, purely for organizational purpose.

↳ service_regions array

List of service regions this SKU is offered at. Example: "asia-east1" Service regions can be found at https://cloud.google.com/about/locations/

↳ pricing_info array<Google\Cloud\Billing\V1\PricingInfo>

A timeline of pricing info for this SKU in chronological order.

↳ service_provider_name string

Identifies the service provider. This is 'Google' for first party services in Google Cloud Platform.

↳ geo_taxonomy Google\Cloud\Billing\V1\GeoTaxonomy

The geographic taxonomy for this sku.

getName

The resource name for the SKU.

Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"

Returns
Type Description
string

setName

The resource name for the SKU.

Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"

Parameter
Name Description
var string
Returns
Type Description
$this

getSkuId

The identifier for the SKU.

Example: "AA95-CD31-42FE"

Returns
Type Description
string

setSkuId

The identifier for the SKU.

Example: "AA95-CD31-42FE"

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

A human readable description of the SKU, has a maximum length of 256 characters.

Returns
Type Description
string

setDescription

A human readable description of the SKU, has a maximum length of 256 characters.

Parameter
Name Description
var string
Returns
Type Description
$this

getCategory

The category hierarchy of this SKU, purely for organizational purpose.

Returns
Type Description
Google\Cloud\Billing\V1\Category|null

hasCategory

clearCategory

setCategory

The category hierarchy of this SKU, purely for organizational purpose.

Parameter
Name Description
var Google\Cloud\Billing\V1\Category
Returns
Type Description
$this

getServiceRegions

List of service regions this SKU is offered at.

Example: "asia-east1" Service regions can be found at https://cloud.google.com/about/locations/

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setServiceRegions

List of service regions this SKU is offered at.

Example: "asia-east1" Service regions can be found at https://cloud.google.com/about/locations/

Parameter
Name Description
var string[]
Returns
Type Description
$this

getPricingInfo

A timeline of pricing info for this SKU in chronological order.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setPricingInfo

A timeline of pricing info for this SKU in chronological order.

Parameter
Name Description
var array<Google\Cloud\Billing\V1\PricingInfo>
Returns
Type Description
$this

getServiceProviderName

Identifies the service provider.

This is 'Google' for first party services in Google Cloud Platform.

Returns
Type Description
string

setServiceProviderName

Identifies the service provider.

This is 'Google' for first party services in Google Cloud Platform.

Parameter
Name Description
var string
Returns
Type Description
$this

getGeoTaxonomy

The geographic taxonomy for this sku.

Returns
Type Description
Google\Cloud\Billing\V1\GeoTaxonomy|null

hasGeoTaxonomy

clearGeoTaxonomy

setGeoTaxonomy

The geographic taxonomy for this sku.

Parameter
Name Description
var Google\Cloud\Billing\V1\GeoTaxonomy
Returns
Type Description
$this