Google Cloud Billing V1 Client - Class Category (1.6.0)

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

Represents the category hierarchy of a SKU.

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

Namespace

Google \ Cloud \ Billing \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ service_display_name string

The display name of the service this SKU belongs to.

↳ resource_family string

The type of product the SKU refers to. Example: "Compute", "Storage", "Network", "ApplicationServices" etc.

↳ resource_group string

A group classification for related SKUs. Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.

↳ usage_type string

Represents how the SKU is consumed. Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.

getServiceDisplayName

The display name of the service this SKU belongs to.

Returns
TypeDescription
string

setServiceDisplayName

The display name of the service this SKU belongs to.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResourceFamily

The type of product the SKU refers to.

Example: "Compute", "Storage", "Network", "ApplicationServices" etc.

Returns
TypeDescription
string

setResourceFamily

The type of product the SKU refers to.

Example: "Compute", "Storage", "Network", "ApplicationServices" etc.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResourceGroup

A group classification for related SKUs.

Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.

Returns
TypeDescription
string

setResourceGroup

A group classification for related SKUs.

Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUsageType

Represents how the SKU is consumed.

Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.

Returns
TypeDescription
string

setUsageType

Represents how the SKU is consumed.

Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.

Parameter
NameDescription
var string
Returns
TypeDescription
$this