diff --git a/.openapi/connector_mgmt.yaml b/.openapi/connector_mgmt.yaml index 3d035c3e..3076ab9b 100644 --- a/.openapi/connector_mgmt.yaml +++ b/.openapi/connector_mgmt.yaml @@ -92,6 +92,15 @@ paths: 404Example: $ref: "#/components/examples/404Example" description: No matching connector type exists + "410": + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + examples: + 404Example: + $ref: "#/components/examples/410Example" + description: Connector type doesn't exist anymore "500": content: application/json: @@ -289,7 +298,16 @@ paths: examples: 404Example: $ref: "#/components/examples/404Example" - description: No matching connector type exists + description: No matching connector exists + "410": + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + examples: + 404Example: + $ref: "#/components/examples/410Example" + description: The requested resource doesn't exist anymore "500": content: application/json: @@ -388,7 +406,16 @@ paths: examples: 404Example: $ref: "#/components/examples/404Example" - description: No matching connector type exists + description: No matching resource exists + "410": + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + examples: + 404Example: + $ref: "#/components/examples/410Example" + description: The requested resource doesn't exist anymore "500": content: application/json: @@ -550,6 +577,15 @@ paths: 404Example: $ref: "#/components/examples/404Example" description: No matching connector cluster type exists + "410": + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + examples: + 404Example: + $ref: "#/components/examples/410Example" + description: The requested resource doesn't exist anymore "500": content: application/json: @@ -688,6 +724,15 @@ paths: 404Example: $ref: "#/components/examples/404Example" description: No matching connector cluster type exists + "410": + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + examples: + 404Example: + $ref: "#/components/examples/410Example" + description: The requested resource doesn't exist anymore "500": content: application/json: @@ -1285,6 +1330,8 @@ components: properties: name: type: string + pattern: "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$" + description: Namespace name must match pattern `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`, or it may be empty to be auto-generated. annotations: type: array items: @@ -1385,6 +1432,7 @@ components: - disconnected - ready - deleting + - deleted ConnectorNamespaceStatus: type: object @@ -1712,6 +1760,13 @@ components: href: "/api/connector_mgmt/v1/errors/7" code: "CONNECTOR-MGMT-7" reason: "The requested resource doesn't exist" + 410Example: + value: + id: "410" + kind: "Error" + href: "/api/connector_mgmt/v1/errors/25" + code: "CONNECTOR-MGMT-25" + reason: "The requested resource has been deleted" 404DeleteExample: value: id: "7"