Google Cloud Billing V1 Client - Class Sku (2.0.1)

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

Encapsulates a single SKU in Google Cloud

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/6F81-5844-456A/skus/D041-B8A1-6E0B"

↳ sku_id
string

The identifier for the SKU. Example: "D041-B8A1-6E0B"

↳ description
string

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

↳ category
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< 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
GeoTaxonomy

The geographic taxonomy for this sku.

getName

The resource name for the SKU.

Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"

Returns
Type
Description
string

setName

The resource name for the SKU.

Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getSkuId

The identifier for the SKU.

Example: "D041-B8A1-6E0B"

Returns
Type
Description
string

setSkuId

The identifier for the SKU.

Example: "D041-B8A1-6E0B"

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
Category |null

hasCategory

clearCategory

setCategory

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

Parameter
Name
Description
var
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

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

setPricingInfo

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

Parameter
Name
Description
var
array< 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
GeoTaxonomy |null

hasGeoTaxonomy

clearGeoTaxonomy

setGeoTaxonomy

The geographic taxonomy for this sku.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: