Class GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub (2.46.0)

public static final class GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub extends AbstractBlockingStub<GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub>

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.AbstractBlockingStub > GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub

Methods

batchCreateNotes(BatchCreateNotesRequest request)

public BatchCreateNotesResponse batchCreateNotes(BatchCreateNotesRequest request)

Creates new notes in batch.

Parameter
Name Description
request BatchCreateNotesRequest
Returns
Type Description
BatchCreateNotesResponse

batchCreateOccurrences(BatchCreateOccurrencesRequest request)

public BatchCreateOccurrencesResponse batchCreateOccurrences(BatchCreateOccurrencesRequest request)

Creates new occurrences in batch.

Parameter
Name Description
request BatchCreateOccurrencesRequest
Returns
Type Description
BatchCreateOccurrencesResponse

build(Channel channel, CallOptions callOptions)

protected GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createNote(CreateNoteRequest request)

public Note createNote(CreateNoteRequest request)

Creates a new note.

Parameter
Name Description
request CreateNoteRequest
Returns
Type Description
Note

createOccurrence(CreateOccurrenceRequest request)

public Occurrence createOccurrence(CreateOccurrenceRequest request)

Creates a new occurrence.

Parameter
Name Description
request CreateOccurrenceRequest
Returns
Type Description
Occurrence

deleteNote(DeleteNoteRequest request)

public Empty deleteNote(DeleteNoteRequest request)

Deletes the specified note.

Parameter
Name Description
request DeleteNoteRequest
Returns
Type Description
Empty

deleteOccurrence(DeleteOccurrenceRequest request)

public 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
Name Description
request DeleteOccurrenceRequest
Returns
Type Description
Empty

getNote(GetNoteRequest request)

public Note getNote(GetNoteRequest request)

Gets the specified note.

Parameter
Name Description
request GetNoteRequest
Returns
Type Description
Note

getOccurrence(GetOccurrenceRequest request)

public Occurrence getOccurrence(GetOccurrenceRequest request)

Gets the specified occurrence.

Parameter
Name Description
request GetOccurrenceRequest
Returns
Type Description
Occurrence

getOccurrenceNote(GetOccurrenceNoteRequest request)

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.

Parameter
Name Description
request GetOccurrenceNoteRequest
Returns
Type Description
Note

getVulnerabilityOccurrencesSummary(GetVulnerabilityOccurrencesSummaryRequest request)

public VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(GetVulnerabilityOccurrencesSummaryRequest request)

Gets a summary of the number and severity of occurrences.

Parameter
Name Description
request GetVulnerabilityOccurrencesSummaryRequest
Returns
Type Description
VulnerabilityOccurrencesSummary

listNoteOccurrences(ListNoteOccurrencesRequest request)

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.

Parameter
Name Description
request ListNoteOccurrencesRequest
Returns
Type Description
ListNoteOccurrencesResponse

listNotes(ListNotesRequest request)

public ListNotesResponse listNotes(ListNotesRequest request)

Lists notes for the specified project.

Parameter
Name Description
request ListNotesRequest
Returns
Type Description
ListNotesResponse

listOccurrences(ListOccurrencesRequest request)

public ListOccurrencesResponse listOccurrences(ListOccurrencesRequest request)

Lists occurrences for the specified project.

Parameter
Name Description
request ListOccurrencesRequest
Returns
Type Description
ListOccurrencesResponse

updateNote(UpdateNoteRequest request)

public Note updateNote(UpdateNoteRequest request)

Updates the specified note.

Parameter
Name Description
request UpdateNoteRequest
Returns
Type Description
Note

updateOccurrence(UpdateOccurrenceRequest request)

public Occurrence updateOccurrence(UpdateOccurrenceRequest request)

Updates the specified occurrence.

Parameter
Name Description
request UpdateOccurrenceRequest
Returns
Type Description
Occurrence