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 |
Network.Google.Resource.Drive.Files.List
Description
Lists or searches files.
See: Drive API Reference for drive.files.list
.
- type FilesListResource = "drive" :> ("v3" :> ("files" :> (QueryParam "orderBy" Text :> (QueryParam "q" Text :> (QueryParam "spaces" Text :> (QueryParam "corpus" FilesListCorpus :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] FileList)))))))))
- filesList :: FilesList
- data FilesList
- flOrderBy :: Lens' FilesList (Maybe Text)
- flQ :: Lens' FilesList (Maybe Text)
- flSpaces :: Lens' FilesList Text
- flCorpus :: Lens' FilesList FilesListCorpus
- flPageToken :: Lens' FilesList (Maybe Text)
- flPageSize :: Lens' FilesList Int32
REST Resource
type FilesListResource = "drive" :> ("v3" :> ("files" :> (QueryParam "orderBy" Text :> (QueryParam "q" Text :> (QueryParam "spaces" Text :> (QueryParam "corpus" FilesListCorpus :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] FileList))))))))) #
A resource alias for drive.files.list
method which the
FilesList
request conforms to.
Creating a Request
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.
Request Lenses
flOrderBy :: Lens' FilesList (Maybe Text) #
A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', '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.
flQ :: Lens' FilesList (Maybe Text) #
A query for filtering the file results. See the "Search for Files" guide for supported syntax.
flSpaces :: Lens' FilesList Text #
A comma-separated list of spaces to query within the corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
flCorpus :: Lens' FilesList FilesListCorpus #
The source of files to list.
flPageToken :: Lens' FilesList (Maybe Text) #
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.
flPageSize :: Lens' FilesList Int32 #
The maximum number of files to return per page.