Google Cloud Billing V1 Client - Class Sku (1.8.0)

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
NameDescription
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
TypeDescription
string

setName

The resource name for the SKU.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSkuId

The identifier for the SKU.

Example: "AA95-CD31-42FE"

Returns
TypeDescription
string

setSkuId

The identifier for the SKU.

Example: "AA95-CD31-42FE"

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

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

Returns
TypeDescription
string

setDescription

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCategory

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

Returns
TypeDescription
Google\Cloud\Billing\V1\Category|null

hasCategory

clearCategory

setCategory

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

Parameter
NameDescription
var Google\Cloud\Billing\V1\Category
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string[]
Returns
TypeDescription
$this

getPricingInfo

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPricingInfo

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

Parameter
NameDescription
var array<Google\Cloud\Billing\V1\PricingInfo>
Returns
TypeDescription
$this

getServiceProviderName

Identifies the service provider.

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

Returns
TypeDescription
string

setServiceProviderName

Identifies the service provider.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGeoTaxonomy

The geographic taxonomy for this sku.

Returns
TypeDescription
Google\Cloud\Billing\V1\GeoTaxonomy|null

hasGeoTaxonomy

clearGeoTaxonomy

setGeoTaxonomy

The geographic taxonomy for this sku.

Parameter
NameDescription
var Google\Cloud\Billing\V1\GeoTaxonomy
Returns
TypeDescription
$this