Grafeas v1 API - Class GrafeasClient (3.4.0)

public abstract class GrafeasClient

Reference documentation and code samples for the Grafeas v1 API class GrafeasClient.

Grafeas client wrapper, for convenient use.

Inheritance

object > GrafeasClient

Derived Types

Namespace

Grafeas.V1

Assembly

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.

Properties

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default Grafeas scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

The default Grafeas scopes are:

    GrpcClient

    public virtual Grafeas.GrafeasClient GrpcClient { get; }

    The underlying gRPC Grafeas client

    Property Value
    TypeDescription
    GrafeasGrafeasClient

    ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

    The service metadata associated with this client type.

    Property Value
    TypeDescription
    ServiceMetadata

    Methods

    BatchCreateNotes(BatchCreateNotesRequest, CallSettings)

    public virtual BatchCreateNotesResponse BatchCreateNotes(BatchCreateNotesRequest request, CallSettings callSettings = null)

    Creates new notes in batch.

    Parameters
    NameDescription
    requestBatchCreateNotesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    BatchCreateNotesResponse

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    BatchCreateNotesRequest request = new BatchCreateNotesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Notes = { { "", new Note() }, },
    };
    // Make the request
    BatchCreateNotesResponse response = grafeasClient.BatchCreateNotes(request);
    

    BatchCreateNotes(ProjectName, IDictionary<string, Note>, CallSettings)

    public virtual BatchCreateNotesResponse BatchCreateNotes(ProjectName parent, IDictionary<string, Note> notes, CallSettings callSettings = null)

    Creates new notes in batch.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

    notesIDictionarystringNote

    The notes to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    BatchCreateNotesResponse

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IDictionary<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
    // Make the request
    BatchCreateNotesResponse response = grafeasClient.BatchCreateNotes(parent, notes);
    

    BatchCreateNotes(string, IDictionary<string, Note>, CallSettings)

    public virtual BatchCreateNotesResponse BatchCreateNotes(string parent, IDictionary<string, Note> notes, CallSettings callSettings = null)

    Creates new notes in batch.

    Parameters
    NameDescription
    parentstring

    The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

    notesIDictionarystringNote

    The notes to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    BatchCreateNotesResponse

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IDictionary<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
    // Make the request
    BatchCreateNotesResponse response = grafeasClient.BatchCreateNotes(parent, notes);
    

    BatchCreateNotesAsync(BatchCreateNotesRequest, CallSettings)

    public virtual Task<BatchCreateNotesResponse> BatchCreateNotesAsync(BatchCreateNotesRequest request, CallSettings callSettings = null)

    Creates new notes in batch.

    Parameters
    NameDescription
    requestBatchCreateNotesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    TaskBatchCreateNotesResponse

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    BatchCreateNotesRequest request = new BatchCreateNotesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Notes = { { "", new Note() }, },
    };
    // Make the request
    BatchCreateNotesResponse response = await grafeasClient.BatchCreateNotesAsync(request);
    

    BatchCreateNotesAsync(BatchCreateNotesRequest, CancellationToken)

    public virtual Task<BatchCreateNotesResponse> BatchCreateNotesAsync(BatchCreateNotesRequest request, CancellationToken cancellationToken)

    Creates new notes in batch.

    Parameters
    NameDescription
    requestBatchCreateNotesRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    TaskBatchCreateNotesResponse

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    BatchCreateNotesRequest request = new BatchCreateNotesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Notes = { { "", new Note() }, },
    };
    // Make the request
    BatchCreateNotesResponse response = await grafeasClient.BatchCreateNotesAsync(request);
    

    BatchCreateNotesAsync(ProjectName, IDictionary<string, Note>, CallSettings)

    public virtual Task<BatchCreateNotesResponse> BatchCreateNotesAsync(ProjectName parent, IDictionary<string, Note> notes, CallSettings callSettings = null)

    Creates new notes in batch.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

    notesIDictionarystringNote

    The notes to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    TaskBatchCreateNotesResponse

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IDictionary<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
    // Make the request
    BatchCreateNotesResponse response = await grafeasClient.BatchCreateNotesAsync(parent, notes);
    

    BatchCreateNotesAsync(ProjectName, IDictionary<string, Note>, CancellationToken)

    public virtual Task<BatchCreateNotesResponse> BatchCreateNotesAsync(ProjectName parent, IDictionary<string, Note> notes, CancellationToken cancellationToken)

    Creates new notes in batch.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

    notesIDictionarystringNote

    The notes to create. Max allowed length is 1000.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    TaskBatchCreateNotesResponse

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IDictionary<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
    // Make the request
    BatchCreateNotesResponse response = await grafeasClient.BatchCreateNotesAsync(parent, notes);
    

    BatchCreateNotesAsync(string, IDictionary<string, Note>, CallSettings)

    public virtual Task<BatchCreateNotesResponse> BatchCreateNotesAsync(string parent, IDictionary<string, Note> notes, CallSettings callSettings = null)

    Creates new notes in batch.

    Parameters
    NameDescription
    parentstring

    The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

    notesIDictionarystringNote

    The notes to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    TaskBatchCreateNotesResponse

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IDictionary<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
    // Make the request
    BatchCreateNotesResponse response = await grafeasClient.BatchCreateNotesAsync(parent, notes);
    

    BatchCreateNotesAsync(string, IDictionary<string, Note>, CancellationToken)

    public virtual Task<BatchCreateNotesResponse> BatchCreateNotesAsync(string parent, IDictionary<string, Note> notes, CancellationToken cancellationToken)

    Creates new notes in batch.

    Parameters
    NameDescription
    parentstring

    The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

    notesIDictionarystringNote

    The notes to create. Max allowed length is 1000.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    TaskBatchCreateNotesResponse

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IDictionary<string, Note> notes = new Dictionary<string, Note> { { "", new Note() }, };
    // Make the request
    BatchCreateNotesResponse response = await grafeasClient.BatchCreateNotesAsync(parent, notes);
    

    BatchCreateOccurrences(BatchCreateOccurrencesRequest, CallSettings)

    public virtual BatchCreateOccurrencesResponse BatchCreateOccurrences(BatchCreateOccurrencesRequest request, CallSettings callSettings = null)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    requestBatchCreateOccurrencesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    BatchCreateOccurrencesResponse

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    BatchCreateOccurrencesRequest request = new BatchCreateOccurrencesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Occurrences = { new Occurrence(), },
    };
    // Make the request
    BatchCreateOccurrencesResponse response = grafeasClient.BatchCreateOccurrences(request);
    

    BatchCreateOccurrences(ProjectName, IEnumerable<Occurrence>, CallSettings)

    public virtual BatchCreateOccurrencesResponse BatchCreateOccurrences(ProjectName parent, IEnumerable<Occurrence> occurrences, CallSettings callSettings = null)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

    occurrencesIEnumerableOccurrence

    The occurrences to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    BatchCreateOccurrencesResponse

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IEnumerable<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
    // Make the request
    BatchCreateOccurrencesResponse response = grafeasClient.BatchCreateOccurrences(parent, occurrences);
    

    BatchCreateOccurrences(string, IEnumerable<Occurrence>, CallSettings)

    public virtual BatchCreateOccurrencesResponse BatchCreateOccurrences(string parent, IEnumerable<Occurrence> occurrences, CallSettings callSettings = null)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    parentstring

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

    occurrencesIEnumerableOccurrence

    The occurrences to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    BatchCreateOccurrencesResponse

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IEnumerable<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
    // Make the request
    BatchCreateOccurrencesResponse response = grafeasClient.BatchCreateOccurrences(parent, occurrences);
    

    BatchCreateOccurrencesAsync(BatchCreateOccurrencesRequest, CallSettings)

    public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrencesAsync(BatchCreateOccurrencesRequest request, CallSettings callSettings = null)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    requestBatchCreateOccurrencesRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    TaskBatchCreateOccurrencesResponse

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    BatchCreateOccurrencesRequest request = new BatchCreateOccurrencesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Occurrences = { new Occurrence(), },
    };
    // Make the request
    BatchCreateOccurrencesResponse response = await grafeasClient.BatchCreateOccurrencesAsync(request);
    

    BatchCreateOccurrencesAsync(BatchCreateOccurrencesRequest, CancellationToken)

    public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrencesAsync(BatchCreateOccurrencesRequest request, CancellationToken cancellationToken)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    requestBatchCreateOccurrencesRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    TaskBatchCreateOccurrencesResponse

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    BatchCreateOccurrencesRequest request = new BatchCreateOccurrencesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Occurrences = { new Occurrence(), },
    };
    // Make the request
    BatchCreateOccurrencesResponse response = await grafeasClient.BatchCreateOccurrencesAsync(request);
    

    BatchCreateOccurrencesAsync(ProjectName, IEnumerable<Occurrence>, CallSettings)

    public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrencesAsync(ProjectName parent, IEnumerable<Occurrence> occurrences, CallSettings callSettings = null)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

    occurrencesIEnumerableOccurrence

    The occurrences to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    TaskBatchCreateOccurrencesResponse

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IEnumerable<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
    // Make the request
    BatchCreateOccurrencesResponse response = await grafeasClient.BatchCreateOccurrencesAsync(parent, occurrences);
    

    BatchCreateOccurrencesAsync(ProjectName, IEnumerable<Occurrence>, CancellationToken)

    public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrencesAsync(ProjectName parent, IEnumerable<Occurrence> occurrences, CancellationToken cancellationToken)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

    occurrencesIEnumerableOccurrence

    The occurrences to create. Max allowed length is 1000.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    TaskBatchCreateOccurrencesResponse

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    IEnumerable<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
    // Make the request
    BatchCreateOccurrencesResponse response = await grafeasClient.BatchCreateOccurrencesAsync(parent, occurrences);
    

    BatchCreateOccurrencesAsync(string, IEnumerable<Occurrence>, CallSettings)

    public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrencesAsync(string parent, IEnumerable<Occurrence> occurrences, CallSettings callSettings = null)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    parentstring

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

    occurrencesIEnumerableOccurrence

    The occurrences to create. Max allowed length is 1000.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    TaskBatchCreateOccurrencesResponse

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IEnumerable<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
    // Make the request
    BatchCreateOccurrencesResponse response = await grafeasClient.BatchCreateOccurrencesAsync(parent, occurrences);
    

    BatchCreateOccurrencesAsync(string, IEnumerable<Occurrence>, CancellationToken)

    public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrencesAsync(string parent, IEnumerable<Occurrence> occurrences, CancellationToken cancellationToken)

    Creates new occurrences in batch.

    Parameters
    NameDescription
    parentstring

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

    occurrencesIEnumerableOccurrence

    The occurrences to create. Max allowed length is 1000.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    TaskBatchCreateOccurrencesResponse

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    IEnumerable<Occurrence> occurrences = new Occurrence[] { new Occurrence(), };
    // Make the request
    BatchCreateOccurrencesResponse response = await grafeasClient.BatchCreateOccurrencesAsync(parent, occurrences);
    

    Create()

    public static GrafeasClient Create()

    Synchronously creates a GrafeasClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use GrafeasClientBuilder.

    Returns
    TypeDescription
    GrafeasClient

    The created GrafeasClient.

    CreateAsync(CancellationToken)

    public static Task<GrafeasClient> CreateAsync(CancellationToken cancellationToken = default)

    Asynchronously creates a GrafeasClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use GrafeasClientBuilder.

    Parameter
    NameDescription
    cancellationTokenCancellationToken

    The CancellationToken to use while creating the client.

    Returns
    TypeDescription
    TaskGrafeasClient

    The task representing the created GrafeasClient.

    CreateNote(CreateNoteRequest, CallSettings)

    public virtual Note CreateNote(CreateNoteRequest request, CallSettings callSettings = null)

    Creates a new note.

    Parameters
    NameDescription
    requestCreateNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    CreateNoteRequest request = new CreateNoteRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        NoteId = "",
        Note = new Note(),
    };
    // Make the request
    Note response = grafeasClient.CreateNote(request);
    

    CreateNote(ProjectName, string, Note, CallSettings)

    public virtual Note CreateNote(ProjectName parent, string noteId, Note note, CallSettings callSettings = null)

    Creates a new note.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

    noteIdstring

    The ID to use for this note.

    noteNote

    The note to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    string noteId = "";
    Note note = new Note();
    // Make the request
    Note response = grafeasClient.CreateNote(parent, noteId, note);
    

    CreateNote(string, string, Note, CallSettings)

    public virtual Note CreateNote(string parent, string noteId, Note note, CallSettings callSettings = null)

    Creates a new note.

    Parameters
    NameDescription
    parentstring

    The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

    noteIdstring

    The ID to use for this note.

    noteNote

    The note to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Note

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    string noteId = "";
    Note note = new Note();
    // Make the request
    Note response = grafeasClient.CreateNote(parent, noteId, note);
    

    CreateNoteAsync(CreateNoteRequest, CallSettings)

    public virtual Task<Note> CreateNoteAsync(CreateNoteRequest request, CallSettings callSettings = null)

    Creates a new note.

    Parameters
    NameDescription
    requestCreateNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    TaskNote

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    CreateNoteRequest request = new CreateNoteRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        NoteId = "",
        Note = new Note(),
    };
    // Make the request
    Note response = await grafeasClient.CreateNoteAsync(request);
    

    CreateNoteAsync(CreateNoteRequest, CancellationToken)

    public virtual Task<Note> CreateNoteAsync(CreateNoteRequest request, CancellationToken cancellationToken)

    Creates a new note.

    Parameters
    NameDescription
    requestCreateNoteRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    TaskNote

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    CreateNoteRequest request = new CreateNoteRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        NoteId = "",
        Note = new Note(),
    };
    // Make the request
    Note response = await grafeasClient.CreateNoteAsync(request);
    

    CreateNoteAsync(ProjectName, string, Note, CallSettings)

    public virtual Task<Note> CreateNoteAsync(ProjectName parent, string noteId, Note note, CallSettings callSettings = null)

    Creates a new note.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

    noteIdstring

    The ID to use for this note.

    noteNote

    The note to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    TaskNote

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    string noteId = "";
    Note note = new Note();
    // Make the request
    Note response = await grafeasClient.CreateNoteAsync(parent, noteId, note);
    

    CreateNoteAsync(ProjectName, string, Note, CancellationToken)

    public virtual Task<Note> CreateNoteAsync(ProjectName parent, string noteId, Note note, CancellationToken cancellationToken)

    Creates a new note.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

    noteIdstring

    The ID to use for this note.

    noteNote

    The note to create.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    TaskNote

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    string noteId = "";
    Note note = new Note();
    // Make the request
    Note response = await grafeasClient.CreateNoteAsync(parent, noteId, note);
    

    CreateNoteAsync(string, string, Note, CallSettings)

    public virtual Task<Note> CreateNoteAsync(string parent, string noteId, Note note, CallSettings callSettings = null)

    Creates a new note.

    Parameters
    NameDescription
    parentstring

    The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

    noteIdstring

    The ID to use for this note.

    noteNote

    The note to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    TaskNote

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    string noteId = "";
    Note note = new Note();
    // Make the request
    Note response = await grafeasClient.CreateNoteAsync(parent, noteId, note);
    

    CreateNoteAsync(string, string, Note, CancellationToken)

    public virtual Task<Note> CreateNoteAsync(string parent, string noteId, Note note, CancellationToken cancellationToken)

    Creates a new note.

    Parameters
    NameDescription
    parentstring

    The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

    noteIdstring

    The ID to use for this note.

    noteNote

    The note to create.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    TaskNote

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    string noteId = "";
    Note note = new Note();
    // Make the request
    Note response = await grafeasClient.CreateNoteAsync(parent, noteId, note);
    

    CreateOccurrence(CreateOccurrenceRequest, CallSettings)

    public virtual Occurrence CreateOccurrence(CreateOccurrenceRequest request, CallSettings callSettings = null)

    Creates a new occurrence.

    Parameters
    NameDescription
    requestCreateOccurrenceRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Occurrence

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    CreateOccurrenceRequest request = new CreateOccurrenceRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Occurrence = new Occurrence(),
    };
    // Make the request
    Occurrence response = grafeasClient.CreateOccurrence(request);
    

    CreateOccurrence(ProjectName, Occurrence, CallSettings)

    public virtual Occurrence CreateOccurrence(ProjectName parent, Occurrence occurrence, CallSettings callSettings = null)

    Creates a new occurrence.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

    occurrenceOccurrence

    The occurrence to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Occurrence

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Occurrence occurrence = new Occurrence();
    // Make the request
    Occurrence response = grafeasClient.CreateOccurrence(parent, occurrence);
    

    CreateOccurrence(string, Occurrence, CallSettings)

    public virtual Occurrence CreateOccurrence(string parent, Occurrence occurrence, CallSettings callSettings = null)

    Creates a new occurrence.

    Parameters
    NameDescription
    parentstring

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

    occurrenceOccurrence

    The occurrence to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Occurrence

    The RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Occurrence occurrence = new Occurrence();
    // Make the request
    Occurrence response = grafeasClient.CreateOccurrence(parent, occurrence);
    

    CreateOccurrenceAsync(CreateOccurrenceRequest, CallSettings)

    public virtual Task<Occurrence> CreateOccurrenceAsync(CreateOccurrenceRequest request, CallSettings callSettings = null)

    Creates a new occurrence.

    Parameters
    NameDescription
    requestCreateOccurrenceRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    TaskOccurrence

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    CreateOccurrenceRequest request = new CreateOccurrenceRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Occurrence = new Occurrence(),
    };
    // Make the request
    Occurrence response = await grafeasClient.CreateOccurrenceAsync(request);
    

    CreateOccurrenceAsync(CreateOccurrenceRequest, CancellationToken)

    public virtual Task<Occurrence> CreateOccurrenceAsync(CreateOccurrenceRequest request, CancellationToken cancellationToken)

    Creates a new occurrence.

    Parameters
    NameDescription
    requestCreateOccurrenceRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    TaskOccurrence

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    CreateOccurrenceRequest request = new CreateOccurrenceRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Occurrence = new Occurrence(),
    };
    // Make the request
    Occurrence response = await grafeasClient.CreateOccurrenceAsync(request);
    

    CreateOccurrenceAsync(ProjectName, Occurrence, CallSettings)

    public virtual Task<Occurrence> CreateOccurrenceAsync(ProjectName parent, Occurrence occurrence, CallSettings callSettings = null)

    Creates a new occurrence.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

    occurrenceOccurrence

    The occurrence to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    TaskOccurrence

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Occurrence occurrence = new Occurrence();
    // Make the request
    Occurrence response = await grafeasClient.CreateOccurrenceAsync(parent, occurrence);
    

    CreateOccurrenceAsync(ProjectName, Occurrence, CancellationToken)

    public virtual Task<Occurrence> CreateOccurrenceAsync(ProjectName parent, Occurrence occurrence, CancellationToken cancellationToken)

    Creates a new occurrence.

    Parameters
    NameDescription
    parentProjectName

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

    occurrenceOccurrence

    The occurrence to create.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    TaskOccurrence

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Occurrence occurrence = new Occurrence();
    // Make the request
    Occurrence response = await grafeasClient.CreateOccurrenceAsync(parent, occurrence);
    

    CreateOccurrenceAsync(string, Occurrence, CallSettings)

    public virtual Task<Occurrence> CreateOccurrenceAsync(string parent, Occurrence occurrence, CallSettings callSettings = null)

    Creates a new occurrence.

    Parameters
    NameDescription
    parentstring

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

    occurrenceOccurrence

    The occurrence to create.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    TaskOccurrence

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Occurrence occurrence = new Occurrence();
    // Make the request
    Occurrence response = await grafeasClient.CreateOccurrenceAsync(parent, occurrence);
    

    CreateOccurrenceAsync(string, Occurrence, CancellationToken)

    public virtual Task<Occurrence> CreateOccurrenceAsync(string parent, Occurrence occurrence, CancellationToken cancellationToken)

    Creates a new occurrence.

    Parameters
    NameDescription
    parentstring

    The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

    occurrenceOccurrence

    The occurrence to create.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    TaskOccurrence

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Occurrence occurrence = new Occurrence();
    // Make the request
    Occurrence response = await grafeasClient.CreateOccurrenceAsync(parent, occurrence);
    

    DeleteNote(DeleteNoteRequest, CallSettings)

    public virtual void DeleteNote(DeleteNoteRequest request, CallSettings callSettings = null)

    Deletes the specified note.

    Parameters
    NameDescription
    requestDeleteNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    DeleteNoteRequest request = new DeleteNoteRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
    };
    // Make the request
    grafeasClient.DeleteNote(request);
    

    DeleteNote(NoteName, CallSettings)

    public virtual void DeleteNote(NoteName name, CallSettings callSettings = null)

    Deletes the specified note.

    Parameters
    NameDescription
    nameNoteName

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    // Make the request
    grafeasClient.DeleteNote(name);
    

    DeleteNote(string, CallSettings)

    public virtual void DeleteNote(string name, CallSettings callSettings = null)

    Deletes the specified note.

    Parameters
    NameDescription
    namestring

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    // Make the request
    grafeasClient.DeleteNote(name);
    

    DeleteNoteAsync(DeleteNoteRequest, CallSettings)

    public virtual Task DeleteNoteAsync(DeleteNoteRequest request, CallSettings callSettings = null)

    Deletes the specified note.

    Parameters
    NameDescription
    requestDeleteNoteRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    DeleteNoteRequest request = new DeleteNoteRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
    };
    // Make the request
    await grafeasClient.DeleteNoteAsync(request);
    

    DeleteNoteAsync(DeleteNoteRequest, CancellationToken)

    public virtual Task DeleteNoteAsync(DeleteNoteRequest request, CancellationToken cancellationToken)

    Deletes the specified note.

    Parameters
    NameDescription
    requestDeleteNoteRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    DeleteNoteRequest request = new DeleteNoteRequest
    {
        NoteName = NoteName.FromProjectNote("[PROJECT]", "[NOTE]"),
    };
    // Make the request
    await grafeasClient.DeleteNoteAsync(request);
    

    DeleteNoteAsync(NoteName, CallSettings)

    public virtual Task DeleteNoteAsync(NoteName name, CallSettings callSettings = null)

    Deletes the specified note.

    Parameters
    NameDescription
    nameNoteName

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    // Make the request
    await grafeasClient.DeleteNoteAsync(name);
    

    DeleteNoteAsync(NoteName, CancellationToken)

    public virtual Task DeleteNoteAsync(NoteName name, CancellationToken cancellationToken)

    Deletes the specified note.

    Parameters
    NameDescription
    nameNoteName

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    NoteName name = NoteName.FromProjectNote("[PROJECT]", "[NOTE]");
    // Make the request
    await grafeasClient.DeleteNoteAsync(name);
    

    DeleteNoteAsync(string, CallSettings)

    public virtual Task DeleteNoteAsync(string name, CallSettings callSettings = null)

    Deletes the specified note.

    Parameters
    NameDescription
    namestring

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    // Make the request
    await grafeasClient.DeleteNoteAsync(name);
    

    DeleteNoteAsync(string, CancellationToken)

    public virtual Task DeleteNoteAsync(string name, CancellationToken cancellationToken)

    Deletes the specified note.

    Parameters
    NameDescription
    namestring

    The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/notes/[NOTE]";
    // Make the request
    await grafeasClient.DeleteNoteAsync(name);
    

    DeleteOccurrence(DeleteOccurrenceRequest, CallSettings)

    public virtual 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.

    Parameters
    NameDescription
    requestDeleteOccurrenceRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    DeleteOccurrenceRequest request = new DeleteOccurrenceRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
    };
    // Make the request
    grafeasClient.DeleteOccurrence(request);
    

    DeleteOccurrence(OccurrenceName, CallSettings)

    public virtual void DeleteOccurrence(OccurrenceName name, 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.

    Parameters
    NameDescription
    nameOccurrenceName

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    OccurrenceName name = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]");
    // Make the request
    grafeasClient.DeleteOccurrence(name);
    

    DeleteOccurrence(string, CallSettings)

    public virtual void DeleteOccurrence(string name, 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.

    Parameters
    NameDescription
    namestring

    The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/occurrences/[OCCURRENCE]";
    // Make the request
    grafeasClient.DeleteOccurrence(name);
    

    DeleteOccurrenceAsync(DeleteOccurrenceRequest, CallSettings)

    public virtual 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.

    Parameters
    NameDescription
    requestDeleteOccurrenceRequest

    The request object containing all of the parameters for the API call.

    callSettingsCallSettings

    If not null, applies overrides to this RPC call.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    DeleteOccurrenceRequest request = new DeleteOccurrenceRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
    };
    // Make the request
    await grafeasClient.DeleteOccurrenceAsync(request);
    

    DeleteOccurrenceAsync(DeleteOccurrenceRequest, CancellationToken)

    public virtual Task DeleteOccurrenceAsync(DeleteOccurrenceRequest request, CancellationToken cancellationToken)

    Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.

    Parameters
    NameDescription
    requestDeleteOccurrenceRequest

    The request object containing all of the parameters for the API call.

    cancellationTokenCancellationToken

    A CancellationToken to use for this RPC.

    Returns
    TypeDescription
    Task

    A Task containing the RPC response.

    Example
    // Create client
    GrafeasClient grafeasClient = new GrafeasClientBuilder { Endpoint = endpoint }.Build();
    // Initialize request argument(s)
    DeleteOccurrenceRequest request = new DeleteOccurrenceRequest
    {
        OccurrenceName = OccurrenceName.FromProjectOccurrence("[PROJECT]", "[OCCURRENCE]"),
    };
    // Make the request
    await grafeasClient.DeleteOccurrenceAsync(request);
    

    DeleteOccurrenceAsync(OccurrenceName, CallSettings)

    public virtual Task DeleteOccurrenceAsync(OccurrenceName name, 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.