| 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 |
Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Patch
Description
Updates existing function.
See: Cloud Functions API Reference for cloudfunctions.projects.locations.functions.patch.
Synopsis
- type ProjectsLocationsFunctionsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CloudFunction :> Patch '[JSON] Operation)))))))))
- projectsLocationsFunctionsPatch :: CloudFunction -> Text -> ProjectsLocationsFunctionsPatch
- data ProjectsLocationsFunctionsPatch
- plfpXgafv :: Lens' ProjectsLocationsFunctionsPatch (Maybe Xgafv)
- plfpUploadProtocol :: Lens' ProjectsLocationsFunctionsPatch (Maybe Text)
- plfpUpdateMask :: Lens' ProjectsLocationsFunctionsPatch (Maybe GFieldMask)
- plfpAccessToken :: Lens' ProjectsLocationsFunctionsPatch (Maybe Text)
- plfpUploadType :: Lens' ProjectsLocationsFunctionsPatch (Maybe Text)
- plfpPayload :: Lens' ProjectsLocationsFunctionsPatch CloudFunction
- plfpName :: Lens' ProjectsLocationsFunctionsPatch Text
- plfpCallback :: Lens' ProjectsLocationsFunctionsPatch (Maybe Text)
REST Resource
type ProjectsLocationsFunctionsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CloudFunction :> Patch '[JSON] Operation))))))))) Source #
A resource alias for cloudfunctions.projects.locations.functions.patch method which the
ProjectsLocationsFunctionsPatch request conforms to.
Creating a Request
projectsLocationsFunctionsPatch Source #
Arguments
| :: CloudFunction | |
| -> Text | |
| -> ProjectsLocationsFunctionsPatch |
Creates a value of ProjectsLocationsFunctionsPatch with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsFunctionsPatch Source #
Updates existing function.
See: projectsLocationsFunctionsPatch smart constructor.
Instances
Request Lenses
plfpUploadProtocol :: Lens' ProjectsLocationsFunctionsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plfpUpdateMask :: Lens' ProjectsLocationsFunctionsPatch (Maybe GFieldMask) Source #
Required list of fields to be updated in this request.
plfpAccessToken :: Lens' ProjectsLocationsFunctionsPatch (Maybe Text) Source #
OAuth access token.
plfpUploadType :: Lens' ProjectsLocationsFunctionsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plfpPayload :: Lens' ProjectsLocationsFunctionsPatch CloudFunction Source #
Multipart request metadata.
plfpName :: Lens' ProjectsLocationsFunctionsPatch Text Source #
A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
plfpCallback :: Lens' ProjectsLocationsFunctionsPatch (Maybe Text) Source #
JSONP