From 89547cc33ccb22e4eb39bcf4e84b8e21d90cd4ef Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Mon, 2 Mar 2026 11:04:03 +0100 Subject: [PATCH] Unvendor nova security_groups schema Change-Id: I3b952d090610eabf38e5f227f833d15817054460 Signed-off-by: Artem Goncharov --- codegenerator/openapi/nova.py | 6 --- codegenerator/openapi/nova_schemas.py | 55 --------------------------- 2 files changed, 61 deletions(-) diff --git a/codegenerator/openapi/nova.py b/codegenerator/openapi/nova.py index f12b0a1..5acc0d6 100644 --- a/codegenerator/openapi/nova.py +++ b/codegenerator/openapi/nova.py @@ -504,12 +504,6 @@ class NovaGenerator(OpenStackServerSourceBase): name, TypeSchema(**nova_schemas.SERVER_TOPOLOGY_SCHEMA) ) ref = f"#/components/schemas/{name}" - elif name == "ServersOs_Security_GroupsListResponse": - schema = openapi_spec.components.schemas.setdefault( - name, - TypeSchema(**nova_schemas.SERVER_SECURITY_GROUPS_LIST_SCHEMA), - ) - ref = f"#/components/schemas/{name}" elif name in [ "ServersTagsListResponse", "ServersTagsUpdate_All", diff --git a/codegenerator/openapi/nova_schemas.py b/codegenerator/openapi/nova_schemas.py index c40a614..045c476 100644 --- a/codegenerator/openapi/nova_schemas.py +++ b/codegenerator/openapi/nova_schemas.py @@ -1980,61 +1980,6 @@ SERVER_PASSWORD_SCHEMA: dict[str, Any] = { } }, } -SERVER_SECURITY_GROUPS_LIST_SCHEMA: dict[str, Any] = { - "type": "object", - "properties": { - "security_groups": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "The ID of the security group.", - }, - "name": { - "type": "string", - "description": "The security group name.", - }, - "description": { - "type": "string", - "description": "Security group description.", - }, - "tenant_id": { - "type": "string", - "format": "uuid", - "description": "The UUID of the tenant in a multi-tenancy cloud.", - }, - "rules": { - "type": "array", - "description": "The list of security group rules.", - "items": { - "type": "object", - "properties": { - "id": {"type": "string", "format": "uuid"}, - "from_port": {"type": "integer"}, - "to_port": {"type": "integer"}, - "ip_protocol": {"type": "string"}, - "ip_range": {"type": "object"}, - "group": { - "type": "object", - "properties": {"name": {"type": "string"}}, - }, - "parent_group_id": { - "type": "string", - "format": "uuid", - }, - }, - }, - }, - }, - "required": ["id", "name"], - }, - } - }, -} - VOLUME_ATTACHMENT_SCHEMA: dict[str, Any] = { "type": "object",