unit property

  1. @TagNumber.new(9)
String get unit

Specify the unit of the quota limit. It uses the same syntax as Metric.unit. The supported unit kinds are determined by the quota backend system.

The Google Service Control supports the following unit components:

  • One of the time intevals:
    • "/min" for quota every minute.
    • "/d" for quota every 24 hours, starting 00:00 US Pacific Time.
    • Otherwise the quota won't be reset by time, such as storage limit.
  • One and only one of the granted containers:
    • "/{organization}" quota for an organization.
    • "/{project}" quota for a project.
    • "/{folder}" quota for a folder.
    • "/{resource}" quota for a universal resource.
  • Zero or more quota segmentation dimension. Not all combos are valid.
    • "/{region}" quota for every region. Not to be used with time intervals.
    • Otherwise the resources granted on the target is not segmented.
    • "/{zone}" quota for every zone. Not to be used with time intervals.
    • Otherwise the resources granted on the target is not segmented.
    • "/{resource}" quota for a resource associated with a project or org.

Here are some examples:

  • "1/min/{project}" for quota per minute per project.
  • "1/min/{user}" for quota per minute per user.
  • "1/min/{organization}" for quota per minute per organization.

Note: the order of unit components is insignificant. The "1" at the beginning is required to follow the metric unit syntax.

Used by metric-based quotas only.

Implementation

@$pb.TagNumber(9)
$core.String get unit => $_getSZ(7);
  1. @TagNumber.new(9)
set unit (String v)

Implementation

@$pb.TagNumber(9)
set unit($core.String v) { $_setString(7, v); }