Skip to content

Commit

Permalink
Syncing API
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow authored and github-actions[bot] committed Nov 21, 2024
1 parent 7123bce commit 4e7e329
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71768,4 +71768,4 @@
}
]
}
}
}
197 changes: 197 additions & 0 deletions packages/common/config/apis/hcc-insights/repositories/content.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"type": "array"
}
},
"required": [
"uploads"
],
"type": "object"
},
"api.Artifact": {
Expand All @@ -37,6 +40,13 @@
},
"api.ContentUnitSearchRequest": {
"properties": {
"exact_names": {
"description": "List of names to search using an exact match",
"items": {
"type": "string"
},
"type": "array"
},
"limit": {
"description": "Maximum number of records to return for the search",
"type": "integer"
Expand Down Expand Up @@ -69,6 +79,9 @@
"type": "integer"
}
},
"required": [
"size"
],
"type": "object"
},
"api.DetectRpmsRequest": {
Expand Down Expand Up @@ -146,6 +159,9 @@
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
},
"api.FetchGPGKeyResponse": {
Expand Down Expand Up @@ -209,6 +225,10 @@
"type": "array"
}
},
"required": [
"date",
"repository_uuids"
],
"type": "object"
},
"api.ListSnapshotByDateResponse": {
Expand Down Expand Up @@ -406,6 +426,9 @@
"type": "array"
}
},
"required": [
"repository_uuids"
],
"type": "object"
},
"api.RepositoryExportResponse": {
Expand Down Expand Up @@ -708,6 +731,9 @@
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"api.RepositoryResponse": {
Expand Down Expand Up @@ -1390,6 +1416,12 @@
"type": "string"
}
},
"required": [
"arch",
"name",
"repository_uuids",
"version"
],
"type": "object"
},
"api.TemplateResponse": {
Expand Down Expand Up @@ -1509,6 +1541,9 @@
"type": "array"
}
},
"required": [
"uuids"
],
"type": "object"
},
"api.Upload": {
Expand Down Expand Up @@ -2817,6 +2852,159 @@
]
}
},
"/repositories/{repo_uuid}/snapshots/bulk_delete/": {
"post": {
"description": "This enables deleting specified snapshots from a repository.",
"operationId": "bulkDeleteSnapshots",
"parameters": [
{
"description": "Repository UUID.",
"in": "path",
"name": "repo_uuid",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/api.UUIDListRequest"
}
}
},
"description": "Identifiers of the snapshots",
"required": true,
"x-originalParamName": "body"
},
"responses": {
"204": {
"description": "Snapshots were successfully deleted"
},
"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"
},
"500": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Internal Server Error"
}
},
"summary": "Bulk delete a snapshots",
"tags": [
"snapshots"
]
}
},
"/repositories/{repo_uuid}/snapshots/{snapshot_uuid}": {
"delete": {
"description": "This enables deleting a specific snapshot.",
"operationId": "deleteSnapshot",
"parameters": [
{
"description": "Repository UUID.",
"in": "path",
"name": "repo_uuid",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Snapshot UUID.",
"in": "path",
"name": "snapshot_uuid",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"204": {
"description": "Snapshot was successfully deleted"
},
"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"
},
"500": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors.ErrorResponse"
}
}
},
"description": "Internal Server Error"
}
},
"summary": "Delete a snapshot",
"tags": [
"snapshots"
]
}
},
"/repositories/{uuid}": {
"delete": {
"description": "This enables deleting a specific repository.",
Expand Down Expand Up @@ -4200,6 +4388,7 @@
},
"/rpms/presence": {
"post": {
"deprecated": true,
"description": "This enables users to detect presence of RPMs (Red Hat Package Manager) in a given list of repositories.",
"operationId": "detectRpm",
"requestBody": {
Expand Down Expand Up @@ -5153,6 +5342,14 @@
"type": "string"
}
},
{
"description": "Filter templates by associated snapshots using a comma separated list of snapshot UUIDs",
"in": "query",
"name": "snapshot_uuids",
"schema": {
"type": "string"
}
},
{
"description": "Sort the response data based on specific parameters. Sort criteria can include `name`, `arch`, and `version`.",
"in": "query",
Expand Down

0 comments on commit 4e7e329

Please sign in to comment.