public class CloudBuild.Projects.Triggers extends 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 |
class |
CloudBuild.Projects.Triggers.Webhook |
| Constructor and Description |
|---|
Triggers() |
| Modifier and Type | Method and Description |
|---|---|
CloudBuild.Projects.Triggers.Create |
create(String projectId,
BuildTrigger content)
Creates a new `BuildTrigger`.
|
CloudBuild.Projects.Triggers.Delete |
delete(String projectId,
String triggerId)
Deletes a `BuildTrigger` by its project ID and trigger ID.
|
CloudBuild.Projects.Triggers.Get |
get(String projectId,
String triggerId)
Returns information about a `BuildTrigger`.
|
CloudBuild.Projects.Triggers.List |
list(String projectId)
Lists existing `BuildTrigger`s.
|
CloudBuild.Projects.Triggers.Patch |
patch(String projectId,
String triggerId,
BuildTrigger content)
Updates a `BuildTrigger` by its project ID and trigger ID.
|
CloudBuild.Projects.Triggers.Run |
run(String projectId,
String triggerId,
RepoSource content)
Runs a `BuildTrigger` at a particular source revision.
|
CloudBuild.Projects.Triggers.Webhook |
webhook(String projectId,
String trigger,
HttpBody content)
ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted
at a specific trigger.
|
public CloudBuild.Projects.Triggers.Create create(String projectId, BuildTrigger content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.projectId - Required. ID of the project for which to configure automatic builds.content - the BuildTriggerIOExceptionpublic CloudBuild.Projects.Triggers.Delete delete(String projectId, String triggerId) throws 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.IOExceptionpublic CloudBuild.Projects.Triggers.Get get(String projectId, String triggerId) throws 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.IOExceptionpublic CloudBuild.Projects.Triggers.List list(String projectId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.projectId - Required. ID of the project for which to list BuildTriggers.IOExceptionpublic CloudBuild.Projects.Triggers.Patch patch(String projectId, String triggerId, BuildTrigger content) throws 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 BuildTriggerIOExceptionpublic CloudBuild.Projects.Triggers.Run run(String projectId, String triggerId, RepoSource content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.projectId - Required. ID of the project.triggerId - Required. ID of the trigger.content - the RepoSourceIOExceptionpublic CloudBuild.Projects.Triggers.Webhook webhook(String projectId, String trigger, HttpBody content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.projectId - Project in which the specified trigger livestrigger - Name of the trigger to run the payload againstcontent - the HttpBodyIOExceptionCopyright © 2011–2024 Google. All rights reserved.