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.Permissions.Update

Contents

Description

Updates a permission with patch semantics.

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

Synopsis

REST Resource

type PermissionsUpdateResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("permissions" :> (Capture "permissionId" Text :> (QueryParam "removeExpiration" Bool :> (QueryParam "transferOwnership" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Permission :> Patch '[JSON] Permission))))))))) Source #

A resource alias for drive.permissions.update method which the PermissionsUpdate request conforms to.

Creating a Request

permissionsUpdate Source #

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

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

data PermissionsUpdate Source #

Updates a permission with patch semantics.

See: permissionsUpdate smart constructor.

Instances

Eq PermissionsUpdate Source # 
Data PermissionsUpdate Source # 

Methods

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

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

toConstr :: PermissionsUpdate -> Constr #

dataTypeOf :: PermissionsUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PermissionsUpdate Source # 
Generic PermissionsUpdate Source # 
GoogleRequest PermissionsUpdate Source # 
type Rep PermissionsUpdate Source # 
type Rep PermissionsUpdate = D1 (MetaData "PermissionsUpdate" "Network.Google.Resource.Drive.Permissions.Update" "gogol-drive-0.3.0-HPclvxcWpgG8piXpdkWWOb" False) (C1 (MetaCons "PermissionsUpdate'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_puPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Permission)) (S1 (MetaSel (Just Symbol "_puRemoveExpiration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_puTransferOwnership") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) ((:*:) (S1 (MetaSel (Just Symbol "_puFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_puPermissionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Scopes PermissionsUpdate Source # 
type Scopes PermissionsUpdate = (:) Symbol "https://www.googleapis.com/auth/drive" ((:) Symbol "https://www.googleapis.com/auth/drive.file" ([] Symbol))
type Rs PermissionsUpdate Source # 

Request Lenses

puPayload :: Lens' PermissionsUpdate Permission Source #

Multipart request metadata.

puRemoveExpiration :: Lens' PermissionsUpdate Bool Source #

Whether to remove the expiration date.

puTransferOwnership :: Lens' PermissionsUpdate 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.

puPermissionId :: Lens' PermissionsUpdate Text Source #

The ID of the permission.