Grafeas v1 API - Class Grafeas.GrafeasBase (3.7.0)

[BindServiceMethod(typeof(Grafeas), "BindService")]
public abstract class Grafeas.GrafeasBase

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

Base class for server-side implementations of Grafeas

Inheritance

object > Grafeas.GrafeasBase

Namespace

Grafeas.V1

Assembly

Grafeas.V1.dll

Methods

BatchCreateNotes(BatchCreateNotesRequest, ServerCallContext)

public virtual Task<BatchCreateNotesResponse> BatchCreateNotes(BatchCreateNotesRequest request, ServerCallContext context)

Creates new notes in batch.

Parameters
Name Description
request BatchCreateNotesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskBatchCreateNotesResponse

The response to send back to the client (wrapped by a task).

BatchCreateOccurrences(BatchCreateOccurrencesRequest, ServerCallContext)

public virtual Task<BatchCreateOccurrencesResponse> BatchCreateOccurrences(BatchCreateOccurrencesRequest request, ServerCallContext context)

Creates new occurrences in batch.

Parameters
Name Description
request BatchCreateOccurrencesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskBatchCreateOccurrencesResponse

The response to send back to the client (wrapped by a task).

CreateNote(CreateNoteRequest, ServerCallContext)

public virtual Task<Note> CreateNote(CreateNoteRequest request, ServerCallContext context)

Creates a new note.

Parameters
Name Description
request CreateNoteRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskNote

The response to send back to the client (wrapped by a task).

CreateOccurrence(CreateOccurrenceRequest, ServerCallContext)

public virtual Task<Occurrence> CreateOccurrence(CreateOccurrenceRequest request, ServerCallContext context)

Creates a new occurrence.

Parameters
Name Description
request CreateOccurrenceRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOccurrence

The response to send back to the client (wrapped by a task).

DeleteNote(DeleteNoteRequest, ServerCallContext)

public virtual Task<Empty> DeleteNote(DeleteNoteRequest request, ServerCallContext context)

Deletes the specified note.

Parameters
Name Description
request DeleteNoteRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskEmpty

The response to send back to the client (wrapped by a task).

DeleteOccurrence(DeleteOccurrenceRequest, ServerCallContext)

public virtual Task<Empty> DeleteOccurrence(DeleteOccurrenceRequest request, ServerCallContext context)

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
Name Description
request DeleteOccurrenceRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskEmpty

The response to send back to the client (wrapped by a task).

GetNote(GetNoteRequest, ServerCallContext)

public virtual Task<Note> GetNote(GetNoteRequest request, ServerCallContext context)

Gets the specified note.

Parameters
Name Description
request GetNoteRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskNote

The response to send back to the client (wrapped by a task).

GetOccurrence(GetOccurrenceRequest, ServerCallContext)

public virtual Task<Occurrence> GetOccurrence(GetOccurrenceRequest request, ServerCallContext context)

Gets the specified occurrence.

Parameters
Name Description
request GetOccurrenceRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOccurrence

The response to send back to the client (wrapped by a task).

GetOccurrenceNote(GetOccurrenceNoteRequest, ServerCallContext)

public virtual Task<Note> GetOccurrenceNote(GetOccurrenceNoteRequest request, ServerCallContext context)

Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.

Parameters
Name Description
request GetOccurrenceNoteRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskNote

The response to send back to the client (wrapped by a task).

ListNoteOccurrences(ListNoteOccurrencesRequest, ServerCallContext)

public virtual Task<ListNoteOccurrencesResponse> ListNoteOccurrences(ListNoteOccurrencesRequest request, ServerCallContext context)

Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.

Parameters
Name Description
request ListNoteOccurrencesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListNoteOccurrencesResponse

The response to send back to the client (wrapped by a task).

ListNotes(ListNotesRequest, ServerCallContext)

public virtual Task<ListNotesResponse> ListNotes(ListNotesRequest request, ServerCallContext context)

Lists notes for the specified project.

Parameters
Name Description
request ListNotesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListNotesResponse

The response to send back to the client (wrapped by a task).

ListOccurrences(ListOccurrencesRequest, ServerCallContext)

public virtual Task<ListOccurrencesResponse> ListOccurrences(ListOccurrencesRequest request, ServerCallContext context)

Lists occurrences for the specified project.

Parameters
Name Description
request ListOccurrencesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListOccurrencesResponse

The response to send back to the client (wrapped by a task).

UpdateNote(UpdateNoteRequest, ServerCallContext)

public virtual Task<Note> UpdateNote(UpdateNoteRequest request, ServerCallContext context)

Updates the specified note.

Parameters
Name Description
request UpdateNoteRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskNote

The response to send back to the client (wrapped by a task).

UpdateOccurrence(UpdateOccurrenceRequest, ServerCallContext)

public virtual Task<Occurrence> UpdateOccurrence(UpdateOccurrenceRequest request, ServerCallContext context)

Updates the specified occurrence.

Parameters
Name Description
request UpdateOccurrenceRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOccurrence

The response to send back to the client (wrapped by a task).