Interface GrafeasGrpc.AsyncService (2.18.0)

public static interface GrafeasGrpc.AsyncService

Grafeas API. Retrieves analysis results of Cloud components such as Docker container images. Analysis results are stored as a series of occurrences. An Occurrence contains information about a specific analysis instance on a resource. An occurrence refers to a Note. A note contains details describing the analysis and is generally stored in a separate project, called a Provider. Multiple occurrences can refer to the same note. For example, an SSL vulnerability could affect multiple images. In this case, there would be one note for the vulnerability and an occurrence for each image with the vulnerability referring to that note.

Methods

batchCreateNotes(BatchCreateNotesRequest request, StreamObserver<BatchCreateNotesResponse> responseObserver)

public default void batchCreateNotes(BatchCreateNotesRequest request, StreamObserver<BatchCreateNotesResponse> responseObserver)

Creates new notes in batch.

Parameters
NameDescription
requestBatchCreateNotesRequest
responseObserverio.grpc.stub.StreamObserver<BatchCreateNotesResponse>

batchCreateOccurrences(BatchCreateOccurrencesRequest request, StreamObserver<BatchCreateOccurrencesResponse> responseObserver)

public default void batchCreateOccurrences(BatchCreateOccurrencesRequest request, StreamObserver<BatchCreateOccurrencesResponse> responseObserver)

Creates new occurrences in batch.

Parameters
NameDescription
requestBatchCreateOccurrencesRequest
responseObserverio.grpc.stub.StreamObserver<BatchCreateOccurrencesResponse>

createNote(CreateNoteRequest request, StreamObserver<Note> responseObserver)

public default void createNote(CreateNoteRequest request, StreamObserver<Note> responseObserver)

Creates a new note.

Parameters
NameDescription
requestCreateNoteRequest
responseObserverio.grpc.stub.StreamObserver<Note>

createOccurrence(CreateOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)

public default void createOccurrence(CreateOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)

Creates a new occurrence.

Parameters
NameDescription
requestCreateOccurrenceRequest
responseObserverio.grpc.stub.StreamObserver<Occurrence>

deleteNote(DeleteNoteRequest request, StreamObserver<Empty> responseObserver)

public default void deleteNote(DeleteNoteRequest request, StreamObserver<Empty> responseObserver)

Deletes the specified note.

Parameters
NameDescription
requestDeleteNoteRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteOccurrence(DeleteOccurrenceRequest request, StreamObserver<Empty> responseObserver)

public default void deleteOccurrence(DeleteOccurrenceRequest request, StreamObserver<Empty> responseObserver)

Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.

Parameters
NameDescription
requestDeleteOccurrenceRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getNote(GetNoteRequest request, StreamObserver<Note> responseObserver)

public default void getNote(GetNoteRequest request, StreamObserver<Note> responseObserver)

Gets the specified note.

Parameters
NameDescription
requestGetNoteRequest
responseObserverio.grpc.stub.StreamObserver<Note>

getOccurrence(GetOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)

public default void getOccurrence(GetOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)

Gets the specified occurrence.

Parameters
NameDescription
requestGetOccurrenceRequest
responseObserverio.grpc.stub.StreamObserver<Occurrence>

getOccurrenceNote(GetOccurrenceNoteRequest request, StreamObserver<Note> responseObserver)

public default void getOccurrenceNote(GetOccurrenceNoteRequest request, StreamObserver<Note> responseObserver)

Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.

Parameters
NameDescription
requestGetOccurrenceNoteRequest
responseObserverio.grpc.stub.StreamObserver<Note>

listNoteOccurrences(ListNoteOccurrencesRequest request, StreamObserver<ListNoteOccurrencesResponse> responseObserver)

public default void listNoteOccurrences(ListNoteOccurrencesRequest request, StreamObserver<ListNoteOccurrencesResponse> responseObserver)

Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.

Parameters
NameDescription
requestListNoteOccurrencesRequest
responseObserverio.grpc.stub.StreamObserver<ListNoteOccurrencesResponse>

listNotes(ListNotesRequest request, StreamObserver<ListNotesResponse> responseObserver)

public default void listNotes(ListNotesRequest request, StreamObserver<ListNotesResponse> responseObserver)

Lists notes for the specified project.

Parameters
NameDescription
requestListNotesRequest
responseObserverio.grpc.stub.StreamObserver<ListNotesResponse>

listOccurrences(ListOccurrencesRequest request, StreamObserver<ListOccurrencesResponse> responseObserver)

public default void listOccurrences(ListOccurrencesRequest request, StreamObserver<ListOccurrencesResponse> responseObserver)

Lists occurrences for the specified project.

Parameters
NameDescription
requestListOccurrencesRequest
responseObserverio.grpc.stub.StreamObserver<ListOccurrencesResponse>

updateNote(UpdateNoteRequest request, StreamObserver<Note> responseObserver)

public default void updateNote(UpdateNoteRequest request, StreamObserver<Note> responseObserver)

Updates the specified note.

Parameters
NameDescription
requestUpdateNoteRequest
responseObserverio.grpc.stub.StreamObserver<Note>

updateOccurrence(UpdateOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)

public default void updateOccurrence(UpdateOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)

Updates the specified occurrence.

Parameters
NameDescription
requestUpdateOccurrenceRequest
responseObserverio.grpc.stub.StreamObserver<Occurrence>