update compliance and content sources api
This commit is contained in:
parent
ce94f00fd1
commit
3034f48c39
4 changed files with 8022 additions and 6999 deletions
|
|
@ -4,3 +4,5 @@
|
|||
curl https://raw.githubusercontent.com/osbuild/image-builder/main/internal/v1/api.yaml -o ./api/schema/imageBuilder.yaml
|
||||
|
||||
curl https://console.redhat.com/api/compliance/v2/openapi.json -o ./api/schema/compliance.json
|
||||
|
||||
curl https://console.redhat.com/api/content-sources/v1/openapi.json -o ./api/schema/contentSources.json
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -116,7 +116,7 @@ export type ListRepositoriesApiArg = {
|
|||
uuid?: string;
|
||||
/** Sort the response data based on specific repository parameters. Sort criteria can include `name`, `url`, `status`, and `package_count`. */
|
||||
sortBy?: string;
|
||||
/** A comma separated list of statuses to control api response. Statuses can include `pending`, `valid`, `invalid`, `unavailable`. */
|
||||
/** A comma separated list of statuses to control api response. Statuses can include `Pending`, `Valid`, `Invalid`, `Unavailable`. */
|
||||
status?: string;
|
||||
/** A comma separated list of origins to filter api response. Origins can include `red_hat` and `external`. */
|
||||
origin?: string;
|
||||
|
|
@ -209,8 +209,12 @@ export type ApiSnapshotResponse = {
|
|||
removed_counts?: {
|
||||
[key: string]: number;
|
||||
};
|
||||
/** Name of repository the snapshot belongs to */
|
||||
repository_name?: string;
|
||||
/** Path to repository snapshot contents */
|
||||
repository_path?: string;
|
||||
/** UUID of the repository the snapshot belongs to */
|
||||
repository_uuid?: string;
|
||||
/** URL to the snapshot's content */
|
||||
url?: string;
|
||||
uuid?: string;
|
||||
|
|
@ -218,16 +222,22 @@ export type ApiSnapshotResponse = {
|
|||
export type ApiTaskInfoResponse = {
|
||||
/** Timestamp of task creation */
|
||||
created_at?: string;
|
||||
/** UUIDs of parent tasks */
|
||||
dependencies?: string[];
|
||||
/** UUIDs of child tasks */
|
||||
dependents?: string[];
|
||||
/** Timestamp task ended running at */
|
||||
ended_at?: string;
|
||||
/** Error thrown while running task */
|
||||
error?: string;
|
||||
/** Name of the associated repository or template */
|
||||
object_name?: string;
|
||||
/** Type of the associated object, either repository or template */
|
||||
object_type?: string;
|
||||
/** UUID of the associated repository or template */
|
||||
object_uuid?: string;
|
||||
/** Organization ID of the owner */
|
||||
org_id?: string;
|
||||
/** Name of the associated repository */
|
||||
repository_name?: string;
|
||||
/** UUID of the associated repository */
|
||||
repository_uuid?: string;
|
||||
/** Status of task (running, failed, completed, canceled, pending) */
|
||||
status?: string;
|
||||
/** Type of task */
|
||||
|
|
@ -381,6 +391,26 @@ export type ApiRepositoryRequest = {
|
|||
/** URL of the remote yum repository */
|
||||
url?: string;
|
||||
};
|
||||
export type ApiRepositoryRequestRead = {
|
||||
/** Architecture to restrict client usage to */
|
||||
distribution_arch?: string;
|
||||
/** Versions to restrict client usage to */
|
||||
distribution_versions?: string[];
|
||||
/** GPG key for repository */
|
||||
gpg_key?: string;
|
||||
/** Verify packages */
|
||||
metadata_verification?: boolean;
|
||||
/** Disable modularity filtering on this repository */
|
||||
module_hotfixes?: boolean;
|
||||
/** Name of the remote yum repository */
|
||||
name?: string;
|
||||
/** Origin of the repository */
|
||||
origin?: string;
|
||||
/** Enable snapshotting and hosting of this repository */
|
||||
snapshot?: boolean;
|
||||
/** URL of the remote yum repository */
|
||||
url?: string;
|
||||
};
|
||||
export type ApiRepositoryRpm = {
|
||||
/** The architecture of the rpm */
|
||||
arch?: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue