Skip to content

Commit

Permalink
Rename parameter causing conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Aug 9, 2024
1 parent 83ceab1 commit 89b82dc
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/NetworkAccess/NetworkAccess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# NetworkAccess

This directory contains common [AutoREST.PowerShell](https://github.com/Azure/autorest.powershell) configurations for NetworkAccess v1.0 and/or beta modules.

## AutoRest Configuration

> see <https://aka.ms/autorest>
``` yaml
require:
- $(this-folder)/../readme.graph.md
```
### Directives
> see https://github.com/Azure/autorest/blob/master/docs/powershell/directives.md
``` yaml
directive:
# Rename headers parameter provided in the open api file to avoid conflict with existing header property generated by Autorest for custom header support.
- where:
verb: New
subject: ^NetworkAccessLogTraffic$
variant: CreateExpanded
parameter-name: Headers
set:
parameter-name: AccessHeaders
- where:
verb: Update
subject: ^NetworkAccessLogTraffic$
variant: ^(UpdateExpanded|UpdateViaIdentityExpanded)$
parameter-name: Headers
set:
parameter-name: AccessHeaders
# Parameter BodyParameter has multiple parameter types.
- where:
verb: Update
subject: ^NetworkAccessForwardingPolicyRule$
remove: true
```

0 comments on commit 89b82dc

Please sign in to comment.