resourceUsageRestrictionViolated constant

ErrorReason const resourceUsageRestrictionViolated

The request is denied because the resource service usage is restricted by administrators according to the organization policy constraint. For more information see https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services.

Example of an ErrorInfo when access to Google Cloud Storage service is restricted by Resource Usage Restriction policy:

{ "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED",
  "domain": "googleapis.com",
  "metadata": {
    "consumer": "projects/project-123",
    "service": "storage.googleapis.com"
  }
}

Implementation

static const resourceUsageRestrictionViolated = ErrorReason(
  'RESOURCE_USAGE_RESTRICTION_VIOLATED',
);