labels_permissions
Creates, updates, deletes, gets or lists a labels_permissions
resource.
Overview
Name | labels_permissions |
Type | Resource |
Id | googleworkspace.drivelabelsv2.labels_permissions |
Fields
The following fields are returned by SELECT
queries:
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
update_permissions | update | labelsId | useAdminAccess | Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
labelsId | string | |
useAdminAccess | boolean |
UPDATE
examples
- update_permissions
Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.
UPDATE googleworkspace.drivelabelsv2.labels_permissions
SET
data__person = '{{ person }}',
data__group = '{{ group }}',
data__audience = '{{ audience }}',
data__name = '{{ name }}',
data__email = '{{ email }}',
data__role = '{{ role }}'
WHERE
labelsId = '{{ labelsId }}' --required
AND useAdminAccess = {{ useAdminAccess}}
RETURNING
name,
audience,
email,
group,
person,
role;