| 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.Cloudbuild.Projects.Builds.Create
Description
Starts a build with the specified configuration. The long-running Operation returned by this method will include the ID of the build, which can be passed to GetBuild to determine its status (e.g., success or failure).
See: Google Cloud Container Builder API Reference for cloudbuild.projects.builds.create.
- type ProjectsBuildsCreateResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("builds" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Build :> Post '[JSON] Operation))))))))))))
- projectsBuildsCreate :: Build -> Text -> ProjectsBuildsCreate
- data ProjectsBuildsCreate
- pXgafv :: Lens' ProjectsBuildsCreate (Maybe Xgafv)
- pUploadProtocol :: Lens' ProjectsBuildsCreate (Maybe Text)
- pPp :: Lens' ProjectsBuildsCreate Bool
- pAccessToken :: Lens' ProjectsBuildsCreate (Maybe Text)
- pUploadType :: Lens' ProjectsBuildsCreate (Maybe Text)
- pPayload :: Lens' ProjectsBuildsCreate Build
- pBearerToken :: Lens' ProjectsBuildsCreate (Maybe Text)
- pProjectId :: Lens' ProjectsBuildsCreate Text
- pCallback :: Lens' ProjectsBuildsCreate (Maybe Text)
REST Resource
type ProjectsBuildsCreateResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("builds" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Build :> Post '[JSON] Operation)))))))))))) Source #
A resource alias for cloudbuild.projects.builds.create method which the
ProjectsBuildsCreate request conforms to.
Creating a Request
Arguments
| :: Build | |
| -> Text | |
| -> ProjectsBuildsCreate |
Creates a value of ProjectsBuildsCreate with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsBuildsCreate Source #
Starts a build with the specified configuration. The long-running Operation returned by this method will include the ID of the build, which can be passed to GetBuild to determine its status (e.g., success or failure).
See: projectsBuildsCreate smart constructor.
Instances
Request Lenses
pUploadProtocol :: Lens' ProjectsBuildsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pAccessToken :: Lens' ProjectsBuildsCreate (Maybe Text) Source #
OAuth access token.
pUploadType :: Lens' ProjectsBuildsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pBearerToken :: Lens' ProjectsBuildsCreate (Maybe Text) Source #
OAuth bearer token.
pProjectId :: Lens' ProjectsBuildsCreate Text Source #
ID of the project.