openapi: update image builder yaml to latest@main
Update the yaml openapi representation from the latest version on image builder's repo commit 0ebf2401589b8f8d88d37aebbef17c009160bc7f
This commit is contained in:
parent
45b717bc27
commit
108f0bc017
2 changed files with 67 additions and 59 deletions
|
|
@ -602,7 +602,8 @@ components:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
request: {}
|
request:
|
||||||
|
$ref: "#/components/schemas/ComposeRequest"
|
||||||
created_at:
|
created_at:
|
||||||
type: string
|
type: string
|
||||||
image_name:
|
image_name:
|
||||||
|
|
@ -1028,7 +1029,8 @@ components:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
request: {}
|
request:
|
||||||
|
$ref: '#/components/schemas/CloneRequest'
|
||||||
created_at:
|
created_at:
|
||||||
type: string
|
type: string
|
||||||
CloneRequest:
|
CloneRequest:
|
||||||
|
|
|
||||||
|
|
@ -116,62 +116,6 @@ export type ArchitectureItem = {
|
||||||
repositories: Repository[];
|
repositories: Repository[];
|
||||||
};
|
};
|
||||||
export type Architectures = ArchitectureItem[];
|
export type Architectures = ArchitectureItem[];
|
||||||
export type ComposesResponseItem = {
|
|
||||||
id: string;
|
|
||||||
request: any;
|
|
||||||
created_at: string;
|
|
||||||
image_name?: string;
|
|
||||||
};
|
|
||||||
export type ComposesResponse = {
|
|
||||||
meta: {
|
|
||||||
count: number;
|
|
||||||
};
|
|
||||||
links: {
|
|
||||||
first: string;
|
|
||||||
last: string;
|
|
||||||
};
|
|
||||||
data: ComposesResponseItem[];
|
|
||||||
};
|
|
||||||
export type UploadTypes = "aws" | "gcp" | "azure" | "aws.s3";
|
|
||||||
export type AwsUploadStatus = {
|
|
||||||
ami: string;
|
|
||||||
region: string;
|
|
||||||
};
|
|
||||||
export type Awss3UploadStatus = {
|
|
||||||
url: string;
|
|
||||||
};
|
|
||||||
export type GcpUploadStatus = {
|
|
||||||
project_id: string;
|
|
||||||
image_name: string;
|
|
||||||
};
|
|
||||||
export type AzureUploadStatus = {
|
|
||||||
image_name: string;
|
|
||||||
};
|
|
||||||
export type UploadStatus = {
|
|
||||||
status: "success" | "failure" | "pending" | "running";
|
|
||||||
type: UploadTypes;
|
|
||||||
options:
|
|
||||||
| AwsUploadStatus
|
|
||||||
| Awss3UploadStatus
|
|
||||||
| GcpUploadStatus
|
|
||||||
| AzureUploadStatus;
|
|
||||||
};
|
|
||||||
export type ComposeStatusError = {
|
|
||||||
id: number;
|
|
||||||
reason: string;
|
|
||||||
details?: any;
|
|
||||||
};
|
|
||||||
export type ImageStatus = {
|
|
||||||
status:
|
|
||||||
| "success"
|
|
||||||
| "failure"
|
|
||||||
| "pending"
|
|
||||||
| "building"
|
|
||||||
| "uploading"
|
|
||||||
| "registering";
|
|
||||||
upload_status?: UploadStatus;
|
|
||||||
error?: ComposeStatusError;
|
|
||||||
};
|
|
||||||
export type Distributions =
|
export type Distributions =
|
||||||
| "rhel-8"
|
| "rhel-8"
|
||||||
| "rhel-8-nightly"
|
| "rhel-8-nightly"
|
||||||
|
|
@ -205,6 +149,7 @@ export type ImageTypes =
|
||||||
| "rhel-edge-commit"
|
| "rhel-edge-commit"
|
||||||
| "rhel-edge-installer"
|
| "rhel-edge-installer"
|
||||||
| "vhd";
|
| "vhd";
|
||||||
|
export type UploadTypes = "aws" | "gcp" | "azure" | "aws.s3";
|
||||||
export type AwsUploadRequestOptions = {
|
export type AwsUploadRequestOptions = {
|
||||||
share_with_accounts?: string[];
|
share_with_accounts?: string[];
|
||||||
share_with_sources?: string[];
|
share_with_sources?: string[];
|
||||||
|
|
@ -291,13 +236,74 @@ export type ComposeRequest = {
|
||||||
image_requests: ImageRequest[];
|
image_requests: ImageRequest[];
|
||||||
customizations?: Customizations;
|
customizations?: Customizations;
|
||||||
};
|
};
|
||||||
|
export type ComposesResponseItem = {
|
||||||
|
id: string;
|
||||||
|
request: ComposeRequest;
|
||||||
|
created_at: string;
|
||||||
|
image_name?: string;
|
||||||
|
};
|
||||||
|
export type ComposesResponse = {
|
||||||
|
meta: {
|
||||||
|
count: number;
|
||||||
|
};
|
||||||
|
links: {
|
||||||
|
first: string;
|
||||||
|
last: string;
|
||||||
|
};
|
||||||
|
data: ComposesResponseItem[];
|
||||||
|
};
|
||||||
|
export type AwsUploadStatus = {
|
||||||
|
ami: string;
|
||||||
|
region: string;
|
||||||
|
};
|
||||||
|
export type Awss3UploadStatus = {
|
||||||
|
url: string;
|
||||||
|
};
|
||||||
|
export type GcpUploadStatus = {
|
||||||
|
project_id: string;
|
||||||
|
image_name: string;
|
||||||
|
};
|
||||||
|
export type AzureUploadStatus = {
|
||||||
|
image_name: string;
|
||||||
|
};
|
||||||
|
export type UploadStatus = {
|
||||||
|
status: "success" | "failure" | "pending" | "running";
|
||||||
|
type: UploadTypes;
|
||||||
|
options:
|
||||||
|
| AwsUploadStatus
|
||||||
|
| Awss3UploadStatus
|
||||||
|
| GcpUploadStatus
|
||||||
|
| AzureUploadStatus;
|
||||||
|
};
|
||||||
|
export type ComposeStatusError = {
|
||||||
|
id: number;
|
||||||
|
reason: string;
|
||||||
|
details?: any;
|
||||||
|
};
|
||||||
|
export type ImageStatus = {
|
||||||
|
status:
|
||||||
|
| "success"
|
||||||
|
| "failure"
|
||||||
|
| "pending"
|
||||||
|
| "building"
|
||||||
|
| "uploading"
|
||||||
|
| "registering";
|
||||||
|
upload_status?: UploadStatus;
|
||||||
|
error?: ComposeStatusError;
|
||||||
|
};
|
||||||
export type ComposeStatus = {
|
export type ComposeStatus = {
|
||||||
image_status: ImageStatus;
|
image_status: ImageStatus;
|
||||||
request: ComposeRequest;
|
request: ComposeRequest;
|
||||||
};
|
};
|
||||||
|
export type Awsec2Clone = {
|
||||||
|
region: string;
|
||||||
|
share_with_accounts?: string[];
|
||||||
|
share_with_sources?: string[];
|
||||||
|
};
|
||||||
|
export type CloneRequest = Awsec2Clone;
|
||||||
export type ClonesResponseItem = {
|
export type ClonesResponseItem = {
|
||||||
id: string;
|
id: string;
|
||||||
request: any;
|
request: CloneRequest;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
};
|
};
|
||||||
export type ClonesResponse = {
|
export type ClonesResponse = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue