PermissionsResource class

Constructors

PermissionsResource(ApiRequester client)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String fileId, String permissionId, {bool? supportsAllDrives, bool? supportsTeamDrives, bool? useDomainAdminAccess, String? $fields}) Future<void>
Deletes a permission from a file or shared drive.
get(String fileId, String permissionId, {bool? supportsAllDrives, bool? supportsTeamDrives, bool? useDomainAdminAccess, String? $fields}) Future<Permission>
Gets a permission by ID.
getIdForEmail(String email, {String? $fields}) Future<PermissionId>
Returns the permission ID for an email address.
insert(Permission request, String fileId, {String? emailMessage, bool? enforceSingleParent, bool? moveToNewOwnersRoot, bool? sendNotificationEmails, bool? supportsAllDrives, bool? supportsTeamDrives, bool? useDomainAdminAccess, String? $fields}) Future<Permission>
Inserts a permission for a file or shared drive.
list(String fileId, {String? includePermissionsForView, int? maxResults, String? pageToken, bool? supportsAllDrives, bool? supportsTeamDrives, bool? useDomainAdminAccess, String? $fields}) Future<PermissionList>
Lists a file's or shared drive's permissions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(Permission request, String fileId, String permissionId, {bool? removeExpiration, bool? supportsAllDrives, bool? supportsTeamDrives, bool? transferOwnership, bool? useDomainAdminAccess, String? $fields}) Future<Permission>
Updates a permission using patch semantics.
toString() String
A string representation of this object.
inherited
update(Permission request, String fileId, String permissionId, {bool? removeExpiration, bool? supportsAllDrives, bool? supportsTeamDrives, bool? transferOwnership, bool? useDomainAdminAccess, String? $fields}) Future<Permission>
Updates a permission.

Operators

operator ==(Object other) bool
The equality operator.
inherited