Skip to content

Commit

Permalink
[Azure Stack] Updates to Azs.Network.Admin Spec (#8960)
Browse files Browse the repository at this point in the history
* commit f809fa9
Author: Rakesh Kumar <rakku@microsoft.com>
Date:   Wed Nov 13 11:49:29 2019 -0800

    Stackadmin network (#7776)

    * network admin module changes

    * remove readme.azsautogen.md from network

commit 9e551f0
Author: bganapa <bganapa@microsoft.com>
Date:   Tue Nov 12 11:44:22 2019 -0800

    Reset to Stackadmin2 (#7766)

* Update Readme.md to include autorest generation info

* Add quotes to file paths

* Fix input file references
  • Loading branch information
viananth authored Apr 17, 2020
1 parent 2e49dd2 commit 2bd3ecf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"/subscriptions/{subscriptionId}/providers/Microsoft.Network.Admin/adminPublicIpAddresses": {
"get": {
"x-ms-examples": {
"List of public ip addresses": {
"List of public IP addresses": {
"$ref": "./examples/PublicIpAddresses/List.json"
}
},
"tags": [
"PublicIpAddresses"
],
"description": "List of public ip addresses.",
"description": "List of public IP addresses.",
"operationId": "PublicIPAddresses_List",
"parameters": [
{
Expand Down
37 changes: 17 additions & 20 deletions specification/azsadmin/resource-manager/network/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,13 @@ openapi-type: arm
tag: package-2015-06-15
```
### Tag: package-2015-06-15
These settings apply only when `--tag=package-2015-06-15` is specified on the command line.

``` yaml $(tag) == 'package-2015-06-15'
``` yaml
input-file:
- "Microsoft.Network.Admin/preview/2015-06-15/Network.json"
- "Microsoft.Network.Admin/preview/2015-06-15/LoadBalancers.json"
- "Microsoft.Network.Admin/preview/2015-06-15/PublicIpAddresses.json"
- "Microsoft.Network.Admin/preview/2015-06-15/Quotas.json"
- "Microsoft.Network.Admin/preview/2015-06-15/VirtualNetworks.json"
- Microsoft.Network.Admin/preview/2015-06-15/Network.json
- Microsoft.Network.Admin/preview/2015-06-15/LoadBalancers.json
- Microsoft.Network.Admin/preview/2015-06-15/PublicIpAddresses.json
- Microsoft.Network.Admin/preview/2015-06-15/Quotas.json
- Microsoft.Network.Admin/preview/2015-06-15/VirtualNetworks.json
```
---
Expand All @@ -58,31 +54,32 @@ csharp:
clear-output-folder: true
```

## Multi-API/Profile support for AutoRest v3 generators
## Multi-API/Profile support for AutoRest v3 generators

AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.

This block is updated by an automatic script. Edits may be lost!

``` yaml $(tag) == 'all-api-versions' /* autogenerated */
# include the azure profile definitions from the standard location
require: $(this-folder)/../../../../profiles/readme.md
require: ../../../../profiles/readme.md
# all the input files across all versions
input-file:
- $(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/Network.json
- $(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/LoadBalancers.json
- $(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/PublicIpAddresses.json
- $(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/Quotas.json
- $(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/VirtualNetworks.json
- Microsoft.Network.Admin/preview/2015-06-15/Network.json
- Microsoft.Network.Admin/preview/2015-06-15/LoadBalancers.json
- Microsoft.Network.Admin/preview/2015-06-15/PublicIpAddresses.json
- Microsoft.Network.Admin/preview/2015-06-15/Quotas.json
- Microsoft.Network.Admin/preview/2015-06-15/VirtualNetworks.json
```

If there are files that should not be in the `all-api-versions` set,
If there are files that should not be in the `all-api-versions` set,
uncomment the `exclude-file` section below and add the file paths.

``` yaml $(tag) == 'all-api-versions'
#exclude-file:
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```

0 comments on commit 2bd3ecf

Please sign in to comment.