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.Get

Contents

Description

Gets a permission by ID.

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

Synopsis

REST Resource

type PermissionsGetResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("permissions" :> (Capture "permissionId" Text :> (QueryParam "useDomainAdminAccess" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] Permission)))))))) Source #

A resource alias for drive.permissions.get method which the PermissionsGet request conforms to.

Creating a Request

permissionsGet Source #

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

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

data PermissionsGet Source #

Gets a permission by ID.

See: permissionsGet smart constructor.

Instances
Eq PermissionsGet Source # 
Instance details

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

Data PermissionsGet Source # 
Instance details

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

Methods

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

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

toConstr :: PermissionsGet -> Constr #

dataTypeOf :: PermissionsGet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PermissionsGet Source # 
Instance details

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

Generic PermissionsGet Source # 
Instance details

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

Associated Types

type Rep PermissionsGet :: Type -> Type #

GoogleRequest PermissionsGet Source # 
Instance details

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

Associated Types

type Rs PermissionsGet :: Type #

type Scopes PermissionsGet :: [Symbol] #

type Rep PermissionsGet Source # 
Instance details

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

type Rep PermissionsGet = D1 (MetaData "PermissionsGet" "Network.Google.Resource.Drive.Permissions.Get" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "PermissionsGet'" PrefixI True) ((S1 (MetaSel (Just "_pgUseDomainAdminAccess") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_pgFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_pgSupportsTeamDrives") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_pgPermissionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes PermissionsGet Source # 
Instance details

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

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

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

Request Lenses

pgUseDomainAdminAccess :: Lens' PermissionsGet 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.

pgFileId :: Lens' PermissionsGet Text Source #

The ID of the file.

pgSupportsTeamDrives :: Lens' PermissionsGet Bool Source #

Whether the requesting application supports Team Drives.

pgPermissionId :: Lens' PermissionsGet Text Source #

The ID of the permission.