gogol-drive-0.3.0: Google Drive SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Drive.Files.List

Contents

Description

Lists or searches files.

See: Drive API Reference for drive.files.list.

Synopsis

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

filesList :: FilesList #

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:

data FilesList #

Lists or searches files.

See: filesList smart constructor.

Instances

Eq FilesList # 
Data FilesList # 

Methods

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 # 
Generic FilesList # 

Associated Types

type Rep FilesList :: * -> * #

GoogleRequest FilesList # 

Associated Types

type Rs FilesList :: * #

type Scopes FilesList :: [Symbol] #

type Rep FilesList # 
type Scopes FilesList # 
type Scopes FilesList = (:) Symbol "https://www.googleapis.com/auth/drive" ((:) Symbol "https://www.googleapis.com/auth/drive.appdata" ((:) Symbol "https://www.googleapis.com/auth/drive.file" ((:) Symbol "https://www.googleapis.com/auth/drive.metadata" ((:) Symbol "https://www.googleapis.com/auth/drive.metadata.readonly" ((:) Symbol "https://www.googleapis.com/auth/drive.photos.readonly" ((:) Symbol "https://www.googleapis.com/auth/drive.readonly" ([] Symbol)))))))
type Rs FilesList # 

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.