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

Permission

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

The permission setting of an object.

interface Permission {
allowDiscovery?: boolean;
anyone?: Anyone;
domain?: Domain;
group?: Group;
role?:
| "ROLE_UNSPECIFIED"
| "OWNER"
| "ORGANIZER"
| "FILE_ORGANIZER"
| "EDITOR"
| "COMMENTER"
| "VIEWER"
| "PUBLISHED_VIEWER";
user?: User;
}

§Properties

§
allowDiscovery?: boolean
[src]

If true, the item can be discovered (e.g. in the user's "Shared with me" collection) without needing a link to the item.

§
anyone?: Anyone
[src]

If set, this permission applies to anyone, even logged out users.

§
domain?: Domain
[src]

The domain to whom this permission applies.

§
group?: Group
[src]

The group to whom this permission applies.

§
role?: "ROLE_UNSPECIFIED" | "OWNER" | "ORGANIZER" | "FILE_ORGANIZER" | "EDITOR" | "COMMENTER" | "VIEWER" | "PUBLISHED_VIEWER"
[src]

Indicates the Google Drive permissions role. The role determines a user's ability to read, write, and comment on items.

§
user?: User
[src]

The user to whom this permission applies.