Table of Contents

Interface ISourcesClient

Namespace
Nexus.Api.V1
Assembly
Nexus.Api.dll

Provides methods to interact with sources.

public interface ISourcesClient

Methods

CreatePipeline(DataSourcePipeline)

Creates a data source pipeline.

Guid CreatePipeline(DataSourcePipeline pipeline)

Parameters

pipeline DataSourcePipeline

The pipeline to create.

Returns

Guid

CreatePipelineAsync(DataSourcePipeline, CancellationToken)

Creates a data source pipeline.

Task<Guid> CreatePipelineAsync(DataSourcePipeline pipeline, CancellationToken cancellationToken = default)

Parameters

pipeline DataSourcePipeline

The pipeline to create.

cancellationToken CancellationToken

The token to cancel the current operation.

Returns

Task<Guid>

DeletePipeline(Guid)

Deletes a data source pipeline.

HttpResponseMessage DeletePipeline(Guid pipelineId)

Parameters

pipelineId Guid

The identifier of the pipeline to delete.

Returns

HttpResponseMessage

DeletePipelineAsync(Guid, CancellationToken)

Deletes a data source pipeline.

Task<HttpResponseMessage> DeletePipelineAsync(Guid pipelineId, CancellationToken cancellationToken = default)

Parameters

pipelineId Guid

The identifier of the pipeline to delete.

cancellationToken CancellationToken

The token to cancel the current operation.

Returns

Task<HttpResponseMessage>

GetDescriptions()

Gets the list of source descriptions.

IReadOnlyList<ExtensionDescription> GetDescriptions()

Returns

IReadOnlyList<ExtensionDescription>

GetDescriptionsAsync(CancellationToken)

Gets the list of source descriptions.

Task<IReadOnlyList<ExtensionDescription>> GetDescriptionsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The token to cancel the current operation.

Returns

Task<IReadOnlyList<ExtensionDescription>>

GetPipelines()

Gets the list of data source pipelines.

IReadOnlyDictionary<string, DataSourcePipeline> GetPipelines()

Returns

IReadOnlyDictionary<string, DataSourcePipeline>

GetPipelinesAsync(CancellationToken)

Gets the list of data source pipelines.

Task<IReadOnlyDictionary<string, DataSourcePipeline>> GetPipelinesAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The token to cancel the current operation.

Returns

Task<IReadOnlyDictionary<string, DataSourcePipeline>>

UpdatePipeline(Guid, DataSourcePipeline)

Updates a data source pipeline.

HttpResponseMessage UpdatePipeline(Guid pipelineId, DataSourcePipeline pipeline)

Parameters

pipelineId Guid

The identifier of the pipeline to update.

pipeline DataSourcePipeline

The new pipeline.

Returns

HttpResponseMessage

UpdatePipelineAsync(Guid, DataSourcePipeline, CancellationToken)

Updates a data source pipeline.

Task<HttpResponseMessage> UpdatePipelineAsync(Guid pipelineId, DataSourcePipeline pipeline, CancellationToken cancellationToken = default)

Parameters

pipelineId Guid

The identifier of the pipeline to update.

pipeline DataSourcePipeline

The new pipeline.

cancellationToken CancellationToken

The token to cancel the current operation.

Returns

Task<HttpResponseMessage>