target.apidocs.com.google.api.services.drive.model.TeamDrive.Capabilities.html Maven / Gradle / Ivy
TeamDrive.Capabilities (Google Drive API v3-rev20241027-2.0.0)
com.google.api.services.drive.model
Class TeamDrive.Capabilities
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.drive.model.TeamDrive.Capabilities
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Capabilities()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
TeamDrive.Capabilities
clone()
Boolean
getCanAddChildren()
Whether the current user can add children to folders in this Team Drive.
Boolean
getCanChangeCopyRequiresWriterPermissionRestriction()
Whether the current user can change the `copyRequiresWriterPermission` restriction of this Team
Drive.
Boolean
getCanChangeDomainUsersOnlyRestriction()
Whether the current user can change the `domainUsersOnly` restriction of this Team Drive.
Boolean
getCanChangeSharingFoldersRequiresOrganizerPermissionRestriction()
Whether the current user can change the `sharingFoldersRequiresOrganizerPermission` restriction
of this Team Drive.
Boolean
getCanChangeTeamDriveBackground()
Whether the current user can change the background of this Team Drive.
Boolean
getCanChangeTeamMembersOnlyRestriction()
Whether the current user can change the `teamMembersOnly` restriction of this Team Drive.
Boolean
getCanComment()
Whether the current user can comment on files in this Team Drive.
Boolean
getCanCopy()
Whether the current user can copy files in this Team Drive.
Boolean
getCanDeleteChildren()
Whether the current user can delete children from folders in this Team Drive.
Boolean
getCanDeleteTeamDrive()
Whether the current user can delete this Team Drive.
Boolean
getCanDownload()
Whether the current user can download files in this Team Drive.
Boolean
getCanEdit()
Whether the current user can edit files in this Team Drive
Boolean
getCanListChildren()
Whether the current user can list the children of folders in this Team Drive.
Boolean
getCanManageMembers()
Whether the current user can add members to this Team Drive or remove them or change their
role.
Boolean
getCanReadRevisions()
Whether the current user can read the revisions resource of files in this Team Drive.
Boolean
getCanRemoveChildren()
Deprecated: Use `canDeleteChildren` or `canTrashChildren` instead.
Boolean
getCanRename()
Whether the current user can rename files or folders in this Team Drive.
Boolean
getCanRenameTeamDrive()
Whether the current user can rename this Team Drive.
Boolean
getCanResetTeamDriveRestrictions()
Whether the current user can reset the Team Drive restrictions to defaults.
Boolean
getCanShare()
Whether the current user can share files or folders in this Team Drive.
Boolean
getCanTrashChildren()
Whether the current user can trash children from folders in this Team Drive.
TeamDrive.Capabilities
set(String fieldName,
Object value)
TeamDrive.Capabilities
setCanAddChildren(Boolean canAddChildren)
Whether the current user can add children to folders in this Team Drive.
TeamDrive.Capabilities
setCanChangeCopyRequiresWriterPermissionRestriction(Boolean canChangeCopyRequiresWriterPermissionRestriction)
Whether the current user can change the `copyRequiresWriterPermission` restriction of this Team
Drive.
TeamDrive.Capabilities
setCanChangeDomainUsersOnlyRestriction(Boolean canChangeDomainUsersOnlyRestriction)
Whether the current user can change the `domainUsersOnly` restriction of this Team Drive.
TeamDrive.Capabilities
setCanChangeSharingFoldersRequiresOrganizerPermissionRestriction(Boolean canChangeSharingFoldersRequiresOrganizerPermissionRestriction)
Whether the current user can change the `sharingFoldersRequiresOrganizerPermission` restriction
of this Team Drive.
TeamDrive.Capabilities
setCanChangeTeamDriveBackground(Boolean canChangeTeamDriveBackground)
Whether the current user can change the background of this Team Drive.
TeamDrive.Capabilities
setCanChangeTeamMembersOnlyRestriction(Boolean canChangeTeamMembersOnlyRestriction)
Whether the current user can change the `teamMembersOnly` restriction of this Team Drive.
TeamDrive.Capabilities
setCanComment(Boolean canComment)
Whether the current user can comment on files in this Team Drive.
TeamDrive.Capabilities
setCanCopy(Boolean canCopy)
Whether the current user can copy files in this Team Drive.
TeamDrive.Capabilities
setCanDeleteChildren(Boolean canDeleteChildren)
Whether the current user can delete children from folders in this Team Drive.
TeamDrive.Capabilities
setCanDeleteTeamDrive(Boolean canDeleteTeamDrive)
Whether the current user can delete this Team Drive.
TeamDrive.Capabilities
setCanDownload(Boolean canDownload)
Whether the current user can download files in this Team Drive.
TeamDrive.Capabilities
setCanEdit(Boolean canEdit)
Whether the current user can edit files in this Team Drive
TeamDrive.Capabilities
setCanListChildren(Boolean canListChildren)
Whether the current user can list the children of folders in this Team Drive.
TeamDrive.Capabilities
setCanManageMembers(Boolean canManageMembers)
Whether the current user can add members to this Team Drive or remove them or change their
role.
TeamDrive.Capabilities
setCanReadRevisions(Boolean canReadRevisions)
Whether the current user can read the revisions resource of files in this Team Drive.
TeamDrive.Capabilities
setCanRemoveChildren(Boolean canRemoveChildren)
Deprecated: Use `canDeleteChildren` or `canTrashChildren` instead.
TeamDrive.Capabilities
setCanRename(Boolean canRename)
Whether the current user can rename files or folders in this Team Drive.
TeamDrive.Capabilities
setCanRenameTeamDrive(Boolean canRenameTeamDrive)
Whether the current user can rename this Team Drive.
TeamDrive.Capabilities
setCanResetTeamDriveRestrictions(Boolean canResetTeamDriveRestrictions)
Whether the current user can reset the Team Drive restrictions to defaults.
TeamDrive.Capabilities
setCanShare(Boolean canShare)
Whether the current user can share files or folders in this Team Drive.
TeamDrive.Capabilities
setCanTrashChildren(Boolean canTrashChildren)
Whether the current user can trash children from folders in this Team Drive.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCanAddChildren
public Boolean getCanAddChildren()
Whether the current user can add children to folders in this Team Drive.
- Returns:
- value or
null
for none
-
setCanAddChildren
public TeamDrive.Capabilities setCanAddChildren(Boolean canAddChildren)
Whether the current user can add children to folders in this Team Drive.
- Parameters:
canAddChildren
- canAddChildren or null
for none
-
getCanChangeCopyRequiresWriterPermissionRestriction
public Boolean getCanChangeCopyRequiresWriterPermissionRestriction()
Whether the current user can change the `copyRequiresWriterPermission` restriction of this Team
Drive.
- Returns:
- value or
null
for none
-
setCanChangeCopyRequiresWriterPermissionRestriction
public TeamDrive.Capabilities setCanChangeCopyRequiresWriterPermissionRestriction(Boolean canChangeCopyRequiresWriterPermissionRestriction)
Whether the current user can change the `copyRequiresWriterPermission` restriction of this Team
Drive.
- Parameters:
canChangeCopyRequiresWriterPermissionRestriction
- canChangeCopyRequiresWriterPermissionRestriction or null
for none
-
getCanChangeDomainUsersOnlyRestriction
public Boolean getCanChangeDomainUsersOnlyRestriction()
Whether the current user can change the `domainUsersOnly` restriction of this Team Drive.
- Returns:
- value or
null
for none
-
setCanChangeDomainUsersOnlyRestriction
public TeamDrive.Capabilities setCanChangeDomainUsersOnlyRestriction(Boolean canChangeDomainUsersOnlyRestriction)
Whether the current user can change the `domainUsersOnly` restriction of this Team Drive.
- Parameters:
canChangeDomainUsersOnlyRestriction
- canChangeDomainUsersOnlyRestriction or null
for none
-
getCanChangeSharingFoldersRequiresOrganizerPermissionRestriction
public Boolean getCanChangeSharingFoldersRequiresOrganizerPermissionRestriction()
Whether the current user can change the `sharingFoldersRequiresOrganizerPermission` restriction
of this Team Drive.
- Returns:
- value or
null
for none
-
setCanChangeSharingFoldersRequiresOrganizerPermissionRestriction
public TeamDrive.Capabilities setCanChangeSharingFoldersRequiresOrganizerPermissionRestriction(Boolean canChangeSharingFoldersRequiresOrganizerPermissionRestriction)
Whether the current user can change the `sharingFoldersRequiresOrganizerPermission` restriction
of this Team Drive.
- Parameters:
canChangeSharingFoldersRequiresOrganizerPermissionRestriction
- canChangeSharingFoldersRequiresOrganizerPermissionRestriction or null
for none
-
getCanChangeTeamDriveBackground
public Boolean getCanChangeTeamDriveBackground()
Whether the current user can change the background of this Team Drive.
- Returns:
- value or
null
for none
-
setCanChangeTeamDriveBackground
public TeamDrive.Capabilities setCanChangeTeamDriveBackground(Boolean canChangeTeamDriveBackground)
Whether the current user can change the background of this Team Drive.
- Parameters:
canChangeTeamDriveBackground
- canChangeTeamDriveBackground or null
for none
-
getCanChangeTeamMembersOnlyRestriction
public Boolean getCanChangeTeamMembersOnlyRestriction()
Whether the current user can change the `teamMembersOnly` restriction of this Team Drive.
- Returns:
- value or
null
for none
-
setCanChangeTeamMembersOnlyRestriction
public TeamDrive.Capabilities setCanChangeTeamMembersOnlyRestriction(Boolean canChangeTeamMembersOnlyRestriction)
Whether the current user can change the `teamMembersOnly` restriction of this Team Drive.
- Parameters:
canChangeTeamMembersOnlyRestriction
- canChangeTeamMembersOnlyRestriction or null
for none
-
getCanComment
public Boolean getCanComment()
Whether the current user can comment on files in this Team Drive.
- Returns:
- value or
null
for none
-
setCanComment
public TeamDrive.Capabilities setCanComment(Boolean canComment)
Whether the current user can comment on files in this Team Drive.
- Parameters:
canComment
- canComment or null
for none
-
getCanCopy
public Boolean getCanCopy()
Whether the current user can copy files in this Team Drive.
- Returns:
- value or
null
for none
-
setCanCopy
public TeamDrive.Capabilities setCanCopy(Boolean canCopy)
Whether the current user can copy files in this Team Drive.
- Parameters:
canCopy
- canCopy or null
for none
-
getCanDeleteChildren
public Boolean getCanDeleteChildren()
Whether the current user can delete children from folders in this Team Drive.
- Returns:
- value or
null
for none
-
setCanDeleteChildren
public TeamDrive.Capabilities setCanDeleteChildren(Boolean canDeleteChildren)
Whether the current user can delete children from folders in this Team Drive.
- Parameters:
canDeleteChildren
- canDeleteChildren or null
for none
-
getCanDeleteTeamDrive
public Boolean getCanDeleteTeamDrive()
Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may
still fail if there are untrashed items inside the Team Drive.
- Returns:
- value or
null
for none
-
setCanDeleteTeamDrive
public TeamDrive.Capabilities setCanDeleteTeamDrive(Boolean canDeleteTeamDrive)
Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may
still fail if there are untrashed items inside the Team Drive.
- Parameters:
canDeleteTeamDrive
- canDeleteTeamDrive or null
for none
-
getCanDownload
public Boolean getCanDownload()
Whether the current user can download files in this Team Drive.
- Returns:
- value or
null
for none
-
setCanDownload
public TeamDrive.Capabilities setCanDownload(Boolean canDownload)
Whether the current user can download files in this Team Drive.
- Parameters:
canDownload
- canDownload or null
for none
-
getCanEdit
public Boolean getCanEdit()
Whether the current user can edit files in this Team Drive
- Returns:
- value or
null
for none
-
setCanEdit
public TeamDrive.Capabilities setCanEdit(Boolean canEdit)
Whether the current user can edit files in this Team Drive
- Parameters:
canEdit
- canEdit or null
for none
-
getCanListChildren
public Boolean getCanListChildren()
Whether the current user can list the children of folders in this Team Drive.
- Returns:
- value or
null
for none
-
setCanListChildren
public TeamDrive.Capabilities setCanListChildren(Boolean canListChildren)
Whether the current user can list the children of folders in this Team Drive.
- Parameters:
canListChildren
- canListChildren or null
for none
-
getCanManageMembers
public Boolean getCanManageMembers()
Whether the current user can add members to this Team Drive or remove them or change their
role.
- Returns:
- value or
null
for none
-
setCanManageMembers
public TeamDrive.Capabilities setCanManageMembers(Boolean canManageMembers)
Whether the current user can add members to this Team Drive or remove them or change their
role.
- Parameters:
canManageMembers
- canManageMembers or null
for none
-
getCanReadRevisions
public Boolean getCanReadRevisions()
Whether the current user can read the revisions resource of files in this Team Drive.
- Returns:
- value or
null
for none
-
setCanReadRevisions
public TeamDrive.Capabilities setCanReadRevisions(Boolean canReadRevisions)
Whether the current user can read the revisions resource of files in this Team Drive.
- Parameters:
canReadRevisions
- canReadRevisions or null
for none
-
getCanRemoveChildren
public Boolean getCanRemoveChildren()
Deprecated: Use `canDeleteChildren` or `canTrashChildren` instead.
- Returns:
- value or
null
for none
-
setCanRemoveChildren
public TeamDrive.Capabilities setCanRemoveChildren(Boolean canRemoveChildren)
Deprecated: Use `canDeleteChildren` or `canTrashChildren` instead.
- Parameters:
canRemoveChildren
- canRemoveChildren or null
for none
-
getCanRename
public Boolean getCanRename()
Whether the current user can rename files or folders in this Team Drive.
- Returns:
- value or
null
for none
-
setCanRename
public TeamDrive.Capabilities setCanRename(Boolean canRename)
Whether the current user can rename files or folders in this Team Drive.
- Parameters:
canRename
- canRename or null
for none
-
getCanRenameTeamDrive
public Boolean getCanRenameTeamDrive()
Whether the current user can rename this Team Drive.
- Returns:
- value or
null
for none
-
setCanRenameTeamDrive
public TeamDrive.Capabilities setCanRenameTeamDrive(Boolean canRenameTeamDrive)
Whether the current user can rename this Team Drive.
- Parameters:
canRenameTeamDrive
- canRenameTeamDrive or null
for none
-
getCanResetTeamDriveRestrictions
public Boolean getCanResetTeamDriveRestrictions()
Whether the current user can reset the Team Drive restrictions to defaults.
- Returns:
- value or
null
for none
-
setCanResetTeamDriveRestrictions
public TeamDrive.Capabilities setCanResetTeamDriveRestrictions(Boolean canResetTeamDriveRestrictions)
Whether the current user can reset the Team Drive restrictions to defaults.
- Parameters:
canResetTeamDriveRestrictions
- canResetTeamDriveRestrictions or null
for none
-
getCanShare
public Boolean getCanShare()
Whether the current user can share files or folders in this Team Drive.
- Returns:
- value or
null
for none
-
setCanShare
public TeamDrive.Capabilities setCanShare(Boolean canShare)
Whether the current user can share files or folders in this Team Drive.
- Parameters:
canShare
- canShare or null
for none
-
getCanTrashChildren
public Boolean getCanTrashChildren()
Whether the current user can trash children from folders in this Team Drive.
- Returns:
- value or
null
for none
-
setCanTrashChildren
public TeamDrive.Capabilities setCanTrashChildren(Boolean canTrashChildren)
Whether the current user can trash children from folders in this Team Drive.
- Parameters:
canTrashChildren
- canTrashChildren or null
for none
-
set
public TeamDrive.Capabilities set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public TeamDrive.Capabilities clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy