ProjectsApprovalRequests
class ProjectsApprovalRequests extends Resource (View source)
The "approvalRequests" collection of methods.
Typical usage is:
$accessapprovalService = new Google\Service\AccessApproval(...);
$approvalRequests = $accessapprovalService->projects_approvalRequests;
Methods
Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state. (approvalRequests.approve)
Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state. (approvalRequests.dismiss)
Gets an approval request. Returns NOT_FOUND if the request does not exist.
Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.
Lists approval requests associated with a project, folder, or organization.
Details
ApprovalRequest
approve(string $name, ApproveApprovalRequestMessage $postBody, array $optParams = [])
Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state. (approvalRequests.approve)
ApprovalRequest
dismiss(string $name, DismissApprovalRequestMessage $postBody, array $optParams = [])
Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state. (approvalRequests.dismiss)
ApprovalRequest
get(string $name, array $optParams = [])
Gets an approval request. Returns NOT_FOUND if the request does not exist.
(approvalRequests.get)
ApprovalRequest
invalidate(string $name, InvalidateApprovalRequestMessage $postBody, array $optParams = [])
Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.
NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval. Returns FAILED_PRECONDITION if the request exists but is not in an approved state. (approvalRequests.invalidate)
ListApprovalRequestsResponse
listProjectsApprovalRequests(string $parent, array $optParams = [])
Lists approval requests associated with a project, folder, or organization.
Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological. (approvalRequests.listProjectsApprovalRequests)