public class CloudBuild.Projects.Triggers
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
CloudBuild.Projects.Triggers.Create |
class |
CloudBuild.Projects.Triggers.Delete |
class |
CloudBuild.Projects.Triggers.Get |
class |
CloudBuild.Projects.Triggers.List |
class |
CloudBuild.Projects.Triggers.Patch |
class |
CloudBuild.Projects.Triggers.Run |
Constructor and Description |
---|
Triggers() |
Modifier and Type | Method and Description |
---|---|
CloudBuild.Projects.Triggers.Create |
create(java.lang.String projectId,
BuildTrigger content)
Creates a new `BuildTrigger`.
|
CloudBuild.Projects.Triggers.Delete |
delete(java.lang.String projectId,
java.lang.String triggerId)
Deletes a `BuildTrigger` by its project ID and trigger ID.
|
CloudBuild.Projects.Triggers.Get |
get(java.lang.String projectId,
java.lang.String triggerId)
Returns information about a `BuildTrigger`.
|
CloudBuild.Projects.Triggers.List |
list(java.lang.String projectId)
Lists existing `BuildTrigger`s.
|
CloudBuild.Projects.Triggers.Patch |
patch(java.lang.String projectId,
java.lang.String triggerId,
BuildTrigger content)
Updates a `BuildTrigger` by its project ID and trigger ID.
|
CloudBuild.Projects.Triggers.Run |
run(java.lang.String projectId,
java.lang.String triggerId,
RepoSource content)
Runs a `BuildTrigger` at a particular source revision.
|
public CloudBuild.Projects.Triggers.Create create(java.lang.String projectId, BuildTrigger content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.projectId
- Required. ID of the project for which to configure automatic builds.content
- the BuildTrigger
java.io.IOException
public CloudBuild.Projects.Triggers.Delete delete(java.lang.String projectId, java.lang.String triggerId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.projectId
- Required. ID of the project that owns the trigger.triggerId
- Required. ID of the `BuildTrigger` to delete.java.io.IOException
public CloudBuild.Projects.Triggers.Get get(java.lang.String projectId, java.lang.String triggerId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.projectId
- Required. ID of the project that owns the trigger.triggerId
- Required. Identifier (`id` or `name`) of the `BuildTrigger` to get.java.io.IOException
public CloudBuild.Projects.Triggers.List list(java.lang.String projectId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.projectId
- Required. ID of the project for which to list BuildTriggers.java.io.IOException
public CloudBuild.Projects.Triggers.Patch patch(java.lang.String projectId, java.lang.String triggerId, BuildTrigger content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.projectId
- Required. ID of the project that owns the trigger.triggerId
- Required. ID of the `BuildTrigger` to update.content
- the BuildTrigger
java.io.IOException
public CloudBuild.Projects.Triggers.Run run(java.lang.String projectId, java.lang.String triggerId, RepoSource content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.projectId
- Required. ID of the project.triggerId
- Required. ID of the trigger.content
- the RepoSource
java.io.IOException