api: Update content-sources API schema
This updates content-sources API schema and regenerates it.
This commit is contained in:
parent
70a97acc10
commit
b0709ca9ce
2 changed files with 69 additions and 1 deletions
|
|
@ -42,6 +42,10 @@
|
||||||
},
|
},
|
||||||
"type": "array"
|
"type": "array"
|
||||||
},
|
},
|
||||||
|
"include_package_sources": {
|
||||||
|
"description": "Whether to include module information",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"limit": {
|
"limit": {
|
||||||
"description": "Maximum number of records to return for the search",
|
"description": "Maximum number of records to return for the search",
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
|
|
@ -248,6 +252,39 @@
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"api.ModuleInfoResponse": {
|
||||||
|
"properties": {
|
||||||
|
"arch": {
|
||||||
|
"description": "Architecture of the module",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"context": {
|
||||||
|
"description": "Context of the module",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"description": "Description of the module",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Name of the module",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"stream": {
|
||||||
|
"description": "Stream of the module",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type of rpm (can be either 'package' or 'module')",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"description": "Version of the module",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"api.PopularRepositoriesCollectionResponse": {
|
"api.PopularRepositoriesCollectionResponse": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"data": {
|
"data": {
|
||||||
|
|
@ -1137,6 +1174,13 @@
|
||||||
"description": "Package name found",
|
"description": "Package name found",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"package_sources": {
|
||||||
|
"description": "List of the module streams for the package",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/api.ModuleInfoResponse"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
"summary": {
|
"summary": {
|
||||||
"description": "Summary of the package found",
|
"description": "Summary of the package found",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
|
@ -1376,6 +1420,10 @@
|
||||||
},
|
},
|
||||||
"api.SnapshotSearchRpmRequest": {
|
"api.SnapshotSearchRpmRequest": {
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"include_package_sources": {
|
||||||
|
"description": "Whether to include module information",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"limit": {
|
"limit": {
|
||||||
"description": "Maximum number of records to return for the search",
|
"description": "Maximum number of records to return for the search",
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
|
|
@ -6595,7 +6643,7 @@
|
||||||
},
|
},
|
||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
"url": "https://api.example.com/api/content-sources/v1.0/"
|
"url": "https://console.redhat.com/api/content-sources/v1.0/"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -203,6 +203,8 @@ export type ErrorsErrorResponse = {
|
||||||
export type ApiContentUnitSearchRequest = {
|
export type ApiContentUnitSearchRequest = {
|
||||||
/** List of names to search using an exact match */
|
/** List of names to search using an exact match */
|
||||||
exact_names?: string[] | undefined;
|
exact_names?: string[] | undefined;
|
||||||
|
/** Whether to include module information */
|
||||||
|
include_package_sources?: boolean | undefined;
|
||||||
/** Maximum number of records to return for the search */
|
/** Maximum number of records to return for the search */
|
||||||
limit?: number | undefined;
|
limit?: number | undefined;
|
||||||
/** Search string to search content unit names */
|
/** Search string to search content unit names */
|
||||||
|
|
@ -593,9 +595,27 @@ export type ApiRepositoryRpmCollectionResponse = {
|
||||||
links?: ApiLinks | undefined;
|
links?: ApiLinks | undefined;
|
||||||
meta?: ApiResponseMetadata | undefined;
|
meta?: ApiResponseMetadata | undefined;
|
||||||
};
|
};
|
||||||
|
export type ApiModuleInfoResponse = {
|
||||||
|
/** Architecture of the module */
|
||||||
|
arch?: string | undefined;
|
||||||
|
/** Context of the module */
|
||||||
|
context?: string | undefined;
|
||||||
|
/** Description of the module */
|
||||||
|
description?: string | undefined;
|
||||||
|
/** Name of the module */
|
||||||
|
name?: string | undefined;
|
||||||
|
/** Stream of the module */
|
||||||
|
stream?: string | undefined;
|
||||||
|
/** Type of rpm (can be either 'package' or 'module') */
|
||||||
|
type?: string | undefined;
|
||||||
|
/** Version of the module */
|
||||||
|
version?: string | undefined;
|
||||||
|
};
|
||||||
export type ApiSearchRpmResponse = {
|
export type ApiSearchRpmResponse = {
|
||||||
/** Package name found */
|
/** Package name found */
|
||||||
package_name?: string | undefined;
|
package_name?: string | undefined;
|
||||||
|
/** List of the module streams for the package */
|
||||||
|
package_sources?: ApiModuleInfoResponse[] | undefined;
|
||||||
/** Summary of the package found */
|
/** Summary of the package found */
|
||||||
summary?: string | undefined;
|
summary?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue