From 3ffdf6977be88f047f3ed64aa16e9358a3fef792 Mon Sep 17 00:00:00 2001 From: Gyubong Lee Date: Thu, 30 Jan 2025 10:52:26 +0000 Subject: [PATCH] chore: update api schema dump Co-authored-by: octodog --- docs/manager/rest-reference/openapi.json | 344 +++++++++++++++++++++++ 1 file changed, 344 insertions(+) diff --git a/docs/manager/rest-reference/openapi.json b/docs/manager/rest-reference/openapi.json index a4ffe21404..336f51d482 100644 --- a/docs/manager/rest-reference/openapi.json +++ b/docs/manager/rest-reference/openapi.json @@ -20,6 +20,305 @@ } }, "schemas": { + "AllowedGroupsModel": { + "properties": { + "add": { + "default": [], + "items": { + "type": "string" + }, + "title": "Add", + "type": "array" + }, + "remove": { + "default": [], + "items": { + "type": "string" + }, + "title": "Remove", + "type": "array" + } + }, + "title": "AllowedGroupsModel", + "type": "object" + }, + "ContainerRegistryType": { + "enum": [ + "docker", + "harbor", + "harbor2", + "github", + "gitlab", + "ecr", + "ecr-public", + "local" + ], + "title": "ContainerRegistryType", + "type": "string" + }, + "PatchContainerRegistryRequestModel": { + "properties": { + "id": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Id" + }, + "url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Url" + }, + "registry_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Registry Name" + }, + "type": { + "anyOf": [ + { + "$ref": "#/components/schemas/ContainerRegistryType" + }, + { + "type": "null" + } + ], + "default": null + }, + "project": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Project" + }, + "username": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Username" + }, + "password": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Password" + }, + "ssl_verify": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Ssl Verify" + }, + "is_global": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Is Global" + }, + "extra": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Extra" + }, + "allowed_groups": { + "anyOf": [ + { + "$ref": "#/components/schemas/AllowedGroupsModel" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "title": "PatchContainerRegistryRequestModel", + "type": "object" + }, + "PatchContainerRegistryResponseModel": { + "properties": { + "id": { + "anyOf": [ + { + "format": "uuid", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Id" + }, + "url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Url" + }, + "registry_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Registry Name" + }, + "type": { + "anyOf": [ + { + "$ref": "#/components/schemas/ContainerRegistryType" + }, + { + "type": "null" + } + ], + "default": null + }, + "project": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Project" + }, + "username": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Username" + }, + "password": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Password" + }, + "ssl_verify": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Ssl Verify" + }, + "is_global": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Is Global" + }, + "extra": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Extra" + } + }, + "title": "PatchContainerRegistryResponseModel", + "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": [ @@ -1218,6 +1517,51 @@ "description": "\n**Preconditions:**\n* User privilege required.\n* Manager status required: RUNNING\n" } }, + "/container-registries/{registry_id}": { + "patch": { + "operationId": "container-registries.patch_container_registry", + "tags": [ + "container-registries" + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PatchContainerRegistryResponseModel" + } + } + } + } + }, + "security": [ + { + "TokenAuth": [] + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PatchContainerRegistryRequestModel" + } + } + } + }, + "parameters": [ + { + "name": "registry_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "description": "\n**Preconditions:**\n* Superadmin privilege required.\n* Manager status required: one of FROZEN, RUNNING\n" + } + }, "/config/resource-slots": { "get": { "operationId": "config.get_resource_slots",