gogol-script-0.4.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.Versions.Create

Contents

Description

Creates a new immutable version using the current code, with a unique version number.

See: Apps Script API Reference for script.projects.versions.create.

Synopsis

REST Resource

type ProjectsVersionsCreateResource = "v1" :> ("projects" :> (Capture "scriptId" Text :> ("versions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Version :> Post '[JSON] Version)))))))))) Source #

A resource alias for script.projects.versions.create method which the ProjectsVersionsCreate request conforms to.

Creating a Request

projectsVersionsCreate Source #

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

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

data ProjectsVersionsCreate Source #

Creates a new immutable version using the current code, with a unique version number.

See: projectsVersionsCreate smart constructor.

Instances
Eq ProjectsVersionsCreate Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.Versions.Create

Data ProjectsVersionsCreate Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.Versions.Create

Methods

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

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

toConstr :: ProjectsVersionsCreate -> Constr #

dataTypeOf :: ProjectsVersionsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsVersionsCreate Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.Versions.Create

Generic ProjectsVersionsCreate Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.Versions.Create

Associated Types

type Rep ProjectsVersionsCreate :: Type -> Type #

GoogleRequest ProjectsVersionsCreate Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.Versions.Create

type Rep ProjectsVersionsCreate Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.Versions.Create

type Rep ProjectsVersionsCreate = D1 (MetaData "ProjectsVersionsCreate" "Network.Google.Resource.Script.Projects.Versions.Create" "gogol-script-0.4.0-FTMJIbj3qQWJYzgfzFUSMi" False) (C1 (MetaCons "ProjectsVersionsCreate'" PrefixI True) ((S1 (MetaSel (Just "_pvcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pvcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pvcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pvcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pvcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Version)) :*: (S1 (MetaSel (Just "_pvcScriptId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pvcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsVersionsCreate Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.Versions.Create

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

Defined in Network.Google.Resource.Script.Projects.Versions.Create

Request Lenses

pvcUploadProtocol :: Lens' ProjectsVersionsCreate (Maybe Text) Source #

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

pvcUploadType :: Lens' ProjectsVersionsCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

pvcPayload :: Lens' ProjectsVersionsCreate Version Source #

Multipart request metadata.

pvcScriptId :: Lens' ProjectsVersionsCreate Text Source #

The script project's Drive ID.