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 |
Updates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the script editor, in add-on preview mode, or as a web app or Apps Script API in development mode. This clears all the existing files in the project.
See: Apps Script API Reference for script.projects.updateContent
.
Synopsis
- type ProjectsUpdateContentResource = "v1" :> ("projects" :> (Capture "scriptId" Text :> ("content" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Content :> Put '[JSON] Content))))))))))
- projectsUpdateContent :: Content -> Text -> ProjectsUpdateContent
- data ProjectsUpdateContent
- pucXgafv :: Lens' ProjectsUpdateContent (Maybe Xgafv)
- pucUploadProtocol :: Lens' ProjectsUpdateContent (Maybe Text)
- pucAccessToken :: Lens' ProjectsUpdateContent (Maybe Text)
- pucUploadType :: Lens' ProjectsUpdateContent (Maybe Text)
- pucPayload :: Lens' ProjectsUpdateContent Content
- pucScriptId :: Lens' ProjectsUpdateContent Text
- pucCallback :: Lens' ProjectsUpdateContent (Maybe Text)
REST Resource
type ProjectsUpdateContentResource = "v1" :> ("projects" :> (Capture "scriptId" Text :> ("content" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Content :> Put '[JSON] Content)))))))))) Source #
A resource alias for script.projects.updateContent
method which the
ProjectsUpdateContent
request conforms to.
Creating a Request
projectsUpdateContent Source #
Creates a value of ProjectsUpdateContent
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsUpdateContent Source #
Updates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the script editor, in add-on preview mode, or as a web app or Apps Script API in development mode. This clears all the existing files in the project.
See: projectsUpdateContent
smart constructor.
Instances
Request Lenses
pucUploadProtocol :: Lens' ProjectsUpdateContent (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pucAccessToken :: Lens' ProjectsUpdateContent (Maybe Text) Source #
OAuth access token.
pucUploadType :: Lens' ProjectsUpdateContent (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pucPayload :: Lens' ProjectsUpdateContent Content Source #
Multipart request metadata.
pucScriptId :: Lens' ProjectsUpdateContent Text Source #
The script project's Drive ID.
pucCallback :: Lens' ProjectsUpdateContent (Maybe Text) Source #
JSONP