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 |
Lists or searches files.
See: Drive API Reference for drive.files.list
.
Synopsis
- type FilesListResource = "drive" :> ("v3" :> ("files" :> (QueryParam "corpora" Text :> (QueryParam "orderBy" Text :> (QueryParam "includeTeamDriveItems" Bool :> (QueryParam "q" Text :> (QueryParam "teamDriveId" Text :> (QueryParam "spaces" Text :> (QueryParam "corpus" FilesListCorpus :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] FileList)))))))))))))
- filesList :: FilesList
- data FilesList
- flCorpora :: Lens' FilesList (Maybe Text)
- flOrderBy :: Lens' FilesList (Maybe Text)
- flIncludeTeamDriveItems :: Lens' FilesList Bool
- flQ :: Lens' FilesList (Maybe Text)
- flTeamDriveId :: Lens' FilesList (Maybe Text)
- flSpaces :: Lens' FilesList Text
- flCorpus :: Lens' FilesList (Maybe FilesListCorpus)
- flPageToken :: Lens' FilesList (Maybe Text)
- flPageSize :: Lens' FilesList Int32
- flSupportsTeamDrives :: Lens' FilesList Bool
REST Resource
type FilesListResource = "drive" :> ("v3" :> ("files" :> (QueryParam "corpora" Text :> (QueryParam "orderBy" Text :> (QueryParam "includeTeamDriveItems" Bool :> (QueryParam "q" Text :> (QueryParam "teamDriveId" Text :> (QueryParam "spaces" Text :> (QueryParam "corpus" FilesListCorpus :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] FileList))))))))))))) Source #
A resource alias for drive.files.list
method which the
FilesList
request conforms to.
Creating a Request
filesList :: FilesList Source #
Creates a value of FilesList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Lists or searches files.
See: filesList
smart constructor.
Instances
Eq FilesList Source # | |
Data FilesList Source # | |
Defined in Network.Google.Resource.Drive.Files.List gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FilesList -> c FilesList # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FilesList # toConstr :: FilesList -> Constr # dataTypeOf :: FilesList -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c FilesList) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FilesList) # gmapT :: (forall b. Data b => b -> b) -> FilesList -> FilesList # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FilesList -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FilesList -> r # gmapQ :: (forall d. Data d => d -> u) -> FilesList -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> FilesList -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> FilesList -> m FilesList # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FilesList -> m FilesList # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FilesList -> m FilesList # | |
Show FilesList Source # | |
Generic FilesList Source # | |
GoogleRequest FilesList Source # | |
type Rep FilesList Source # | |
Defined in Network.Google.Resource.Drive.Files.List type Rep FilesList = D1 (MetaData "FilesList" "Network.Google.Resource.Drive.Files.List" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "FilesList'" PrefixI True) (((S1 (MetaSel (Just "_flCorpora") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_flOrderBy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_flIncludeTeamDriveItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: (S1 (MetaSel (Just "_flQ") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_flTeamDriveId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_flSpaces") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_flCorpus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FilesListCorpus))) :*: (S1 (MetaSel (Just "_flPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_flPageSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int32)) :*: S1 (MetaSel (Just "_flSupportsTeamDrives") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))))) | |
type Scopes FilesList Source # | |
Defined in Network.Google.Resource.Drive.Files.List type Scopes FilesList = "https://www.googleapis.com/auth/drive" ': ("https://www.googleapis.com/auth/drive.appdata" ': ("https://www.googleapis.com/auth/drive.file" ': ("https://www.googleapis.com/auth/drive.metadata" ': ("https://www.googleapis.com/auth/drive.metadata.readonly" ': ("https://www.googleapis.com/auth/drive.photos.readonly" ': ("https://www.googleapis.com/auth/drive.readonly" ': ([] :: [Symbol]))))))) | |
type Rs FilesList Source # | |
Defined in Network.Google.Resource.Drive.Files.List |
Request Lenses
flCorpora :: Lens' FilesList (Maybe Text) Source #
Comma-separated list of bodies of items (files/documents) to which the query applies. Supported bodies are 'user', 'domain', 'teamDrive' and 'allTeamDrives'. 'allTeamDrives' must be combined with 'user'; all other values must be used in isolation. Prefer 'user' or 'teamDrive' to 'allTeamDrives' for efficiency.
flOrderBy :: Lens' FilesList (Maybe Text) Source #
A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.
flIncludeTeamDriveItems :: Lens' FilesList Bool Source #
Whether Team Drive items should be included in results.
flQ :: Lens' FilesList (Maybe Text) Source #
A query for filtering the file results. See the "Search for Files" guide for supported syntax.
flSpaces :: Lens' FilesList Text Source #
A comma-separated list of spaces to query within the corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
flCorpus :: Lens' FilesList (Maybe FilesListCorpus) Source #
The source of files to list. Deprecated: use 'corpora' instead.
flPageToken :: Lens' FilesList (Maybe Text) Source #
The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.