From 6997ccbb5a5779f5694fdc0b210d1bb13b1b33a5 Mon Sep 17 00:00:00 2001 From: Changlong Liu Date: Fri, 12 Jun 2020 11:25:45 +0800 Subject: [PATCH 1/2] add track2 config --- .../compute/resource-manager/readme.python.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/readme.python.md b/specification/compute/resource-manager/readme.python.md index 07382513e166..35840bb32657 100644 --- a/specification/compute/resource-manager/readme.python.md +++ b/specification/compute/resource-manager/readme.python.md @@ -10,7 +10,7 @@ python: package-name: azure-mgmt-compute no-namespace-folders: true clear-output-folder: true - + directive: # dynamically add a DummyOrchestrationServiceName value to the enum - from: compute.json @@ -36,6 +36,23 @@ azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-compute no-namespace-folders: true + +directive: + # dynamically add a DummyOrchestrationServiceName value to the enum + - from: compute.json + where: $..enum + transform: >- + if( $.length === 1 && $[0] === "AutomaticRepairs") { + $.push('DummyOrchestrationServiceName'); + } + return $; + + - from: source-file-python + where: $ + transform: >- + return $. + replace(/, 'DummyOrchestrationServiceName'/g,''). + replace(/dummy_orchestration_service_name = "DummyOrchestrationServiceName"/g,''); ``` ### Python multi-api From 514385a93d7b0adfc986a274d563bc7cb8d0402b Mon Sep 17 00:00:00 2001 From: Changlong Liu Date: Fri, 12 Jun 2020 11:28:41 +0800 Subject: [PATCH 2/2] format fix --- specification/compute/resource-manager/readme.python.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/readme.python.md b/specification/compute/resource-manager/readme.python.md index 35840bb32657..e0a44c76fbe6 100644 --- a/specification/compute/resource-manager/readme.python.md +++ b/specification/compute/resource-manager/readme.python.md @@ -10,7 +10,7 @@ python: package-name: azure-mgmt-compute no-namespace-folders: true clear-output-folder: true - + directive: # dynamically add a DummyOrchestrationServiceName value to the enum - from: compute.json