ProjectsNotes
class ProjectsNotes extends Resource (View source)
The "notes" collection of methods.
Typical usage is:
$containeranalysisService = new Google\Service\ContainerAnalysis(...);
$notes = $containeranalysisService->projects_notes;
Methods
Creates new notes in batch. (notes.batchCreate)
Deletes the specified note. (notes.delete)
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.
Lists notes for the specified project. (notes.listProjectsNotes)
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
BatchCreateNotesResponse
batchCreate(string $parent, BatchCreateNotesRequest $postBody, array $optParams = [])
Creates new notes in batch. (notes.batchCreate)
Note
create(string $parent, Note $postBody, array $optParams = [])
Creates a new note. (notes.create)
ContaineranalysisEmpty
delete(string $name, array $optParams = [])
Deletes the specified note. (notes.delete)
Note
get(string $name, array $optParams = [])
Gets the specified note. (notes.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.
(notes.getIamPolicy)
ListNotesResponse
listProjectsNotes(string $parent, array $optParams = [])
Lists notes for the specified project. (notes.listProjectsNotes)
Note
patch(string $name, Note $postBody, array $optParams = [])
Updates the specified note. (notes.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.
(notes.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.
(notes.testIamPermissions)