gogol-drive-0.4.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 "useDomainAdminAccess" Bool :> (QueryParam "transferOwnership" Bool :> (QueryParam "supportsTeamDrives" 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 # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Update

Data PermissionsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Update

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 # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Update

Generic PermissionsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Update

Associated Types

type Rep PermissionsUpdate :: Type -> Type #

GoogleRequest PermissionsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Update

Associated Types

type Rs PermissionsUpdate :: Type #

type Scopes PermissionsUpdate :: [Symbol] #

type Rep PermissionsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Update

type Rep PermissionsUpdate = D1 (MetaData "PermissionsUpdate" "Network.Google.Resource.Drive.Permissions.Update" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "PermissionsUpdate'" PrefixI True) ((S1 (MetaSel (Just "_puPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Permission) :*: (S1 (MetaSel (Just "_puRemoveExpiration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_puUseDomainAdminAccess") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))) :*: ((S1 (MetaSel (Just "_puTransferOwnership") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_puFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_puSupportsTeamDrives") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_puPermissionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes PermissionsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Update

type Scopes PermissionsUpdate = "https://www.googleapis.com/auth/drive" ': ("https://www.googleapis.com/auth/drive.file" ': ([] :: [Symbol]))
type Rs PermissionsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Drive.Permissions.Update

Request Lenses

puPayload :: Lens' PermissionsUpdate Permission Source #

Multipart request metadata.

puRemoveExpiration :: Lens' PermissionsUpdate Bool Source #

Whether to remove the expiration date.

puUseDomainAdminAccess :: Lens' PermissionsUpdate Bool Source #

Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.

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.

puFileId :: Lens' PermissionsUpdate Text Source #

The ID of the file or Team Drive.

puSupportsTeamDrives :: Lens' PermissionsUpdate Bool Source #

Whether the requesting application supports Team Drives.

puPermissionId :: Lens' PermissionsUpdate Text Source #

The ID of the permission.