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 | |
---|---|
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.
Generated from protobuf field optional double limit = 102976443;
Returns | |
---|---|
Type | Description |
float |
hasLimit
clearLimit
setLimit
[Output Only] Quota limit for this metric.
Generated from protobuf field optional double limit = 102976443;
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.
Generated from protobuf field optional string metric = 533067184;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getUsage
[Output Only] Current usage of this metric.
Generated from protobuf field optional double usage = 111574433;
Returns | |
---|---|
Type | Description |
float |
hasUsage
clearUsage
setUsage
[Output Only] Current usage of this metric.
Generated from protobuf field optional double usage = 111574433;
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |