update main branch with changes in the api

run `npm run api` to update the main branch
This commit is contained in:
Michal Gold 2024-10-28 14:44:53 +02:00
parent 6458764c01
commit c4170102cd
2 changed files with 7626 additions and 6776 deletions

File diff suppressed because it is too large Load diff

View file

@ -394,6 +394,192 @@
},
"type": "object"
},
"api.RepositoryExportRequest": {
"properties": {
"repository_uuids": {
"description": "List of repository uuids to export",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"api.RepositoryExportResponse": {
"properties": {
"distribution_arch": {
"description": "Architecture to restrict client usage to",
"example": "x86_64",
"type": "string"
},
"distribution_versions": {
"description": "Versions to restrict client usage to",
"example": [
"8"
],
"items": {
"type": "string"
},
"type": "array"
},
"gpg_key": {
"description": "GPG key for repository",
"type": "string"
},
"metadata_verification": {
"description": "Verify packages",
"type": "boolean"
},
"module_hotfixes": {
"description": "Disable modularity filtering on this repository",
"type": "boolean"
},
"name": {
"description": "Name of the remote yum repository",
"type": "string"
},
"origin": {
"description": "Origin of the repository",
"type": "string"
},
"snapshot": {
"description": "Enable snapshotting and hosting of this repository",
"type": "boolean"
},
"url": {
"description": "URL of the remote yum repository",
"type": "string"
}
},
"type": "object"
},
"api.RepositoryImportResponse": {
"properties": {
"account_id": {
"description": "Account ID of the owner",
"readOnly": true,
"type": "string"
},
"content_type": {
"description": "Content Type (rpm) of the repository",
"type": "string"
},
"distribution_arch": {
"description": "Architecture to restrict client usage to",
"example": "x86_64",
"type": "string"
},
"distribution_versions": {
"description": "Versions to restrict client usage to",
"example": [
"7",
"8"
],
"items": {
"type": "string"
},
"type": "array"
},
"failed_introspections_count": {
"description": "Number of consecutive failed introspections",
"type": "integer"
},
"gpg_key": {
"description": "GPG key for repository",
"type": "string"
},
"label": {
"description": "Label used to configure the yum repository on clients",
"type": "string"
},
"last_introspection_error": {
"description": "Error of last attempted introspection",
"type": "string"
},
"last_introspection_status": {
"description": "Status of last introspection",
"type": "string"
},
"last_introspection_time": {
"description": "Timestamp of last attempted introspection",
"type": "string"
},
"last_snapshot": {
"$ref": "#/components/schemas/api.SnapshotResponse"
},
"last_snapshot_task": {
"$ref": "#/components/schemas/api.TaskInfoResponse"
},
"last_snapshot_task_uuid": {
"description": "UUID of the last snapshot task",
"type": "string"
},
"last_snapshot_uuid": {
"description": "UUID of the last dao.Snapshot",
"type": "string"
},
"last_success_introspection_time": {
"description": "Timestamp of last successful introspection",
"type": "string"
},
"last_update_introspection_time": {
"description": "Timestamp of last introspection that had updates",
"type": "string"
},
"metadata_verification": {
"description": "Verify packages",
"type": "boolean"
},
"module_hotfixes": {
"description": "Disable modularity filtering on this repository",
"type": "boolean"
},
"name": {
"description": "Name of the remote yum repository",
"type": "string"
},
"org_id": {
"description": "Organization ID of the owner",
"readOnly": true,
"type": "string"
},
"origin": {
"description": "Origin of the repository",
"type": "string"
},
"package_count": {
"description": "Number of packages last read in the repository",
"type": "integer"
},
"snapshot": {
"description": "Enable snapshotting and hosting of this repository",
"type": "boolean"
},
"status": {
"description": "Combined status of last introspection and snapshot of repository (Valid, Invalid, Unavailable, Pending)",
"type": "string"
},
"url": {
"description": "URL of the remote yum repository",
"type": "string"
},
"uuid": {
"description": "UUID of the object",
"readOnly": true,
"type": "string"
},
"warnings": {
"description": "Warnings to alert user of mismatched fields if there is an existing repo with the same URL",
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"api.RepositoryIntrospectRequest": {
"properties": {
"reset_count": {
@ -1248,6 +1434,11 @@
},
"type": "array"
},
"rhsm_environment_created": {
"description": "Whether the candlepin environment is created and systems can be added",
"readOnly": true,
"type": "boolean"
},
"rhsm_environment_id": {
"description": "Environment ID used by subscription-manager and candlepin",
"type": "string"
@ -2261,6 +2452,199 @@
]
}
},
"/repositories/bulk_export/": {
"post": {
"description": "Export multiple repositories.",
"operationId": "bulkExportRepositories",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/api.RepositoryExportRequest"
}
}
},
"description": "request body",
"required": true,
"x-originalParamName": "body"
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/api.RepositoryExportResponse"
},
"type": "array"
}
}
},
"description": "Created",
"headers": {
"Location": {
"description": "resource URL",
"schema": {
"type": "string"
}
}
}
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Bad Request"
},
"401": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Unauthorized"
},
"404": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Not Found"
},
"415": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Unsupported Media Type"
},
"500": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Internal Server Error"
}
},
"summary": "Bulk export repositories",
"tags": [
"repositories"
]
}
},
"/repositories/bulk_import/": {
"post": {
"description": "Import multiple repositories.",
"operationId": "bulkImportRepositories",
"requestBody": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/api.RepositoryRequest"
},
"type": "array"
}
}
},
"description": "request body",
"required": true,
"x-originalParamName": "body"
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/api.RepositoryImportResponse"
},
"type": "array"
}
}
},
"description": "Created",
"headers": {
"Location": {
"description": "resource URL",
"schema": {
"type": "string"
}
}
}
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Bad Request"
},
"401": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Unauthorized"
},
"404": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Not Found"
},
"415": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Unsupported Media Type"
},
"500": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Internal Server Error"
}
},
"summary": "Bulk import repositories",
"tags": [
"repositories"
]
}
},
"/repositories/uploads/": {
"post": {
"description": "Create an upload.",
@ -5422,6 +5806,30 @@
"schema": {
"type": "string"
}
},
{
"description": "Sort the response data based on specific snapshot parameters. Sort criteria can include `repository_name` or `created_at`.",
"in": "query",
"name": "sort_by",
"schema": {
"type": "string"
}
},
{
"description": "Starting point for retrieving a subset of results. Determines how many items to skip from the beginning of the result set. Default value:`0`.",
"in": "query",
"name": "offset",
"schema": {
"type": "integer"
}
},
{
"description": "Number of items to include in response. Use it to control the number of items, particularly when dealing with large datasets. Default value: `100`.",
"in": "query",
"name": "limit",
"schema": {
"type": "integer"
}
}
],
"responses": {