class ProjectsLocationsNotes extends Resource (View source)

The "notes" collection of methods.

Typical usage is:

 $containeranalysisService = new Google\Service\ContainerAnalysis(...);
 $notes = $containeranalysisService->projects_locations_notes;

Methods

batchCreate(string $parent, BatchCreateNotesRequest $postBody, array $optParams = [])

Creates new notes in batch. (notes.batchCreate)

create(string $parent, Note $postBody, array $optParams = [])

Creates a new note. (notes.create)

delete(string $name, array $optParams = [])

Deletes the specified note. (notes.delete)

get(string $name, array $optParams = [])

Gets the specified note. (notes.get)

listProjectsLocationsNotes(string $parent, array $optParams = [])

Lists notes for the specified project. (notes.listProjectsLocationsNotes)

patch(string $name, Note $postBody, array $optParams = [])

Updates the specified note. (notes.patch)

Details

BatchCreateNotesResponse batchCreate(string $parent, BatchCreateNotesRequest $postBody, array $optParams = [])

Creates new notes in batch. (notes.batchCreate)

Parameters

string $parent

Required. The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

BatchCreateNotesRequest $postBody
array $optParams

Optional parameters.

Return Value

BatchCreateNotesResponse

Exceptions

Exception

Note create(string $parent, Note $postBody, array $optParams = [])

Creates a new note. (notes.create)

Parameters

string $parent

Required. The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

Note $postBody
array $optParams

Optional parameters.

Return Value

Note

Exceptions

Exception

ContaineranalysisEmpty delete(string $name, array $optParams = [])

Deletes the specified note. (notes.delete)

Parameters

string $name

Required. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

array $optParams

Optional parameters.

Return Value

ContaineranalysisEmpty

Exceptions

Exception

Note get(string $name, array $optParams = [])

Gets the specified note. (notes.get)

Parameters

string $name

Required. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

array $optParams

Optional parameters.

Return Value

Note

Exceptions

Exception

ListNotesResponse listProjectsLocationsNotes(string $parent, array $optParams = [])

Lists notes for the specified project. (notes.listProjectsLocationsNotes)

Parameters

string $parent

Required. The name of the project to list notes for in the form of projects/[PROJECT_ID].

array $optParams

Optional parameters.

Return Value

ListNotesResponse

Exceptions

Exception

Note patch(string $name, Note $postBody, array $optParams = [])

Updates the specified note. (notes.patch)

Parameters

string $name

Required. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

Note $postBody
array $optParams

Optional parameters.

Return Value

Note

Exceptions

Exception