From 369f368788cf43277008886dade0b93f7420b43c Mon Sep 17 00:00:00 2001 From: Juan Date: Tue, 24 Sep 2024 20:15:58 +0800 Subject: [PATCH 1/3] fixing NLB AddServersToServerGroup --- en-US/nlb/AddServersToServerGroup.json | 42 ++++++++++++++++++++++++-- zh-CN/nlb/AddServersToServerGroup.json | 42 ++++++++++++++++++++++++-- 2 files changed, 80 insertions(+), 4 deletions(-) diff --git a/en-US/nlb/AddServersToServerGroup.json b/en-US/nlb/AddServersToServerGroup.json index 365d811c2..12a60983f 100644 --- a/en-US/nlb/AddServersToServerGroup.json +++ b/en-US/nlb/AddServersToServerGroup.json @@ -40,8 +40,46 @@ "name": "Servers", "description": "A list of backend servers.", "position": "Body", - "type": "Array", - "required": true + "type": "RepeatList", + "required": true, + "sub_parameters": [ + { + "name": "ServerId", + "position": "FormData", + "type": "String", + "required": true + }, + { + "name": "ServerType", + "position": "FormData", + "type": "String", + "required": true + }, + { + "name": "ServerIp", + "position": "FormData", + "type": "String", + "required": false + }, + { + "name": "Port", + "position": "FormData", + "type": "Integer", + "required": false + }, + { + "name": "Weight", + "position": "FormData", + "type": "Integer", + "required": false + }, + { + "name": "Description", + "position": "FormData", + "type": "String", + "required": false + } + ] } ] } \ No newline at end of file diff --git a/zh-CN/nlb/AddServersToServerGroup.json b/zh-CN/nlb/AddServersToServerGroup.json index e338d7870..a37813acd 100644 --- a/zh-CN/nlb/AddServersToServerGroup.json +++ b/zh-CN/nlb/AddServersToServerGroup.json @@ -40,8 +40,46 @@ "name": "Servers", "description": "后端服务器组列表,单次调用最多支持传入40个服务器。", "position": "Body", - "type": "Array", - "required": true + "type": "RepeatList", + "required": true, + "sub_parameters": [ + { + "name": "ServerId", + "position": "FormData", + "type": "String", + "required": true + }, + { + "name": "ServerType", + "position": "FormData", + "type": "String", + "required": true + }, + { + "name": "ServerIp", + "position": "FormData", + "type": "String", + "required": false + }, + { + "name": "Port", + "position": "FormData", + "type": "Integer", + "required": false + }, + { + "name": "Weight", + "position": "FormData", + "type": "Integer", + "required": false + }, + { + "name": "Description", + "position": "FormData", + "type": "String", + "required": false + } + ] } ] } \ No newline at end of file From 002e3cd476e4b2096dadf9997845e30e91e1b82e Mon Sep 17 00:00:00 2001 From: Juan Date: Tue, 24 Sep 2024 21:26:35 +0800 Subject: [PATCH 2/3] fixing structure AddServersToServerGroup --- metadatas/nlb/AddServersToServerGroup.json | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/metadatas/nlb/AddServersToServerGroup.json b/metadatas/nlb/AddServersToServerGroup.json index 4c9d51e4f..642dfc203 100644 --- a/metadatas/nlb/AddServersToServerGroup.json +++ b/metadatas/nlb/AddServersToServerGroup.json @@ -33,6 +33,50 @@ "position": "Body", "type": "Array", "required": true + }, + { + "name": "Servers", + "position": "Body", + "type": "RepeatList", + "required": true, + "sub_parameters": [ + { + "name": "ServerId", + "position": "FormData", + "type": "String", + "required": true + }, + { + "name": "ServerType", + "position": "FormData", + "type": "String", + "required": true + }, + { + "name": "ServerIp", + "position": "FormData", + "type": "String", + "required": false + }, + { + "name": "Port", + "position": "FormData", + "type": "Integer", + "required": false + }, + { + "name": "Weight", + "position": "FormData", + "type": "Integer", + "required": false + }, + { + "name": "Description", + "position": "FormData", + "type": "String", + "required": false + } + ] } ] } \ No newline at end of file From 22d823a8e85741293262a06b90eb53b85cf3ed6c Mon Sep 17 00:00:00 2001 From: Juan Date: Tue, 24 Sep 2024 21:27:39 +0800 Subject: [PATCH 3/3] delete old nlb servers --- metadatas/nlb/AddServersToServerGroup.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/metadatas/nlb/AddServersToServerGroup.json b/metadatas/nlb/AddServersToServerGroup.json index 642dfc203..5cff50f18 100644 --- a/metadatas/nlb/AddServersToServerGroup.json +++ b/metadatas/nlb/AddServersToServerGroup.json @@ -28,12 +28,6 @@ "type": "String", "required": true }, - { - "name": "Servers", - "position": "Body", - "type": "Array", - "required": true - }, { "name": "Servers", "position": "Body",