gogol-drive-0.1.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.Changes.Watch

Contents

Description

Subscribes to changes for a user.

See: Drive API Reference for drive.changes.watch.

Synopsis

REST Resource

type ChangesWatchResource = "drive" :> ("v3" :> ("changes" :> ("watch" :> (QueryParam "pageToken" Text :> (QueryParam "restrictToMyDrive" Bool :> (QueryParam "spaces" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "includeRemoved" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Post '[JSON] Channel)))))))))) Source #

A resource alias for drive.changes.watch method which the ChangesWatch request conforms to.

Creating a Request

changesWatch Source #

Creates a value of ChangesWatch with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ChangesWatch Source #

Subscribes to changes for a user.

See: changesWatch smart constructor.

Instances

Eq ChangesWatch Source # 
Data ChangesWatch Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ChangesWatch -> c ChangesWatch #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ChangesWatch #

toConstr :: ChangesWatch -> Constr #

dataTypeOf :: ChangesWatch -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ChangesWatch) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ChangesWatch) #

gmapT :: (forall b. Data b => b -> b) -> ChangesWatch -> ChangesWatch #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ChangesWatch -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ChangesWatch -> r #

gmapQ :: (forall d. Data d => d -> u) -> ChangesWatch -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ChangesWatch -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ChangesWatch -> m ChangesWatch #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ChangesWatch -> m ChangesWatch #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ChangesWatch -> m ChangesWatch #

Show ChangesWatch Source # 
Generic ChangesWatch Source # 

Associated Types

type Rep ChangesWatch :: * -> * #

GoogleRequest ChangesWatch Source # 

Associated Types

type Rs ChangesWatch :: * #

type Scopes ChangesWatch :: [Symbol] #

type Rep ChangesWatch Source # 
type Rep ChangesWatch = D1 (MetaData "ChangesWatch" "Network.Google.Resource.Drive.Changes.Watch" "gogol-drive-0.1.0-6HBMQCLlnIn4vn8VWItYpl" False) (C1 (MetaCons "ChangesWatch'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cwPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Channel)) ((:*:) (S1 (MetaSel (Just Symbol "_cwRestrictToMyDrive") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_cwSpaces") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_cwPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_cwPageSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int32))) (S1 (MetaSel (Just Symbol "_cwIncludeRemoved") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))))))
type Scopes ChangesWatch Source # 
type Scopes ChangesWatch = (:) 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 ChangesWatch Source # 

Request Lenses

cwPayload :: Lens' ChangesWatch Channel Source #

Multipart request metadata.

cwRestrictToMyDrive :: Lens' ChangesWatch Bool Source #

Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.

cwSpaces :: Lens' ChangesWatch Text Source #

A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.

cwPageToken :: Lens' ChangesWatch 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 or to the response from the getStartPageToken method.

cwPageSize :: Lens' ChangesWatch Int32 Source #

The maximum number of changes to return per page.

cwIncludeRemoved :: Lens' ChangesWatch Bool Source #

Whether to include changes indicating that items have left the view of the changes list, for example by deletion or lost access.