Class GitlabPipelineApiConnector
- Namespace
- MES.MQC.DataSourceLibrary.Adapters.Apis
- Assembly
- MES.MQC.DataSourceLibrary.dll
public abstract class GitlabPipelineApiConnector : GitlabApiConnector, IFormProvider
- Inheritance
-
GitlabPipelineApiConnector
- Implements
- Derived
- Inherited Members
Methods
CheckAvailable(ApiConnectorContext)
CheckAvailable must be implemented by the Api Adapter class. This method is called to show a warning for configured but unavailable data sources in the UI.
public override bool CheckAvailable(ApiConnectorContext context)
Parameters
contextApiConnectorContextApiConnectorContext
Returns
- bool
boolean (is the api available/accessible)
CheckModified(ApiConnectorContext)
CheckModified must be implemented by the Api Adapter class. This method is called by the local and server side monitoring, to check if the data sources should be updated.
public override bool CheckModified(ApiConnectorContext context)
Parameters
contextApiConnectorContextApiConnectorContext
Returns
- bool
boolean (are there any changes)
LoadJobs(GitlabPipelineConfiguration, RestClient, GitlabPipeline)
protected GitlabPipelineApiConnector.GitlabJob[] LoadJobs(GitlabPipelineApiConnector.GitlabPipelineConfiguration configuration, RestClient client, GitlabPipelineApiConnector.GitlabPipeline pipeline)
Parameters
configurationGitlabPipelineApiConnector.GitlabPipelineConfigurationclientRestClientpipelineGitlabPipelineApiConnector.GitlabPipeline
Returns
LoadPipelines(ApiConnectorContext, GitlabPipelineConfiguration, RestClient, out DateTime, int?)
protected GitlabPipelineApiConnector.GitlabPipeline[] LoadPipelines(ApiConnectorContext context, GitlabPipelineApiConnector.GitlabPipelineConfiguration configuration, RestClient client, out DateTime responseDateTime, int? limit = null)
Parameters
contextApiConnectorContextconfigurationGitlabPipelineApiConnector.GitlabPipelineConfigurationclientRestClientresponseDateTimeDateTimelimitint?
Returns
LoadPipelines(GitlabPipelineConfiguration, RestClient, ProjectBranch, out DateTime, out int, int?, DateTime?, DateTime?, DateTime?)
protected GitlabPipelineApiConnector.GitlabPipeline[] LoadPipelines(GitlabPipelineApiConnector.GitlabPipelineConfiguration configuration, RestClient client, GitlabApiConnector.ProjectBranch projectBranch, out DateTime responseDateTime, out int totalCount, int? limit = null, DateTime? lastImportDate = null, DateTime? projectStartDate = null, DateTime? projectEndDate = null)
Parameters
configurationGitlabPipelineApiConnector.GitlabPipelineConfigurationclientRestClientprojectBranchGitlabApiConnector.ProjectBranchresponseDateTimeDateTimetotalCountintlimitint?lastImportDateDateTime?projectStartDateDateTime?projectEndDateDateTime?
Returns
PreviewForm(IForm, string, out int)
PreviewForm can be implemented by an API Connector. It is used to load the Preview, if one was defined in the AdapterConfiguration. Based on the focused form field, the Preview is shown in the Dialog and provides the ability to load by clicking on a button. This button click calls this method. Based on the configuration and the preview type, the api should load the relevant data, limited to ~100 for better performance, and a array of FormPreview should be returned.
public override FormPreview[] PreviewForm(IForm form, string preview, out int totalCount)
Parameters
formIFormIForm, the AdapterConfiguration
previewstringThe preview type (string)
totalCountintOutput of totalCount, if 0 shown as ? in the preview dialog
Returns
- FormPreview[]
Array of FormPreview, to show Title and optionally Description and DateTime