gogol-drive-0.5.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 or shared drive.

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 "supportsAllDrives" Bool :> (QueryParam "useDomainAdminAccess" Bool :> (QueryParam "transferOwnership" Bool :> (QueryParam "supportsTeamDrives" 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 or shared drive.

See: permissionsCreate smart constructor.

Instances
Eq PermissionsCreate Source # 
Instance details

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

Data PermissionsCreate Source # 
Instance details

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

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

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

Generic PermissionsCreate Source # 
Instance details

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

Associated Types

type Rep PermissionsCreate :: Type -> Type #

GoogleRequest PermissionsCreate Source # 
Instance details

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

Associated Types

type Rs PermissionsCreate :: Type #

type Scopes PermissionsCreate :: [Symbol] #

type Rep PermissionsCreate Source # 
Instance details

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

type Rep PermissionsCreate = D1 (MetaData "PermissionsCreate" "Network.Google.Resource.Drive.Permissions.Create" "gogol-drive-0.5.0-6s3nRYEHDD4AYi9Kv61RlM" False) (C1 (MetaCons "PermissionsCreate'" PrefixI True) (((S1 (MetaSel (Just "_pcSendNotificationEmail") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_pcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Permission)) :*: (S1 (MetaSel (Just "_pcEmailMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pcSupportsAllDrives") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))) :*: ((S1 (MetaSel (Just "_pcUseDomainAdminAccess") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_pcTransferOwnership") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) :*: (S1 (MetaSel (Just "_pcFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pcSupportsTeamDrives") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))))
type Scopes PermissionsCreate Source # 
Instance details

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

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

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

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 plain text custom message to include in the notification email.

pcSupportsAllDrives :: Lens' PermissionsCreate Bool Source #

Whether the requesting application supports both My Drives and shared drives.

pcUseDomainAdminAccess :: Lens' PermissionsCreate Bool Source #

Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs.

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.

pcFileId :: Lens' PermissionsCreate Text Source #

The ID of the file or shared drive.

pcSupportsTeamDrives :: Lens' PermissionsCreate Bool Source #

Deprecated use supportsAllDrives instead.