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 |
- Service Configuration
- OAuth Scopes
- FileList
- TeamDriveCapabilities
- FilesListCorpus
- CommentQuotedFileContent
- AboutStorageQuota
- Reply
- AboutImportFormats
- FileCapabilities
- ReplyList
- FileContentHintsThumbnail
- TeamDriveList
- Channel
- AboutTeamDriveThemesItem
- TeamDriveRestrictions
- TeamDriveBackgRoundImageFile
- FileVideoMediaMetadata
- FileAppProperties
- Change
- TeamDrive
- AboutExportFormats
- User
- ChangeList
- RevisionExportLinks
- FileContentHints
- ChannelParams
- FileProperties
- AboutMaxImportSizes
- About
- FileImageMediaMetadataLocation
- StartPageToken
- FileImageMediaMetadata
- Comment
- Revision
- Permission
- File
- PermissionTeamDrivePermissionDetailsItem
- GeneratedIds
- FileExportLinks
- CommentList
- RevisionList
- PermissionList
Synopsis
- driveService :: ServiceConfig
- driveMetadataReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.metadata.readonly"]
- drivePhotosReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.photos.readonly"]
- driveAppDataScope :: Proxy '["https://www.googleapis.com/auth/drive.appdata"]
- driveReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.readonly"]
- driveScope :: Proxy '["https://www.googleapis.com/auth/drive"]
- driveFileScope :: Proxy '["https://www.googleapis.com/auth/drive.file"]
- driveMetadataScope :: Proxy '["https://www.googleapis.com/auth/drive.metadata"]
- driveScriptsScope :: Proxy '["https://www.googleapis.com/auth/drive.scripts"]
- data FileList
- fileList :: FileList
- flNextPageToken :: Lens' FileList (Maybe Text)
- flIncompleteSearch :: Lens' FileList (Maybe Bool)
- flKind :: Lens' FileList Text
- flFiles :: Lens' FileList [File]
- data TeamDriveCapabilities
- teamDriveCapabilities :: TeamDriveCapabilities
- tdcCanRename :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanChangeTeamMembersOnlyRestriction :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanComment :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanRenameTeamDrive :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanChangeTeamDriveBackgRound :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanDownload :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanChangeDomainUsersOnlyRestriction :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanTrashChildren :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanAddChildren :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanRemoveChildren :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanChangeCopyRequiresWriterPermissionRestriction :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanDeleteTeamDrive :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanListChildren :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanEdit :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanManageMembers :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanReadRevisions :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanDeleteChildren :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanCopy :: Lens' TeamDriveCapabilities (Maybe Bool)
- tdcCanShare :: Lens' TeamDriveCapabilities (Maybe Bool)
- data FilesListCorpus
- data CommentQuotedFileContent
- commentQuotedFileContent :: CommentQuotedFileContent
- cqfcValue :: Lens' CommentQuotedFileContent (Maybe Text)
- cqfcMimeType :: Lens' CommentQuotedFileContent (Maybe Text)
- data AboutStorageQuota
- aboutStorageQuota :: AboutStorageQuota
- asqUsageInDriveTrash :: Lens' AboutStorageQuota (Maybe Int64)
- asqLimit :: Lens' AboutStorageQuota (Maybe Int64)
- asqUsage :: Lens' AboutStorageQuota (Maybe Int64)
- asqUsageInDrive :: Lens' AboutStorageQuota (Maybe Int64)
- data Reply
- reply :: Reply
- rHTMLContent :: Lens' Reply (Maybe Text)
- rModifiedTime :: Lens' Reply (Maybe UTCTime)
- rCreatedTime :: Lens' Reply (Maybe UTCTime)
- rKind :: Lens' Reply Text
- rAction :: Lens' Reply (Maybe Text)
- rContent :: Lens' Reply (Maybe Text)
- rAuthor :: Lens' Reply (Maybe User)
- rId :: Lens' Reply (Maybe Text)
- rDeleted :: Lens' Reply (Maybe Bool)
- data AboutImportFormats
- aboutImportFormats :: HashMap Text [Text] -> AboutImportFormats
- aifAddtional :: Lens' AboutImportFormats (HashMap Text [Text])
- data FileCapabilities
- fileCapabilities :: FileCapabilities
- fcCanRename :: Lens' FileCapabilities (Maybe Bool)
- fcCanComment :: Lens' FileCapabilities (Maybe Bool)
- fcCanMoveChildrenWithinTeamDrive :: Lens' FileCapabilities (Maybe Bool)
- fcCanDelete :: Lens' FileCapabilities (Maybe Bool)
- fcCanMoveItemIntoTeamDrive :: Lens' FileCapabilities (Maybe Bool)
- fcCanDownload :: Lens' FileCapabilities (Maybe Bool)
- fcCanTrash :: Lens' FileCapabilities (Maybe Bool)
- fcCanUntrash :: Lens' FileCapabilities (Maybe Bool)
- fcCanTrashChildren :: Lens' FileCapabilities (Maybe Bool)
- fcCanAddChildren :: Lens' FileCapabilities (Maybe Bool)
- fcCanRemoveChildren :: Lens' FileCapabilities (Maybe Bool)
- fcCanMoveTeamDriveItem :: Lens' FileCapabilities (Maybe Bool)
- fcCanMoveItemWithinTeamDrive :: Lens' FileCapabilities (Maybe Bool)
- fcCanReadTeamDrive :: Lens' FileCapabilities (Maybe Bool)
- fcCanChangeCopyRequiresWriterPermission :: Lens' FileCapabilities (Maybe Bool)
- fcCanListChildren :: Lens' FileCapabilities (Maybe Bool)
- fcCanMoveChildrenOutOfTeamDrive :: Lens' FileCapabilities (Maybe Bool)
- fcCanEdit :: Lens' FileCapabilities (Maybe Bool)
- fcCanChangeViewersCanCopyContent :: Lens' FileCapabilities (Maybe Bool)
- fcCanReadRevisions :: Lens' FileCapabilities (Maybe Bool)
- fcCanDeleteChildren :: Lens' FileCapabilities (Maybe Bool)
- fcCanMoveItemOutOfTeamDrive :: Lens' FileCapabilities (Maybe Bool)
- fcCanCopy :: Lens' FileCapabilities (Maybe Bool)
- fcCanShare :: Lens' FileCapabilities (Maybe Bool)
- data ReplyList
- replyList :: ReplyList
- rlNextPageToken :: Lens' ReplyList (Maybe Text)
- rlKind :: Lens' ReplyList Text
- rlReplies :: Lens' ReplyList [Reply]
- data FileContentHintsThumbnail
- fileContentHintsThumbnail :: FileContentHintsThumbnail
- fchtImage :: Lens' FileContentHintsThumbnail (Maybe ByteString)
- fchtMimeType :: Lens' FileContentHintsThumbnail (Maybe Text)
- data TeamDriveList
- teamDriveList :: TeamDriveList
- tdlNextPageToken :: Lens' TeamDriveList (Maybe Text)
- tdlTeamDrives :: Lens' TeamDriveList [TeamDrive]
- tdlKind :: Lens' TeamDriveList Text
- data Channel
- channel :: Channel
- cResourceURI :: Lens' Channel (Maybe Text)
- cResourceId :: Lens' Channel (Maybe Text)
- cKind :: Lens' Channel Text
- cExpiration :: Lens' Channel (Maybe Int64)
- cToken :: Lens' Channel (Maybe Text)
- cAddress :: Lens' Channel (Maybe Text)
- cPayload :: Lens' Channel (Maybe Bool)
- cParams :: Lens' Channel (Maybe ChannelParams)
- cId :: Lens' Channel (Maybe Text)
- cType :: Lens' Channel (Maybe Text)
- data AboutTeamDriveThemesItem
- aboutTeamDriveThemesItem :: AboutTeamDriveThemesItem
- atdtiColorRgb :: Lens' AboutTeamDriveThemesItem (Maybe Text)
- atdtiBackgRoundImageLink :: Lens' AboutTeamDriveThemesItem (Maybe Text)
- atdtiId :: Lens' AboutTeamDriveThemesItem (Maybe Text)
- data TeamDriveRestrictions
- teamDriveRestrictions :: TeamDriveRestrictions
- tdrTeamMembersOnly :: Lens' TeamDriveRestrictions (Maybe Bool)
- tdrAdminManagedRestrictions :: Lens' TeamDriveRestrictions (Maybe Bool)
- tdrCopyRequiresWriterPermission :: Lens' TeamDriveRestrictions (Maybe Bool)
- tdrDomainUsersOnly :: Lens' TeamDriveRestrictions (Maybe Bool)
- data TeamDriveBackgRoundImageFile
- teamDriveBackgRoundImageFile :: TeamDriveBackgRoundImageFile
- tdbrifXCoordinate :: Lens' TeamDriveBackgRoundImageFile (Maybe Double)
- tdbrifYCoordinate :: Lens' TeamDriveBackgRoundImageFile (Maybe Double)
- tdbrifWidth :: Lens' TeamDriveBackgRoundImageFile (Maybe Double)
- tdbrifId :: Lens' TeamDriveBackgRoundImageFile (Maybe Text)
- data FileVideoMediaMetadata
- fileVideoMediaMetadata :: FileVideoMediaMetadata
- fvmmHeight :: Lens' FileVideoMediaMetadata (Maybe Int32)
- fvmmWidth :: Lens' FileVideoMediaMetadata (Maybe Int32)
- fvmmDurationMillis :: Lens' FileVideoMediaMetadata (Maybe Int64)
- data FileAppProperties
- fileAppProperties :: HashMap Text Text -> FileAppProperties
- fapAddtional :: Lens' FileAppProperties (HashMap Text Text)
- data Change
- change :: Change
- chaRemoved :: Lens' Change (Maybe Bool)
- chaTime :: Lens' Change (Maybe UTCTime)
- chaKind :: Lens' Change Text
- chaTeamDrive :: Lens' Change (Maybe TeamDrive)
- chaTeamDriveId :: Lens' Change (Maybe Text)
- chaType :: Lens' Change (Maybe Text)
- chaFileId :: Lens' Change (Maybe Text)
- chaFile :: Lens' Change (Maybe File)
- data TeamDrive
- teamDrive :: TeamDrive
- tdThemeId :: Lens' TeamDrive (Maybe Text)
- tdBackgRoundImageFile :: Lens' TeamDrive (Maybe TeamDriveBackgRoundImageFile)
- tdColorRgb :: Lens' TeamDrive (Maybe Text)
- tdCreatedTime :: Lens' TeamDrive (Maybe UTCTime)
- tdKind :: Lens' TeamDrive Text
- tdBackgRoundImageLink :: Lens' TeamDrive (Maybe Text)
- tdName :: Lens' TeamDrive (Maybe Text)
- tdRestrictions :: Lens' TeamDrive (Maybe TeamDriveRestrictions)
- tdId :: Lens' TeamDrive (Maybe Text)
- tdCapabilities :: Lens' TeamDrive (Maybe TeamDriveCapabilities)
- data AboutExportFormats
- aboutExportFormats :: HashMap Text [Text] -> AboutExportFormats
- aefAddtional :: Lens' AboutExportFormats (HashMap Text [Text])
- data User
- user :: User
- uPhotoLink :: Lens' User (Maybe Text)
- uMe :: Lens' User (Maybe Bool)
- uKind :: Lens' User Text
- uEmailAddress :: Lens' User (Maybe Text)
- uDisplayName :: Lens' User (Maybe Text)
- uPermissionId :: Lens' User (Maybe Text)
- data ChangeList
- changeList :: ChangeList
- clNewStartPageToken :: Lens' ChangeList (Maybe Text)
- clNextPageToken :: Lens' ChangeList (Maybe Text)
- clChanges :: Lens' ChangeList [Change]
- clKind :: Lens' ChangeList Text
- data RevisionExportLinks
- revisionExportLinks :: HashMap Text Text -> RevisionExportLinks
- relAddtional :: Lens' RevisionExportLinks (HashMap Text Text)
- data FileContentHints
- fileContentHints :: FileContentHints
- fchThumbnail :: Lens' FileContentHints (Maybe FileContentHintsThumbnail)
- fchIndexableText :: Lens' FileContentHints (Maybe Text)
- data ChannelParams
- channelParams :: HashMap Text Text -> ChannelParams
- cpAddtional :: Lens' ChannelParams (HashMap Text Text)
- data FileProperties
- fileProperties :: HashMap Text Text -> FileProperties
- fpAddtional :: Lens' FileProperties (HashMap Text Text)
- data AboutMaxImportSizes
- aboutMaxImportSizes :: HashMap Text Int64 -> AboutMaxImportSizes
- amisAddtional :: Lens' AboutMaxImportSizes (HashMap Text Int64)
- data About
- about :: About
- aExportFormats :: Lens' About (Maybe AboutExportFormats)
- aMaxImportSizes :: Lens' About (Maybe AboutMaxImportSizes)
- aCanCreateTeamDrives :: Lens' About (Maybe Bool)
- aImportFormats :: Lens' About (Maybe AboutImportFormats)
- aKind :: Lens' About Text
- aAppInstalled :: Lens' About (Maybe Bool)
- aUser :: Lens' About (Maybe User)
- aStorageQuota :: Lens' About (Maybe AboutStorageQuota)
- aMaxUploadSize :: Lens' About (Maybe Int64)
- aTeamDriveThemes :: Lens' About [AboutTeamDriveThemesItem]
- aFolderColorPalette :: Lens' About [Text]
- data FileImageMediaMetadataLocation
- fileImageMediaMetadataLocation :: FileImageMediaMetadataLocation
- fimmlLatitude :: Lens' FileImageMediaMetadataLocation (Maybe Double)
- fimmlAltitude :: Lens' FileImageMediaMetadataLocation (Maybe Double)
- fimmlLongitude :: Lens' FileImageMediaMetadataLocation (Maybe Double)
- data StartPageToken
- startPageToken :: StartPageToken
- sptKind :: Lens' StartPageToken Text
- sptStartPageToken :: Lens' StartPageToken (Maybe Text)
- data FileImageMediaMetadata
- fileImageMediaMetadata :: FileImageMediaMetadata
- fimmRotation :: Lens' FileImageMediaMetadata (Maybe Int32)
- fimmHeight :: Lens' FileImageMediaMetadata (Maybe Int32)
- fimmSubjectDistance :: Lens' FileImageMediaMetadata (Maybe Int32)
- fimmMaxApertureValue :: Lens' FileImageMediaMetadata (Maybe Double)
- fimmIsoSpeed :: Lens' FileImageMediaMetadata (Maybe Int32)
- fimmTime :: Lens' FileImageMediaMetadata (Maybe Text)
- fimmLocation :: Lens' FileImageMediaMetadata (Maybe FileImageMediaMetadataLocation)
- fimmAperture :: Lens' FileImageMediaMetadata (Maybe Double)
- fimmFocalLength :: Lens' FileImageMediaMetadata (Maybe Double)
- fimmCameraMake :: Lens' FileImageMediaMetadata (Maybe Text)
- fimmWidth :: Lens' FileImageMediaMetadata (Maybe Int32)
- fimmExposureTime :: Lens' FileImageMediaMetadata (Maybe Double)
- fimmCameraModel :: Lens' FileImageMediaMetadata (Maybe Text)
- fimmWhiteBalance :: Lens' FileImageMediaMetadata (Maybe Text)
- fimmLens :: Lens' FileImageMediaMetadata (Maybe Text)
- fimmFlashUsed :: Lens' FileImageMediaMetadata (Maybe Bool)
- fimmExposureBias :: Lens' FileImageMediaMetadata (Maybe Double)
- fimmMeteringMode :: Lens' FileImageMediaMetadata (Maybe Text)
- fimmExposureMode :: Lens' FileImageMediaMetadata (Maybe Text)
- fimmSensor :: Lens' FileImageMediaMetadata (Maybe Text)
- fimmColorSpace :: Lens' FileImageMediaMetadata (Maybe Text)
- data Comment
- comment :: Comment
- comHTMLContent :: Lens' Comment (Maybe Text)
- comModifiedTime :: Lens' Comment (Maybe UTCTime)
- comCreatedTime :: Lens' Comment (Maybe UTCTime)
- comKind :: Lens' Comment Text
- comResolved :: Lens' Comment (Maybe Bool)
- comQuotedFileContent :: Lens' Comment (Maybe CommentQuotedFileContent)
- comAnchor :: Lens' Comment (Maybe Text)
- comContent :: Lens' Comment (Maybe Text)
- comReplies :: Lens' Comment [Reply]
- comAuthor :: Lens' Comment (Maybe User)
- comId :: Lens' Comment (Maybe Text)
- comDeleted :: Lens' Comment (Maybe Bool)
- data Revision
- revision :: Revision
- revModifiedTime :: Lens' Revision (Maybe UTCTime)
- revSize :: Lens' Revision (Maybe Int64)
- revOriginalFilename :: Lens' Revision (Maybe Text)
- revKind :: Lens' Revision Text
- revPublished :: Lens' Revision (Maybe Bool)
- revLastModifyingUser :: Lens' Revision (Maybe User)
- revPublishAuto :: Lens' Revision (Maybe Bool)
- revMD5Checksum :: Lens' Revision (Maybe Text)
- revKeepForever :: Lens' Revision (Maybe Bool)
- revMimeType :: Lens' Revision (Maybe Text)
- revExportLinks :: Lens' Revision (Maybe RevisionExportLinks)
- revPublishedOutsideDomain :: Lens' Revision (Maybe Bool)
- revId :: Lens' Revision (Maybe Text)
- data Permission
- permission :: Permission
- pPhotoLink :: Lens' Permission (Maybe Text)
- pTeamDrivePermissionDetails :: Lens' Permission [PermissionTeamDrivePermissionDetailsItem]
- pKind :: Lens' Permission Text
- pDomain :: Lens' Permission (Maybe Text)
- pRole :: Lens' Permission (Maybe Text)
- pEmailAddress :: Lens' Permission (Maybe Text)
- pAllowFileDiscovery :: Lens' Permission (Maybe Bool)
- pDisplayName :: Lens' Permission (Maybe Text)
- pId :: Lens' Permission (Maybe Text)
- pDeleted :: Lens' Permission (Maybe Bool)
- pType :: Lens' Permission (Maybe Text)
- pExpirationTime :: Lens' Permission (Maybe UTCTime)
- data File
- file :: File
- fOwnedByMe :: Lens' File (Maybe Bool)
- fThumbnailLink :: Lens' File (Maybe Text)
- fFullFileExtension :: Lens' File (Maybe Text)
- fModifiedTime :: Lens' File (Maybe UTCTime)
- fModifiedByMeTime :: Lens' File (Maybe UTCTime)
- fFileExtension :: Lens' File (Maybe Text)
- fViewedByMe :: Lens' File (Maybe Bool)
- fOwners :: Lens' File [User]
- fViewedByMeTime :: Lens' File (Maybe UTCTime)
- fModifiedByMe :: Lens' File (Maybe Bool)
- fSize :: Lens' File (Maybe Int64)
- fTrashed :: Lens' File (Maybe Bool)
- fWebViewLink :: Lens' File (Maybe Text)
- fCreatedTime :: Lens' File (Maybe UTCTime)
- fTrashedTime :: Lens' File (Maybe UTCTime)
- fOriginalFilename :: Lens' File (Maybe Text)
- fKind :: Lens' File Text
- fLastModifyingUser :: Lens' File (Maybe User)
- fIconLink :: Lens' File (Maybe Text)
- fHasThumbnail :: Lens' File (Maybe Bool)
- fThumbnailVersion :: Lens' File (Maybe Int64)
- fImageMediaMetadata :: Lens' File (Maybe FileImageMediaMetadata)
- fExplicitlyTrashed :: Lens' File (Maybe Bool)
- fShared :: Lens' File (Maybe Bool)
- fMD5Checksum :: Lens' File (Maybe Text)
- fTeamDriveId :: Lens' File (Maybe Text)
- fFolderColorRgb :: Lens' File (Maybe Text)
- fMimeType :: Lens' File (Maybe Text)
- fIsAppAuthorized :: Lens' File (Maybe Bool)
- fCopyRequiresWriterPermission :: Lens' File (Maybe Bool)
- fName :: Lens' File (Maybe Text)
- fExportLinks :: Lens' File (Maybe FileExportLinks)
- fParents :: Lens' File [Text]
- fStarred :: Lens' File (Maybe Bool)
- fSpaces :: Lens' File [Text]
- fVersion :: Lens' File (Maybe Int64)
- fHasAugmentedPermissions :: Lens' File (Maybe Bool)
- fWritersCanShare :: Lens' File (Maybe Bool)
- fTrashingUser :: Lens' File (Maybe User)
- fId :: Lens' File (Maybe Text)
- fPermissionIds :: Lens' File [Text]
- fPermissions :: Lens' File [Permission]
- fQuotaBytesUsed :: Lens' File (Maybe Int64)
- fAppProperties :: Lens' File (Maybe FileAppProperties)
- fVideoMediaMetadata :: Lens' File (Maybe FileVideoMediaMetadata)
- fSharedWithMeTime :: Lens' File (Maybe UTCTime)
- fHeadRevisionId :: Lens' File (Maybe Text)
- fCapabilities :: Lens' File (Maybe FileCapabilities)
- fDescription :: Lens' File (Maybe Text)
- fViewersCanCopyContent :: Lens' File (Maybe Bool)
- fSharingUser :: Lens' File (Maybe User)
- fWebContentLink :: Lens' File (Maybe Text)
- fContentHints :: Lens' File (Maybe FileContentHints)
- fProperties :: Lens' File (Maybe FileProperties)
- data PermissionTeamDrivePermissionDetailsItem
- permissionTeamDrivePermissionDetailsItem :: PermissionTeamDrivePermissionDetailsItem
- ptdpdiInherited :: Lens' PermissionTeamDrivePermissionDetailsItem (Maybe Bool)
- ptdpdiTeamDrivePermissionType :: Lens' PermissionTeamDrivePermissionDetailsItem (Maybe Text)
- ptdpdiRole :: Lens' PermissionTeamDrivePermissionDetailsItem (Maybe Text)
- ptdpdiInheritedFrom :: Lens' PermissionTeamDrivePermissionDetailsItem (Maybe Text)
- data GeneratedIds
- generatedIds :: GeneratedIds
- giSpace :: Lens' GeneratedIds (Maybe Text)
- giKind :: Lens' GeneratedIds Text
- giIds :: Lens' GeneratedIds [Text]
- data FileExportLinks
- fileExportLinks :: HashMap Text Text -> FileExportLinks
- felAddtional :: Lens' FileExportLinks (HashMap Text Text)
- data CommentList
- commentList :: CommentList
- cllNextPageToken :: Lens' CommentList (Maybe Text)
- cllKind :: Lens' CommentList Text
- cllComments :: Lens' CommentList [Comment]
- data RevisionList
- revisionList :: RevisionList
- rllNextPageToken :: Lens' RevisionList (Maybe Text)
- rllKind :: Lens' RevisionList Text
- rllRevisions :: Lens' RevisionList [Revision]
- data PermissionList
- permissionList :: PermissionList
- plNextPageToken :: Lens' PermissionList (Maybe Text)
- plKind :: Lens' PermissionList Text
- plPermissions :: Lens' PermissionList [Permission]
Service Configuration
driveService :: ServiceConfig Source #
Default request referring to version v3
of the Drive 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
drivePhotosReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.photos.readonly"] Source #
View the photos, videos and albums in your Google Photos
driveAppDataScope :: Proxy '["https://www.googleapis.com/auth/drive.appdata"] Source #
View and manage its own configuration data in your Google Drive
driveReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.readonly"] Source #
See and download all your Google Drive files
driveScope :: Proxy '["https://www.googleapis.com/auth/drive"] Source #
See, edit, create, and delete all of your Google Drive files
driveFileScope :: Proxy '["https://www.googleapis.com/auth/drive.file"] Source #
View and manage Google Drive files and folders that you have opened or created with this app
driveMetadataScope :: Proxy '["https://www.googleapis.com/auth/drive.metadata"] Source #
View and manage metadata of files in your Google Drive
driveScriptsScope :: Proxy '["https://www.googleapis.com/auth/drive.scripts"] Source #
Modify your Google Apps Script scripts' behavior
FileList
A list of files.
See: fileList
smart constructor.
Instances
Eq FileList Source # | |
Data FileList Source # | |
Defined in Network.Google.Drive.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FileList -> c FileList # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FileList # toConstr :: FileList -> Constr # dataTypeOf :: FileList -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c FileList) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FileList) # gmapT :: (forall b. Data b => b -> b) -> FileList -> FileList # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FileList -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FileList -> r # gmapQ :: (forall d. Data d => d -> u) -> FileList -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> FileList -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> FileList -> m FileList # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FileList -> m FileList # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FileList -> m FileList # | |
Show FileList Source # | |
Generic FileList Source # | |
ToJSON FileList Source # | |
Defined in Network.Google.Drive.Types.Product | |
FromJSON FileList Source # | |
type Rep FileList Source # | |
Defined in Network.Google.Drive.Types.Product type Rep FileList = D1 (MetaData "FileList" "Network.Google.Drive.Types.Product" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "FileList'" PrefixI True) ((S1 (MetaSel (Just "_flNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_flIncompleteSearch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_flKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_flFiles") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [File]))))) |
Creates a value of FileList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
flNextPageToken :: Lens' FileList (Maybe Text) Source #
The page token for the next page of files. This will be absent if the end of the files list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
flIncompleteSearch :: Lens' FileList (Maybe Bool) Source #
Whether the search process was incomplete. If true, then some search results may be missing, since all documents were not searched. This may occur when searching multiple Team Drives with the "user,allTeamDrives" corpora, but all corpora could not be searched. When this happens, it is suggested that clients narrow their query by choosing a different corpus such as "user" or "teamDrive".
flKind :: Lens' FileList Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#fileList".
flFiles :: Lens' FileList [File] Source #
The list of files. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
TeamDriveCapabilities
data TeamDriveCapabilities Source #
Capabilities the current user has on this Team Drive.
See: teamDriveCapabilities
smart constructor.
Instances
teamDriveCapabilities :: TeamDriveCapabilities Source #
Creates a value of TeamDriveCapabilities
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tdcCanRename
tdcCanChangeTeamMembersOnlyRestriction
tdcCanComment
tdcCanRenameTeamDrive
tdcCanChangeTeamDriveBackgRound
tdcCanDownload
tdcCanChangeDomainUsersOnlyRestriction
tdcCanTrashChildren
tdcCanAddChildren
tdcCanRemoveChildren
tdcCanChangeCopyRequiresWriterPermissionRestriction
tdcCanDeleteTeamDrive
tdcCanListChildren
tdcCanEdit
tdcCanManageMembers
tdcCanReadRevisions
tdcCanDeleteChildren
tdcCanCopy
tdcCanShare
tdcCanRename :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can rename files or folders in this Team Drive.
tdcCanChangeTeamMembersOnlyRestriction :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can change the teamMembersOnly restriction of this Team Drive.
tdcCanComment :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can comment on files in this Team Drive.
tdcCanRenameTeamDrive :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can rename this Team Drive.
tdcCanChangeTeamDriveBackgRound :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can change the background of this Team Drive.
tdcCanDownload :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can download files in this Team Drive.
tdcCanChangeDomainUsersOnlyRestriction :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can change the domainUsersOnly restriction of this Team Drive.
tdcCanTrashChildren :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can trash children from folders in this Team Drive.
tdcCanAddChildren :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can add children to folders in this Team Drive.
tdcCanRemoveChildren :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Deprecated - use canDeleteChildren or canTrashChildren instead.
tdcCanChangeCopyRequiresWriterPermissionRestriction :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.
tdcCanDeleteTeamDrive :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.
tdcCanListChildren :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can list the children of folders in this Team Drive.
tdcCanEdit :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can edit files in this Team Drive
tdcCanManageMembers :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can add members to this Team Drive or remove them or change their role.
tdcCanReadRevisions :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can read the revisions resource of files in this Team Drive.
tdcCanDeleteChildren :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can delete children from folders in this Team Drive.
tdcCanCopy :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can copy files in this Team Drive.
tdcCanShare :: Lens' TeamDriveCapabilities (Maybe Bool) Source #
Whether the current user can share files or folders in this Team Drive.
FilesListCorpus
data FilesListCorpus Source #
The source of files to list. Deprecated: use 'corpora' instead.
Instances
CommentQuotedFileContent
data CommentQuotedFileContent Source #
The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.
See: commentQuotedFileContent
smart constructor.
Instances
commentQuotedFileContent :: CommentQuotedFileContent Source #
Creates a value of CommentQuotedFileContent
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cqfcValue :: Lens' CommentQuotedFileContent (Maybe Text) Source #
The quoted content itself. This is interpreted as plain text if set through the API.
cqfcMimeType :: Lens' CommentQuotedFileContent (Maybe Text) Source #
The MIME type of the quoted content.
AboutStorageQuota
data AboutStorageQuota Source #
The user's storage quota limits and usage. All fields are measured in bytes.
See: aboutStorageQuota
smart constructor.
Instances
aboutStorageQuota :: AboutStorageQuota Source #
Creates a value of AboutStorageQuota
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
asqUsageInDriveTrash :: Lens' AboutStorageQuota (Maybe Int64) Source #
The usage by trashed files in Google Drive.
asqLimit :: Lens' AboutStorageQuota (Maybe Int64) Source #
The usage limit, if applicable. This will not be present if the user has unlimited storage.
asqUsageInDrive :: Lens' AboutStorageQuota (Maybe Int64) Source #
The usage by all files in Google Drive.
Reply
A reply to a comment on a file.
See: reply
smart constructor.
Instances
Creates a value of Reply
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rModifiedTime :: Lens' Reply (Maybe UTCTime) Source #
The last time the reply was modified (RFC 3339 date-time).
rCreatedTime :: Lens' Reply (Maybe UTCTime) Source #
The time at which the reply was created (RFC 3339 date-time).
rKind :: Lens' Reply Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#reply".
rAction :: Lens' Reply (Maybe Text) Source #
The action the reply performed to the parent comment. Valid values are: - resolve - reopen
rContent :: Lens' Reply (Maybe Text) Source #
The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified.
rDeleted :: Lens' Reply (Maybe Bool) Source #
Whether the reply has been deleted. A deleted reply has no content.
AboutImportFormats
data AboutImportFormats Source #
A map of source MIME type to possible targets for all supported imports.
See: aboutImportFormats
smart constructor.
Instances
Creates a value of AboutImportFormats
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
FileCapabilities
data FileCapabilities Source #
Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
See: fileCapabilities
smart constructor.
Instances
fileCapabilities :: FileCapabilities Source #
Creates a value of FileCapabilities
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fcCanRename
fcCanComment
fcCanMoveChildrenWithinTeamDrive
fcCanDelete
fcCanMoveItemIntoTeamDrive
fcCanDownload
fcCanTrash
fcCanUntrash
fcCanTrashChildren
fcCanAddChildren
fcCanRemoveChildren
fcCanMoveTeamDriveItem
fcCanMoveItemWithinTeamDrive
fcCanReadTeamDrive
fcCanChangeCopyRequiresWriterPermission
fcCanListChildren
fcCanMoveChildrenOutOfTeamDrive
fcCanEdit
fcCanChangeViewersCanCopyContent
fcCanReadRevisions
fcCanDeleteChildren
fcCanMoveItemOutOfTeamDrive
fcCanCopy
fcCanShare
fcCanRename :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can rename this file.
fcCanComment :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can comment on this file.
fcCanMoveChildrenWithinTeamDrive :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can move children of this folder within the Team Drive. This is false when the item is not a folder. Only populated for Team Drive items.
fcCanDelete :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can delete this file.
fcCanMoveItemIntoTeamDrive :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
fcCanDownload :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can download this file.
fcCanTrash :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can move this file to trash.
fcCanUntrash :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can restore this file from trash.
fcCanTrashChildren :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for Team Drive items.
fcCanAddChildren :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can add children to this folder. This is always false when the item is not a folder.
fcCanRemoveChildren :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can remove children from this folder. This is always false when the item is not a folder. For Team Drive items, use canDeleteChildren or canTrashChildren instead.
fcCanMoveTeamDriveItem :: Lens' FileCapabilities (Maybe Bool) Source #
Deprecated - use canMoveItemWithinTeamDrive or canMoveItemOutOfTeamDrive instead.
fcCanMoveItemWithinTeamDrive :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can move this Team Drive item within this Team Drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for Team Drive items.
fcCanReadTeamDrive :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
fcCanChangeCopyRequiresWriterPermission :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can change the copyRequiresWriterPermission restriction of this file.
fcCanListChildren :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can list the children of this folder. This is always false when the item is not a folder.
fcCanMoveChildrenOutOfTeamDrive :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can move children of this folder outside of the Team Drive. This is false when the item is not a folder. Only populated for Team Drive items.
fcCanEdit :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can edit this file.
fcCanChangeViewersCanCopyContent :: Lens' FileCapabilities (Maybe Bool) Source #
Deprecated
fcCanReadRevisions :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
fcCanDeleteChildren :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for Team Drive items.
fcCanMoveItemOutOfTeamDrive :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can move this Team Drive item outside of this Team Drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for Team Drive items.
fcCanCopy :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
fcCanShare :: Lens' FileCapabilities (Maybe Bool) Source #
Whether the current user can modify the sharing settings for this file.
ReplyList
A list of replies to a comment on a file.
See: replyList
smart constructor.
Instances
Eq ReplyList Source # | |
Data ReplyList Source # | |
Defined in Network.Google.Drive.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ReplyList -> c ReplyList # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ReplyList # toConstr :: ReplyList -> Constr # dataTypeOf :: ReplyList -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ReplyList) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ReplyList) # gmapT :: (forall b. Data b => b -> b) -> ReplyList -> ReplyList # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ReplyList -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ReplyList -> r # gmapQ :: (forall d. Data d => d -> u) -> ReplyList -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ReplyList -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ReplyList -> m ReplyList # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ReplyList -> m ReplyList # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ReplyList -> m ReplyList # | |
Show ReplyList Source # | |
Generic ReplyList Source # | |
ToJSON ReplyList Source # | |
Defined in Network.Google.Drive.Types.Product | |
FromJSON ReplyList Source # | |
type Rep ReplyList Source # | |
Defined in Network.Google.Drive.Types.Product type Rep ReplyList = D1 (MetaData "ReplyList" "Network.Google.Drive.Types.Product" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "ReplyList'" PrefixI True) (S1 (MetaSel (Just "_rlNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_rlKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_rlReplies") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Reply]))))) |
replyList :: ReplyList Source #
Creates a value of ReplyList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rlNextPageToken :: Lens' ReplyList (Maybe Text) Source #
The page token for the next page of replies. This will be absent if the end of the replies list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
rlKind :: Lens' ReplyList Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#replyList".
rlReplies :: Lens' ReplyList [Reply] Source #
The list of replies. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
FileContentHintsThumbnail
data FileContentHintsThumbnail Source #
A thumbnail for the file. This will only be used if Drive cannot generate a standard thumbnail.
See: fileContentHintsThumbnail
smart constructor.
Instances
fileContentHintsThumbnail :: FileContentHintsThumbnail Source #
Creates a value of FileContentHintsThumbnail
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fchtImage :: Lens' FileContentHintsThumbnail (Maybe ByteString) Source #
The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
fchtMimeType :: Lens' FileContentHintsThumbnail (Maybe Text) Source #
The MIME type of the thumbnail.
TeamDriveList
data TeamDriveList Source #
A list of Team Drives.
See: teamDriveList
smart constructor.
Instances
teamDriveList :: TeamDriveList Source #
Creates a value of TeamDriveList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tdlNextPageToken :: Lens' TeamDriveList (Maybe Text) Source #
The page token for the next page of Team Drives. This will be absent if the end of the Team Drives list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
tdlTeamDrives :: Lens' TeamDriveList [TeamDrive] Source #
The list of Team Drives. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
tdlKind :: Lens' TeamDriveList Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#teamDriveList".
Channel
An notification channel used to watch for resource changes.
See: channel
smart constructor.
Instances
Creates a value of Channel
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cResourceURI :: Lens' Channel (Maybe Text) Source #
A version-specific identifier for the watched resource.
cResourceId :: Lens' Channel (Maybe Text) Source #
An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
cKind :: Lens' Channel Text Source #
Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel".
cExpiration :: Lens' Channel (Maybe Int64) Source #
Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
cToken :: Lens' Channel (Maybe Text) Source #
An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
cAddress :: Lens' Channel (Maybe Text) Source #
The address where notifications are delivered for this channel.
cPayload :: Lens' Channel (Maybe Bool) Source #
A Boolean value to indicate whether payload is wanted. Optional.
cParams :: Lens' Channel (Maybe ChannelParams) Source #
Additional parameters controlling delivery channel behavior. Optional.
cId :: Lens' Channel (Maybe Text) Source #
A UUID or similar unique string that identifies this channel.
AboutTeamDriveThemesItem
data AboutTeamDriveThemesItem Source #
Instances
aboutTeamDriveThemesItem :: AboutTeamDriveThemesItem Source #
Creates a value of AboutTeamDriveThemesItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atdtiColorRgb :: Lens' AboutTeamDriveThemesItem (Maybe Text) Source #
The color of this Team Drive theme as an RGB hex string.
atdtiBackgRoundImageLink :: Lens' AboutTeamDriveThemesItem (Maybe Text) Source #
A link to this Team Drive theme's background image.
TeamDriveRestrictions
data TeamDriveRestrictions Source #
A set of restrictions that apply to this Team Drive or items inside this Team Drive.
See: teamDriveRestrictions
smart constructor.
Instances
teamDriveRestrictions :: TeamDriveRestrictions Source #
Creates a value of TeamDriveRestrictions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tdrTeamMembersOnly :: Lens' TeamDriveRestrictions (Maybe Bool) Source #
Whether access to items inside this Team Drive is restricted to members of this Team Drive.
tdrAdminManagedRestrictions :: Lens' TeamDriveRestrictions (Maybe Bool) Source #
Whether administrative privileges on this Team Drive are required to modify restrictions.
tdrCopyRequiresWriterPermission :: Lens' TeamDriveRestrictions (Maybe Bool) Source #
Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive.
tdrDomainUsersOnly :: Lens' TeamDriveRestrictions (Maybe Bool) Source #
Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
TeamDriveBackgRoundImageFile
data TeamDriveBackgRoundImageFile Source #
An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set.
See: teamDriveBackgRoundImageFile
smart constructor.
Instances
teamDriveBackgRoundImageFile :: TeamDriveBackgRoundImageFile Source #
Creates a value of TeamDriveBackgRoundImageFile
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tdbrifXCoordinate :: Lens' TeamDriveBackgRoundImageFile (Maybe Double) Source #
The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
tdbrifYCoordinate :: Lens' TeamDriveBackgRoundImageFile (Maybe Double) Source #
The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
tdbrifWidth :: Lens' TeamDriveBackgRoundImageFile (Maybe Double) Source #
The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
tdbrifId :: Lens' TeamDriveBackgRoundImageFile (Maybe Text) Source #
The ID of an image file in Drive to use for the background image.
FileVideoMediaMetadata
data FileVideoMediaMetadata Source #
Additional metadata about video media. This may not be available immediately upon upload.
See: fileVideoMediaMetadata
smart constructor.
Instances
fileVideoMediaMetadata :: FileVideoMediaMetadata Source #
Creates a value of FileVideoMediaMetadata
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fvmmHeight :: Lens' FileVideoMediaMetadata (Maybe Int32) Source #
The height of the video in pixels.
fvmmDurationMillis :: Lens' FileVideoMediaMetadata (Maybe Int64) Source #
The duration of the video in milliseconds.
FileAppProperties
data FileAppProperties Source #
A collection of arbitrary key-value pairs which are private to the requesting app. Entries with null values are cleared in update and copy requests.
See: fileAppProperties
smart constructor.
Instances
Creates a value of FileAppProperties
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Change
A change to a file or Team Drive.
See: change
smart constructor.
Instances
Creates a value of Change
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
chaRemoved :: Lens' Change (Maybe Bool) Source #
Whether the file or Team Drive has been removed from this list of changes, for example by deletion or loss of access.
chaKind :: Lens' Change Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#change".
chaTeamDrive :: Lens' Change (Maybe TeamDrive) Source #
The updated state of the Team Drive. Present if the type is teamDrive, the user is still a member of the Team Drive, and the Team Drive has not been removed.
chaTeamDriveId :: Lens' Change (Maybe Text) Source #
The ID of the Team Drive associated with this change.
chaType :: Lens' Change (Maybe Text) Source #
The type of the change. Possible values are file and teamDrive.
chaFile :: Lens' Change (Maybe File) Source #
The updated state of the file. Present if the type is file and the file has not been removed from this list of changes.
TeamDrive
Representation of a Team Drive.
See: teamDrive
smart constructor.
Instances
teamDrive :: TeamDrive Source #
Creates a value of TeamDrive
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tdThemeId :: Lens' TeamDrive (Maybe Text) Source #
The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set colorRgb or backgroundImageFile.
tdBackgRoundImageFile :: Lens' TeamDrive (Maybe TeamDriveBackgRoundImageFile) Source #
An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set.
tdColorRgb :: Lens' TeamDrive (Maybe Text) Source #
The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId.
tdCreatedTime :: Lens' TeamDrive (Maybe UTCTime) Source #
The time at which the Team Drive was created (RFC 3339 date-time).
tdKind :: Lens' TeamDrive Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#teamDrive".
tdBackgRoundImageLink :: Lens' TeamDrive (Maybe Text) Source #
A short-lived link to this Team Drive's background image.
tdRestrictions :: Lens' TeamDrive (Maybe TeamDriveRestrictions) Source #
A set of restrictions that apply to this Team Drive or items inside this Team Drive.
tdId :: Lens' TeamDrive (Maybe Text) Source #
The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.
tdCapabilities :: Lens' TeamDrive (Maybe TeamDriveCapabilities) Source #
Capabilities the current user has on this Team Drive.
AboutExportFormats
data AboutExportFormats Source #
A map of source MIME type to possible targets for all supported exports.
See: aboutExportFormats
smart constructor.
Instances
Creates a value of AboutExportFormats
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
User
Information about a Drive user.
See: user
smart constructor.
Instances
Eq User Source # | |
Data User Source # | |
Defined in Network.Google.Drive.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> User -> c User # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c User # dataTypeOf :: User -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c User) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c User) # gmapT :: (forall b. Data b => b -> b) -> User -> User # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> User -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> User -> r # gmapQ :: (forall d. Data d => d -> u) -> User -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> User -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> User -> m User # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> User -> m User # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> User -> m User # | |
Show User Source # | |
Generic User Source # | |
ToJSON User Source # | |
Defined in Network.Google.Drive.Types.Product | |
FromJSON User Source # | |
type Rep User Source # | |
Defined in Network.Google.Drive.Types.Product type Rep User = D1 (MetaData "User" "Network.Google.Drive.Types.Product" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "User'" PrefixI True) ((S1 (MetaSel (Just "_uPhotoLink") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_uMe") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_uKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "_uEmailAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_uDisplayName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_uPermissionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) |
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:
uKind :: Lens' User Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#user".
uEmailAddress :: Lens' User (Maybe Text) Source #
The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
ChangeList
data ChangeList Source #
A list of changes for a user.
See: changeList
smart constructor.
Instances
changeList :: ChangeList Source #
Creates a value of ChangeList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
clNewStartPageToken :: Lens' ChangeList (Maybe Text) Source #
The starting page token for future changes. This will be present only if the end of the current changes list has been reached.
clNextPageToken :: Lens' ChangeList (Maybe Text) Source #
The page token for the next page of changes. This will be absent if the end of the changes list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
clChanges :: Lens' ChangeList [Change] Source #
The list of changes. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
clKind :: Lens' ChangeList Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#changeList".
RevisionExportLinks
data RevisionExportLinks Source #
Links for exporting Google Docs to specific formats.
See: revisionExportLinks
smart constructor.
Instances
Creates a value of RevisionExportLinks
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
relAddtional :: Lens' RevisionExportLinks (HashMap Text Text) Source #
A mapping from export format to URL
FileContentHints
data FileContentHints Source #
Additional information about the content of the file. These fields are never populated in responses.
See: fileContentHints
smart constructor.
Instances
fileContentHints :: FileContentHints Source #
Creates a value of FileContentHints
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fchThumbnail :: Lens' FileContentHints (Maybe FileContentHintsThumbnail) Source #
A thumbnail for the file. This will only be used if Drive cannot generate a standard thumbnail.
fchIndexableText :: Lens' FileContentHints (Maybe Text) Source #
Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
ChannelParams
data ChannelParams Source #
Additional parameters controlling delivery channel behavior. Optional.
See: channelParams
smart constructor.
Instances
Creates a value of ChannelParams
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cpAddtional :: Lens' ChannelParams (HashMap Text Text) Source #
Declares a new parameter by name.
FileProperties
data FileProperties Source #
A collection of arbitrary key-value pairs which are visible to all apps. Entries with null values are cleared in update and copy requests.
See: fileProperties
smart constructor.
Instances
Creates a value of FileProperties
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
AboutMaxImportSizes
data AboutMaxImportSizes Source #
A map of maximum import sizes by MIME type, in bytes.
See: aboutMaxImportSizes
smart constructor.
Instances
Creates a value of AboutMaxImportSizes
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
About
Information about the user, the user's Drive, and system capabilities.
See: about
smart constructor.
Instances
Creates a value of About
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aExportFormats :: Lens' About (Maybe AboutExportFormats) Source #
A map of source MIME type to possible targets for all supported exports.
aMaxImportSizes :: Lens' About (Maybe AboutMaxImportSizes) Source #
A map of maximum import sizes by MIME type, in bytes.
aImportFormats :: Lens' About (Maybe AboutImportFormats) Source #
A map of source MIME type to possible targets for all supported imports.
aKind :: Lens' About Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#about".
aAppInstalled :: Lens' About (Maybe Bool) Source #
Whether the user has installed the requesting app.
aStorageQuota :: Lens' About (Maybe AboutStorageQuota) Source #
The user's storage quota limits and usage. All fields are measured in bytes.
aTeamDriveThemes :: Lens' About [AboutTeamDriveThemesItem] Source #
A list of themes that are supported for Team Drives.
aFolderColorPalette :: Lens' About [Text] Source #
The currently supported folder colors as RGB hex strings.
FileImageMediaMetadataLocation
data FileImageMediaMetadataLocation Source #
Geographic location information stored in the image.
See: fileImageMediaMetadataLocation
smart constructor.
Instances
fileImageMediaMetadataLocation :: FileImageMediaMetadataLocation Source #
Creates a value of FileImageMediaMetadataLocation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fimmlLatitude :: Lens' FileImageMediaMetadataLocation (Maybe Double) Source #
The latitude stored in the image.
fimmlAltitude :: Lens' FileImageMediaMetadataLocation (Maybe Double) Source #
The altitude stored in the image.
fimmlLongitude :: Lens' FileImageMediaMetadataLocation (Maybe Double) Source #
The longitude stored in the image.
StartPageToken
data StartPageToken Source #
Instances
startPageToken :: StartPageToken Source #
Creates a value of StartPageToken
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sptKind :: Lens' StartPageToken Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#startPageToken".
sptStartPageToken :: Lens' StartPageToken (Maybe Text) Source #
The starting page token for listing changes.
FileImageMediaMetadata
data FileImageMediaMetadata Source #
Additional metadata about image media, if available.
See: fileImageMediaMetadata
smart constructor.
Instances
fileImageMediaMetadata :: FileImageMediaMetadata Source #
Creates a value of FileImageMediaMetadata
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fimmRotation :: Lens' FileImageMediaMetadata (Maybe Int32) Source #
The rotation in clockwise degrees from the image's original orientation.
fimmHeight :: Lens' FileImageMediaMetadata (Maybe Int32) Source #
The height of the image in pixels.
fimmSubjectDistance :: Lens' FileImageMediaMetadata (Maybe Int32) Source #
The distance to the subject of the photo, in meters.
fimmMaxApertureValue :: Lens' FileImageMediaMetadata (Maybe Double) Source #
The smallest f-number of the lens at the focal length used to create the photo (APEX value).
fimmIsoSpeed :: Lens' FileImageMediaMetadata (Maybe Int32) Source #
The ISO speed used to create the photo.
fimmTime :: Lens' FileImageMediaMetadata (Maybe Text) Source #
The date and time the photo was taken (EXIF DateTime).
fimmLocation :: Lens' FileImageMediaMetadata (Maybe FileImageMediaMetadataLocation) Source #
Geographic location information stored in the image.
fimmAperture :: Lens' FileImageMediaMetadata (Maybe Double) Source #
The aperture used to create the photo (f-number).
fimmFocalLength :: Lens' FileImageMediaMetadata (Maybe Double) Source #
The focal length used to create the photo, in millimeters.
fimmCameraMake :: Lens' FileImageMediaMetadata (Maybe Text) Source #
The make of the camera used to create the photo.
fimmExposureTime :: Lens' FileImageMediaMetadata (Maybe Double) Source #
The length of the exposure, in seconds.
fimmCameraModel :: Lens' FileImageMediaMetadata (Maybe Text) Source #
The model of the camera used to create the photo.
fimmWhiteBalance :: Lens' FileImageMediaMetadata (Maybe Text) Source #
The white balance mode used to create the photo.
fimmFlashUsed :: Lens' FileImageMediaMetadata (Maybe Bool) Source #
Whether a flash was used to create the photo.
fimmExposureBias :: Lens' FileImageMediaMetadata (Maybe Double) Source #
The exposure bias of the photo (APEX value).
fimmMeteringMode :: Lens' FileImageMediaMetadata (Maybe Text) Source #
The metering mode used to create the photo.
fimmExposureMode :: Lens' FileImageMediaMetadata (Maybe Text) Source #
The exposure mode used to create the photo.
fimmSensor :: Lens' FileImageMediaMetadata (Maybe Text) Source #
The type of sensor used to create the photo.
fimmColorSpace :: Lens' FileImageMediaMetadata (Maybe Text) Source #
The color space of the photo.
Comment
A comment on a file.
See: comment
smart constructor.
Instances
Creates a value of Comment
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
comHTMLContent :: Lens' Comment (Maybe Text) Source #
The content of the comment with HTML formatting.
comModifiedTime :: Lens' Comment (Maybe UTCTime) Source #
The last time the comment or any of its replies was modified (RFC 3339 date-time).
comCreatedTime :: Lens' Comment (Maybe UTCTime) Source #
The time at which the comment was created (RFC 3339 date-time).
comKind :: Lens' Comment Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#comment".
comResolved :: Lens' Comment (Maybe Bool) Source #
Whether the comment has been resolved by one of its replies.
comQuotedFileContent :: Lens' Comment (Maybe CommentQuotedFileContent) Source #
The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.
comAnchor :: Lens' Comment (Maybe Text) Source #
A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
comContent :: Lens' Comment (Maybe Text) Source #
The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed.
comReplies :: Lens' Comment [Reply] Source #
The full list of replies to the comment in chronological order.
comDeleted :: Lens' Comment (Maybe Bool) Source #
Whether the comment has been deleted. A deleted comment has no content.
Revision
The metadata for a revision to a file.
See: revision
smart constructor.
Instances
Creates a value of Revision
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
revModifiedTime :: Lens' Revision (Maybe UTCTime) Source #
The last time the revision was modified (RFC 3339 date-time).
revSize :: Lens' Revision (Maybe Int64) Source #
The size of the revision's content in bytes. This is only applicable to files with binary content in Drive.
revOriginalFilename :: Lens' Revision (Maybe Text) Source #
The original filename used to create this revision. This is only applicable to files with binary content in Drive.
revKind :: Lens' Revision Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#revision".
revPublished :: Lens' Revision (Maybe Bool) Source #
Whether this revision is published. This is only applicable to Google Docs.
revPublishAuto :: Lens' Revision (Maybe Bool) Source #
Whether subsequent revisions will be automatically republished. This is only applicable to Google Docs.
revMD5Checksum :: Lens' Revision (Maybe Text) Source #
The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive.
revKeepForever :: Lens' Revision (Maybe Bool) Source #
Whether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This can be set on a maximum of 200 revisions for a file. This field is only applicable to files with binary content in Drive.
revExportLinks :: Lens' Revision (Maybe RevisionExportLinks) Source #
Links for exporting Google Docs to specific formats.
revPublishedOutsideDomain :: Lens' Revision (Maybe Bool) Source #
Whether this revision is published outside the domain. This is only applicable to Google Docs.
Permission
data Permission Source #
A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
See: permission
smart constructor.
Instances
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:
pPhotoLink :: Lens' Permission (Maybe Text) Source #
A link to the user's profile photo, if available.
pTeamDrivePermissionDetails :: Lens' Permission [PermissionTeamDrivePermissionDetailsItem] Source #
Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
pKind :: Lens' Permission Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#permission".
pRole :: Lens' Permission (Maybe Text) Source #
The role granted by this permission. While new values may be supported in the future, the following are currently allowed: - owner - organizer - fileOrganizer - writer - commenter - reader
pEmailAddress :: Lens' Permission (Maybe Text) Source #
The email address of the user or group to which this permission refers.
pAllowFileDiscovery :: Lens' Permission (Maybe Bool) Source #
Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.
pDisplayName :: Lens' Permission (Maybe Text) Source #
A displayable name for users, groups or domains.
pId :: Lens' Permission (Maybe Text) Source #
The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId.
pDeleted :: Lens' Permission (Maybe Bool) Source #
Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
pType :: Lens' Permission (Maybe Text) Source #
The type of the grantee. Valid values are: - user - group - domain - anyone
pExpirationTime :: Lens' Permission (Maybe UTCTime) Source #
The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time must be in the future - The time cannot be more than a year in the future
File
The metadata for a file.
See: file
smart constructor.
Instances
Creates a value of File
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fOwnedByMe
fThumbnailLink
fFullFileExtension
fModifiedTime
fModifiedByMeTime
fFileExtension
fViewedByMe
fOwners
fViewedByMeTime
fModifiedByMe
fSize
fTrashed
fWebViewLink
fCreatedTime
fTrashedTime
fOriginalFilename
fKind
fLastModifyingUser
fIconLink
fHasThumbnail
fThumbnailVersion
fImageMediaMetadata
fExplicitlyTrashed
fShared
fMD5Checksum
fTeamDriveId
fFolderColorRgb
fMimeType
fIsAppAuthorized
fCopyRequiresWriterPermission
fName
fExportLinks
fParents
fStarred
fSpaces
fVersion
fHasAugmentedPermissions
fWritersCanShare
fTrashingUser
fId
fPermissionIds
fPermissions
fQuotaBytesUsed
fAppProperties
fVideoMediaMetadata
fSharedWithMeTime
fHeadRevisionId
fCapabilities
fDescription
fViewersCanCopyContent
fSharingUser
fWebContentLink
fContentHints
fProperties
fOwnedByMe :: Lens' File (Maybe Bool) Source #
Whether the user owns the file. Not populated for Team Drive files.
fThumbnailLink :: Lens' File (Maybe Text) Source #
A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
fFullFileExtension :: Lens' File (Maybe Text) Source #
The full file extension extracted from the name field. May contain multiple concatenated extensions, such as "tar.gz". This is only available for files with binary content in Drive. This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.
fModifiedTime :: Lens' File (Maybe UTCTime) Source #
The last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.
fModifiedByMeTime :: Lens' File (Maybe UTCTime) Source #
The last time the file was modified by the user (RFC 3339 date-time).
fFileExtension :: Lens' File (Maybe Text) Source #
The final component of fullFileExtension. This is only available for files with binary content in Drive.
fOwners :: Lens' File [User] Source #
The owners of the file. Currently, only certain legacy files may have more than one owner. Not populated for Team Drive files.
fViewedByMeTime :: Lens' File (Maybe UTCTime) Source #
The last time the file was viewed by the user (RFC 3339 date-time).
fSize :: Lens' File (Maybe Int64) Source #
The size of the file's content in bytes. This is only applicable to files with binary content in Drive.
fTrashed :: Lens' File (Maybe Bool) Source #
Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, and other users cannot see files in the owner's trash.
fWebViewLink :: Lens' File (Maybe Text) Source #
A link for opening the file in a relevant Google editor or viewer in a browser.
fCreatedTime :: Lens' File (Maybe UTCTime) Source #
The time at which the file was created (RFC 3339 date-time).
fTrashedTime :: Lens' File (Maybe UTCTime) Source #
The time that the item was trashed (RFC 3339 date-time). Only populated for Team Drive files.
fOriginalFilename :: Lens' File (Maybe Text) Source #
The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Drive.
fKind :: Lens' File Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#file".
fHasThumbnail :: Lens' File (Maybe Bool) Source #
Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
fThumbnailVersion :: Lens' File (Maybe Int64) Source #
The thumbnail version for use in thumbnail cache invalidation.
fImageMediaMetadata :: Lens' File (Maybe FileImageMediaMetadata) Source #
Additional metadata about image media, if available.
fExplicitlyTrashed :: Lens' File (Maybe Bool) Source #
Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
fShared :: Lens' File (Maybe Bool) Source #
Whether the file has been shared. Not populated for Team Drive files.
fMD5Checksum :: Lens' File (Maybe Text) Source #
The MD5 checksum for the content of the file. This is only applicable to files with binary content in Drive.
fFolderColorRgb :: Lens' File (Maybe Text) Source #
The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource. If an unsupported color is specified, the closest color in the palette will be used instead.
fMimeType :: Lens' File (Maybe Text) Source #
The MIME type of the file. Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.
fIsAppAuthorized :: Lens' File (Maybe Bool) Source #
Whether the file was created or opened by the requesting app.
fCopyRequiresWriterPermission :: Lens' File (Maybe Bool) Source #
Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
fName :: Lens' File (Maybe Text) Source #
The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of Team Drives, My Drive root folder, and Application Data folder the name is constant.
fExportLinks :: Lens' File (Maybe FileExportLinks) Source #
Links for exporting Google Docs to specific formats.
fParents :: Lens' File [Text] Source #
The IDs of the parent folders which contain the file. If not specified as part of a create request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.
fSpaces :: Lens' File [Text] Source #
The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
fVersion :: Lens' File (Maybe Int64) Source #
A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
fHasAugmentedPermissions :: Lens' File (Maybe Bool) Source #
Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.
fWritersCanShare :: Lens' File (Maybe Bool) Source #
Whether users with only writer permission can modify the file's permissions. Not populated for Team Drive files.
fTrashingUser :: Lens' File (Maybe User) Source #
If the file has been explicitly trashed, the user who trashed it. Only populated for Team Drive files.
fPermissionIds :: Lens' File [Text] Source #
List of permission IDs for users with access to this file.
fPermissions :: Lens' File [Permission] Source #
The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for Team Drive files.
fQuotaBytesUsed :: Lens' File (Maybe Int64) Source #
The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
fAppProperties :: Lens' File (Maybe FileAppProperties) Source #
A collection of arbitrary key-value pairs which are private to the requesting app. Entries with null values are cleared in update and copy requests.
fVideoMediaMetadata :: Lens' File (Maybe FileVideoMediaMetadata) Source #
Additional metadata about video media. This may not be available immediately upon upload.
fSharedWithMeTime :: Lens' File (Maybe UTCTime) Source #
The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
fHeadRevisionId :: Lens' File (Maybe Text) Source #
The ID of the file's head revision. This is currently only available for files with binary content in Drive.
fCapabilities :: Lens' File (Maybe FileCapabilities) Source #
Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
fViewersCanCopyContent :: Lens' File (Maybe Bool) Source #
Deprecated - use copyRequiresWriterPermission instead.
fSharingUser :: Lens' File (Maybe User) Source #
The user who shared the file with the requesting user, if applicable.
fWebContentLink :: Lens' File (Maybe Text) Source #
A link for downloading the content of the file in a browser. This is only available for files with binary content in Drive.
fContentHints :: Lens' File (Maybe FileContentHints) Source #
Additional information about the content of the file. These fields are never populated in responses.
fProperties :: Lens' File (Maybe FileProperties) Source #
A collection of arbitrary key-value pairs which are visible to all apps. Entries with null values are cleared in update and copy requests.
PermissionTeamDrivePermissionDetailsItem
data PermissionTeamDrivePermissionDetailsItem Source #
Instances
permissionTeamDrivePermissionDetailsItem :: PermissionTeamDrivePermissionDetailsItem Source #
Creates a value of PermissionTeamDrivePermissionDetailsItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ptdpdiInherited :: Lens' PermissionTeamDrivePermissionDetailsItem (Maybe Bool) Source #
Whether this permission is inherited. This field is always populated. This is an output-only field.
ptdpdiTeamDrivePermissionType :: Lens' PermissionTeamDrivePermissionDetailsItem (Maybe Text) Source #
The Team Drive permission type for this user. While new values may be added in future, the following are currently possible: - file - member
ptdpdiRole :: Lens' PermissionTeamDrivePermissionDetailsItem (Maybe Text) Source #
The primary role for this user. While new values may be added in the future, the following are currently possible: - organizer - fileOrganizer - writer - commenter - reader
ptdpdiInheritedFrom :: Lens' PermissionTeamDrivePermissionDetailsItem (Maybe Text) Source #
The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
GeneratedIds
data GeneratedIds Source #
A list of generated file IDs which can be provided in create requests.
See: generatedIds
smart constructor.
Instances
generatedIds :: GeneratedIds Source #
Creates a value of GeneratedIds
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
giSpace :: Lens' GeneratedIds (Maybe Text) Source #
The type of file that can be created with these IDs.
giKind :: Lens' GeneratedIds Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#generatedIds".
giIds :: Lens' GeneratedIds [Text] Source #
The IDs generated for the requesting user in the specified space.
FileExportLinks
data FileExportLinks Source #
Links for exporting Google Docs to specific formats.
See: fileExportLinks
smart constructor.
Instances
Creates a value of FileExportLinks
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
felAddtional :: Lens' FileExportLinks (HashMap Text Text) Source #
A mapping from export format to URL
CommentList
data CommentList Source #
A list of comments on a file.
See: commentList
smart constructor.
Instances
commentList :: CommentList Source #
Creates a value of CommentList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cllNextPageToken :: Lens' CommentList (Maybe Text) Source #
The page token for the next page of comments. This will be absent if the end of the comments list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
cllKind :: Lens' CommentList Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#commentList".
cllComments :: Lens' CommentList [Comment] Source #
The list of comments. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
RevisionList
data RevisionList Source #
A list of revisions of a file.
See: revisionList
smart constructor.
Instances
revisionList :: RevisionList Source #
Creates a value of RevisionList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rllNextPageToken :: Lens' RevisionList (Maybe Text) Source #
The page token for the next page of revisions. This will be absent if the end of the revisions list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
rllKind :: Lens' RevisionList Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#revisionList".
rllRevisions :: Lens' RevisionList [Revision] Source #
The list of revisions. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
PermissionList
data PermissionList Source #
A list of permissions for a file.
See: permissionList
smart constructor.
Instances
permissionList :: PermissionList Source #
Creates a value of PermissionList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
plNextPageToken :: Lens' PermissionList (Maybe Text) Source #
The page token for the next page of permissions. This field will be absent if the end of the permissions list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
plKind :: Lens' PermissionList Text Source #
Identifies what kind of resource this is. Value: the fixed string "drive#permissionList".
plPermissions :: Lens' PermissionList [Permission] Source #
The list of permissions. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.