Class GrafeasConnection (2.21.0)

This interface defines virtual methods for each of the user-facing overload sets in GrafeasClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type GrafeasClient.

To create a concrete instance, see MakeGrafeasConnection().

For mocking, see containeranalysis_v1_mocks::MockGrafeasConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual GetOccurrence(grafeas::v1::GetOccurrenceRequest const &)

Parameter
NameDescription
request grafeas::v1::GetOccurrenceRequest const &
Returns
TypeDescription
StatusOr< grafeas::v1::Occurrence >

virtual ListOccurrences(grafeas::v1::ListOccurrencesRequest)

Parameter
NameDescription
request grafeas::v1::ListOccurrencesRequest
Returns
TypeDescription
StreamRange< grafeas::v1::Occurrence >

virtual DeleteOccurrence(grafeas::v1::DeleteOccurrenceRequest const &)

Parameter
NameDescription
request grafeas::v1::DeleteOccurrenceRequest const &
Returns
TypeDescription
Status

virtual CreateOccurrence(grafeas::v1::CreateOccurrenceRequest const &)

Parameter
NameDescription
request grafeas::v1::CreateOccurrenceRequest const &
Returns
TypeDescription
StatusOr< grafeas::v1::Occurrence >

virtual BatchCreateOccurrences(grafeas::v1::BatchCreateOccurrencesRequest const &)

Parameter
NameDescription
request grafeas::v1::BatchCreateOccurrencesRequest const &
Returns
TypeDescription
StatusOr< grafeas::v1::BatchCreateOccurrencesResponse >

virtual UpdateOccurrence(grafeas::v1::UpdateOccurrenceRequest const &)

Parameter
NameDescription
request grafeas::v1::UpdateOccurrenceRequest const &
Returns
TypeDescription
StatusOr< grafeas::v1::Occurrence >

virtual GetOccurrenceNote(grafeas::v1::GetOccurrenceNoteRequest const &)

Parameter
NameDescription
request grafeas::v1::GetOccurrenceNoteRequest const &
Returns
TypeDescription
StatusOr< grafeas::v1::Note >

virtual GetNote(grafeas::v1::GetNoteRequest const &)

Parameter
NameDescription
request grafeas::v1::GetNoteRequest const &
Returns
TypeDescription
StatusOr< grafeas::v1::Note >

virtual ListNotes(grafeas::v1::ListNotesRequest)

Parameter
NameDescription
request grafeas::v1::ListNotesRequest
Returns
TypeDescription
StreamRange< grafeas::v1::Note >

virtual DeleteNote(grafeas::v1::DeleteNoteRequest const &)

Parameter
NameDescription
request grafeas::v1::DeleteNoteRequest const &
Returns
TypeDescription
Status

virtual CreateNote(grafeas::v1::CreateNoteRequest const &)

Parameter
NameDescription
request grafeas::v1::CreateNoteRequest const &
Returns
TypeDescription
StatusOr< grafeas::v1::Note >

virtual BatchCreateNotes(grafeas::v1::BatchCreateNotesRequest const &)

Parameter
NameDescription
request grafeas::v1::BatchCreateNotesRequest const &
Returns
TypeDescription
StatusOr< grafeas::v1::BatchCreateNotesResponse >

virtual UpdateNote(grafeas::v1::UpdateNoteRequest const &)

Parameter
NameDescription
request grafeas::v1::UpdateNoteRequest const &
Returns
TypeDescription
StatusOr< grafeas::v1::Note >

virtual ListNoteOccurrences(grafeas::v1::ListNoteOccurrencesRequest)

Parameter
NameDescription
request grafeas::v1::ListNoteOccurrencesRequest
Returns
TypeDescription
StreamRange< grafeas::v1::Occurrence >