Google Cloud Quotas V1 Client - Class QuotaInfo (0.1.0)

Reference documentation and code samples for the Google Cloud Quotas V1 Client class QuotaInfo.

QuotaInfo represents information about a particular quota for a given project, folder or organization.

Generated from protobuf message google.api.cloudquotas.v1.QuotaInfo

Namespace

Google \ Cloud \ CloudQuotas \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Resource name of this QuotaInfo. The ID component following "locations/" must be "global". Example: projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion

↳ quota_id string

The id of the quota, which is unquie within the service. Example: CpusPerProjectPerRegion

↳ metric string

The metric of the quota. It specifies the resources consumption the quota is defined for. Example: compute.googleapis.com/cpus

↳ service string

The name of the service in which the quota is defined. Example: compute.googleapis.com

↳ is_precise bool

Whether this is a precise quota. A precise quota is tracked with absolute precision. In contrast, an imprecise quota is not tracked with precision.

↳ refresh_interval string

The reset time interval for the quota. Refresh interval applies to rate quota only. Example: "minute" for per minute, "day" for per day, or "10 seconds" for every 10 seconds.

↳ container_type int

The container type of the QuotaInfo.

↳ dimensions array

The dimensions the quota is defined on.

↳ metric_display_name string

The display name of the quota metric

↳ quota_display_name string

The display name of the quota.

↳ metric_unit string

The unit in which the metric value is reported, e.g., "MByte".

↳ quota_increase_eligibility Google\Cloud\CloudQuotas\V1\QuotaIncreaseEligibility

Whether it is eligible to request a higher quota value for this quota.

↳ is_fixed bool

Whether the quota value is fixed or adjustable

↳ dimensions_infos array<Google\Cloud\CloudQuotas\V1\DimensionsInfo>

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

↳ is_concurrent bool

Whether the quota is a concurrent quota. Concurrent quotas are enforced on the total number of concurrent operations in flight at any given time.

↳ service_request_quota_uri string

URI to the page where the user can request more quotas for the cloud service, such as https://docs.google.com/spreadsheet/viewform?formkey=abc123&entry_0={email}&entry_1={id}. Google Developers Console UI replace {email} with the current user's e-mail, {id} with the current project number, or organization ID with "organizations/" prefix. For example, https://docs.google.com/spreadsheet/viewform?formkey=abc123&entry_0=johndoe@gmail.com&entry_1=25463754, or https://docs.google.com/spreadsheet/viewform?formkey=abc123&entry_0=johndoe@gmail.com&entry_1=organizations/26474422.

getName

Resource name of this QuotaInfo.

The ID component following "locations/" must be "global". Example: projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion

Returns
TypeDescription
string

setName

Resource name of this QuotaInfo.

The ID component following "locations/" must be "global". Example: projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getQuotaId

The id of the quota, which is unquie within the service.

Example: CpusPerProjectPerRegion

Returns
TypeDescription
string

setQuotaId

The id of the quota, which is unquie within the service.

Example: CpusPerProjectPerRegion

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMetric

The metric of the quota. It specifies the resources consumption the quota is defined for.

Example: compute.googleapis.com/cpus

Returns
TypeDescription
string

setMetric

The metric of the quota. It specifies the resources consumption the quota is defined for.

Example: compute.googleapis.com/cpus

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getService

The name of the service in which the quota is defined.

Example: compute.googleapis.com

Returns
TypeDescription
string

setService

The name of the service in which the quota is defined.

Example: compute.googleapis.com

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIsPrecise

Whether this is a precise quota. A precise quota is tracked with absolute precision. In contrast, an imprecise quota is not tracked with precision.

Returns
TypeDescription
bool

setIsPrecise

Whether this is a precise quota. A precise quota is tracked with absolute precision. In contrast, an imprecise quota is not tracked with precision.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getRefreshInterval

The reset time interval for the quota. Refresh interval applies to rate quota only.

Example: "minute" for per minute, "day" for per day, or "10 seconds" for every 10 seconds.

Returns
TypeDescription
string

setRefreshInterval

The reset time interval for the quota. Refresh interval applies to rate quota only.

Example: "minute" for per minute, "day" for per day, or "10 seconds" for every 10 seconds.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getContainerType

The container type of the QuotaInfo.

Returns
TypeDescription
int

setContainerType

The container type of the QuotaInfo.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDimensions

The dimensions the quota is defined on.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDimensions

The dimensions the quota is defined on.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getMetricDisplayName

The display name of the quota metric

Returns
TypeDescription
string

setMetricDisplayName

The display name of the quota metric

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getQuotaDisplayName

The display name of the quota.

Returns
TypeDescription
string

setQuotaDisplayName

The display name of the quota.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMetricUnit

The unit in which the metric value is reported, e.g., "MByte".

Returns
TypeDescription
string

setMetricUnit

The unit in which the metric value is reported, e.g., "MByte".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getQuotaIncreaseEligibility

Whether it is eligible to request a higher quota value for this quota.

Returns
TypeDescription
Google\Cloud\CloudQuotas\V1\QuotaIncreaseEligibility|null

hasQuotaIncreaseEligibility

clearQuotaIncreaseEligibility

setQuotaIncreaseEligibility

Whether it is eligible to request a higher quota value for this quota.

Parameter
NameDescription
var Google\Cloud\CloudQuotas\V1\QuotaIncreaseEligibility
Returns
TypeDescription
$this

getIsFixed

Whether the quota value is fixed or adjustable

Returns
TypeDescription
bool

setIsFixed

Whether the quota value is fixed or adjustable

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getDimensionsInfos

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDimensionsInfos

The collection of dimensions info ordered by their dimensions from more specific ones to less specific ones.

Parameter
NameDescription
var array<Google\Cloud\CloudQuotas\V1\DimensionsInfo>
Returns
TypeDescription
$this

getIsConcurrent

Whether the quota is a concurrent quota. Concurrent quotas are enforced on the total number of concurrent operations in flight at any given time.

Returns
TypeDescription
bool

setIsConcurrent

Whether the quota is a concurrent quota. Concurrent quotas are enforced on the total number of concurrent operations in flight at any given time.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getServiceRequestQuotaUri

URI to the page where the user can request more quotas for the cloud service, such as https://docs.google.com/spreadsheet/viewform?formkey=abc123&entry_0={email}&entry_1={id}.

Google Developers Console UI replace {email} with the current user's e-mail, {id} with the current project number, or organization ID with "organizations/" prefix. For example, https://docs.google.com/spreadsheet/viewform?formkey=abc123&entry_0=johndoe@gmail.com&entry_1=25463754, or https://docs.google.com/spreadsheet/viewform?formkey=abc123&entry_0=johndoe@gmail.com&entry_1=organizations/26474422.

Returns
TypeDescription
string

setServiceRequestQuotaUri

URI to the page where the user can request more quotas for the cloud service, such as https://docs.google.com/spreadsheet/viewform?formkey=abc123&entry_0={email}&entry_1={id}.

Google Developers Console UI replace {email} with the current user's e-mail, {id} with the current project number, or organization ID with "organizations/" prefix. For example, https://docs.google.com/spreadsheet/viewform?formkey=abc123&entry_0=johndoe@gmail.com&entry_1=25463754, or https://docs.google.com/spreadsheet/viewform?formkey=abc123&entry_0=johndoe@gmail.com&entry_1=organizations/26474422.

Parameter
NameDescription
var string
Returns
TypeDescription
$this