All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.drive.model.Drive.Capabilities.html Maven / Gradle / Ivy

There is a newer version: v3-rev20241027-2.0.0
Show newest version






Drive.Capabilities (Google Drive API v3-rev20240123-2.0.0)












com.google.api.services.drive.model

Class Drive.Capabilities

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>
    Enclosing class:
    Drive


    public static final class Drive.Capabilities
    extends com.google.api.client.json.GenericJson
    Output only. Capabilities the current user has on this shared drive.
    • Constructor Detail

      • Capabilities

        public Capabilities()
    • Method Detail

      • getCanAddChildren

        public Boolean getCanAddChildren()
        Output only. Whether the current user can add children to folders in this shared drive.
        Returns:
        value or null for none
      • setCanAddChildren

        public Drive.Capabilities setCanAddChildren(Boolean canAddChildren)
        Output only. Whether the current user can add children to folders in this shared drive.
        Parameters:
        canAddChildren - canAddChildren or null for none
      • getCanChangeCopyRequiresWriterPermissionRestriction

        public Boolean getCanChangeCopyRequiresWriterPermissionRestriction()
        Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this shared drive.
        Returns:
        value or null for none
      • setCanChangeCopyRequiresWriterPermissionRestriction

        public Drive.Capabilities setCanChangeCopyRequiresWriterPermissionRestriction(Boolean canChangeCopyRequiresWriterPermissionRestriction)
        Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this shared drive.
        Parameters:
        canChangeCopyRequiresWriterPermissionRestriction - canChangeCopyRequiresWriterPermissionRestriction or null for none
      • getCanChangeDomainUsersOnlyRestriction

        public Boolean getCanChangeDomainUsersOnlyRestriction()
        Output only. Whether the current user can change the `domainUsersOnly` restriction of this shared drive.
        Returns:
        value or null for none
      • setCanChangeDomainUsersOnlyRestriction

        public Drive.Capabilities setCanChangeDomainUsersOnlyRestriction(Boolean canChangeDomainUsersOnlyRestriction)
        Output only. Whether the current user can change the `domainUsersOnly` restriction of this shared drive.
        Parameters:
        canChangeDomainUsersOnlyRestriction - canChangeDomainUsersOnlyRestriction or null for none
      • getCanChangeDriveBackground

        public Boolean getCanChangeDriveBackground()
        Output only. Whether the current user can change the background of this shared drive.
        Returns:
        value or null for none
      • setCanChangeDriveBackground

        public Drive.Capabilities setCanChangeDriveBackground(Boolean canChangeDriveBackground)
        Output only. Whether the current user can change the background of this shared drive.
        Parameters:
        canChangeDriveBackground - canChangeDriveBackground or null for none
      • getCanChangeDriveMembersOnlyRestriction

        public Boolean getCanChangeDriveMembersOnlyRestriction()
        Output only. Whether the current user can change the `driveMembersOnly` restriction of this shared drive.
        Returns:
        value or null for none
      • setCanChangeDriveMembersOnlyRestriction

        public Drive.Capabilities setCanChangeDriveMembersOnlyRestriction(Boolean canChangeDriveMembersOnlyRestriction)
        Output only. Whether the current user can change the `driveMembersOnly` restriction of this shared drive.
        Parameters:
        canChangeDriveMembersOnlyRestriction - canChangeDriveMembersOnlyRestriction or null for none
      • getCanChangeSharingFoldersRequiresOrganizerPermissionRestriction

        public Boolean getCanChangeSharingFoldersRequiresOrganizerPermissionRestriction()
        Output only. Whether the current user can change the `sharingFoldersRequiresOrganizerPermission` restriction of this shared drive.
        Returns:
        value or null for none
      • setCanChangeSharingFoldersRequiresOrganizerPermissionRestriction

        public Drive.Capabilities setCanChangeSharingFoldersRequiresOrganizerPermissionRestriction(Boolean canChangeSharingFoldersRequiresOrganizerPermissionRestriction)
        Output only. Whether the current user can change the `sharingFoldersRequiresOrganizerPermission` restriction of this shared drive.
        Parameters:
        canChangeSharingFoldersRequiresOrganizerPermissionRestriction - canChangeSharingFoldersRequiresOrganizerPermissionRestriction or null for none
      • getCanComment

        public Boolean getCanComment()
        Output only. Whether the current user can comment on files in this shared drive.
        Returns:
        value or null for none
      • setCanComment

        public Drive.Capabilities setCanComment(Boolean canComment)
        Output only. Whether the current user can comment on files in this shared drive.
        Parameters:
        canComment - canComment or null for none
      • getCanCopy

        public Boolean getCanCopy()
        Output only. Whether the current user can copy files in this shared drive.
        Returns:
        value or null for none
      • setCanCopy

        public Drive.Capabilities setCanCopy(Boolean canCopy)
        Output only. Whether the current user can copy files in this shared drive.
        Parameters:
        canCopy - canCopy or null for none
      • getCanDeleteChildren

        public Boolean getCanDeleteChildren()
        Output only. Whether the current user can delete children from folders in this shared drive.
        Returns:
        value or null for none
      • setCanDeleteChildren

        public Drive.Capabilities setCanDeleteChildren(Boolean canDeleteChildren)
        Output only. Whether the current user can delete children from folders in this shared drive.
        Parameters:
        canDeleteChildren - canDeleteChildren or null for none
      • getCanDeleteDrive

        public Boolean getCanDeleteDrive()
        Output only. Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.
        Returns:
        value or null for none
      • setCanDeleteDrive

        public Drive.Capabilities setCanDeleteDrive(Boolean canDeleteDrive)
        Output only. Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.
        Parameters:
        canDeleteDrive - canDeleteDrive or null for none
      • getCanDownload

        public Boolean getCanDownload()
        Output only. Whether the current user can download files in this shared drive.
        Returns:
        value or null for none
      • setCanDownload

        public Drive.Capabilities setCanDownload(Boolean canDownload)
        Output only. Whether the current user can download files in this shared drive.
        Parameters:
        canDownload - canDownload or null for none
      • getCanEdit

        public Boolean getCanEdit()
        Output only. Whether the current user can edit files in this shared drive
        Returns:
        value or null for none
      • setCanEdit

        public Drive.Capabilities setCanEdit(Boolean canEdit)
        Output only. Whether the current user can edit files in this shared drive
        Parameters:
        canEdit - canEdit or null for none
      • getCanListChildren

        public Boolean getCanListChildren()
        Output only. Whether the current user can list the children of folders in this shared drive.
        Returns:
        value or null for none
      • setCanListChildren

        public Drive.Capabilities setCanListChildren(Boolean canListChildren)
        Output only. Whether the current user can list the children of folders in this shared drive.
        Parameters:
        canListChildren - canListChildren or null for none
      • getCanManageMembers

        public Boolean getCanManageMembers()
        Output only. Whether the current user can add members to this shared drive or remove them or change their role.
        Returns:
        value or null for none
      • setCanManageMembers

        public Drive.Capabilities setCanManageMembers(Boolean canManageMembers)
        Output only. Whether the current user can add members to this shared drive or remove them or change their role.
        Parameters:
        canManageMembers - canManageMembers or null for none
      • getCanReadRevisions

        public Boolean getCanReadRevisions()
        Output only. Whether the current user can read the revisions resource of files in this shared drive.
        Returns:
        value or null for none
      • setCanReadRevisions

        public Drive.Capabilities setCanReadRevisions(Boolean canReadRevisions)
        Output only. Whether the current user can read the revisions resource of files in this shared drive.
        Parameters:
        canReadRevisions - canReadRevisions or null for none
      • getCanRename

        public Boolean getCanRename()
        Output only. Whether the current user can rename files or folders in this shared drive.
        Returns:
        value or null for none
      • setCanRename

        public Drive.Capabilities setCanRename(Boolean canRename)
        Output only. Whether the current user can rename files or folders in this shared drive.
        Parameters:
        canRename - canRename or null for none
      • getCanRenameDrive

        public Boolean getCanRenameDrive()
        Output only. Whether the current user can rename this shared drive.
        Returns:
        value or null for none
      • setCanRenameDrive

        public Drive.Capabilities setCanRenameDrive(Boolean canRenameDrive)
        Output only. Whether the current user can rename this shared drive.
        Parameters:
        canRenameDrive - canRenameDrive or null for none
      • getCanResetDriveRestrictions

        public Boolean getCanResetDriveRestrictions()
        Output only. Whether the current user can reset the shared drive restrictions to defaults.
        Returns:
        value or null for none
      • setCanResetDriveRestrictions

        public Drive.Capabilities setCanResetDriveRestrictions(Boolean canResetDriveRestrictions)
        Output only. Whether the current user can reset the shared drive restrictions to defaults.
        Parameters:
        canResetDriveRestrictions - canResetDriveRestrictions or null for none
      • getCanShare

        public Boolean getCanShare()
        Output only. Whether the current user can share files or folders in this shared drive.
        Returns:
        value or null for none
      • setCanShare

        public Drive.Capabilities setCanShare(Boolean canShare)
        Output only. Whether the current user can share files or folders in this shared drive.
        Parameters:
        canShare - canShare or null for none
      • getCanTrashChildren

        public Boolean getCanTrashChildren()
        Output only. Whether the current user can trash children from folders in this shared drive.
        Returns:
        value or null for none
      • setCanTrashChildren

        public Drive.Capabilities setCanTrashChildren(Boolean canTrashChildren)
        Output only. Whether the current user can trash children from folders in this shared drive.
        Parameters:
        canTrashChildren - canTrashChildren or null for none
      • clone

        public Drive.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