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.Create

Contents

Description

Creates a new, empty script project with no script files and a base manifest file.

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

Synopsis

REST Resource

type ProjectsCreateResource = "v1" :> ("projects" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateProjectRequest :> Post '[JSON] Project)))))))) Source #

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

Creating a Request

projectsCreate Source #

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

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

data ProjectsCreate Source #

Creates a new, empty script project with no script files and a base manifest file.

See: projectsCreate smart constructor.

Instances
Eq ProjectsCreate Source # 
Instance details

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

Data ProjectsCreate Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsCreate -> Constr #

dataTypeOf :: ProjectsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsCreate Source # 
Instance details

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

Generic ProjectsCreate Source # 
Instance details

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

Associated Types

type Rep ProjectsCreate :: Type -> Type #

GoogleRequest ProjectsCreate Source # 
Instance details

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

Associated Types

type Rs ProjectsCreate :: Type #

type Scopes ProjectsCreate :: [Symbol] #

type Rep ProjectsCreate Source # 
Instance details

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

type Rep ProjectsCreate = D1 (MetaData "ProjectsCreate" "Network.Google.Resource.Script.Projects.Create" "gogol-script-0.4.0-FTMJIbj3qQWJYzgfzFUSMi" False) (C1 (MetaCons "ProjectsCreate'" PrefixI True) ((S1 (MetaSel (Just "_pcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_pcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_pcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CreateProjectRequest) :*: S1 (MetaSel (Just "_pcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsCreate Source # 
Instance details

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

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

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

Request Lenses

pcUploadProtocol :: Lens' ProjectsCreate (Maybe Text) Source #

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

pcUploadType :: Lens' ProjectsCreate (Maybe Text) Source #

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