Skip to content

Commit

Permalink
refactor(network): update autorest.md for preview
Browse files Browse the repository at this point in the history
1. update `require` and `use` directives to point to online assets
2. update `$ref` value in the model transform directive for `DdosProtectionPlan` to work around a limitation: Azure/autorest#4237
3. set up a local swagger definition tag `package-track2-preview`, since 4 definitions are excluded from this release
  • Loading branch information
archerzz committed Aug 2, 2021
1 parent e45248c commit e74e159
Showing 1 changed file with 64 additions and 6 deletions.
70 changes: 64 additions & 6 deletions sdk/network/Azure.ResourceManager.Network/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ azure-arm: true
csharp: true
library-name: Network
namespace: Azure.ResourceManager.Network
# require: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/readme.md
require: C:\Users\mingzhehuang\workspaces\azure\azure-rest-api-specs\specification\network\resource-manager\readme.md
# use: https://github.com/Azure/autorest.csharp/releases/download/v3.0.0-beta.20210722.1/autorest-csharp-3.0.0-beta.20210722.1.tgz
use: C:\Users\mingzhehuang\workspaces\archerzz\autorest.csharp\artifacts\bin\AutoRest.CSharp\Debug\netcoreapp3.1
#tag: package-track2-preview
require: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/readme.md
tag: package-track2-preview
use: https://github.com/Azure/autorest.csharp/releases/download/v3.0.0-beta.20210730.4/autorest-csharp-3.0.0-beta.20210730.4.tgz

output-folder: Generated/
clear-output-folder: true
Expand Down Expand Up @@ -272,7 +270,7 @@ directive:
},
"allOf": [
{
"$ref": "file:///C:/Users/mingzhehuang/workspaces/azure/azure-rest-api-specs/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/network.json#/definitions/Resource"
"$ref": "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/network.json#/definitions/Resource"
}
]
}
Expand All @@ -298,3 +296,63 @@ directive:
transform: return "VirtualHubBgpConnections_Delete"
reason: Original 'operationId' doesn't follow pattern
```
### Tag: package-track2-preview
4 definitions regarding `compute` service are ignored in this release.

These settings apply only when `--tag=package-track2-preview` is specified on the command line.

```yaml $(tag) == 'package-track2-preview'
input-file:
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/applicationGateway.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/applicationSecurityGroup.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/availableDelegations.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/availableServiceAliases.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/azureFirewall.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/azureFirewallFqdnTag.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/azureWebCategory.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/bastionHost.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/checkDnsAvailability.json
# - https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/cloudServiceNetworkInterface.json
# - https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/cloudServicePublicIpAddress.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/customIpPrefix.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/ddosCustomPolicy.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/ddosProtectionPlan.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/dscpConfiguration.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/endpointService.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/expressRouteCircuit.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/expressRouteCrossConnection.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/expressRoutePort.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/firewallPolicy.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/ipAllocation.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/ipGroups.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/loadBalancer.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/natGateway.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/network.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkInterface.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkProfile.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkSecurityGroup.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkVirtualAppliance.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/networkWatcher.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/operation.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/privateEndpoint.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/privateLinkService.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/publicIpAddress.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/publicIpPrefix.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/routeFilter.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/routeTable.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/securityPartnerProvider.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/serviceCommunity.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/serviceEndpointPolicy.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/serviceTags.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/usage.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualNetwork.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualNetworkGateway.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualNetworkTap.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualRouter.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/virtualWan.json
# - https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/vmssNetworkInterface.json
# - https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/vmssPublicIpAddress.json
- https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/webapplicationfirewall.json
```

0 comments on commit e74e159

Please sign in to comment.