Search in sources :

Example 26 with Note

use of io.grafeas.v1beta1.Note in project java-containeranalysis by googleapis.

the class GrafeasV1Beta1Client method deleteNote.

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
 * Deletes the specified note.
 *
 * <p>Sample code:
 *
 * <pre><code>
 * try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) {
 *   NoteName name = NoteName.of("[PROJECT]", "[NOTE]");
 *   grafeasV1Beta1Client.deleteNote(name);
 * }
 * </code></pre>
 *
 * @param name The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
 */
public final void deleteNote(NoteName name) {
    DeleteNoteRequest request = DeleteNoteRequest.newBuilder().setName(name == null ? null : name.toString()).build();
    deleteNote(request);
}
Also used : DeleteNoteRequest(io.grafeas.v1beta1.DeleteNoteRequest)

Aggregations

Test (org.junit.Test)16 Note (io.grafeas.v1beta1.Note)9 AbstractMessage (com.google.protobuf.AbstractMessage)8 ProjectName (com.google.containeranalysis.v1beta1.ProjectName)5 Note (io.grafeas.v1.Note)5 NoteName (com.google.containeranalysis.v1beta1.NoteName)4 IOException (java.io.IOException)4 BookID (biblemulticonverter.data.BookID)3 FormattingInstructionKind (biblemulticonverter.data.FormattedText.FormattingInstructionKind)3 Visitor (biblemulticonverter.data.FormattedText.Visitor)3 BR (biblemulticonverter.schema.zef2005.BR)3 DIV (biblemulticonverter.schema.zef2005.DIV)3 Note (com.google.containeranalysis.v1alpha1.Note)3 VulnerabilityNote (io.grafeas.v1.VulnerabilityNote)3 Note (biblemulticonverter.schema.usx3.Note)2 Verse (biblemulticonverter.schema.usx3.Verse)2 GRAM (biblemulticonverter.schema.zef2005.GRAM)2 NOTE (biblemulticonverter.schema.zef2005.NOTE)2 STYLE (biblemulticonverter.schema.zef2005.STYLE)2 XREF (biblemulticonverter.schema.zef2005.XREF)2