Filter content-sources repos by origin and content_type
This commit is contained in:
parent
99ae627007
commit
5d6b6dfbfe
7 changed files with 142 additions and 3 deletions
|
|
@ -277,6 +277,10 @@
|
|||
"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",
|
||||
|
|
@ -309,6 +313,17 @@
|
|||
"description": "Timestamp of last attempted introspection",
|
||||
"type": "string"
|
||||
},
|
||||
"last_snapshot": {
|
||||
"$ref": "#/components/schemas/api.SnapshotResponse"
|
||||
},
|
||||
"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"
|
||||
|
|
@ -330,6 +345,10 @@
|
|||
"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"
|
||||
|
|
@ -525,6 +544,13 @@
|
|||
},
|
||||
"api.SnapshotResponse": {
|
||||
"properties": {
|
||||
"added_counts": {
|
||||
"additionalProperties": {
|
||||
"type": "integer"
|
||||
},
|
||||
"description": "Count of each content type",
|
||||
"type": "object"
|
||||
},
|
||||
"content_counts": {
|
||||
"additionalProperties": {
|
||||
"type": "integer"
|
||||
|
|
@ -536,8 +562,15 @@
|
|||
"description": "Datetime the snapshot was created",
|
||||
"type": "string"
|
||||
},
|
||||
"distribution_path": {
|
||||
"description": "Path to pulp distribution",
|
||||
"removed_counts": {
|
||||
"additionalProperties": {
|
||||
"type": "integer"
|
||||
},
|
||||
"description": "Count of each content type",
|
||||
"type": "object"
|
||||
},
|
||||
"repository_path": {
|
||||
"description": "Path to repository snapshot contents",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
|
|
@ -579,10 +612,22 @@
|
|||
"description": "Organization ID of the owner",
|
||||
"type": "string"
|
||||
},
|
||||
"repository_name": {
|
||||
"description": "Name of the associated repository",
|
||||
"type": "string"
|
||||
},
|
||||
"repository_uuid": {
|
||||
"description": "UUID of the associated repository",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"description": "Status of task (running, failed, completed, canceled, pending)",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"description": "Type of task",
|
||||
"type": "string"
|
||||
},
|
||||
"uuid": {
|
||||
"description": "UUID of the object",
|
||||
"type": "string"
|
||||
|
|
@ -731,6 +776,32 @@
|
|||
"get": {
|
||||
"description": "Get popular repositories",
|
||||
"operationId": "listPopularRepositories",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Offset into the list of results to return in the response",
|
||||
"in": "query",
|
||||
"name": "offset",
|
||||
"schema": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "Limit the number of items returned",
|
||||
"in": "query",
|
||||
"name": "limit",
|
||||
"schema": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "Search term for name and url.",
|
||||
"in": "query",
|
||||
"name": "search",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
|
|
@ -961,6 +1032,22 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "Comma separated list of origins to filter (red_hat,external)",
|
||||
"in": "query",
|
||||
"name": "origin",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "content type of a repository to filter on (rpm)",
|
||||
"in": "query",
|
||||
"name": "content_type",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
|
@ -2172,6 +2259,22 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "Filter tasks by type using an exact match",
|
||||
"in": "query",
|
||||
"name": "type",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "Filter tasks by associated repository UUID using an exact match",
|
||||
"in": "query",
|
||||
"name": "repository_uuid",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue