Package io.grafeas.v1beta1
Class GrafeasV1Beta1Grpc.GrafeasV1Beta1FutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<GrafeasV1Beta1Grpc.GrafeasV1Beta1FutureStub>
io.grafeas.v1beta1.GrafeasV1Beta1Grpc.GrafeasV1Beta1FutureStub
- Enclosing class:
- GrafeasV1Beta1Grpc
public static final class GrafeasV1Beta1Grpc.GrafeasV1Beta1FutureStub
extends io.grpc.stub.AbstractFutureStub<GrafeasV1Beta1Grpc.GrafeasV1Beta1FutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service GrafeasV1Beta1.
[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.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<BatchCreateNotesResponse>batchCreateNotes(BatchCreateNotesRequest request) Creates new notes in batch.com.google.common.util.concurrent.ListenableFuture<BatchCreateOccurrencesResponse>Creates new occurrences in batch.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<Note>createNote(CreateNoteRequest request) Creates a new note.com.google.common.util.concurrent.ListenableFuture<Occurrence>createOccurrence(CreateOccurrenceRequest request) Creates a new occurrence.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>deleteNote(DeleteNoteRequest request) Deletes the specified note.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>deleteOccurrence(DeleteOccurrenceRequest request) Deletes the specified occurrence.com.google.common.util.concurrent.ListenableFuture<Note>getNote(GetNoteRequest request) Gets the specified note.com.google.common.util.concurrent.ListenableFuture<Occurrence>getOccurrence(GetOccurrenceRequest request) Gets the specified occurrence.com.google.common.util.concurrent.ListenableFuture<Note>Gets the note attached to the specified occurrence.com.google.common.util.concurrent.ListenableFuture<VulnerabilityOccurrencesSummary>Gets a summary of the number and severity of occurrences.com.google.common.util.concurrent.ListenableFuture<ListNoteOccurrencesResponse>Lists occurrences referencing the specified note.com.google.common.util.concurrent.ListenableFuture<ListNotesResponse>listNotes(ListNotesRequest request) Lists notes for the specified project.com.google.common.util.concurrent.ListenableFuture<ListOccurrencesResponse>listOccurrences(ListOccurrencesRequest request) Lists occurrences for the specified project.com.google.common.util.concurrent.ListenableFuture<Note>updateNote(UpdateNoteRequest request) Updates the specified note.com.google.common.util.concurrent.ListenableFuture<Occurrence>updateOccurrence(UpdateOccurrenceRequest request) Updates the specified occurrence.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected GrafeasV1Beta1Grpc.GrafeasV1Beta1FutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<GrafeasV1Beta1Grpc.GrafeasV1Beta1FutureStub>
-
getOccurrence
public com.google.common.util.concurrent.ListenableFuture<Occurrence> getOccurrence(GetOccurrenceRequest request) Gets the specified occurrence.
-
listOccurrences
public com.google.common.util.concurrent.ListenableFuture<ListOccurrencesResponse> listOccurrences(ListOccurrencesRequest request) Lists occurrences for the specified project.
-
deleteOccurrence
public com.google.common.util.concurrent.ListenableFuture<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 com.google.common.util.concurrent.ListenableFuture<Occurrence> createOccurrence(CreateOccurrenceRequest request) Creates a new occurrence.
-
batchCreateOccurrences
public com.google.common.util.concurrent.ListenableFuture<BatchCreateOccurrencesResponse> batchCreateOccurrences(BatchCreateOccurrencesRequest request) Creates new occurrences in batch.
-
updateOccurrence
public com.google.common.util.concurrent.ListenableFuture<Occurrence> updateOccurrence(UpdateOccurrenceRequest request) Updates the specified occurrence.
-
getOccurrenceNote
public com.google.common.util.concurrent.ListenableFuture<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
Gets the specified note.
-
listNotes
public com.google.common.util.concurrent.ListenableFuture<ListNotesResponse> listNotes(ListNotesRequest request) Lists notes for the specified project.
-
deleteNote
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteNote(DeleteNoteRequest request) Deletes the specified note.
-
createNote
public com.google.common.util.concurrent.ListenableFuture<Note> createNote(CreateNoteRequest request) Creates a new note.
-
batchCreateNotes
public com.google.common.util.concurrent.ListenableFuture<BatchCreateNotesResponse> batchCreateNotes(BatchCreateNotesRequest request) Creates new notes in batch.
-
updateNote
public com.google.common.util.concurrent.ListenableFuture<Note> updateNote(UpdateNoteRequest request) Updates the specified note.
-
listNoteOccurrences
public com.google.common.util.concurrent.ListenableFuture<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 com.google.common.util.concurrent.ListenableFuture<VulnerabilityOccurrencesSummary> getVulnerabilityOccurrencesSummary(GetVulnerabilityOccurrencesSummaryRequest request) Gets a summary of the number and severity of occurrences.
-