gogol-drive-0.2.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.Permissions.Create

Contents

Description

Creates a permission for a file.

See: Drive API Reference for drive.permissions.create.

Synopsis

REST Resource

type PermissionsCreateResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("permissions" :> (QueryParam "sendNotificationEmail" Bool :> (QueryParam "emailMessage" Text :> (QueryParam "transferOwnership" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Permission :> Post '[JSON] Permission))))))))) Source #

A resource alias for drive.permissions.create method which the PermissionsCreate request conforms to.

Creating a Request

permissionsCreate Source #

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

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

data PermissionsCreate Source #

Creates a permission for a file.

See: permissionsCreate smart constructor.

Instances

Eq PermissionsCreate Source # 
Data PermissionsCreate Source # 

Methods

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

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

toConstr :: PermissionsCreate -> Constr #

dataTypeOf :: PermissionsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PermissionsCreate Source # 
Generic PermissionsCreate Source # 
GoogleRequest PermissionsCreate Source # 
type Rep PermissionsCreate Source # 
type Rep PermissionsCreate = D1 (MetaData "PermissionsCreate" "Network.Google.Resource.Drive.Permissions.Create" "gogol-drive-0.2.0-AwKnKoQD87OEzHCw3nUjZs" False) (C1 (MetaCons "PermissionsCreate'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pcSendNotificationEmail") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_pcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Permission))) ((:*:) (S1 (MetaSel (Just Symbol "_pcEmailMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_pcTransferOwnership") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_pcFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Scopes PermissionsCreate Source # 
type Scopes PermissionsCreate = (:) Symbol "https://www.googleapis.com/auth/drive" ((:) Symbol "https://www.googleapis.com/auth/drive.file" ([] Symbol))
type Rs PermissionsCreate Source # 

Request Lenses

pcSendNotificationEmail :: Lens' PermissionsCreate (Maybe Bool) Source #

Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers.

pcPayload :: Lens' PermissionsCreate Permission Source #

Multipart request metadata.

pcEmailMessage :: Lens' PermissionsCreate (Maybe Text) Source #

A custom message to include in the notification email.

pcTransferOwnership :: Lens' PermissionsCreate Bool Source #

Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.