ProjectsLocationsTriggers
class ProjectsLocationsTriggers extends Resource (View source)
The "triggers" collection of methods.
Typical usage is:
$eventarcService = new Google\Service\Eventarc(...);
$triggers = $eventarcService->projects_locations_triggers;
Methods
Delete a single trigger. (triggers.delete)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (triggers.getIamPolicy)
List triggers. (triggers.listProjectsLocationsTriggers)
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (triggers.setIamPolicy)
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
Details
GoogleLongrunningOperation
create(string $parent, Trigger $postBody, array $optParams = [])
Create a new trigger in a particular project and location. (triggers.create)
GoogleLongrunningOperation
delete(string $name, array $optParams = [])
Delete a single trigger. (triggers.delete)
Trigger
get(string $name, array $optParams = [])
Get a single trigger. (triggers.get)
Policy
getIamPolicy(string $resource, array $optParams = [])
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (triggers.getIamPolicy)
ListTriggersResponse
listProjectsLocationsTriggers(string $parent, array $optParams = [])
List triggers. (triggers.listProjectsLocationsTriggers)
GoogleLongrunningOperation
patch(string $name, Trigger $postBody, array $optParams = [])
Update a single trigger. (triggers.patch)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (triggers.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning. (triggers.testIamPermissions)