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 |
Runs a `BuildTrigger` at a particular source revision.
See: Cloud Build API Reference for cloudbuild.projects.triggers.run
.
Synopsis
- type ProjectsTriggersRunResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("triggers" :> (CaptureMode "triggerId" "run" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RepoSource :> Post '[JSON] Operation)))))))))))
- projectsTriggersRun :: Text -> RepoSource -> Text -> ProjectsTriggersRun
- data ProjectsTriggersRun
- ptrXgafv :: Lens' ProjectsTriggersRun (Maybe Xgafv)
- ptrUploadProtocol :: Lens' ProjectsTriggersRun (Maybe Text)
- ptrTriggerId :: Lens' ProjectsTriggersRun Text
- ptrAccessToken :: Lens' ProjectsTriggersRun (Maybe Text)
- ptrUploadType :: Lens' ProjectsTriggersRun (Maybe Text)
- ptrPayload :: Lens' ProjectsTriggersRun RepoSource
- ptrProjectId :: Lens' ProjectsTriggersRun Text
- ptrCallback :: Lens' ProjectsTriggersRun (Maybe Text)
REST Resource
type ProjectsTriggersRunResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("triggers" :> (CaptureMode "triggerId" "run" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RepoSource :> Post '[JSON] Operation))))))))))) Source #
A resource alias for cloudbuild.projects.triggers.run
method which the
ProjectsTriggersRun
request conforms to.
Creating a Request
Creates a value of ProjectsTriggersRun
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsTriggersRun Source #
Runs a `BuildTrigger` at a particular source revision.
See: projectsTriggersRun
smart constructor.
Instances
Request Lenses
ptrUploadProtocol :: Lens' ProjectsTriggersRun (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ptrTriggerId :: Lens' ProjectsTriggersRun Text Source #
ID of the trigger.
ptrAccessToken :: Lens' ProjectsTriggersRun (Maybe Text) Source #
OAuth access token.
ptrUploadType :: Lens' ProjectsTriggersRun (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ptrPayload :: Lens' ProjectsTriggersRun RepoSource Source #
Multipart request metadata.
ptrProjectId :: Lens' ProjectsTriggersRun Text Source #
ID of the project.
ptrCallback :: Lens' ProjectsTriggersRun (Maybe Text) Source #
JSONP