Permission class

A permission for a file.

Constructors

Permission()
Permission.fromJson(Map _json)

Properties

additionalRoles List<String>
Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
read / write
authKey String
Deprecated.
read / write
deleted bool
Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
read / write
domain String
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.
read / write
emailAddress String
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.
read / write
etag String
The ETag of the permission.
read / write
expirationDate DateTime
The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions: [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
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.
read / write
kind String
This is always drive#permission.
read / write
name String
The name for this permission.
read / write
permissionDetails List<PermissionPermissionDetails>
Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
read / write
A link to the profile photo, if available.
read / write
role String
The primary role for this user. While new values may be supported in the future, the following are currently allowed: [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
A link back to this permission.
read / write
teamDrivePermissionDetails List<PermissionTeamDrivePermissionDetails>
Deprecated - use permissionDetails instead.
read / write
type String
The account type. Allowed values are: [...]
read / write
value String
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.
read / write
view String
Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
read / write
Whether the link is required for this permission.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.
inherited

Operators

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