Compute V1 Client - Class Quota (1.18.0)

Reference documentation and code samples for the Compute V1 Client class Quota.

A quotas entry.

Generated from protobuf message google.cloud.compute.v1.Quota

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ limit float

[Output Only] Quota limit for this metric.

↳ metric string

[Output Only] Name of the quota metric. Check the Metric enum for the list of possible values.

↳ owner string

[Output Only] Owning resource. This is the resource on which this quota is applied.

↳ usage float

[Output Only] Current usage of this metric.

getLimit

[Output Only] Quota limit for this metric.

Returns
Type Description
float

hasLimit

clearLimit

setLimit

[Output Only] Quota limit for this metric.

Parameter
Name Description
var float
Returns
Type Description
$this

getMetric

[Output Only] Name of the quota metric.

Check the Metric enum for the list of possible values.

Returns
Type Description
string

hasMetric

clearMetric

setMetric

[Output Only] Name of the quota metric.

Check the Metric enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getOwner

[Output Only] Owning resource. This is the resource on which this quota is applied.

Returns
Type Description
string

hasOwner

clearOwner

setOwner

[Output Only] Owning resource. This is the resource on which this quota is applied.

Parameter
Name Description
var string
Returns
Type Description
$this

getUsage

[Output Only] Current usage of this metric.

Returns
Type Description
float

hasUsage

clearUsage

setUsage

[Output Only] Current usage of this metric.

Parameter
Name Description
var float
Returns
Type Description
$this