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 |
Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very limited traffic is allowed. For more information on the actual limits refer to [API Calls]( https://cloud.google.com/functions/quotas#rate_limits).
See: Cloud Functions API Reference for cloudfunctions.projects.locations.functions.call
.
Synopsis
- type ProjectsLocationsFunctionsCallResource = "v1" :> (CaptureMode "name" "call" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CallFunctionRequest :> Post '[JSON] CallFunctionResponse))))))))
- projectsLocationsFunctionsCall :: CallFunctionRequest -> Text -> ProjectsLocationsFunctionsCall
- data ProjectsLocationsFunctionsCall
- pXgafv :: Lens' ProjectsLocationsFunctionsCall (Maybe Xgafv)
- pUploadProtocol :: Lens' ProjectsLocationsFunctionsCall (Maybe Text)
- pAccessToken :: Lens' ProjectsLocationsFunctionsCall (Maybe Text)
- pUploadType :: Lens' ProjectsLocationsFunctionsCall (Maybe Text)
- pPayload :: Lens' ProjectsLocationsFunctionsCall CallFunctionRequest
- pName :: Lens' ProjectsLocationsFunctionsCall Text
- pCallback :: Lens' ProjectsLocationsFunctionsCall (Maybe Text)
REST Resource
type ProjectsLocationsFunctionsCallResource = "v1" :> (CaptureMode "name" "call" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CallFunctionRequest :> Post '[JSON] CallFunctionResponse)))))))) Source #
A resource alias for cloudfunctions.projects.locations.functions.call
method which the
ProjectsLocationsFunctionsCall
request conforms to.
Creating a Request
projectsLocationsFunctionsCall Source #
Creates a value of ProjectsLocationsFunctionsCall
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsFunctionsCall Source #
Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very limited traffic is allowed. For more information on the actual limits refer to [API Calls]( https://cloud.google.com/functions/quotas#rate_limits).
See: projectsLocationsFunctionsCall
smart constructor.
Instances
Request Lenses
pUploadProtocol :: Lens' ProjectsLocationsFunctionsCall (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pAccessToken :: Lens' ProjectsLocationsFunctionsCall (Maybe Text) Source #
OAuth access token.
pUploadType :: Lens' ProjectsLocationsFunctionsCall (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pPayload :: Lens' ProjectsLocationsFunctionsCall CallFunctionRequest Source #
Multipart request metadata.