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",