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 |
Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental.
See: Cloud Build API Reference for cloudbuild.projects.triggers.patch
.
Synopsis
- type ProjectsTriggersPatchResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("triggers" :> (Capture "triggerId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BuildTrigger :> Patch '[JSON] BuildTrigger)))))))))))
- projectsTriggersPatch :: Text -> BuildTrigger -> Text -> ProjectsTriggersPatch
- data ProjectsTriggersPatch
- ptpXgafv :: Lens' ProjectsTriggersPatch (Maybe Xgafv)
- ptpUploadProtocol :: Lens' ProjectsTriggersPatch (Maybe Text)
- ptpTriggerId :: Lens' ProjectsTriggersPatch Text
- ptpAccessToken :: Lens' ProjectsTriggersPatch (Maybe Text)
- ptpUploadType :: Lens' ProjectsTriggersPatch (Maybe Text)
- ptpPayload :: Lens' ProjectsTriggersPatch BuildTrigger
- ptpProjectId :: Lens' ProjectsTriggersPatch Text
- ptpCallback :: Lens' ProjectsTriggersPatch (Maybe Text)
REST Resource
type ProjectsTriggersPatchResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("triggers" :> (Capture "triggerId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BuildTrigger :> Patch '[JSON] BuildTrigger))))))))))) Source #
A resource alias for cloudbuild.projects.triggers.patch
method which the
ProjectsTriggersPatch
request conforms to.
Creating a Request
projectsTriggersPatch Source #
Creates a value of ProjectsTriggersPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsTriggersPatch Source #
Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental.
See: projectsTriggersPatch
smart constructor.
Instances
Request Lenses
ptpUploadProtocol :: Lens' ProjectsTriggersPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ptpTriggerId :: Lens' ProjectsTriggersPatch Text Source #
ID of the `BuildTrigger` to update.
ptpAccessToken :: Lens' ProjectsTriggersPatch (Maybe Text) Source #
OAuth access token.
ptpUploadType :: Lens' ProjectsTriggersPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ptpPayload :: Lens' ProjectsTriggersPatch BuildTrigger Source #
Multipart request metadata.
ptpProjectId :: Lens' ProjectsTriggersPatch Text Source #
ID of the project that owns the trigger.
ptpCallback :: Lens' ProjectsTriggersPatch (Maybe Text) Source #
JSONP