public class CloudBuild.Projects.Locations.Triggers extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
CloudBuild.Projects.Locations.Triggers.Create |
class |
CloudBuild.Projects.Locations.Triggers.Delete |
class |
CloudBuild.Projects.Locations.Triggers.Get |
class |
CloudBuild.Projects.Locations.Triggers.List |
class |
CloudBuild.Projects.Locations.Triggers.Patch |
class |
CloudBuild.Projects.Locations.Triggers.Run |
class |
CloudBuild.Projects.Locations.Triggers.Webhook |
| Constructor and Description |
|---|
Triggers() |
| Modifier and Type | Method and Description |
|---|---|
CloudBuild.Projects.Locations.Triggers.Create |
create(String parent,
BuildTrigger content)
Creates a new `BuildTrigger`.
|
CloudBuild.Projects.Locations.Triggers.Delete |
delete(String name)
Deletes a `BuildTrigger` by its project ID and trigger ID.
|
CloudBuild.Projects.Locations.Triggers.Get |
get(String name)
Returns information about a `BuildTrigger`.
|
CloudBuild.Projects.Locations.Triggers.List |
list(String parent)
Lists existing `BuildTrigger`s.
|
CloudBuild.Projects.Locations.Triggers.Patch |
patch(String resourceName,
BuildTrigger content)
Updates a `BuildTrigger` by its project ID and trigger ID.
|
CloudBuild.Projects.Locations.Triggers.Run |
run(String name,
RunBuildTriggerRequest content)
Runs a `BuildTrigger` at a particular source revision.
|
CloudBuild.Projects.Locations.Triggers.Webhook |
webhook(String name,
HttpBody content)
ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted
at a specific trigger.
|
public CloudBuild.Projects.Locations.Triggers.Create create(String parent, BuildTrigger content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - The parent resource where this trigger will be created. Format:
`projects/{project}/locations/{location}`content - the BuildTriggerIOExceptionpublic CloudBuild.Projects.Locations.Triggers.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The name of the `Trigger` to delete. Format:
`projects/{project}/locations/{location}/triggers/{trigger}`IOExceptionpublic CloudBuild.Projects.Locations.Triggers.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The name of the `Trigger` to retrieve. Format:
`projects/{project}/locations/{location}/triggers/{trigger}`IOExceptionpublic CloudBuild.Projects.Locations.Triggers.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - The parent of the collection of `Triggers`. Format: `projects/{project}/locations/{location}`IOExceptionpublic CloudBuild.Projects.Locations.Triggers.Patch patch(String resourceName, BuildTrigger content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where
{trigger} is a unique identifier generated by the service.content - the BuildTriggerIOExceptionpublic CloudBuild.Projects.Locations.Triggers.Run run(String name, RunBuildTriggerRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The name of the `Trigger` to run. Format:
`projects/{project}/locations/{location}/triggers/{trigger}`content - the RunBuildTriggerRequestIOExceptionpublic CloudBuild.Projects.Locations.Triggers.Webhook webhook(String name, HttpBody content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The name of the `ReceiveTriggerWebhook` to retrieve. Format:
`projects/{project}/locations/{location}/triggers/{trigger}`content - the HttpBodyIOExceptionCopyright © 2011–2024 Google. All rights reserved.