ProjectsLocationsTriggers
class ProjectsLocationsTriggers extends Resource (View source)
The "triggers" collection of methods.
Typical usage is:
$cloudbuildService = new Google\Service\CloudBuild(...);
$triggers = $cloudbuildService->projects_locations_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 $parent, BuildTrigger $postBody, array $optParams = [])
Creates a new BuildTrigger
. This API is experimental. (triggers.create)
CloudbuildEmpty
delete(string $name, array $optParams = [])
Deletes a BuildTrigger
by its project ID and trigger ID. This API is
experimental. (triggers.delete)
BuildTrigger
get(string $name, array $optParams = [])
Returns information about a BuildTrigger
. This API is experimental.
(triggers.get)
ListBuildTriggersResponse
listProjectsLocationsTriggers(string $parent, array $optParams = [])
Lists existing BuildTrigger
s. This API is experimental.
(triggers.listProjectsLocationsTriggers)
BuildTrigger
patch(string $resourceName, BuildTrigger $postBody, array $optParams = [])
Updates a BuildTrigger
by its project ID and trigger ID. This API is
experimental. (triggers.patch)
Operation
run(string $name, RunBuildTriggerRequest $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 $name, HttpBody $postBody, array $optParams = [])
ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger. (triggers.webhook)