store: Run code generation after codegen-openapi version bump
These changes were made by running `npm run api` after a version bump of @rtk-query/codegen-openapi from 1.0.0 to 1.2.0
This commit is contained in:
parent
812e5faea9
commit
2ae670bf35
4 changed files with 194 additions and 3 deletions
|
|
@ -43,7 +43,7 @@ const injectedRtkApi = api.injectEndpoints({
|
|||
});
|
||||
export { injectedRtkApi as contentSourcesApi };
|
||||
export type ListRepositoriesApiResponse =
|
||||
/** status 200 OK */ ApiRepositoryCollectionResponse;
|
||||
/** status 200 OK */ ApiRepositoryCollectionResponseRead;
|
||||
export type ListRepositoriesApiArg = {
|
||||
/** Offset into the list of results to return in the response */
|
||||
offset?: number;
|
||||
|
|
@ -87,77 +87,168 @@ export type ListRepositoriesRpmsApiArg = {
|
|||
sortBy?: string;
|
||||
};
|
||||
export type ApiSnapshotResponse = {
|
||||
/** Count of each content type */
|
||||
added_counts?: {
|
||||
[key: string]: number;
|
||||
};
|
||||
/** Count of each content type */
|
||||
content_counts?: {
|
||||
[key: string]: number;
|
||||
};
|
||||
/** Datetime the snapshot was created */
|
||||
created_at?: string;
|
||||
/** Count of each content type */
|
||||
removed_counts?: {
|
||||
[key: string]: number;
|
||||
};
|
||||
/** Path to repository snapshot contents */
|
||||
repository_path?: string;
|
||||
};
|
||||
export type ApiRepositoryResponse = {
|
||||
account_id?: string;
|
||||
/** Content Type (rpm) of the repository */
|
||||
content_type?: string;
|
||||
/** Architecture to restrict client usage to */
|
||||
distribution_arch?: string;
|
||||
/** Versions to restrict client usage to */
|
||||
distribution_versions?: string[];
|
||||
/** Number of consecutive failed introspections */
|
||||
failed_introspections_count?: number;
|
||||
/** GPG key for repository */
|
||||
gpg_key?: string;
|
||||
/** Error of last attempted introspection */
|
||||
last_introspection_error?: string;
|
||||
/** Timestamp of last attempted introspection */
|
||||
last_introspection_time?: string;
|
||||
last_snapshot?: ApiSnapshotResponse;
|
||||
/** UUID of the last snapshot task */
|
||||
last_snapshot_task_uuid?: string;
|
||||
/** UUID of the last dao.Snapshot */
|
||||
last_snapshot_uuid?: string;
|
||||
/** Timestamp of last successful introspection */
|
||||
last_success_introspection_time?: string;
|
||||
/** Timestamp of last introspection that had updates */
|
||||
last_update_introspection_time?: string;
|
||||
/** Verify packages */
|
||||
metadata_verification?: boolean;
|
||||
/** Name of the remote yum repository */
|
||||
name?: string;
|
||||
org_id?: string;
|
||||
/** Origin of the repository */
|
||||
origin?: string;
|
||||
/** Number of packages last read in the repository */
|
||||
package_count?: number;
|
||||
/** Enable snapshotting and hosting of this repository */
|
||||
snapshot?: boolean;
|
||||
/** Status of repository introspection (Valid, Invalid, Unavailable, Pending) */
|
||||
status?: string;
|
||||
/** URL of the remote yum repository */
|
||||
url?: string;
|
||||
};
|
||||
export type ApiRepositoryResponseRead = {
|
||||
/** Account ID of the owner */
|
||||
account_id?: string;
|
||||
/** Content Type (rpm) of the repository */
|
||||
content_type?: string;
|
||||
/** Architecture to restrict client usage to */
|
||||
distribution_arch?: string;
|
||||
/** Versions to restrict client usage to */
|
||||
distribution_versions?: string[];
|
||||
/** Number of consecutive failed introspections */
|
||||
failed_introspections_count?: number;
|
||||
/** GPG key for repository */
|
||||
gpg_key?: string;
|
||||
/** Error of last attempted introspection */
|
||||
last_introspection_error?: string;
|
||||
/** Timestamp of last attempted introspection */
|
||||
last_introspection_time?: string;
|
||||
last_snapshot?: ApiSnapshotResponse;
|
||||
/** UUID of the last snapshot task */
|
||||
last_snapshot_task_uuid?: string;
|
||||
/** UUID of the last dao.Snapshot */
|
||||
last_snapshot_uuid?: string;
|
||||
/** Timestamp of last successful introspection */
|
||||
last_success_introspection_time?: string;
|
||||
/** Timestamp of last introspection that had updates */
|
||||
last_update_introspection_time?: string;
|
||||
/** Verify packages */
|
||||
metadata_verification?: boolean;
|
||||
/** Name of the remote yum repository */
|
||||
name?: string;
|
||||
/** Organization ID of the owner */
|
||||
org_id?: string;
|
||||
/** Origin of the repository */
|
||||
origin?: string;
|
||||
/** Number of packages last read in the repository */
|
||||
package_count?: number;
|
||||
/** Enable snapshotting and hosting of this repository */
|
||||
snapshot?: boolean;
|
||||
/** Status of repository introspection (Valid, Invalid, Unavailable, Pending) */
|
||||
status?: string;
|
||||
/** URL of the remote yum repository */
|
||||
url?: string;
|
||||
/** UUID of the object */
|
||||
uuid?: string;
|
||||
};
|
||||
export type ApiLinks = {
|
||||
/** Path to first page of results */
|
||||
first?: string;
|
||||
/** Path to last page of results */
|
||||
last?: string;
|
||||
/** Path to next page of results */
|
||||
next?: string;
|
||||
/** Path to previous page of results */
|
||||
prev?: string;
|
||||
};
|
||||
export type ApiResponseMetadata = {
|
||||
/** Total count of results */
|
||||
count?: number;
|
||||
/** Limit of results used for the request */
|
||||
limit?: number;
|
||||
/** Offset into results used for the request */
|
||||
offset?: number;
|
||||
};
|
||||
export type ApiRepositoryCollectionResponse = {
|
||||
/** Requested Data */
|
||||
data?: ApiRepositoryResponse[];
|
||||
links?: ApiLinks;
|
||||
meta?: ApiResponseMetadata;
|
||||
};
|
||||
export type ApiRepositoryCollectionResponseRead = {
|
||||
/** Requested Data */
|
||||
data?: ApiRepositoryResponseRead[];
|
||||
links?: ApiLinks;
|
||||
meta?: ApiResponseMetadata;
|
||||
};
|
||||
export type ErrorsHandlerError = {
|
||||
/** An explanation specific to the problem */
|
||||
detail?: string;
|
||||
/** HTTP status code applicable to the error */
|
||||
status?: number;
|
||||
/** A summary of the problem */
|
||||
title?: string;
|
||||
};
|
||||
export type ErrorsErrorResponse = {
|
||||
errors?: ErrorsHandlerError[];
|
||||
};
|
||||
export type ApiRepositoryRpm = {
|
||||
/** The Architecture of the rpm */
|
||||
arch?: string;
|
||||
/** The checksum of the rpm */
|
||||
checksum?: string;
|
||||
/** The epoch of the rpm */
|
||||
epoch?: number;
|
||||
/** The rpm package name */
|
||||
name?: string;
|
||||
/** The release of the rpm */
|
||||
release?: string;
|
||||
/** The summary of the rpm */
|
||||
summary?: string;
|
||||
/** Identifier of the rpm */
|
||||
uuid?: string;
|
||||
/** The version of the rpm */
|
||||
version?: string;
|
||||
};
|
||||
export type ApiRepositoryRpmCollectionResponse = {
|
||||
/** List of rpms */
|
||||
data?: ApiRepositoryRpm[];
|
||||
links?: ApiLinks;
|
||||
meta?: ApiResponseMetadata;
|
||||
|
|
|
|||
|
|
@ -299,10 +299,12 @@ export type GetImageByOstreeApiArg = {
|
|||
};
|
||||
export type ModelsEdgeApiTime = {
|
||||
time?: string;
|
||||
/** Valid is true if Time is not NULL */
|
||||
valid?: boolean;
|
||||
};
|
||||
export type GormDeletedAt = {
|
||||
time?: string;
|
||||
/** Valid is true if Time is not NULL */
|
||||
valid?: boolean;
|
||||
};
|
||||
export type ModelsInstalledPackage = {
|
||||
|
|
@ -403,7 +405,9 @@ export type ModelsImage = {
|
|||
Description?: string;
|
||||
Distribution?: string;
|
||||
ID?: number;
|
||||
/** TODO: Wipe staging database and set to not nullable */
|
||||
ImageSetID?: number;
|
||||
/** TODO: Remove as soon as the frontend stops using */
|
||||
ImageType?: string;
|
||||
Installer?: ModelsInstaller;
|
||||
InstallerID?: number;
|
||||
|
|
@ -411,29 +415,39 @@ export type ModelsImage = {
|
|||
OutputTypes?: string[];
|
||||
Packages?: ModelsPackage[];
|
||||
Status?: string;
|
||||
/** only for forms */
|
||||
SystemsRunning?: number;
|
||||
ThirdPartyRepositories?: ModelsThirdPartyRepo[];
|
||||
/** only for forms */
|
||||
TotalPackages?: number;
|
||||
UpdatedAt?: ModelsEdgeApiTime;
|
||||
Version?: number;
|
||||
org_id?: string;
|
||||
/** storing for logging reference on resume */
|
||||
request_id?: string;
|
||||
};
|
||||
export type ModelsImageSetApi = {
|
||||
CreatedAt?: ModelsEdgeApiTime;
|
||||
DeletedAt?: GormDeletedAt;
|
||||
ID?: number;
|
||||
/** images of image set */
|
||||
Images?: ModelsImage[];
|
||||
UpdatedAt?: ModelsEdgeApiTime;
|
||||
/** the image set name */
|
||||
name?: string;
|
||||
/** the image set version */
|
||||
version?: number;
|
||||
};
|
||||
export type ModelsImageSetInstallerUrlapi = {
|
||||
/** The image-set latest available image ISO */
|
||||
image_build_iso_url?: string;
|
||||
/** image set data */
|
||||
image_set?: ModelsImageSetApi;
|
||||
};
|
||||
export type ModelsImageSetsResponseApi = {
|
||||
/** count of image-sets */
|
||||
Count?: number;
|
||||
/** all data of image-sets */
|
||||
Data?: ModelsImageSetInstallerUrlapi[];
|
||||
};
|
||||
export type ErrorsBadRequest = {
|
||||
|
|
@ -463,20 +477,30 @@ export type ModelsImageSetView = {
|
|||
Version?: number;
|
||||
};
|
||||
export type ModelsImageSetsViewResponseApi = {
|
||||
/** count of image-sets */
|
||||
count?: number;
|
||||
/** data of image set view */
|
||||
data?: ModelsImageSetView[];
|
||||
};
|
||||
export type ModelsImageDetailApi = {
|
||||
/** Number of additional packages */
|
||||
additional_packages?: number;
|
||||
image?: ModelsImage;
|
||||
/** Number of packages */
|
||||
packages?: number;
|
||||
/** Number of added update */
|
||||
update_added?: number;
|
||||
/** Number of removed update */
|
||||
update_removed?: number;
|
||||
/** Number of updated update */
|
||||
update_updated?: number;
|
||||
};
|
||||
export type ModelsImageSetImageIdViewApi = {
|
||||
/** The image-set latest available image ISO */
|
||||
ImageBuildIsoURL?: string;
|
||||
/** the requested image details */
|
||||
ImageDetails?: ModelsImageDetailApi;
|
||||
/** image set data */
|
||||
ImageSet?: ModelsImageSetApi;
|
||||
};
|
||||
export type ModelsImageView = {
|
||||
|
|
@ -491,6 +515,7 @@ export type ModelsImageView = {
|
|||
Version?: number;
|
||||
};
|
||||
export type ModelsImagesViewDataApi = {
|
||||
/** total number of image view data */
|
||||
count?: number;
|
||||
data?: ModelsImageView[];
|
||||
};
|
||||
|
|
@ -505,7 +530,9 @@ export type ImageResponse = {
|
|||
Description?: string;
|
||||
Distribution?: string;
|
||||
ID?: number;
|
||||
/** TODO: Wipe staging database and set to not nullable */
|
||||
ImageSetID?: number;
|
||||
/** TODO: Remove as soon as the frontend stops using */
|
||||
ImageType?: string;
|
||||
Installer?: ModelsInstaller;
|
||||
InstallerID?: number;
|
||||
|
|
@ -513,12 +540,15 @@ export type ImageResponse = {
|
|||
OutputTypes?: string[];
|
||||
Packages?: ModelsPackage[];
|
||||
Status?: string;
|
||||
/** only for forms */
|
||||
SystemsRunning?: number;
|
||||
ThirdPartyRepositories?: ModelsThirdPartyRepo[];
|
||||
/** only for forms */
|
||||
TotalPackages?: number;
|
||||
UpdatedAt?: ModelsEdgeApiTime;
|
||||
Version?: number;
|
||||
org_id?: string;
|
||||
/** storing for logging reference on resume */
|
||||
request_id?: string;
|
||||
};
|
||||
export type CreateImage = object;
|
||||
|
|
|
|||
|
|
@ -172,12 +172,15 @@ export type Repository = {
|
|||
metalink?: string;
|
||||
gpgkey?: string;
|
||||
check_gpg?: boolean;
|
||||
/** Enables gpg verification of the repository metadata
|
||||
*/
|
||||
check_repo_gpg?: boolean;
|
||||
ignore_ssl?: boolean;
|
||||
};
|
||||
export type ArchitectureItem = {
|
||||
arch: string;
|
||||
image_types: string[];
|
||||
/** Base repositories for the given distribution and architecture. */
|
||||
repositories: Repository[];
|
||||
};
|
||||
export type Architectures = ArchitectureItem[];
|
||||
|
|
@ -238,13 +241,43 @@ export type AwsUploadRequestOptions = {
|
|||
};
|
||||
export type Awss3UploadRequestOptions = object;
|
||||
export type GcpUploadRequestOptions = {
|
||||
/** List of valid Google accounts to share the imported Compute Node image with.
|
||||
Each string must contain a specifier of the account type. Valid formats are:
|
||||
- 'user:{emailid}': An email address that represents a specific
|
||||
Google account. For example, 'alice@example.com'.
|
||||
- 'serviceAccount:{emailid}': An email address that represents a
|
||||
service account. For example, 'my-other-app@appspot.gserviceaccount.com'.
|
||||
- 'group:{emailid}': An email address that represents a Google group.
|
||||
For example, 'admins@example.com'.
|
||||
- 'domain:{domain}': The G Suite domain (primary) that represents all
|
||||
the users of that domain. For example, 'google.com' or 'example.com'.
|
||||
If not specified, the imported Compute Node image is not shared with any
|
||||
account.
|
||||
*/
|
||||
share_with_accounts?: string[];
|
||||
};
|
||||
export type AzureUploadRequestOptions = {
|
||||
/** ID of the source that will be used to resolve the tenant and subscription IDs.
|
||||
Do not provide a tenant_id or subscription_id when providing a source_id.
|
||||
*/
|
||||
source_id?: string;
|
||||
/** ID of the tenant where the image should be uploaded. This link explains how
|
||||
to find it in the Azure Portal:
|
||||
https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-to-find-tenant
|
||||
When providing a tenant_id, also be sure to provide a subscription_id and do not include a source_id.
|
||||
*/
|
||||
tenant_id?: string;
|
||||
/** ID of subscription where the image should be uploaded.
|
||||
When providing a subscription_id, also be sure to provide a tenant_id and do not include a source_id.
|
||||
*/
|
||||
subscription_id?: string;
|
||||
/** Name of the resource group where the image should be uploaded.
|
||||
*/
|
||||
resource_group: string;
|
||||
/** Name of the created image.
|
||||
Must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens.
|
||||
The total length is limited to 60 characters.
|
||||
*/
|
||||
image_name?: string;
|
||||
};
|
||||
export type OciUploadRequestOptions = object;
|
||||
|
|
@ -259,16 +292,30 @@ export type UploadRequest = {
|
|||
};
|
||||
export type OsTree = {
|
||||
url?: string;
|
||||
/** A URL which, if set, is used for fetching content. Implies that `url` is set as well,
|
||||
which will be used for metadata only.
|
||||
*/
|
||||
contenturl?: string;
|
||||
ref?: string;
|
||||
/** Can be either a commit (example: 02604b2da6e954bd34b8b82a835e5a77d2b60ffa), or a branch-like reference (example: rhel/8/x86_64/edge)
|
||||
*/
|
||||
parent?: string;
|
||||
/** Determines whether a valid subscription manager (candlepin) identity is required to
|
||||
access this repository. Consumer certificates will be used as client certificates when
|
||||
fetching metadata and content.
|
||||
*/
|
||||
rhsm?: boolean;
|
||||
};
|
||||
export type ImageRequest = {
|
||||
/** CPU architecture of the image, x86_64 and aarch64 are currently supported.
|
||||
*/
|
||||
architecture: "x86_64" | "aarch64";
|
||||
image_type: ImageTypes;
|
||||
upload_request: UploadRequest;
|
||||
ostree?: OsTree;
|
||||
/** Size of image, in bytes. When set to 0 the image size is a minimum
|
||||
defined by the image type.
|
||||
*/
|
||||
size?: any;
|
||||
};
|
||||
export type Subscription = {
|
||||
|
|
@ -277,6 +324,8 @@ export type Subscription = {
|
|||
"server-url": string;
|
||||
"base-url": string;
|
||||
insights: boolean;
|
||||
/** Optional flag to use rhc to register the system, which also always enables Insights.
|
||||
*/
|
||||
rhc?: boolean;
|
||||
};
|
||||
export type CustomRepository = {
|
||||
|
|
@ -286,6 +335,7 @@ export type CustomRepository = {
|
|||
baseurl?: string[];
|
||||
mirrorlist?: string;
|
||||
metalink?: string;
|
||||
/** GPG key used to sign packages in this repository. Can be a gpg key or a URL */
|
||||
gpgkey?: string[];
|
||||
check_gpg?: boolean;
|
||||
check_repo_gpg?: boolean;
|
||||
|
|
@ -294,12 +344,16 @@ export type CustomRepository = {
|
|||
ssl_verify?: boolean;
|
||||
};
|
||||
export type OpenScap = {
|
||||
/** The policy reference ID */
|
||||
profile_id: string;
|
||||
/** The policy type */
|
||||
profile_name?: string;
|
||||
/** The longform policy description */
|
||||
profile_description?: string;
|
||||
};
|
||||
export type Filesystem = {
|
||||
mountpoint: string;
|
||||
/** size of the filesystem in bytes */
|
||||
min_size: any;
|
||||
};
|
||||
export type User = {
|
||||
|
|
@ -313,7 +367,13 @@ export type Customizations = {
|
|||
custom_repositories?: CustomRepository[];
|
||||
openscap?: OpenScap;
|
||||
filesystem?: Filesystem[];
|
||||
/** list of users that a customer can add, also specifying their respective groups and SSH keys */
|
||||
users?: User[];
|
||||
/** Select how the disk image will be partitioned. 'auto-lvm' will use raw unless
|
||||
there are one or more mountpoints in which case it will use LVM. 'lvm' always
|
||||
uses LVM, even when there are no extra mountpoints. 'raw' uses raw partitions
|
||||
even when there are one or more mountpoints.
|
||||
*/
|
||||
partitioning_mode?: "raw" | "lvm" | "auto-lvm";
|
||||
};
|
||||
export type ComposeRequest = {
|
||||
|
|
@ -321,6 +381,8 @@ export type ComposeRequest = {
|
|||
image_name?: string;
|
||||
image_description?: string;
|
||||
client_id?: ClientId;
|
||||
/** Array of exactly one image request. Having more image requests in one compose is currently not supported.
|
||||
*/
|
||||
image_requests: ImageRequest[];
|
||||
customizations?: Customizations;
|
||||
};
|
||||
|
|
@ -392,13 +454,20 @@ export type CloneResponse = {
|
|||
id: string;
|
||||
};
|
||||
export type Awsec2Clone = {
|
||||
/** A region as described in
|
||||
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions
|
||||
*/
|
||||
region: string;
|
||||
/** An array of AWS account IDs as described in
|
||||
https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html
|
||||
*/
|
||||
share_with_accounts?: string[];
|
||||
share_with_sources?: string[];
|
||||
};
|
||||
export type CloneRequest = Awsec2Clone;
|
||||
export type ClonesResponseItem = {
|
||||
id: string;
|
||||
/** UUID of the parent compose of the clone */
|
||||
compose_id: string;
|
||||
request: CloneRequest;
|
||||
created_at: string;
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ export type CreateActivationKeysApiArg = {
|
|||
additionalRepositories?: {
|
||||
repositoryLabel?: string;
|
||||
}[];
|
||||
/** Name should be present, unique and can only contain letters, numbers, underscores, or hyphens */
|
||||
name: string;
|
||||
releaseVersion?: string;
|
||||
role?: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue