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

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







Permission (Drive API v2-rev20180830-1.26.0)












com.google.api.services.drive.model

Class Permission

    • Constructor Detail

      • Permission

        public Permission()
    • Method Detail

      • getAdditionalRoles

        public List<String> getAdditionalRoles()
        Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
        Returns:
        value or null for none
      • setAdditionalRoles

        public Permission setAdditionalRoles(List<String> additionalRoles)
        Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
        Parameters:
        additionalRoles - additionalRoles or null for none
      • getAuthKey

        public String getAuthKey()
        Deprecated.
        Returns:
        value or null for none
      • setAuthKey

        public Permission setAuthKey(String authKey)
        Deprecated.
        Parameters:
        authKey - authKey or null for none
      • getDeleted

        public Boolean getDeleted()
        Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
        Returns:
        value or null for none
      • setDeleted

        public Permission setDeleted(Boolean deleted)
        Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
        Parameters:
        deleted - deleted or null for none
      • getDomain

        public String getDomain()
        The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
        Returns:
        value or null for none
      • setDomain

        public Permission setDomain(String domain)
        The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
        Parameters:
        domain - domain or null for none
      • getEmailAddress

        public String getEmailAddress()
        The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is user or group.
        Returns:
        value or null for none
      • setEmailAddress

        public Permission setEmailAddress(String emailAddress)
        The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is user or group.
        Parameters:
        emailAddress - emailAddress or null for none
      • getEtag

        public String getEtag()
        The ETag of the permission.
        Returns:
        value or null for none
      • setEtag

        public Permission setEtag(String etag)
        The ETag of the permission.
        Parameters:
        etag - etag or null for none
      • getExpirationDate

        public com.google.api.client.util.DateTime getExpirationDate()
        The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
        Returns:
        value or null for none
      • setExpirationDate

        public Permission setExpirationDate(com.google.api.client.util.DateTime expirationDate)
        The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: - They can only be set on user and group permissions - The date must be in the future - The date cannot be more than a year in the future - The date can only be set on drive.permissions.update or drive.permissions.patch requests
        Parameters:
        expirationDate - expirationDate or null for none
      • getId

        public String getId()
        The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
        Returns:
        value or null for none
      • setId

        public Permission setId(String id)
        The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
        Parameters:
        id - id or null for none
      • getKind

        public String getKind()
        This is always drive#permission.
        Returns:
        value or null for none
      • setKind

        public Permission setKind(String kind)
        This is always drive#permission.
        Parameters:
        kind - kind or null for none
      • getName

        public String getName()
        The name for this permission.
        Returns:
        value or null for none
      • setName

        public Permission setName(String name)
        The name for this permission.
        Parameters:
        name - name or null for none
      • getPhotoLink

        public String getPhotoLink()
        A link to the profile photo, if available.
        Returns:
        value or null for none
      • setPhotoLink

        public Permission setPhotoLink(String photoLink)
        A link to the profile photo, if available.
        Parameters:
        photoLink - photoLink or null for none
      • getRole

        public String getRole()
        The primary role for this user. While new values may be supported in the future, the following are currently allowed: - owner - organizer - fileOrganizer - writer - reader
        Returns:
        value or null for none
      • setRole

        public Permission setRole(String role)
        The primary role for this user. While new values may be supported in the future, the following are currently allowed: - owner - organizer - fileOrganizer - writer - reader
        Parameters:
        role - role or null for none
      • getSelfLink

        public String getSelfLink()
        A link back to this permission.
        Returns:
        value or null for none
      • setSelfLink

        public Permission setSelfLink(String selfLink)
        A link back to this permission.
        Parameters:
        selfLink - selfLink or null for none
      • getTeamDrivePermissionDetails

        public List<Permission.TeamDrivePermissionDetails> getTeamDrivePermissionDetails()
        Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
        Returns:
        value or null for none
      • setTeamDrivePermissionDetails

        public Permission setTeamDrivePermissionDetails(List<Permission.TeamDrivePermissionDetails> teamDrivePermissionDetails)
        Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
        Parameters:
        teamDrivePermissionDetails - teamDrivePermissionDetails or null for none
      • getType

        public String getType()
        The account type. Allowed values are: - user - group - domain - anyone
        Returns:
        value or null for none
      • setType

        public Permission setType(String type)
        The account type. Allowed values are: - user - group - domain - anyone
        Parameters:
        type - type or null for none
      • getValue

        public String getValue()
        The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
        Returns:
        value or null for none
      • setValue

        public Permission setValue(String value)
        The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
        Parameters:
        value - value or null for none
      • getWithLink

        public Boolean getWithLink()
        Whether the link is required for this permission.
        Returns:
        value or null for none
      • setWithLink

        public Permission setWithLink(Boolean withLink)
        Whether the link is required for this permission.
        Parameters:
        withLink - withLink or null for none
      • set

        public Permission set(String fieldName,
                              Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public Permission clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2018 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy