gogol-script-0.5.0: Google Apps Script 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.Script.Projects.UpdateContent

Contents

Description

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

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
Eq ProjectsUpdateContent Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.UpdateContent

Data ProjectsUpdateContent Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.UpdateContent

Methods

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

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

toConstr :: ProjectsUpdateContent -> Constr #

dataTypeOf :: ProjectsUpdateContent -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsUpdateContent Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.UpdateContent

Generic ProjectsUpdateContent Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.UpdateContent

Associated Types

type Rep ProjectsUpdateContent :: Type -> Type #

GoogleRequest ProjectsUpdateContent Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.UpdateContent

type Rep ProjectsUpdateContent Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.UpdateContent

type Rep ProjectsUpdateContent = D1 (MetaData "ProjectsUpdateContent" "Network.Google.Resource.Script.Projects.UpdateContent" "gogol-script-0.5.0-KVePeakC4JC7frXGjxavDo" False) (C1 (MetaCons "ProjectsUpdateContent'" PrefixI True) ((S1 (MetaSel (Just "_pucXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pucUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pucAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pucUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pucPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Content)) :*: (S1 (MetaSel (Just "_pucScriptId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pucCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsUpdateContent Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.UpdateContent

type Scopes ProjectsUpdateContent = "https://www.googleapis.com/auth/script.projects" ': ([] :: [Symbol])
type Rs ProjectsUpdateContent Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.UpdateContent

Request Lenses

pucUploadProtocol :: Lens' ProjectsUpdateContent (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

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.