Class GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingV2Stub>
io.grafeas.v1beta1.GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingV2Stub
Enclosing class:
GrafeasV1Beta1Grpc

public static final class GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingV2Stub>
A stub to allow clients to do synchronous 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.
 
  • Method Details

    • build

      protected GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<GrafeasV1Beta1Grpc.GrafeasV1Beta1BlockingV2Stub>
    • getOccurrence

      public Occurrence getOccurrence(GetOccurrenceRequest request) throws io.grpc.StatusException
       Gets the specified occurrence.
       
      Throws:
      io.grpc.StatusException
    • listOccurrences

      public ListOccurrencesResponse listOccurrences(ListOccurrencesRequest request) throws io.grpc.StatusException
       Lists occurrences for the specified project.
       
      Throws:
      io.grpc.StatusException
    • deleteOccurrence

      public com.google.protobuf.Empty deleteOccurrence(DeleteOccurrenceRequest request) throws io.grpc.StatusException
       Deletes the specified occurrence. For example, use this method to delete an
       occurrence when the occurrence is no longer applicable for the given
       resource.
       
      Throws:
      io.grpc.StatusException
    • createOccurrence

      public Occurrence createOccurrence(CreateOccurrenceRequest request) throws io.grpc.StatusException
       Creates a new occurrence.
       
      Throws:
      io.grpc.StatusException
    • batchCreateOccurrences

      public BatchCreateOccurrencesResponse batchCreateOccurrences(BatchCreateOccurrencesRequest request) throws io.grpc.StatusException
       Creates new occurrences in batch.
       
      Throws:
      io.grpc.StatusException
    • updateOccurrence

      public Occurrence updateOccurrence(UpdateOccurrenceRequest request) throws io.grpc.StatusException
       Updates the specified occurrence.
       
      Throws:
      io.grpc.StatusException
    • getOccurrenceNote

      public Note getOccurrenceNote(GetOccurrenceNoteRequest request) throws io.grpc.StatusException
       Gets the note attached to the specified occurrence. Consumer projects can
       use this method to get a note that belongs to a provider project.
       
      Throws:
      io.grpc.StatusException
    • getNote

      public Note getNote(GetNoteRequest request) throws io.grpc.StatusException
       Gets the specified note.
       
      Throws:
      io.grpc.StatusException
    • listNotes

      public ListNotesResponse listNotes(ListNotesRequest request) throws io.grpc.StatusException
       Lists notes for the specified project.
       
      Throws:
      io.grpc.StatusException
    • deleteNote

      public com.google.protobuf.Empty deleteNote(DeleteNoteRequest request) throws io.grpc.StatusException
       Deletes the specified note.
       
      Throws:
      io.grpc.StatusException
    • createNote

      public Note createNote(CreateNoteRequest request) throws io.grpc.StatusException
       Creates a new note.
       
      Throws:
      io.grpc.StatusException
    • batchCreateNotes

      public BatchCreateNotesResponse batchCreateNotes(BatchCreateNotesRequest request) throws io.grpc.StatusException
       Creates new notes in batch.
       
      Throws:
      io.grpc.StatusException
    • updateNote

      public Note updateNote(UpdateNoteRequest request) throws io.grpc.StatusException
       Updates the specified note.
       
      Throws:
      io.grpc.StatusException
    • listNoteOccurrences

      public ListNoteOccurrencesResponse listNoteOccurrences(ListNoteOccurrencesRequest request) throws io.grpc.StatusException
       Lists occurrences referencing the specified note. Provider projects can use
       this method to get all occurrences across consumer projects referencing the
       specified note.
       
      Throws:
      io.grpc.StatusException
    • getVulnerabilityOccurrencesSummary

      public VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(GetVulnerabilityOccurrencesSummaryRequest request) throws io.grpc.StatusException
       Gets a summary of the number and severity of occurrences.
       
      Throws:
      io.grpc.StatusException