Skip to content

Commit

Permalink
chore: update api schema dump
Browse files Browse the repository at this point in the history
Co-authored-by: octodog <[email protected]>
  • Loading branch information
jopemachine and lablup-octodog committed Feb 3, 2025
1 parent 1f5ac59 commit 028f9a1
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions docs/manager/rest-reference/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,87 @@
"title": "PatchContainerRegistryResponseModel",
"type": "object"
},
"EventData": {
"properties": {
"resources": {
"description": "List of related artifacts involved in the event",
"items": {
"$ref": "#/components/schemas/Resource"
},
"title": "Resources",
"type": "array"
},
"repository": {
"$ref": "#/components/schemas/Repository",
"description": "Repository details"
}
},
"required": [
"resources",
"repository"
],
"title": "EventData",
"type": "object"
},
"Repository": {
"properties": {
"namespace": {
"description": "Harbor project (namespace)",
"title": "Namespace",
"type": "string"
},
"name": {
"description": "Name of the repository",
"title": "Name",
"type": "string"
}
},
"required": [
"namespace",
"name"
],
"title": "Repository",
"type": "object"
},
"Resource": {
"properties": {
"resource_url": {
"description": "URL of the artifact",
"title": "Resource Url",
"type": "string"
},
"tag": {
"description": "Tag of the artifact",
"title": "Tag",
"type": "string"
}
},
"required": [
"resource_url",
"tag"
],
"title": "Resource",
"type": "object"
},
"HarborWebhookRequestModel": {
"properties": {
"type": {
"description": "Type of the webhook event triggered by Harbor. See Harbor documentation for details.",
"title": "Type",
"type": "string"
},
"event_data": {
"$ref": "#/components/schemas/EventData",
"description": "Event details"
}
},
"required": [
"type",
"event_data"
],
"title": "HarborWebhookRequestModel",
"type": "object"
},
"VFolderPermission": {
"description": "Permissions for a virtual folder given to a specific access key.\nRW_DELETE includes READ_WRITE and READ_WRITE includes READ_ONLY.",
"enum": [
Expand Down Expand Up @@ -1562,6 +1643,30 @@
"description": "\n**Preconditions:**\n* Superadmin privilege required.\n* Manager status required: one of FROZEN, RUNNING\n"
}
},
"/container-registries/webhook/harbor": {
"post": {
"operationId": "container-registries.harbor_webhook_handler",
"tags": [
"container-registries"
],
"responses": {
"200": {
"description": "Successful response"
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HarborWebhookRequestModel"
}
}
}
},
"parameters": [],
"description": "\n**Preconditions:**\n* Manager status required: RUNNING\n"
}
},
"/config/resource-slots": {
"get": {
"operationId": "config.get_resource_slots",
Expand Down

0 comments on commit 028f9a1

Please sign in to comment.