FileCapabilities class

Capabilities the current user has on this file.

Each capability corresponds to a fine-grained action that a user may take.

Output only.

Constructors

FileCapabilities({bool? canAcceptOwnership, bool? canAddChildren, bool? canAddFolderFromAnotherDrive, bool? canAddMyDriveParent, bool? canChangeCopyRequiresWriterPermission, bool? canChangeRestrictedDownload, bool? canChangeSecurityUpdateEnabled, bool? canComment, bool? canCopy, bool? canDelete, bool? canDeleteChildren, bool? canDownload, bool? canEdit, bool? canListChildren, bool? canModifyContent, bool? canModifyContentRestriction, bool? canModifyEditorContentRestriction, bool? canModifyLabels, bool? canModifyOwnerContentRestriction, bool? canMoveChildrenOutOfDrive, bool? canMoveChildrenOutOfTeamDrive, bool? canMoveChildrenWithinDrive, bool? canMoveChildrenWithinTeamDrive, bool? canMoveItemIntoTeamDrive, bool? canMoveItemOutOfDrive, bool? canMoveItemOutOfTeamDrive, bool? canMoveItemWithinDrive, bool? canMoveItemWithinTeamDrive, bool? canMoveTeamDriveItem, bool? canReadDrive, bool? canReadLabels, bool? canReadRevisions, bool? canReadTeamDrive, bool? canRemoveChildren, bool? canRemoveContentRestriction, bool? canRemoveMyDriveParent, bool? canRename, bool? canShare, bool? canTrash, bool? canTrashChildren, bool? canUntrash})
FileCapabilities.fromJson(Map json_)

Properties

canAcceptOwnership bool?
Whether the current user is the pending owner of the file.
getter/setter pair
canAddChildren bool?
Whether the current user can add children to this folder.
getter/setter pair
canAddFolderFromAnotherDrive bool?
Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder.
getter/setter pair
canAddMyDriveParent bool?
Whether the current user can add a parent for the item without removing an existing parent in the same request.
getter/setter pair
canChangeCopyRequiresWriterPermission bool?
Whether the current user can change the copyRequiresWriterPermission restriction of this file.
getter/setter pair
canChangeRestrictedDownload bool?
Deprecated.
getter/setter pair
canChangeSecurityUpdateEnabled bool?
Whether the current user can change the securityUpdateEnabled field on link share metadata.
getter/setter pair
canComment bool?
Whether the current user can comment on this file.
getter/setter pair
canCopy bool?
Whether the current user can copy this file.
getter/setter pair
canDelete bool?
Whether the current user can delete this file.
getter/setter pair
canDeleteChildren bool?
Whether the current user can delete children of this folder.
getter/setter pair
canDownload bool?
Whether the current user can download this file.
getter/setter pair
canEdit bool?
Whether the current user can edit this file.
getter/setter pair
canListChildren bool?
Whether the current user can list the children of this folder.
getter/setter pair
canModifyContent bool?
Whether the current user can modify the content of this file.
getter/setter pair
canModifyContentRestriction bool?
Deprecated: Output only.
getter/setter pair
canModifyEditorContentRestriction bool?
Whether the current user can add or modify content restrictions on the file which are editor restricted.
getter/setter pair
canModifyLabels bool?
Whether the current user can modify the labels on the file.
getter/setter pair
canModifyOwnerContentRestriction bool?
Whether the current user can add or modify content restrictions which are owner restricted.
getter/setter pair
canMoveChildrenOutOfDrive bool?
Whether the current user can move children of this folder outside of the shared drive.
getter/setter pair
canMoveChildrenOutOfTeamDrive bool?
Deprecated: Use canMoveChildrenOutOfDrive instead.
getter/setter pair
canMoveChildrenWithinDrive bool?
Whether the current user can move children of this folder within this drive.
getter/setter pair
canMoveChildrenWithinTeamDrive bool?
Deprecated: Use canMoveChildrenWithinDrive instead.
getter/setter pair
canMoveItemIntoTeamDrive bool?
Deprecated: Use canMoveItemOutOfDrive instead.
getter/setter pair
canMoveItemOutOfDrive bool?
Whether the current user can move this item outside of this drive by changing its parent.
getter/setter pair
canMoveItemOutOfTeamDrive bool?
Deprecated: Use canMoveItemOutOfDrive instead.
getter/setter pair
canMoveItemWithinDrive bool?
Whether the current user can move this item within this drive.
getter/setter pair
canMoveItemWithinTeamDrive bool?
Deprecated: Use canMoveItemWithinDrive instead.
getter/setter pair
canMoveTeamDriveItem bool?
Deprecated: Use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
getter/setter pair
canReadDrive bool?
Whether the current user can read the shared drive to which this file belongs.
getter/setter pair
canReadLabels bool?
Whether the current user can read the labels on the file.
getter/setter pair
canReadRevisions bool?
Whether the current user can read the revisions resource of this file.
getter/setter pair
canReadTeamDrive bool?
Deprecated: Use canReadDrive instead.
getter/setter pair
canRemoveChildren bool?
Whether the current user can remove children from this folder.
getter/setter pair
canRemoveContentRestriction bool?
Whether there is a content restriction on the file that can be removed by the current user.
getter/setter pair
canRemoveMyDriveParent bool?
Whether the current user can remove a parent from the item without adding another parent in the same request.
getter/setter pair
canRename bool?
Whether the current user can rename this file.
getter/setter pair
canShare bool?
Whether the current user can modify the sharing settings for this file.
getter/setter pair
canTrash bool?
Whether the current user can move this file to trash.
getter/setter pair
canTrashChildren bool?
Whether the current user can trash children of this folder.
getter/setter pair
canUntrash bool?
Whether the current user can restore this file from trash.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited