Package io.grafeas.v1beta1
Class GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub>
-
- io.grafeas.v1beta1.GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub
-
- Enclosing class:
- GrafeasV1Beta1Grpc
public static final class GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub extends io.grpc.stub.AbstractBlockingStub<GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub>
[Grafeas](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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchCreateNotesResponse
batchCreateNotes(BatchCreateNotesRequest request)
Creates new notes in batch.BatchCreateOccurrencesResponse
batchCreateOccurrences(BatchCreateOccurrencesRequest request)
Creates new occurrences in batch.protected GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
Note
createNote(CreateNoteRequest request)
Creates a new note.Occurrence
createOccurrence(CreateOccurrenceRequest request)
Creates a new occurrence.com.google.protobuf.Empty
deleteNote(DeleteNoteRequest request)
Deletes the specified note.com.google.protobuf.Empty
deleteOccurrence(DeleteOccurrenceRequest request)
Deletes the specified occurrence.Note
getNote(GetNoteRequest request)
Gets the specified note.Occurrence
getOccurrence(GetOccurrenceRequest request)
Gets the specified occurrence.Note
getOccurrenceNote(GetOccurrenceNoteRequest request)
Gets the note attached to the specified occurrence.VulnerabilityOccurrencesSummary
getVulnerabilityOccurrencesSummary(GetVulnerabilityOccurrencesSummaryRequest request)
Gets a summary of the number and severity of occurrences.ListNoteOccurrencesResponse
listNoteOccurrences(ListNoteOccurrencesRequest request)
Lists occurrences referencing the specified note.ListNotesResponse
listNotes(ListNotesRequest request)
Lists notes for the specified project.ListOccurrencesResponse
listOccurrences(ListOccurrencesRequest request)
Lists occurrences for the specified project.Note
updateNote(UpdateNoteRequest request)
Updates the specified note.Occurrence
updateOccurrence(UpdateOccurrenceRequest request)
Updates the specified occurrence.
-
-
-
Method Detail
-
build
protected GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub>
-
getOccurrence
public Occurrence getOccurrence(GetOccurrenceRequest request)
Gets the specified occurrence.
-
listOccurrences
public ListOccurrencesResponse listOccurrences(ListOccurrencesRequest request)
Lists occurrences for the specified project.
-
deleteOccurrence
public com.google.protobuf.Empty deleteOccurrence(DeleteOccurrenceRequest request)
Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.
-
createOccurrence
public Occurrence createOccurrence(CreateOccurrenceRequest request)
Creates a new occurrence.
-
batchCreateOccurrences
public BatchCreateOccurrencesResponse batchCreateOccurrences(BatchCreateOccurrencesRequest request)
Creates new occurrences in batch.
-
updateOccurrence
public Occurrence updateOccurrence(UpdateOccurrenceRequest request)
Updates the specified occurrence.
-
getOccurrenceNote
public Note getOccurrenceNote(GetOccurrenceNoteRequest request)
Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.
-
getNote
public Note getNote(GetNoteRequest request)
Gets the specified note.
-
listNotes
public ListNotesResponse listNotes(ListNotesRequest request)
Lists notes for the specified project.
-
deleteNote
public com.google.protobuf.Empty deleteNote(DeleteNoteRequest request)
Deletes the specified note.
-
createNote
public Note createNote(CreateNoteRequest request)
Creates a new note.
-
batchCreateNotes
public BatchCreateNotesResponse batchCreateNotes(BatchCreateNotesRequest request)
Creates new notes in batch.
-
updateNote
public Note updateNote(UpdateNoteRequest request)
Updates the specified note.
-
listNoteOccurrences
public ListNoteOccurrencesResponse listNoteOccurrences(ListNoteOccurrencesRequest request)
Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.
-
getVulnerabilityOccurrencesSummary
public VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(GetVulnerabilityOccurrencesSummaryRequest request)
Gets a summary of the number and severity of occurrences.
-
-