Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleAppsDriveLabelsV2LabelPermission

import type { GoogleAppsDriveLabelsV2LabelPermission } from "https://googleapis.deno.dev/v1/drivelabels:v2.ts";

The permission that applies to a principal (user, group, audience) on a label.

interface GoogleAppsDriveLabelsV2LabelPermission {
audience?: string;
email?: string;
group?: string;
name?: string;
person?: string;
role?:
| "LABEL_ROLE_UNSPECIFIED"
| "READER"
| "APPLIER"
| "ORGANIZER"
| "EDITOR";
}

§Properties

§
audience?: string
[src]

Audience to grant a role to. The magic value of audiences/default may be used to apply the role to the default audience in the context of the organization that owns the Label.

§
email?: string
[src]

Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified.

§
group?: string
[src]

Group resource name.

§
name?: string
[src]

Resource name of this permission.

§
person?: string
[src]

Person resource name.

§
role?: "LABEL_ROLE_UNSPECIFIED" | "READER" | "APPLIER" | "ORGANIZER" | "EDITOR"
[src]

The role the principal should have.