public abstract static class GrafeasGrpc.GrafeasImplBase extends Object implements BindableService
[Grafeas](https://grafeas.io) 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.
Constructor and Description |
---|
GrafeasImplBase() |
Modifier and Type | Method and Description |
---|---|
void |
batchCreateNotes(BatchCreateNotesRequest request,
StreamObserver<BatchCreateNotesResponse> responseObserver)
Creates new notes in batch.
|
void |
batchCreateOccurrences(BatchCreateOccurrencesRequest request,
StreamObserver<BatchCreateOccurrencesResponse> responseObserver)
Creates new occurrences in batch.
|
ServerServiceDefinition |
bindService() |
void |
createNote(CreateNoteRequest request,
StreamObserver<Note> responseObserver)
Creates a new note.
|
void |
createOccurrence(CreateOccurrenceRequest request,
StreamObserver<Occurrence> responseObserver)
Creates a new occurrence.
|
void |
deleteNote(DeleteNoteRequest request,
StreamObserver<Empty> responseObserver)
Deletes the specified note.
|
void |
deleteOccurrence(DeleteOccurrenceRequest request,
StreamObserver<Empty> responseObserver)
Deletes the specified occurrence.
|
void |
getNote(GetNoteRequest request,
StreamObserver<Note> responseObserver)
Gets the specified note.
|
void |
getOccurrence(GetOccurrenceRequest request,
StreamObserver<Occurrence> responseObserver)
Gets the specified occurrence.
|
void |
getOccurrenceNote(GetOccurrenceNoteRequest request,
StreamObserver<Note> responseObserver)
Gets the note attached to the specified occurrence.
|
void |
listNoteOccurrences(ListNoteOccurrencesRequest request,
StreamObserver<ListNoteOccurrencesResponse> responseObserver)
Lists occurrences referencing the specified note.
|
void |
listNotes(ListNotesRequest request,
StreamObserver<ListNotesResponse> responseObserver)
Lists notes for the specified project.
|
void |
listOccurrences(ListOccurrencesRequest request,
StreamObserver<ListOccurrencesResponse> responseObserver)
Lists occurrences for the specified project.
|
void |
updateNote(UpdateNoteRequest request,
StreamObserver<Note> responseObserver)
Updates the specified note.
|
void |
updateOccurrence(UpdateOccurrenceRequest request,
StreamObserver<Occurrence> responseObserver)
Updates the specified occurrence.
|
public void getOccurrence(GetOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)
Gets the specified occurrence.
public void listOccurrences(ListOccurrencesRequest request, StreamObserver<ListOccurrencesResponse> responseObserver)
Lists occurrences for the specified project.
public 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.
public void createOccurrence(CreateOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)
Creates a new occurrence.
public void batchCreateOccurrences(BatchCreateOccurrencesRequest request, StreamObserver<BatchCreateOccurrencesResponse> responseObserver)
Creates new occurrences in batch.
public void updateOccurrence(UpdateOccurrenceRequest request, StreamObserver<Occurrence> responseObserver)
Updates the specified occurrence.
public 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.
public void getNote(GetNoteRequest request, StreamObserver<Note> responseObserver)
Gets the specified note.
public void listNotes(ListNotesRequest request, StreamObserver<ListNotesResponse> responseObserver)
Lists notes for the specified project.
public void deleteNote(DeleteNoteRequest request, StreamObserver<Empty> responseObserver)
Deletes the specified note.
public void createNote(CreateNoteRequest request, StreamObserver<Note> responseObserver)
Creates a new note.
public void batchCreateNotes(BatchCreateNotesRequest request, StreamObserver<BatchCreateNotesResponse> responseObserver)
Creates new notes in batch.
public void updateNote(UpdateNoteRequest request, StreamObserver<Note> responseObserver)
Updates the specified note.
public 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.
public final ServerServiceDefinition bindService()
bindService
in interface BindableService
Copyright © 2019 Google LLC. All rights reserved.