| Copyright | (c) 2015 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 |
Network.Google.AppsActivity.Types
Contents
Description
- appsActivityService :: Service
- driveMetadataReadonlyScope :: OAuthScope
- activityScope :: OAuthScope
- driveReadonlyScope :: OAuthScope
- driveScope :: OAuthScope
- driveMetadataScope :: OAuthScope
- 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)
- uName :: 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 :: Service 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 :: OAuthScope Source
View metadata for files in your Google Drive
activityScope :: OAuthScope Source
View the activity history of your Google Apps
driveReadonlyScope :: OAuthScope Source
View the files in your Google Drive
driveScope :: OAuthScope Source
View and manage the files in your Google Drive
driveMetadataScope :: OAuthScope 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.
Constructors
| EPETComment | comment |
| EPETCreate | create |
| EPETEdit | edit |
| EPETEmptyTrash | emptyTrash |
| EPETMove | move |
| EPETPermissionChange | permissionChange |
| EPETRename | rename |
| EPETTrash | trash |
| EPETUnknown | unknown |
| EPETUntrash | untrash |
| EPETUpload | upload |
Instances
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.
Instances
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.
Instances
User
A representation of a user.
See: user smart constructor.
EventAdditionalEventTypesItem
data EventAdditionalEventTypesItem Source
Constructors
| EAETIComment | comment |
| EAETICreate | create |
| EAETIEdit | edit |
| EAETIEmptyTrash | emptyTrash |
| EAETIMove | move |
| EAETIPermissionChange | permissionChange |
| EAETIRename | rename |
| EAETITrash | trash |
| EAETIUnknown | unknown |
| EAETIUntrash | untrash |
| EAETIUpload | upload |
Instances
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:
aSingleEvents :: Lens' Activity [Event] Source
A list of all the Events that make up the Activity.
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.
Instances
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:
mAddedParents :: Lens' Move [Parent] Source
The added parent(s).
mRemovedParents :: Lens' Move [Parent] Source
The removed parent(s).