From 8495e532bfd262dcd89f83053e41c601d18eaaf9 Mon Sep 17 00:00:00 2001 From: Yongquan Yuan Date: Thu, 29 Aug 2024 16:23:24 +0800 Subject: [PATCH] TOWER-14815 Add security group information for security policy --- .../static/specs/4.4.0-swagger.json | 36 +++++++++++++++++++ .../swagger/locales/zh/4.4.0.json | 20 +++++++++++ 2 files changed, 56 insertions(+) diff --git a/cloudtower-api-doc/static/specs/4.4.0-swagger.json b/cloudtower-api-doc/static/specs/4.4.0-swagger.json index d23c678..f39794b 100644 --- a/cloudtower-api-doc/static/specs/4.4.0-swagger.json +++ b/cloudtower-api-doc/static/specs/4.4.0-swagger.json @@ -74899,6 +74899,22 @@ ], "type": "object" }, + "NestedSecurityGroup": { + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ], + "type": "object", + "additionalProperties": false + }, "NestedSecurityPolicyApply": { "properties": { "communicable": { @@ -74915,6 +74931,16 @@ "type": "string" }, "type": "array" + }, + "security_group": { + "allOf": [ + { + "$ref": "#/components/schemas/NestedSecurityGroup" + } + ] + }, + "security_group_id": { + "type": "string" } }, "required": [ @@ -74987,6 +75013,16 @@ "type": "array", "nullable": true }, + "security_group": { + "allOf": [ + { + "$ref": "#/components/schemas/NestedSecurityGroup" + } + ] + }, + "security_group_id": { + "type": "string" + }, "type": { "$ref": "#/components/schemas/NetworkPolicyRuleType" } diff --git a/cloudtower-api-doc/swagger/locales/zh/4.4.0.json b/cloudtower-api-doc/swagger/locales/zh/4.4.0.json index b647513..608b949 100644 --- a/cloudtower-api-doc/swagger/locales/zh/4.4.0.json +++ b/cloudtower-api-doc/swagger/locales/zh/4.4.0.json @@ -612,6 +612,26 @@ "vm_templates_every": "返回关联资源全都符合相关筛选条件的资源", "vm_templates_none": "返回关联资源不符合相关筛选条件的资源", "vm_templates_some": "返回关联资源一项或多项符合相关筛选条件的资源" + }, + "NestedSecurityGroup": { + "id": "唯一标识", + "name": "名称" + }, + "NestedSecurityPolicyApply": { + "communicable": "", + "selector": "", + "selector_ids": "", + "security_group_id": "安全组 id", + "security_group": "安全组" + }, + "NestedNetworkPolicyRule": { + "ip_block": "", + "ports": "", + "selector": "", + "selector_ids": "", + "type": "", + "security_group_id": "安全组 id", + "security_group": "安全组" } }, "tags": [