Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Azure Stack] Updates to Azs.Commerce.Admin spec for autorest config #9033

Merged
merged 4 commits into from
May 7, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@
},
"quantity": {
"description": "The amount of the resource consumption that occurred in this time frame.",
"type": "string"
"type": "number",
"format": "double"
},
"meterId": {
"description": "Unique ID for the resource that was consumed, for example, the Resource ID.",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# AutoRest v3 generators
ArcturusZhang marked this conversation as resolved.
Show resolved Hide resolved

> see https://aka.ms/autorest

``` yaml
input-file:
- $(this-folder)/Microsoft.Commerce.Admin/preview/2015-06-01-preview/Commerce.json
```
22 changes: 3 additions & 19 deletions specification/azsadmin/resource-manager/commerce/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,27 +61,11 @@ csharp:
clear-output-folder: true
```

## Multi-API/Profile support for AutoRest v3 generators
# 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
> see https://aka.ms/autorest

# all the input files across all versions
``` yaml
input-file:
- $(this-folder)/Microsoft.Commerce.Admin/preview/2015-06-01-preview/Commerce.json

```

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:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```