FileCapabilities class

Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.

Constructors

FileCapabilities()
FileCapabilities.fromJson(Map _json)

Properties

canAddChildren ↔ bool
Whether the current user can add children to this folder. This is always false when the item is not a folder.
read / write
canChangeCopyRequiresWriterPermission ↔ bool
Whether the current user can change the copyRequiresWriterPermission restriction of this file.
read / write
canChangeRestrictedDownload ↔ bool
Deprecated
read / write
canComment ↔ bool
Whether the current user can comment on this file.
read / write
canCopy ↔ bool
Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
read / write
canDelete ↔ bool
Whether the current user can delete this file.
read / write
canDeleteChildren ↔ bool
Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
read / write
canDownload ↔ bool
Whether the current user can download this file.
read / write
canEdit ↔ bool
Whether the current user can edit this file.
read / write
canListChildren ↔ bool
Whether the current user can list the children of this folder. This is always false when the item is not a folder.
read / write
canMoveChildrenOutOfDrive ↔ bool
Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
read / write
canMoveChildrenOutOfTeamDrive ↔ bool
Deprecated - use canMoveChildrenOutOfDrive instead.
read / write
canMoveChildrenWithinDrive ↔ bool
Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
read / write
canMoveChildrenWithinTeamDrive ↔ bool
Deprecated - use canMoveChildrenWithinDrive instead.
read / write
canMoveItemIntoTeamDrive ↔ bool
Deprecated - use canMoveItemOutOfDrive instead.
read / write
canMoveItemOutOfDrive ↔ bool
Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
read / write
canMoveItemOutOfTeamDrive ↔ bool
Deprecated - use canMoveItemOutOfDrive instead.
read / write
canMoveItemWithinDrive ↔ bool
Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
read / write
canMoveItemWithinTeamDrive ↔ bool
Deprecated - use canMoveItemWithinDrive instead.
read / write
canMoveTeamDriveItem ↔ bool
Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
read / write
canReadDrive ↔ bool
Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
read / write
canReadRevisions ↔ bool
Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
read / write
canReadTeamDrive ↔ bool
Deprecated - use canReadDrive instead.
read / write
canRemoveChildren ↔ bool
Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
read / write
canRename ↔ bool
Whether the current user can rename this file.
read / write
canShare ↔ bool
Whether the current user can modify the sharing settings for this file.
read / write
canTrash ↔ bool
Whether the current user can move this file to trash.
read / write
canTrashChildren ↔ bool
Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
read / write
canUntrash ↔ bool
Whether the current user can restore this file from trash.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited