Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- appsActivityService :: ServiceConfig
- driveMetadataReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.metadata.readonly"]
- activityScope :: Proxy '["https://www.googleapis.com/auth/activity"]
- driveReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.readonly"]
- driveScope :: Proxy '["https://www.googleapis.com/auth/drive"]
- driveMetadataScope :: Proxy '["https://www.googleapis.com/auth/drive.metadata"]
- data Parent
- parent :: Parent
- pIsRoot :: Lens' Parent (Maybe Bool)
- pId :: Lens' Parent (Maybe Text)
- pTitle :: Lens' Parent (Maybe Text)
- data Photo
- photo :: Photo
- pURL :: Lens' Photo (Maybe Text)
- data EventPrimaryEventType
- data Event
- event :: Event
- ePrimaryEventType :: Lens' Event (Maybe EventPrimaryEventType)
- eUser :: Lens' Event (Maybe User)
- eEventTimeMillis :: Lens' Event (Maybe Word64)
- eRename :: Lens' Event (Maybe Rename)
- eFromUserDeletion :: Lens' Event (Maybe Bool)
- eAdditionalEventTypes :: Lens' Event [EventAdditionalEventTypesItem]
- ePermissionChanges :: Lens' Event [PermissionChange]
- eTarget :: Lens' Event (Maybe Target)
- eMove :: Lens' Event (Maybe Move)
- data PermissionRole
- data ListActivitiesResponse
- listActivitiesResponse :: ListActivitiesResponse
- larNextPageToken :: Lens' ListActivitiesResponse (Maybe Text)
- larActivities :: Lens' ListActivitiesResponse [Activity]
- data PermissionChange
- permissionChange :: PermissionChange
- pcAddedPermissions :: Lens' PermissionChange [Permission]
- pcRemovedPermissions :: Lens' PermissionChange [Permission]
- data PermissionType
- data User
- user :: User
- uPhoto :: Lens' User (Maybe Photo)
- uIsDeleted :: Lens' User (Maybe Bool)
- uName :: Lens' User (Maybe Text)
- uIsMe :: Lens' User (Maybe Bool)
- uPermissionId :: Lens' User (Maybe Text)
- data EventAdditionalEventTypesItem
- data Activity
- activity :: Activity
- aSingleEvents :: Lens' Activity [Event]
- aCombinedEvent :: Lens' Activity (Maybe Event)
- data ActivitiesListGroupingStrategy
- data Rename
- rename :: Rename
- rNewTitle :: Lens' Rename (Maybe Text)
- rOldTitle :: Lens' Rename (Maybe Text)
- data Permission
- permission :: Permission
- pWithLink :: Lens' Permission (Maybe Bool)
- pUser :: Lens' Permission (Maybe User)
- pRole :: Lens' Permission (Maybe PermissionRole)
- pName :: Lens' Permission (Maybe Text)
- pType :: Lens' Permission (Maybe PermissionType)
- pPermissionId :: Lens' Permission (Maybe Text)
- data Target
- target :: Target
- tMimeType :: Lens' Target (Maybe Text)
- tName :: Lens' Target (Maybe Text)
- tId :: Lens' Target (Maybe Text)
- data Move
- move :: Move
- mAddedParents :: Lens' Move [Parent]
- mRemovedParents :: Lens' Move [Parent]
Service Configuration
appsActivityService :: ServiceConfig Source #
Default request referring to version v1
of the Google Apps Activity API. This contains the host and root path used as a starting point for constructing service requests.
OAuth Scopes
driveMetadataReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.metadata.readonly"] Source #
View metadata for files in your Google Drive
activityScope :: Proxy '["https://www.googleapis.com/auth/activity"] Source #
View the activity history of your Google Apps
driveReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.readonly"] Source #
View the files in your Google Drive
driveScope :: Proxy '["https://www.googleapis.com/auth/drive"] Source #
View and manage the files in your Google Drive
driveMetadataScope :: Proxy '["https://www.googleapis.com/auth/drive.metadata"] Source #
View and manage metadata of files in your Google Drive
Parent
Contains information about a parent object. For example, a folder in Drive is a parent for all files within it.
See: parent
smart constructor.
Photo
Photo information for a user.
See: photo
smart constructor.
EventPrimaryEventType
data EventPrimaryEventType Source #
The main type of event that occurred.
EPETComment | comment |
EPETCreate | create |
EPETEdit | edit |
EPETEmptyTrash | emptyTrash |
EPETMove | move |
EPETPermissionChange | permissionChange |
EPETRename | rename |
EPETTrash | trash |
EPETUnknown | unknown |
EPETUntrash | untrash |
EPETUpload | upload |
Event
Represents the changes associated with an action taken by a user.
See: event
smart constructor.
Creates a value of Event
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ePrimaryEventType :: Lens' Event (Maybe EventPrimaryEventType) Source #
The main type of event that occurred.
eEventTimeMillis :: Lens' Event (Maybe Word64) Source #
The time at which the event occurred formatted as Unix time in milliseconds.
eRename :: Lens' Event (Maybe Rename) Source #
Extra information for rename type events, such as the old and new names.
eFromUserDeletion :: Lens' Event (Maybe Bool) Source #
Whether this event is caused by a user being deleted.
eAdditionalEventTypes :: Lens' Event [EventAdditionalEventTypesItem] Source #
Additional event types. Some events may have multiple types when multiple actions are part of a single event. For example, creating a document, renaming it, and sharing it may be part of a single file-creation event.
ePermissionChanges :: Lens' Event [PermissionChange] Source #
Extra information for permissionChange type events, such as the user or group the new permission applies to.
eTarget :: Lens' Event (Maybe Target) Source #
Information specific to the Target object modified by the event.
eMove :: Lens' Event (Maybe Move) Source #
Extra information for move type events, such as changes in an object's parents.
PermissionRole
data PermissionRole Source #
Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.
ListActivitiesResponse
data ListActivitiesResponse Source #
The response from the list request. Contains a list of activities and a token to retrieve the next page of results.
See: listActivitiesResponse
smart constructor.
listActivitiesResponse :: ListActivitiesResponse Source #
Creates a value of ListActivitiesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
larNextPageToken :: Lens' ListActivitiesResponse (Maybe Text) Source #
Token for the next page of results.
larActivities :: Lens' ListActivitiesResponse [Activity] Source #
List of activities.
PermissionChange
data PermissionChange Source #
Contains information about a Drive object's permissions that changed as a result of a permissionChange type event.
See: permissionChange
smart constructor.
permissionChange :: PermissionChange Source #
Creates a value of PermissionChange
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pcAddedPermissions :: Lens' PermissionChange [Permission] Source #
Lists all Permission objects added.
pcRemovedPermissions :: Lens' PermissionChange [Permission] Source #
Lists all Permission objects removed.
PermissionType
data PermissionType Source #
Indicates how widely permissions are granted.
User
A representation of a user.
See: user
smart constructor.
Creates a value of User
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uPhoto :: Lens' User (Maybe Photo) Source #
The profile photo of the user. Not present if the user has no profile photo.
uIsDeleted :: Lens' User (Maybe Bool) Source #
A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted.
uPermissionId :: Lens' User (Maybe Text) Source #
The permission ID associated with this user. Equivalent to the Drive API's permission ID for this user, returned as part of the Drive Permissions resource.
EventAdditionalEventTypesItem
data EventAdditionalEventTypesItem Source #
EAETIComment | comment |
EAETICreate | create |
EAETIEdit | edit |
EAETIEmptyTrash | emptyTrash |
EAETIMove | move |
EAETIPermissionChange | permissionChange |
EAETIRename | rename |
EAETITrash | trash |
EAETIUnknown | unknown |
EAETIUntrash | untrash |
EAETIUpload | upload |
Activity
An Activity resource is a combined view of multiple events. An activity has a list of individual events and a combined view of the common fields among all events.
See: activity
smart constructor.
Creates a value of Activity
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aCombinedEvent :: Lens' Activity (Maybe Event) Source #
The fields common to all of the singleEvents that make up the Activity.
ActivitiesListGroupingStrategy
data ActivitiesListGroupingStrategy Source #
Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.
Rename
Contains information about a renametype event.
See: rename
smart constructor.
Permission
data Permission Source #
Contains information about the permissions and type of access allowed with regards to a Google Drive object. This is a subset of the fields contained in a corresponding Drive Permissions object.
See: permission
smart constructor.
permission :: Permission Source #
Creates a value of Permission
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pWithLink :: Lens' Permission (Maybe Bool) Source #
Whether the permission requires a link to the file.
pRole :: Lens' Permission (Maybe PermissionRole) Source #
Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.
pName :: Lens' Permission (Maybe Text) Source #
The name of the user or group the permission applies to.
pType :: Lens' Permission (Maybe PermissionType) Source #
Indicates how widely permissions are granted.
pPermissionId :: Lens' Permission (Maybe Text) Source #
The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource.
Target
Information about the object modified by the event.
See: target
smart constructor.
tName :: Lens' Target (Maybe Text) Source #
The name of the target. For example, in Google Drive, this is the title of the file.
tId :: Lens' Target (Maybe Text) Source #
The ID of the target. For example, in Google Drive, this is the file or folder ID.
Move
Contains information about changes in an object's parents as a result of a move type event.
See: move
smart constructor.
Creates a value of Move
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired: