ProjectsOccurrences
class ProjectsOccurrences extends Resource (View source)
The "occurrences" collection of methods.
Typical usage is:
$containeranalysisService = new Google\Service\ContainerAnalysis(...);
$occurrences = $containeranalysisService->projects_occurrences;
Methods
Creates new occurrences in batch. (occurrences.batchCreate)
Creates a new occurrence. (occurrences.create)
Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. (occurrences.delete)
Gets the specified occurrence. (occurrences.get)
Gets the access control policy for a note or an occurrence resource. Requires
containeranalysis.notes.setIamPolicy
or
containeranalysis.occurrences.setIamPolicy
permission if the resource is a
note or occurrence, respectively. The resource takes the format
projects/[PROJECT_ID]/notes/[NOTE_ID]
for notes and
projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
for occurrences.
Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.
Gets a summary of the number and severity of occurrences.
Lists occurrences for the specified project.
Updates the specified occurrence. (occurrences.patch)
Sets the access control policy on the specified note or occurrence. Requires
containeranalysis.notes.setIamPolicy
or
containeranalysis.occurrences.setIamPolicy
permission if the resource is a
note or an occurrence, respectively. The resource takes the format
projects/[PROJECT_ID]/notes/[NOTE_ID]
for notes and
projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
for occurrences.
Returns the permissions that a caller has on the specified note or
occurrence. Requires list permission on the project (for example,
containeranalysis.notes.list
). The resource takes the format
projects/[PROJECT_ID]/notes/[NOTE_ID]
for notes and
projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
for occurrences.
Details
BatchCreateOccurrencesResponse
batchCreate(string $parent, BatchCreateOccurrencesRequest $postBody, array $optParams = [])
Creates new occurrences in batch. (occurrences.batchCreate)
Occurrence
create(string $parent, Occurrence $postBody, array $optParams = [])
Creates a new occurrence. (occurrences.create)
ContaineranalysisEmpty
delete(string $name, array $optParams = [])
Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. (occurrences.delete)
Occurrence
get(string $name, array $optParams = [])
Gets the specified occurrence. (occurrences.get)
Policy
getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])
Gets the access control policy for a note or an occurrence resource. Requires
containeranalysis.notes.setIamPolicy
or
containeranalysis.occurrences.setIamPolicy
permission if the resource is a
note or occurrence, respectively. The resource takes the format
projects/[PROJECT_ID]/notes/[NOTE_ID]
for notes and
projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
for occurrences.
(occurrences.getIamPolicy)
Note
getNotes(string $name, array $optParams = [])
Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.
(occurrences.getNotes)
VulnerabilityOccurrencesSummary
getVulnerabilitySummary(string $parent, array $optParams = [])
Gets a summary of the number and severity of occurrences.
(occurrences.getVulnerabilitySummary)
ListOccurrencesResponse
listProjectsOccurrences(string $parent, array $optParams = [])
Lists occurrences for the specified project.
(occurrences.listProjectsOccurrences)
Occurrence
patch(string $name, Occurrence $postBody, array $optParams = [])
Updates the specified occurrence. (occurrences.patch)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified note or occurrence. Requires
containeranalysis.notes.setIamPolicy
or
containeranalysis.occurrences.setIamPolicy
permission if the resource is a
note or an occurrence, respectively. The resource takes the format
projects/[PROJECT_ID]/notes/[NOTE_ID]
for notes and
projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
for occurrences.
(occurrences.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
Returns the permissions that a caller has on the specified note or
occurrence. Requires list permission on the project (for example,
containeranalysis.notes.list
). The resource takes the format
projects/[PROJECT_ID]/notes/[NOTE_ID]
for notes and
projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
for occurrences.
(occurrences.testIamPermissions)