The
resource_restrictions client methods are currently in ALPHA. The API may change without notice. A one-time warning is emitted on first use.PROJECT_RESTRICT permission can perform these actions. Currently only PROJECT resources are supported.
Restrict a Resource
Marks a resource as restricted and returns aResourceRestriction. This operation is idempotent — restricting an already-restricted resource returns the existing restriction without error.
Unrestrict a Resource
Removes the restriction from a resource so that roles bound at other levels of the hierarchy (space, org, account) can once again grant access. ReturnsNone.