Class File.CapabilitiesData
Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
Inheritance
Inherited Members
Namespace: Google.Apis.Drive.v3.Data
Assembly: Google.Apis.Drive.v3.dll
Syntax
public class CapabilitiesData
Properties
CanAddChildren
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 |
---|---|
System.Nullable<System.Boolean> |
CanChangeCopyRequiresWriterPermission
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 |
---|---|
System.Nullable<System.Boolean> |
CanChangeViewersCanCopyContent
Deprecated
Declaration
[JsonProperty("canChangeViewersCanCopyContent")]
public virtual bool? CanChangeViewersCanCopyContent { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanComment
Whether the current user can comment on this file.
Declaration
[JsonProperty("canComment")]
public virtual bool? CanComment { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanCopy
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 |
---|---|
System.Nullable<System.Boolean> |
CanDelete
Whether the current user can delete this file.
Declaration
[JsonProperty("canDelete")]
public virtual bool? CanDelete { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanDeleteChildren
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 |
---|---|
System.Nullable<System.Boolean> |
CanDownload
Whether the current user can download this file.
Declaration
[JsonProperty("canDownload")]
public virtual bool? CanDownload { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanEdit
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 |
---|---|
System.Nullable<System.Boolean> |
CanListChildren
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 |
---|---|
System.Nullable<System.Boolean> |
CanModifyContent
Whether the current user can modify the content of this file.
Declaration
[JsonProperty("canModifyContent")]
public virtual bool? CanModifyContent { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanMoveChildrenOutOfDrive
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 |
---|---|
System.Nullable<System.Boolean> |
CanMoveChildrenOutOfTeamDrive
Deprecated - use canMoveChildrenOutOfDrive instead.
Declaration
[JsonProperty("canMoveChildrenOutOfTeamDrive")]
public virtual bool? CanMoveChildrenOutOfTeamDrive { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanMoveChildrenWithinDrive
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.
Declaration
[JsonProperty("canMoveChildrenWithinDrive")]
public virtual bool? CanMoveChildrenWithinDrive { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanMoveChildrenWithinTeamDrive
Deprecated - use canMoveChildrenWithinDrive instead.
Declaration
[JsonProperty("canMoveChildrenWithinTeamDrive")]
public virtual bool? CanMoveChildrenWithinTeamDrive { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanMoveItemIntoTeamDrive
Deprecated - use canMoveItemOutOfDrive instead.
Declaration
[JsonProperty("canMoveItemIntoTeamDrive")]
public virtual bool? CanMoveItemIntoTeamDrive { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanMoveItemOutOfDrive
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 |
---|---|
System.Nullable<System.Boolean> |
CanMoveItemOutOfTeamDrive
Deprecated - use canMoveItemOutOfDrive instead.
Declaration
[JsonProperty("canMoveItemOutOfTeamDrive")]
public virtual bool? CanMoveItemOutOfTeamDrive { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanMoveItemWithinDrive
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.
Declaration
[JsonProperty("canMoveItemWithinDrive")]
public virtual bool? CanMoveItemWithinDrive { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanMoveItemWithinTeamDrive
Deprecated - use canMoveItemWithinDrive instead.
Declaration
[JsonProperty("canMoveItemWithinTeamDrive")]
public virtual bool? CanMoveItemWithinTeamDrive { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanMoveTeamDriveItem
Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
Declaration
[JsonProperty("canMoveTeamDriveItem")]
public virtual bool? CanMoveTeamDriveItem { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanReadDrive
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 |
---|---|
System.Nullable<System.Boolean> |
CanReadRevisions
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 |
---|---|
System.Nullable<System.Boolean> |
CanReadTeamDrive
Deprecated - use canReadDrive instead.
Declaration
[JsonProperty("canReadTeamDrive")]
public virtual bool? CanReadTeamDrive { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanRemoveChildren
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 |
---|---|
System.Nullable<System.Boolean> |
CanRename
Whether the current user can rename this file.
Declaration
[JsonProperty("canRename")]
public virtual bool? CanRename { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanShare
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 |
---|---|
System.Nullable<System.Boolean> |
CanTrash
Whether the current user can move this file to trash.
Declaration
[JsonProperty("canTrash")]
public virtual bool? CanTrash { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
CanTrashChildren
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 |
---|---|
System.Nullable<System.Boolean> |
CanUntrash
Whether the current user can restore this file from trash.
Declaration
[JsonProperty("canUntrash")]
public virtual bool? CanUntrash { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |