Skip to content

Commit e8c011a

Browse files
changlong-liu00Kai0
authored andcommitted
add track2 config (Azure#9823)
* add track2 config * format fix
1 parent 9dfdb1d commit e8c011a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

specification/compute/resource-manager/readme.python.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,23 @@ azure-arm: true
3636
license-header: MICROSOFT_MIT_NO_VERSION
3737
package-name: azure-mgmt-compute
3838
no-namespace-folders: true
39+
40+
directive:
41+
# dynamically add a DummyOrchestrationServiceName value to the enum
42+
- from: compute.json
43+
where: $..enum
44+
transform: >-
45+
if( $.length === 1 && $[0] === "AutomaticRepairs") {
46+
$.push('DummyOrchestrationServiceName');
47+
}
48+
return $;
49+
50+
- from: source-file-python
51+
where: $
52+
transform: >-
53+
return $.
54+
replace(/, 'DummyOrchestrationServiceName'/g,'').
55+
replace(/dummy_orchestration_service_name = "DummyOrchestrationServiceName"/g,'');
3956
```
4057

4158
### Python multi-api

0 commit comments

Comments
 (0)