ProjectsTriggers
class ProjectsTriggers extends Resource (View source)
The "triggers" collection of methods.
Typical usage is:
$cloudbuildService = new Google\Service\CloudBuild(...);
$triggers = $cloudbuildService->projects_triggers;
Methods
Creates a new BuildTrigger
. This API is experimental. (triggers.create)
Deletes a BuildTrigger
by its project ID and trigger ID. This API is
experimental. (triggers.delete)
Returns information about a BuildTrigger
. This API is experimental.
Lists existing BuildTrigger
s. This API is experimental.
Updates a BuildTrigger
by its project ID and trigger ID. This API is
experimental. (triggers.patch)
Runs a BuildTrigger
at a particular source revision. To run a regional or
global trigger, use the POST request that includes the location endpoint in
the path (ex.
Details
BuildTrigger
create(string $projectId, BuildTrigger $postBody, array $optParams = [])
Creates a new BuildTrigger
. This API is experimental. (triggers.create)
CloudbuildEmpty
delete(string $projectId, string $triggerId, array $optParams = [])
Deletes a BuildTrigger
by its project ID and trigger ID. This API is
experimental. (triggers.delete)
BuildTrigger
get(string $projectId, string $triggerId, array $optParams = [])
Returns information about a BuildTrigger
. This API is experimental.
(triggers.get)
ListBuildTriggersResponse
listProjectsTriggers(string $projectId, array $optParams = [])
Lists existing BuildTrigger
s. This API is experimental.
(triggers.listProjectsTriggers)
BuildTrigger
patch(string $projectId, string $triggerId, BuildTrigger $postBody, array $optParams = [])
Updates a BuildTrigger
by its project ID and trigger ID. This API is
experimental. (triggers.patch)
Operation
run(string $projectId, string $triggerId, RepoSource $postBody, array $optParams = [])
Runs a BuildTrigger
at a particular source revision. To run a regional or
global trigger, use the POST request that includes the location endpoint in
the path (ex.
v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The POST request that does not include the location endpoint in the path can only be used when running global triggers. (triggers.run)
ReceiveTriggerWebhookResponse
webhook(string $projectId, string $trigger, HttpBody $postBody, array $optParams = [])
ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger. (triggers.webhook)