From 5023c73491e91e32b7b5821f6ffc5a58fa70fc4a Mon Sep 17 00:00:00 2001 From: zhnd Date: Fri, 13 Sep 2024 14:15:00 +0800 Subject: [PATCH] feat: update swagger spec of er alg protocol --- .../static/specs/4.4.0-swagger.json | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) 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 fe80fca..f26158c 100644 --- a/cloudtower-api-doc/static/specs/4.4.0-swagger.json +++ b/cloudtower-api-doc/static/specs/4.4.0-swagger.json @@ -74109,6 +74109,13 @@ "type": "object", "additionalProperties": false }, + "NetworkPolicyRuleAlgProtocol": { + "enum": [ + "FTP", + "TFTP" + ], + "type": "string" + }, "NetworkPolicyRulePortProtocol": { "enum": [ "ALG", @@ -74121,6 +74128,14 @@ }, "NestedNetworkPolicyRulePort": { "properties": { + "alg_protocol": { + "allOf": [ + { + "$ref": "#/components/schemas/NetworkPolicyRuleAlgProtocol" + } + ], + "nullable": true + }, "port": { "type": "string", "nullable": true @@ -74328,6 +74343,9 @@ }, "NetworkPolicyRulePortInput": { "properties": { + "alg_protocol": { + "$ref": "#/components/schemas/NetworkPolicyRuleAlgProtocol" + }, "protocol": { "$ref": "#/components/schemas/NetworkPolicyRulePortProtocol" }, @@ -74340,10 +74358,16 @@ ], "type": "object" }, + "SecurityPolicyFlowControlType": { + "enum": [ + "ALL" + ], + "type": "string" + }, "SecurityPolicyIngressEgressInput": { "properties": { "type": { - "$ref": "#/components/schemas/NetworkPolicyRuleType" + "$ref": "#/components/schemas/SecurityPolicyFlowControlType" }, "ports": { "items": {