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 |
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
- 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)))))))))
- projectsLocationsFunctionsCreate :: Text -> CloudFunction -> ProjectsLocationsFunctionsCreate
- data ProjectsLocationsFunctionsCreate
- plfcXgafv :: Lens' ProjectsLocationsFunctionsCreate (Maybe Xgafv)
- plfcUploadProtocol :: Lens' ProjectsLocationsFunctionsCreate (Maybe Text)
- plfcLocation :: Lens' ProjectsLocationsFunctionsCreate Text
- plfcAccessToken :: Lens' ProjectsLocationsFunctionsCreate (Maybe Text)
- plfcUploadType :: Lens' ProjectsLocationsFunctionsCreate (Maybe Text)
- plfcPayload :: Lens' ProjectsLocationsFunctionsCreate CloudFunction
- plfcCallback :: Lens' ProjectsLocationsFunctionsCreate (Maybe Text)
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
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/*`
plfcAccessToken :: Lens' ProjectsLocationsFunctionsCreate (Maybe Text) Source #
OAuth access token.
plfcUploadType :: Lens' ProjectsLocationsFunctionsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plfcPayload :: Lens' ProjectsLocationsFunctionsCreate CloudFunction Source #
Multipart request metadata.