IPWorks Cloud 2020 Android Edition

Questions / Feedback?

GDrivePermission Type

A file, folder, or shared drive permission.

Remarks

This type represents a file, folder, or shared drive permission.

Fields

AllowFileDiscovery
boolean

Whether the permission allows the file or folder to be discovered through search.

This field indicates whether the permission allows the file or folder to which it applies to be discovered through search.

This field is only applicable if the permission's Type is set to 2 (ptDomain) or 3 (ptAnyone).

Domain
String

The domain to which the permission applies.

This field is used to define the domain to which the permission applies when Type is set to 2 (ptDomain).

Email
String

The user or group to which the permission applies.

This field is used to define the user or group to which the permission applies when Type is set to 0 (ptUser) or 1 (ptGroup).

Id
String

The Id of the permission.

This field holds the Id of the permission.

ModOp
int

The operation to perform on the permission.

This field is used to specify the operation that the component should perform on the permission when UpdatePermissions is called. Valid values are:

moNone (0) (default) No-Op (the component skips the permission).
moCreate (1) The permission will be created.
moUpdate (2) The permission will be updated.
moDelete (3) The permission will be deleted.

Refer to UpdatePermissions for more information.

Role
int

The role specified by the permission.

This field defines the role specified by the permission. Possible values are:

prReader (0) (default) Read-only permissions.
prCommenter (1) Read-only plus commenting permissions.
prWriter (2) Read, write, and comment permissions.
prOwner (3) Full ownership (personal drives only).
prFileOrganizer (4) Writer permissions, plus the ability to move and trash resources (shared drives only).
prOrganizer (5) File organizer permissions, plus the ability to permanently delete resources from, and rename/delete/alter the membership of, a shared drive (shared drives only).

Type
int

The set of users to which the permission applies.

This field defines the set of users to which the permission role defined in Role applies.

The Email and Domain fields are used to define the user, group, or domain to which the permission applies. The following table shows which field is associated with which permission type:

Value Description Related field
0 (ptUser - default) A single user. Email
1 (ptGroup) A group. Email
2 (ptDomain) A domain. Domain
3 (ptAnyone) Anyone, authenticated or not. N/A

Constructors

public GDrivePermission();



Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Android Edition - Version 20.0 [Build 8265]