public class CloudBuild.Projects.Builds extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
CloudBuild.Projects.Builds.Approve |
class |
CloudBuild.Projects.Builds.Cancel |
class |
CloudBuild.Projects.Builds.Create |
class |
CloudBuild.Projects.Builds.Get |
class |
CloudBuild.Projects.Builds.List |
class |
CloudBuild.Projects.Builds.Retry |
| Constructor and Description |
|---|
Builds() |
| Modifier and Type | Method and Description |
|---|---|
CloudBuild.Projects.Builds.Approve |
approve(String name,
ApproveBuildRequest content)
Approves or rejects a pending build.
|
CloudBuild.Projects.Builds.Cancel |
cancel(String projectId,
String id,
CancelBuildRequest content)
Cancels a build in progress.
|
CloudBuild.Projects.Builds.Create |
create(String projectId,
Build content)
Starts a build with the specified configuration.
|
CloudBuild.Projects.Builds.Get |
get(String projectId,
String id)
Returns information about a previously requested build.
|
CloudBuild.Projects.Builds.List |
list(String projectId)
Lists previously requested builds.
|
CloudBuild.Projects.Builds.Retry |
retry(String projectId,
String id,
RetryBuildRequest content)
Creates a new build based on the specified build.
|
public CloudBuild.Projects.Builds.Approve approve(String name, ApproveBuildRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}"content - the ApproveBuildRequestIOExceptionpublic CloudBuild.Projects.Builds.Cancel cancel(String projectId, String id, CancelBuildRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.projectId - Required. ID of the project.id - Required. ID of the build.content - the CancelBuildRequestIOExceptionpublic CloudBuild.Projects.Builds.Create create(String projectId, Build content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.projectId - Required. ID of the project.content - the BuildIOExceptionpublic CloudBuild.Projects.Builds.Get get(String projectId, String id) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.projectId - Required. ID of the project.id - Required. ID of the build.IOExceptionpublic CloudBuild.Projects.Builds.List list(String projectId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.projectId - Required. ID of the project.IOExceptionpublic CloudBuild.Projects.Builds.Retry retry(String projectId, String id, RetryBuildRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.projectId - Required. ID of the project.id - Required. Build ID of the original build.content - the RetryBuildRequestIOExceptionCopyright © 2011–2024 Google. All rights reserved.