ContentRestriction class

A restriction for accessing the content of the file.

Constructors

ContentRestriction()
ContentRestriction.fromJson(Map _json)

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
readOnly ↔ bool
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.
read / write
reason ↔ String
Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
read / write
restrictingUser User
The user who set the content restriction. Only populated if readOnly is true.
read / write
restrictionDate ↔ DateTime
The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
type ↔ String
The type of the content restriction. Currently the only possible value is globalContentRestriction.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() → Map<String, Object>
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited