Skip to content

Commit 89b82dc

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Rename parameter causing conflicts
1 parent 83ceab1 commit 89b82dc

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

src/NetworkAccess/NetworkAccess.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# NetworkAccess
2+
3+
This directory contains common [AutoREST.PowerShell](https://github.com/Azure/autorest.powershell) configurations for NetworkAccess v1.0 and/or beta modules.
4+
5+
## AutoRest Configuration
6+
7+
> see <https://aka.ms/autorest>
8+
9+
``` yaml
10+
require:
11+
- $(this-folder)/../readme.graph.md
12+
```
13+
14+
### Directives
15+
16+
> see https://github.com/Azure/autorest/blob/master/docs/powershell/directives.md
17+
18+
``` yaml
19+
directive:
20+
# Rename headers parameter provided in the open api file to avoid conflict with existing header property generated by Autorest for custom header support.
21+
- where:
22+
verb: New
23+
subject: ^NetworkAccessLogTraffic$
24+
variant: CreateExpanded
25+
parameter-name: Headers
26+
set:
27+
parameter-name: AccessHeaders
28+
- where:
29+
verb: Update
30+
subject: ^NetworkAccessLogTraffic$
31+
variant: ^(UpdateExpanded|UpdateViaIdentityExpanded)$
32+
parameter-name: Headers
33+
set:
34+
parameter-name: AccessHeaders
35+
# Parameter BodyParameter has multiple parameter types.
36+
- where:
37+
verb: Update
38+
subject: ^NetworkAccessForwardingPolicyRule$
39+
remove: true
40+
```

0 commit comments

Comments
 (0)