Class File.CapabilitiesData
Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
Inherited Members
Namespace: Google.Apis.Drive.v3.Data
Assembly: Google.Apis.Drive.v3.dll
Syntax
public class File.CapabilitiesData
Properties
CanAcceptOwnership
Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
Declaration
[JsonProperty("canAcceptOwnership")]
public virtual bool? CanAcceptOwnership { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanAddChildren
Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
Declaration
[JsonProperty("canAddChildren")]
public virtual bool? CanAddChildren { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanAddFolderFromAnotherDrive
Output only. Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
Declaration
[JsonProperty("canAddFolderFromAnotherDrive")]
public virtual bool? CanAddFolderFromAnotherDrive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanAddMyDriveParent
Output only. Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
Declaration
[JsonProperty("canAddMyDriveParent")]
public virtual bool? CanAddMyDriveParent { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanChangeCopyRequiresWriterPermission
Output only. Whether the current user can change the copyRequiresWriterPermission
restriction of this
file.
Declaration
[JsonProperty("canChangeCopyRequiresWriterPermission")]
public virtual bool? CanChangeCopyRequiresWriterPermission { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanChangeSecurityUpdateEnabled
Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
Declaration
[JsonProperty("canChangeSecurityUpdateEnabled")]
public virtual bool? CanChangeSecurityUpdateEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanChangeViewersCanCopyContent
Deprecated: Output only.
Declaration
[JsonProperty("canChangeViewersCanCopyContent")]
public virtual bool? CanChangeViewersCanCopyContent { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanComment
Output only. Whether the current user can comment on this file.
Declaration
[JsonProperty("canComment")]
public virtual bool? CanComment { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanCopy
Output only. 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.
Declaration
[JsonProperty("canCopy")]
public virtual bool? CanCopy { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanDelete
Output only. Whether the current user can delete this file.
Declaration
[JsonProperty("canDelete")]
public virtual bool? CanDelete { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanDeleteChildren
Output only. 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.
Declaration
[JsonProperty("canDeleteChildren")]
public virtual bool? CanDeleteChildren { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanDownload
Output only. Whether the current user can download this file.
Declaration
[JsonProperty("canDownload")]
public virtual bool? CanDownload { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanEdit
Output only. Whether the current user can edit this file. Other factors may limit the type of changes a
user can make to a file. For example, see canChangeCopyRequiresWriterPermission
or canModifyContent
.
Declaration
[JsonProperty("canEdit")]
public virtual bool? CanEdit { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanListChildren
Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
Declaration
[JsonProperty("canListChildren")]
public virtual bool? CanListChildren { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanModifyContent
Output only. Whether the current user can modify the content of this file.
Declaration
[JsonProperty("canModifyContent")]
public virtual bool? CanModifyContent { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanModifyContentRestriction
Deprecated: Output only. Use one of canModifyEditorContentRestriction
,
canModifyOwnerContentRestriction
or canRemoveContentRestriction
.
Declaration
[JsonProperty("canModifyContentRestriction")]
public virtual bool? CanModifyContentRestriction { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanModifyEditorContentRestriction
Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
Declaration
[JsonProperty("canModifyEditorContentRestriction")]
public virtual bool? CanModifyEditorContentRestriction { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanModifyLabels
Output only. Whether the current user can modify the labels on the file.
Declaration
[JsonProperty("canModifyLabels")]
public virtual bool? CanModifyLabels { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanModifyOwnerContentRestriction
Output only. Whether the current user can add or modify content restrictions which are owner restricted.
Declaration
[JsonProperty("canModifyOwnerContentRestriction")]
public virtual bool? CanModifyOwnerContentRestriction { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanMoveChildrenOutOfDrive
Output only. 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.
Declaration
[JsonProperty("canMoveChildrenOutOfDrive")]
public virtual bool? CanMoveChildrenOutOfDrive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanMoveChildrenOutOfTeamDrive
Deprecated: Output only. Use canMoveChildrenOutOfDrive
instead.
Declaration
[JsonProperty("canMoveChildrenOutOfTeamDrive")]
public virtual bool? CanMoveChildrenOutOfTeamDrive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanMoveChildrenWithinDrive
Output only. Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user's access to the child and to the destination folder.
Declaration
[JsonProperty("canMoveChildrenWithinDrive")]
public virtual bool? CanMoveChildrenWithinDrive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanMoveChildrenWithinTeamDrive
Deprecated: Output only. Use canMoveChildrenWithinDrive
instead.
Declaration
[JsonProperty("canMoveChildrenWithinTeamDrive")]
public virtual bool? CanMoveChildrenWithinTeamDrive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanMoveItemIntoTeamDrive
Deprecated: Output only. Use canMoveItemOutOfDrive
instead.
Declaration
[JsonProperty("canMoveItemIntoTeamDrive")]
public virtual bool? CanMoveItemIntoTeamDrive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanMoveItemOutOfDrive
Output only. 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.
Declaration
[JsonProperty("canMoveItemOutOfDrive")]
public virtual bool? CanMoveItemOutOfDrive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanMoveItemOutOfTeamDrive
Deprecated: Output only. Use canMoveItemOutOfDrive
instead.
Declaration
[JsonProperty("canMoveItemOutOfTeamDrive")]
public virtual bool? CanMoveItemOutOfTeamDrive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanMoveItemWithinDrive
Output only. Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
Declaration
[JsonProperty("canMoveItemWithinDrive")]
public virtual bool? CanMoveItemWithinDrive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanMoveItemWithinTeamDrive
Deprecated: Output only. Use canMoveItemWithinDrive
instead.
Declaration
[JsonProperty("canMoveItemWithinTeamDrive")]
public virtual bool? CanMoveItemWithinTeamDrive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanMoveTeamDriveItem
Deprecated: Output only. Use canMoveItemWithinDrive
or canMoveItemOutOfDrive
instead.
Declaration
[JsonProperty("canMoveTeamDriveItem")]
public virtual bool? CanMoveTeamDriveItem { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanReadDrive
Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
Declaration
[JsonProperty("canReadDrive")]
public virtual bool? CanReadDrive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanReadLabels
Output only. Whether the current user can read the labels on the file.
Declaration
[JsonProperty("canReadLabels")]
public virtual bool? CanReadLabels { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanReadRevisions
Output only. 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.
Declaration
[JsonProperty("canReadRevisions")]
public virtual bool? CanReadRevisions { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanReadTeamDrive
Deprecated: Output only. Use canReadDrive
instead.
Declaration
[JsonProperty("canReadTeamDrive")]
public virtual bool? CanReadTeamDrive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanRemoveChildren
Output only. 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.
Declaration
[JsonProperty("canRemoveChildren")]
public virtual bool? CanRemoveChildren { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanRemoveContentRestriction
Output only. Whether there is a content restriction on the file that can be removed by the current user.
Declaration
[JsonProperty("canRemoveContentRestriction")]
public virtual bool? CanRemoveContentRestriction { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanRemoveMyDriveParent
Output only. Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
Declaration
[JsonProperty("canRemoveMyDriveParent")]
public virtual bool? CanRemoveMyDriveParent { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanRename
Output only. Whether the current user can rename this file.
Declaration
[JsonProperty("canRename")]
public virtual bool? CanRename { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanShare
Output only. Whether the current user can modify the sharing settings for this file.
Declaration
[JsonProperty("canShare")]
public virtual bool? CanShare { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanTrash
Output only. Whether the current user can move this file to trash.
Declaration
[JsonProperty("canTrash")]
public virtual bool? CanTrash { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanTrashChildren
Output only. 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.
Declaration
[JsonProperty("canTrashChildren")]
public virtual bool? CanTrashChildren { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CanUntrash
Output only. Whether the current user can restore this file from trash.
Declaration
[JsonProperty("canUntrash")]
public virtual bool? CanUntrash { get; set; }
Property Value
Type | Description |
---|---|
bool? |