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

ContentRestriction

import type { ContentRestriction } from "https://googleapis.deno.dev/v1/drive:v3.ts";

A restriction for accessing the content of the file.

interface ContentRestriction {
ownerRestricted?: boolean;
readOnly?: boolean;
reason?: string;
restrictingUser?: User;
restrictionTime?: Date;
systemRestricted?: boolean;
type?: string;
}

§Properties

§
ownerRestricted?: boolean
[src]

Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with organizer capabilities can modify or remove this content restriction.

§
readOnly?: boolean
[src]

Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.

§
reason?: string
[src]

Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.

§
restrictingUser?: User
[src]

Output only. The user who set the content restriction. Only populated if readOnly is true.

§
restrictionTime?: Date
[src]

The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.

§
systemRestricted?: boolean
[src]

Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.

§
type?: string
[src]

Output only. The type of the content restriction. Currently the only possible value is globalContentRestriction.