gogol-cloudfunctions-0.4.0: Google Cloud Functions 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.CloudFunctions.Projects.Locations.Functions.Create

Contents

Description

Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error.

See: Cloud Functions API Reference for cloudfunctions.projects.locations.functions.create.

Synopsis

REST Resource

type ProjectsLocationsFunctionsCreateResource = "v1" :> (Capture "location" Text :> ("functions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CloudFunction :> Post '[JSON] Operation))))))))) Source #

A resource alias for cloudfunctions.projects.locations.functions.create method which the ProjectsLocationsFunctionsCreate request conforms to.

Creating a Request

projectsLocationsFunctionsCreate Source #

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

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

data ProjectsLocationsFunctionsCreate Source #

Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error.

See: projectsLocationsFunctionsCreate smart constructor.

Instances
Eq ProjectsLocationsFunctionsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Create

Data ProjectsLocationsFunctionsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Create

Methods

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

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

toConstr :: ProjectsLocationsFunctionsCreate -> Constr #

dataTypeOf :: ProjectsLocationsFunctionsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsLocationsFunctionsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Create

Generic ProjectsLocationsFunctionsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Create

Associated Types

type Rep ProjectsLocationsFunctionsCreate :: Type -> Type #

GoogleRequest ProjectsLocationsFunctionsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Create

type Rep ProjectsLocationsFunctionsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Create

type Rep ProjectsLocationsFunctionsCreate = D1 (MetaData "ProjectsLocationsFunctionsCreate" "Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Create" "gogol-cloudfunctions-0.4.0-6sCZoOCvrpODwDOeEfObaJ" False) (C1 (MetaCons "ProjectsLocationsFunctionsCreate'" PrefixI True) ((S1 (MetaSel (Just "_plfcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_plfcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_plfcLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: ((S1 (MetaSel (Just "_plfcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_plfcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_plfcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CloudFunction) :*: S1 (MetaSel (Just "_plfcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsLocationsFunctionsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Create

type Scopes ProjectsLocationsFunctionsCreate = "https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol])
type Rs ProjectsLocationsFunctionsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Create

Request Lenses

plfcUploadProtocol :: Lens' ProjectsLocationsFunctionsCreate (Maybe Text) Source #

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

plfcLocation :: Lens' ProjectsLocationsFunctionsCreate Text Source #

The project and location in which the function should be created, specified in the format `projects/*/locations/*`

plfcUploadType :: Lens' ProjectsLocationsFunctionsCreate (Maybe Text) Source #

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