Unvendor nova security_groups schema

Change-Id: I3b952d090610eabf38e5f227f833d15817054460
Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com>
This commit is contained in:
Artem Goncharov
2026-03-02 11:04:03 +01:00
parent c1f49fe6a6
commit 89547cc33c
2 changed files with 0 additions and 61 deletions

View File

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

View File

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