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);
}
Aggregations