public sealed class GrafeasClientImpl : GrafeasClient
Reference documentation and code samples for the Grafeas v1 API class GrafeasClientImpl.
Grafeas client wrapper implementation, for convenient use.
Namespace
Grafeas.V1Assembly
Grafeas.V1.dll
Remarks
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.
Constructors
GrafeasClientImpl(GrafeasClient, GrafeasSettings, ILogger)
public GrafeasClientImpl(Grafeas.GrafeasClient grpcClient, GrafeasSettings settings, ILogger logger)
Constructs a client wrapper for the Grafeas service, with the specified gRPC client and settings.
grpcClient
settings
Properties
GrpcClient
public override Grafeas.GrafeasClient GrpcClient { get; }
The underlying gRPC Grafeas client
Methods
BatchCreateNotes(BatchCreateNotesRequest, CallSettings)
public override BatchCreateNotesResponse BatchCreateNotes(BatchCreateNotesRequest request, CallSettings callSettings = null)
Creates new notes in batch.
request
callSettings
BatchCreateNotesAsync(BatchCreateNotesRequest, CallSettings)
public override Task<BatchCreateNotesResponse> BatchCreateNotesAsync(BatchCreateNotesRequest request, CallSettings callSettings = null)
Creates new notes in batch.
request
callSettings
BatchCreateOccurrences(BatchCreateOccurrencesRequest, CallSettings)
public override BatchCreateOccurrencesResponse BatchCreateOccurrences(BatchCreateOccurrencesRequest request, CallSettings callSettings = null)
Creates new occurrences in batch.
request
callSettings
BatchCreateOccurrencesAsync(BatchCreateOccurrencesRequest, CallSettings)
public override Task<BatchCreateOccurrencesResponse> BatchCreateOccurrencesAsync(BatchCreateOccurrencesRequest request, CallSettings callSettings = null)
Creates new occurrences in batch.
request
callSettings
CreateNote(CreateNoteRequest, CallSettings)
public override Note CreateNote(CreateNoteRequest request, CallSettings callSettings = null)
Creates a new note.
request
callSettings
CreateNoteAsync(CreateNoteRequest, CallSettings)
public override Task<Note> CreateNoteAsync(CreateNoteRequest request, CallSettings callSettings = null)
Creates a new note.
request
callSettings
CreateOccurrence(CreateOccurrenceRequest, CallSettings)
public override Occurrence CreateOccurrence(CreateOccurrenceRequest request, CallSettings callSettings = null)
Creates a new occurrence.
request
callSettings
CreateOccurrenceAsync(CreateOccurrenceRequest, CallSettings)
public override Task<Occurrence> CreateOccurrenceAsync(CreateOccurrenceRequest request, CallSettings callSettings = null)
Creates a new occurrence.
request
callSettings
DeleteNote(DeleteNoteRequest, CallSettings)
public override void DeleteNote(DeleteNoteRequest request, CallSettings callSettings = null)
Deletes the specified note.
request
callSettings
DeleteNoteAsync(DeleteNoteRequest, CallSettings)
public override Task DeleteNoteAsync(DeleteNoteRequest request, CallSettings callSettings = null)
Deletes the specified note.
request
callSettings
DeleteOccurrence(DeleteOccurrenceRequest, CallSettings)
public override void DeleteOccurrence(DeleteOccurrenceRequest request, CallSettings callSettings = null)
Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.
request
callSettings
DeleteOccurrenceAsync(DeleteOccurrenceRequest, CallSettings)
public override Task DeleteOccurrenceAsync(DeleteOccurrenceRequest request, CallSettings callSettings = null)
Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.
request
callSettings
GetNote(GetNoteRequest, CallSettings)
public override Note GetNote(GetNoteRequest request, CallSettings callSettings = null)
Gets the specified note.
request
callSettings
GetNoteAsync(GetNoteRequest, CallSettings)
public override Task<Note> GetNoteAsync(GetNoteRequest request, CallSettings callSettings = null)
Gets the specified note.
request
callSettings
GetOccurrence(GetOccurrenceRequest, CallSettings)
public override Occurrence GetOccurrence(GetOccurrenceRequest request, CallSettings callSettings = null)
Gets the specified occurrence.
request
callSettings
GetOccurrenceAsync(GetOccurrenceRequest, CallSettings)
public override Task<Occurrence> GetOccurrenceAsync(GetOccurrenceRequest request, CallSettings callSettings = null)
Gets the specified occurrence.
request
callSettings
GetOccurrenceNote(GetOccurrenceNoteRequest, CallSettings)
public override Note GetOccurrenceNote(GetOccurrenceNoteRequest request, CallSettings callSettings = null)
Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.
request
callSettings
GetOccurrenceNoteAsync(GetOccurrenceNoteRequest, CallSettings)
public override Task<Note> GetOccurrenceNoteAsync(GetOccurrenceNoteRequest request, CallSettings callSettings = null)
Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.
request
callSettings
ListNoteOccurrences(ListNoteOccurrencesRequest, CallSettings)
public override PagedEnumerable<ListNoteOccurrencesResponse, Occurrence> ListNoteOccurrences(ListNoteOccurrencesRequest request, CallSettings callSettings = null)
Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.
request
callSettings
ListNoteOccurrencesAsync(ListNoteOccurrencesRequest, CallSettings)
public override PagedAsyncEnumerable<ListNoteOccurrencesResponse, Occurrence> ListNoteOccurrencesAsync(ListNoteOccurrencesRequest request, CallSettings callSettings = null)
Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.
request
callSettings
ListNotes(ListNotesRequest, CallSettings)
public override PagedEnumerable<ListNotesResponse, Note> ListNotes(ListNotesRequest request, CallSettings callSettings = null)
Lists notes for the specified project.
request
callSettings
ListNotesAsync(ListNotesRequest, CallSettings)
public override PagedAsyncEnumerable<ListNotesResponse, Note> ListNotesAsync(ListNotesRequest request, CallSettings callSettings = null)
Lists notes for the specified project.
request
callSettings
ListOccurrences(ListOccurrencesRequest, CallSettings)
public override PagedEnumerable<ListOccurrencesResponse, Occurrence> ListOccurrences(ListOccurrencesRequest request, CallSettings callSettings = null)
Lists occurrences for the specified project.
request
callSettings
ListOccurrencesAsync(ListOccurrencesRequest, CallSettings)
public override PagedAsyncEnumerable<ListOccurrencesResponse, Occurrence> ListOccurrencesAsync(ListOccurrencesRequest request, CallSettings callSettings = null)
Lists occurrences for the specified project.
request
callSettings
UpdateNote(UpdateNoteRequest, CallSettings)
public override Note UpdateNote(UpdateNoteRequest request, CallSettings callSettings = null)
Updates the specified note.
request
callSettings
UpdateNoteAsync(UpdateNoteRequest, CallSettings)
public override Task<Note> UpdateNoteAsync(UpdateNoteRequest request, CallSettings callSettings = null)
Updates the specified note.
request
callSettings
UpdateOccurrence(UpdateOccurrenceRequest, CallSettings)
public override Occurrence UpdateOccurrence(UpdateOccurrenceRequest request, CallSettings callSettings = null)
Updates the specified occurrence.
request
callSettings
UpdateOccurrenceAsync(UpdateOccurrenceRequest, CallSettings)
public override Task<Occurrence> UpdateOccurrenceAsync(UpdateOccurrenceRequest request, CallSettings callSettings = null)
Updates the specified occurrence.
request
callSettings