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 `BuildTrigger`. This API is experimental.
See: Cloud Build API Reference for cloudbuild.projects.triggers.create
.
Synopsis
- type ProjectsTriggersCreateResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("triggers" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BuildTrigger :> Post '[JSON] BuildTrigger))))))))))
- projectsTriggersCreate :: BuildTrigger -> Text -> ProjectsTriggersCreate
- data ProjectsTriggersCreate
- ptcXgafv :: Lens' ProjectsTriggersCreate (Maybe Xgafv)
- ptcUploadProtocol :: Lens' ProjectsTriggersCreate (Maybe Text)
- ptcAccessToken :: Lens' ProjectsTriggersCreate (Maybe Text)
- ptcUploadType :: Lens' ProjectsTriggersCreate (Maybe Text)
- ptcPayload :: Lens' ProjectsTriggersCreate BuildTrigger
- ptcProjectId :: Lens' ProjectsTriggersCreate Text
- ptcCallback :: Lens' ProjectsTriggersCreate (Maybe Text)
REST Resource
type ProjectsTriggersCreateResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("triggers" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BuildTrigger :> Post '[JSON] BuildTrigger)))))))))) Source #
A resource alias for cloudbuild.projects.triggers.create
method which the
ProjectsTriggersCreate
request conforms to.
Creating a Request
projectsTriggersCreate Source #
Creates a value of ProjectsTriggersCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsTriggersCreate Source #
Creates a new `BuildTrigger`. This API is experimental.
See: projectsTriggersCreate
smart constructor.
Instances
Request Lenses
ptcUploadProtocol :: Lens' ProjectsTriggersCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ptcAccessToken :: Lens' ProjectsTriggersCreate (Maybe Text) Source #
OAuth access token.
ptcUploadType :: Lens' ProjectsTriggersCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ptcPayload :: Lens' ProjectsTriggersCreate BuildTrigger Source #
Multipart request metadata.
ptcProjectId :: Lens' ProjectsTriggersCreate Text Source #
ID of the project for which to configure automatic builds.
ptcCallback :: Lens' ProjectsTriggersCreate (Maybe Text) Source #
JSONP