ValidationApi Type
Client for ARC validation (CQC) results. Every ARC on a DataHub has a
cqc branch holding the output of validation package runs, one folder
per validated ARC branch, containing one <name>@<version>
folder per package with badge.svg, validation_report.xml, and
validation_summary.json. See the
.
All methods default ref to the cqc branch head; pass a commit
SHA from ListHistoryAsync to read results from any point in the
branch history.
Constructors
| Constructor |
Description
|
Full Usage:
ValidationApi(baseUrl, auth, http)
Parameters:
string
auth : Authentication
http : IHttpClient
Returns: ValidationApi
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.GetAllSummariesAsync
Parameters:
int
-
The project identifier.
?branch : string
-
The validated ARC branch. Defaults to main.
?ref : string
-
The results branch or commit SHA to read from. Defaults to cqc.
Returns: Async<ResizeArray<ValidationSummary>>
|
Discovers the packages validated for an ARC branch and fetches every package's summary.
|
Full Usage:
this.GetBadgeAsync
Parameters:
int
-
The project identifier.
package : ValidationPackageRef
-
The validation package whose results to read.
?ref : string
-
The results branch or commit SHA to read from. Defaults to cqc.
Returns: Async<string>
|
Gets a package's
|
Full Usage:
this.GetReportAsync
Parameters:
int
-
The project identifier.
package : ValidationPackageRef
-
The validation package whose results to read.
?ref : string
-
The results branch or commit SHA to read from. Defaults to cqc.
Returns: Async<string>
|
Gets a package's
|
Full Usage:
this.GetSummaryAsync
Parameters:
int
-
The project identifier.
package : ValidationPackageRef
-
The validation package whose results to read.
?ref : string
-
The results branch or commit SHA to read from. Defaults to cqc.
Returns: Async<ValidationSummary>
|
Gets a package's
|
Full Usage:
this.ListHistoryAsync
Parameters:
int
-
The project identifier.
?branch : string
-
Optional validated ARC branch used to scope the history to that branch's result folder.
?ref : string
-
The results branch (or SHA to start from). Defaults to cqc.
Returns: Async<ResizeArray<Commit>>
|
Lists the commits of the cqc branch, newest first. Each SHA can be passed as
|
Full Usage:
this.ListPackagesAsync
Parameters:
int
-
The project identifier.
?branch : string
-
The validated ARC branch. Defaults to main.
?ref : string
-
The results branch or commit SHA to read from. Defaults to cqc.
Returns: Async<ResizeArray<ValidationPackageRef>>
|
Lists the validation packages that produced results for an ARC branch, parsed from the
|
Full Usage:
this.ListValidatedBranchesAsync
Parameters:
int
-
The project identifier.
?ref : string
-
The results branch or commit SHA to read from. Defaults to cqc.
Returns: Async<ResizeArray<string>>
|
Lists the ARC branches that have validation results — the top-level folders of the cqc branch (usually just
|
DataHubClient