Class GrafeasV1Beta1Grpc.GrafeasV1Beta1FutureStub (2.32.0)

public static final class GrafeasV1Beta1Grpc.GrafeasV1Beta1FutureStub extends AbstractFutureStub<GrafeasV1Beta1Grpc.GrafeasV1Beta1FutureStub>

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.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > GrafeasV1Beta1Grpc.GrafeasV1Beta1FutureStub

Methods

batchCreateNotes(BatchCreateNotesRequest request)

public ListenableFuture<BatchCreateNotesResponse> batchCreateNotes(BatchCreateNotesRequest request)

Creates new notes in batch.

Parameter
NameDescription
requestBatchCreateNotesRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<BatchCreateNotesResponse>

batchCreateOccurrences(BatchCreateOccurrencesRequest request)

public ListenableFuture<BatchCreateOccurrencesResponse> batchCreateOccurrences(BatchCreateOccurrencesRequest request)

Creates new occurrences in batch.

Parameter
NameDescription
requestBatchCreateOccurrencesRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<BatchCreateOccurrencesResponse>

build(Channel channel, CallOptions callOptions)

protected GrafeasV1Beta1Grpc.GrafeasV1Beta1FutureStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
GrafeasV1Beta1Grpc.GrafeasV1Beta1FutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createNote(CreateNoteRequest request)

public ListenableFuture<Note> createNote(CreateNoteRequest request)

Creates a new note.

Parameter
NameDescription
requestCreateNoteRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Note>

createOccurrence(CreateOccurrenceRequest request)

public ListenableFuture<Occurrence> createOccurrence(CreateOccurrenceRequest request)

Creates a new occurrence.

Parameter
NameDescription
requestCreateOccurrenceRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Occurrence>

deleteNote(DeleteNoteRequest request)

public ListenableFuture<Empty> deleteNote(DeleteNoteRequest request)

Deletes the specified note.

Parameter
NameDescription
requestDeleteNoteRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Empty>

deleteOccurrence(DeleteOccurrenceRequest request)

public ListenableFuture<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.

Parameter
NameDescription
requestDeleteOccurrenceRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Empty>

getNote(GetNoteRequest request)

public ListenableFuture<Note> getNote(GetNoteRequest request)

Gets the specified note.

Parameter
NameDescription
requestGetNoteRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Note>

getOccurrence(GetOccurrenceRequest request)

public ListenableFuture<Occurrence> getOccurrence(GetOccurrenceRequest request)

Gets the specified occurrence.

Parameter
NameDescription
requestGetOccurrenceRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Occurrence>

getOccurrenceNote(GetOccurrenceNoteRequest request)

public 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.

Parameter
NameDescription
requestGetOccurrenceNoteRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Note>

getVulnerabilityOccurrencesSummary(GetVulnerabilityOccurrencesSummaryRequest request)

public ListenableFuture<VulnerabilityOccurrencesSummary> getVulnerabilityOccurrencesSummary(GetVulnerabilityOccurrencesSummaryRequest request)

Gets a summary of the number and severity of occurrences.

Parameter
NameDescription
requestGetVulnerabilityOccurrencesSummaryRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<VulnerabilityOccurrencesSummary>

listNoteOccurrences(ListNoteOccurrencesRequest request)

public 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.

Parameter
NameDescription
requestListNoteOccurrencesRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListNoteOccurrencesResponse>

listNotes(ListNotesRequest request)

public ListenableFuture<ListNotesResponse> listNotes(ListNotesRequest request)

Lists notes for the specified project.

Parameter
NameDescription
requestListNotesRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListNotesResponse>

listOccurrences(ListOccurrencesRequest request)

public ListenableFuture<ListOccurrencesResponse> listOccurrences(ListOccurrencesRequest request)

Lists occurrences for the specified project.

Parameter
NameDescription
requestListOccurrencesRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListOccurrencesResponse>

updateNote(UpdateNoteRequest request)

public ListenableFuture<Note> updateNote(UpdateNoteRequest request)

Updates the specified note.

Parameter
NameDescription
requestUpdateNoteRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Note>

updateOccurrence(UpdateOccurrenceRequest request)

public ListenableFuture<Occurrence> updateOccurrence(UpdateOccurrenceRequest request)

Updates the specified occurrence.

Parameter
NameDescription
requestUpdateOccurrenceRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Occurrence>