on develop help sign in
Regenerating gogol-drive from latest service definition
commitdc566ebd91e012eba74498577d078e463030d88b authorBrendan Hay <brendan.g.hay@gmail.com> dateTue 10 May 2016, 16:12 (10 years ago) parentf595b40
4 files changed+18−2
gogol-drive/gen/Network/Google/Drive.hs+3−1 gogol-drive/gen/Network/Google/Drive/Types.hs+1 gogol-drive/gen/Network/Google/Drive/Types/Product.hs+12 gogol-drive/gogol-drive.cabal+2−1
gogol-drive/gen/Network/Google/Drive.hs+3−1
@@ -13,7 +13,8 @@
1313-- Stability : auto-generated
1414-- Portability : non-portable (GHC extensions)
1515--
16−-- The API to interact with Drive.
16+-- Manages files in Drive including uploading, downloading, searching,
17+-- detecting changes, and updating sharing permissions.
1718--
1819-- /See:/ <https://developers.google.com/drive/ Drive API Reference>
1920module Network.Google.Drive
@@ -405,6 +406,7 @@ module Network.Google.Drive
405406 , fMD5Checksum
406407 , fFolderColorRgb
407408 , fMimeType
409+ , fIsAppAuthorized
408410 , fName
409411 , fParents
410412 , fStarred
gogol-drive/gen/Network/Google/Drive/Types.hs+1
@@ -294,6 +294,7 @@ module Network.Google.Drive.Types
294294 , fMD5Checksum
295295 , fFolderColorRgb
296296 , fMimeType
297+ , fIsAppAuthorized
297298 , fName
298299 , fParents
299300 , fStarred
gogol-drive/gen/Network/Google/Drive/Types/Product.hs+12
@@ -2236,6 +2236,7 @@ data File = File'
22362236 , _fMD5Checksum :: !(Maybe Text)
22372237 , _fFolderColorRgb :: !(Maybe Text)
22382238 , _fMimeType :: !(Maybe Text)
2239+ , _fIsAppAuthorized :: !(Maybe Bool)
22392240 , _fName :: !(Maybe Text)
22402241 , _fParents :: !(Maybe [Text])
22412242 , _fStarred :: !(Maybe Bool)
@@ -2308,6 +2309,8 @@ data File = File'
23082309--
23092310-- * 'fMimeType'
23102311--
2312+-- * 'fIsAppAuthorized'
2313+--
23112314-- * 'fName'
23122315--
23132316-- * 'fParents'
@@ -2374,6 +2377,7 @@ file =
23742377 , _fMD5Checksum = Nothing
23752378 , _fFolderColorRgb = Nothing
23762379 , _fMimeType = Nothing
2380+ , _fIsAppAuthorized = Nothing
23772381 , _fName = Nothing
23782382 , _fParents = Nothing
23792383 , _fStarred = Nothing
@@ -2550,6 +2554,12 @@ fMimeType :: Lens' File (Maybe Text)
25502554fMimeType
25512555 = lens _fMimeType (\ s a -> s{_fMimeType = a})
25522556
2557+-- | Whether the file was created or opened by the requesting app.
2558+fIsAppAuthorized :: Lens' File (Maybe Bool)
2559+fIsAppAuthorized
2560+ = lens _fIsAppAuthorized
2561+ (\ s a -> s{_fIsAppAuthorized = a})
2562+
25532563-- | The name of the file. This is not necessarily unique within a folder.
25542564fName :: Lens' File (Maybe Text)
25552565fName = lens _fName (\ s a -> s{_fName = a})
@@ -2710,6 +2720,7 @@ instance FromJSON File where
27102720 <*> (o .:? "md5Checksum")
27112721 <*> (o .:? "folderColorRgb")
27122722 <*> (o .:? "mimeType")
2723+ <*> (o .:? "isAppAuthorized")
27132724 <*> (o .:? "name")
27142725 <*> (o .:? "parents" .!= mempty)
27152726 <*> (o .:? "starred")
@@ -2757,6 +2768,7 @@ instance ToJSON File where
27572768 ("md5Checksum" .=) <$> _fMD5Checksum,
27582769 ("folderColorRgb" .=) <$> _fFolderColorRgb,
27592770 ("mimeType" .=) <$> _fMimeType,
2771+ ("isAppAuthorized" .=) <$> _fIsAppAuthorized,
27602772 ("name" .=) <$> _fName, ("parents" .=) <$> _fParents,
27612773 ("starred" .=) <$> _fStarred,
27622774 ("spaces" .=) <$> _fSpaces,
gogol-drive/gogol-drive.cabal+2−1
@@ -14,7 +14,8 @@ cabal-version: >= 1.10
1414extra-source-files: README.md
1515
1616description:
17− The API to interact with Drive.
17+ Manages files in Drive including uploading, downloading, searching,
18+ detecting changes, and updating sharing permissions.
1819 .
1920 /Warning:/ This is an experimental prototype/preview release which is still
2021 under exploratory development and not intended for public use, caveat emptor!