From aab9a452684ebcfb66014a8c7b3c11ef10df1f41 Mon Sep 17 00:00:00 2001 From: Alancere <804873052@qq.com> Date: Thu, 10 Nov 2022 11:33:19 +0800 Subject: [PATCH 1/2] [GO]add batch directive --- specification/batch/resource-manager/readme.go.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/specification/batch/resource-manager/readme.go.md b/specification/batch/resource-manager/readme.go.md index 6cdb52ce91a8..e8a786539075 100644 --- a/specification/batch/resource-manager/readme.go.md +++ b/specification/batch/resource-manager/readme.go.md @@ -16,6 +16,21 @@ module-name: sdk/resourcemanager/batch/armbatch module: github.com/Azure/azure-sdk-for-go/$(module-name) output-folder: $(go-sdk-folder)/$(module-name) azure-arm: true +directive: + - where-model: CIFSMountConfiguration + rename-property: + from: userName + to: username + - where-model: CIFSMountConfiguration + transform: $.required[0] = "username" + - where-model: NetworkConfiguration + rename-property: + from: dynamicVnetAssignmentScope + to: dynamicVNetAssignmentScope + - where-model: PrivateLinkServiceConnectionState + rename-property: + from: actionsRequired + to: actionRequired ``` ## Go multi-api From 87d01b6c4d3b1aff37959fc6e8f69d25a2404778 Mon Sep 17 00:00:00 2001 From: Alancere <804873052@qq.com> Date: Thu, 10 Nov 2022 13:41:53 +0800 Subject: [PATCH 2/2] use x-ms-client-name --- .../batch/resource-manager/readme.go.md | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/specification/batch/resource-manager/readme.go.md b/specification/batch/resource-manager/readme.go.md index e8a786539075..6b9a29ce9633 100644 --- a/specification/batch/resource-manager/readme.go.md +++ b/specification/batch/resource-manager/readme.go.md @@ -17,20 +17,18 @@ module: github.com/Azure/azure-sdk-for-go/$(module-name) output-folder: $(go-sdk-folder)/$(module-name) azure-arm: true directive: - - where-model: CIFSMountConfiguration - rename-property: - from: userName - to: username - - where-model: CIFSMountConfiguration - transform: $.required[0] = "username" - - where-model: NetworkConfiguration - rename-property: - from: dynamicVnetAssignmentScope - to: dynamicVNetAssignmentScope - - where-model: PrivateLinkServiceConnectionState - rename-property: - from: actionsRequired - to: actionRequired + - from: BatchManagement.json + where: $.definitions.CIFSMountConfiguration.properties.userName + transform: + $["x-ms-client-name"] = "username" + - from: BatchManagement.json + where: $.definitions.NetworkConfiguration.properties.dynamicVnetAssignmentScope + transform: + $["x-ms-client-name"] = "dynamicVNetAssignmentScope" + - from: BatchManagement.json + where: $.definitions.PrivateLinkServiceConnectionState.properties.actionsRequired + transform: + $["x-ms-client-name"] = "actionRequired" ``` ## Go multi-api