Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Gets a file's metadata or content by ID.
See: Drive API Reference for drive.files.get
.
Synopsis
- type FilesGetResource = ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] File))))))) :<|> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltMedia :> Get '[OctetStream] Stream)))))))
- filesGet :: Text -> FilesGet
- data FilesGet
- fgAcknowledgeAbuse :: Lens' FilesGet Bool
- fgFileId :: Lens' FilesGet Text
- fgSupportsTeamDrives :: Lens' FilesGet Bool
REST Resource
type FilesGetResource = ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] File))))))) :<|> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltMedia :> Get '[OctetStream] Stream))))))) Source #
A resource alias for drive.files.get
method which the
FilesGet
request conforms to.
Creating a Request
Creates a value of FilesGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Gets a file's metadata or content by ID.
See: filesGet
smart constructor.
Instances
Eq FilesGet Source # | |
Data FilesGet Source # | |
Defined in Network.Google.Resource.Drive.Files.Get gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FilesGet -> c FilesGet # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FilesGet # toConstr :: FilesGet -> Constr # dataTypeOf :: FilesGet -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c FilesGet) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FilesGet) # gmapT :: (forall b. Data b => b -> b) -> FilesGet -> FilesGet # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FilesGet -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FilesGet -> r # gmapQ :: (forall d. Data d => d -> u) -> FilesGet -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> FilesGet -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> FilesGet -> m FilesGet # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FilesGet -> m FilesGet # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FilesGet -> m FilesGet # | |
Show FilesGet Source # | |
Generic FilesGet Source # | |
GoogleRequest FilesGet Source # | |
GoogleRequest (MediaDownload FilesGet) Source # | |
Defined in Network.Google.Resource.Drive.Files.Get type Rs (MediaDownload FilesGet) :: Type # type Scopes (MediaDownload FilesGet) :: [Symbol] # requestClient :: MediaDownload FilesGet -> GClient (Rs (MediaDownload FilesGet)) # | |
type Rep FilesGet Source # | |
Defined in Network.Google.Resource.Drive.Files.Get type Rep FilesGet = D1 (MetaData "FilesGet" "Network.Google.Resource.Drive.Files.Get" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "FilesGet'" PrefixI True) (S1 (MetaSel (Just "_fgAcknowledgeAbuse") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: (S1 (MetaSel (Just "_fgFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_fgSupportsTeamDrives") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))) | |
type Scopes FilesGet Source # | |
Defined in Network.Google.Resource.Drive.Files.Get type Scopes FilesGet = "https://www.googleapis.com/auth/drive" ': ("https://www.googleapis.com/auth/drive.appdata" ': ("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 FilesGet Source # | |
Defined in Network.Google.Resource.Drive.Files.Get | |
type Scopes (MediaDownload FilesGet) Source # | |
Defined in Network.Google.Resource.Drive.Files.Get | |
type Rs (MediaDownload FilesGet) Source # | |
Defined in Network.Google.Resource.Drive.Files.Get |