Compute V1 Client - Class Quota (1.5.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

Methods

__construct

Constructor.

Parameters
NameDescription
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.

Generated from protobuf field optional double limit = 102976443;

Returns
TypeDescription
float

hasLimit

clearLimit

setLimit

[Output Only] Quota limit for this metric.

Generated from protobuf field optional double limit = 102976443;

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getMetric

[Output Only] Name of the quota metric.

Check the Metric enum for the list of possible values.

Generated from protobuf field optional string metric = 533067184;

Returns
TypeDescription
string

hasMetric

clearMetric

setMetric

[Output Only] Name of the quota metric.

Check the Metric enum for the list of possible values.

Generated from protobuf field optional string metric = 533067184;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOwner

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

Generated from protobuf field optional string owner = 106164915;

Returns
TypeDescription
string

hasOwner

clearOwner

setOwner

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

Generated from protobuf field optional string owner = 106164915;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUsage

[Output Only] Current usage of this metric.

Generated from protobuf field optional double usage = 111574433;

Returns
TypeDescription
float

hasUsage

clearUsage

setUsage

[Output Only] Current usage of this metric.

Generated from protobuf field optional double usage = 111574433;

Parameter
NameDescription
var float
Returns
TypeDescription
$this