Skip to content

Commit

Permalink
[Azure Stack] Updates to Azs.Compute.Admin spec for autorest config (#…
Browse files Browse the repository at this point in the history
…9032)

* Cumulative commit message:
commit 4ec980f (azure/stackadmin)
Author: Yuxing Zhou <zyx.pulsars@gmail.com>
Date:   Wed Mar 18 15:14:57 2020 +0800

    [Azure Stack] Add scaleUnit and volumeLabel parameter to Disks_List (#8733)

    * add scaleUnit and volumeLabel to Disks_List

    * fix ref location

    * update parameter description

commit c70efa6
Author: bganapa <bganapa@microsoft.com>
Date:   Tue Feb 25 19:33:53 2020 -0800

    Updating ReadMe to include (this-folder)

commit ac2ee55
Author: Yuxing Zhou <zyx.pulsars@gmail.com>
Date:   Mon Feb 17 08:52:02 2020 +0800

    Add TargetScaleUnitParameter and TargetVolumeLabelParameter (#8409)

commit 79944a3
Author: hannah-murphy-0 <60626670+hannah-murphy-0@users.noreply.github.com>
Date:   Thu Feb 13 17:25:47 2020 -0800

    Adding publisher field to VMExtension model (#8398)
                                                                                                                        commit 8ef2c06                                                                         Merge: 4691c2a b53a498                                                                                              Author: bganapa <bganapa@microsoft.com>                            Date:   Tue Feb 4 22:11:56 2020 -0800                                        git merge upstream/master
    commit 9e551f0
Author: bganapa <bganapa@microsoft.com>
Date:   Tue Nov 12 11:44:22 2019 -0800

    Reset to Stackadmin2 (#7766)

* Add autorest config to readme.md

* Fix path reference
  • Loading branch information
viananth authored Jun 27, 2020
1 parent 0b912b1 commit 3030d86
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@
"description": "Target virtual machine operating system type necessary for deploying the extension handler.",
"$ref": "PlatformImages.json#/definitions/OsType"
},
"publisher": {
"description": "The publisher of the VM Extension",
"type": "string"
},
"computeRole": {
"description": "Compute role",
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# AutoRest v3 generators

> see https://aka.ms/autorest
``` yaml
input-file:
- Microsoft.Compute.Admin/preview/2015-12-01-preview/Compute.json
- Microsoft.Compute.Admin/preview/2015-12-01-preview/PlatformImages.json
- Microsoft.Compute.Admin/preview/2018-02-09/Quotas.json
- Microsoft.Compute.Admin/preview/2015-12-01-preview/VMExtensions.json
- Microsoft.Compute.Admin/preview/2018-07-30-preview/Disks.json
- Microsoft.Compute.Admin/preview/2018-07-30-preview/DiskMigrationJobs.json
```
36 changes: 10 additions & 26 deletions specification/azsadmin/resource-manager/compute/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,32 +56,16 @@ 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
# all the input files across all versions
input-file:
- $(this-folder)/Microsoft.Compute.Admin/preview/2015-12-01-preview/Compute.json
- $(this-folder)/Microsoft.Compute.Admin/preview/2015-12-01-preview/PlatformImages.json
- $(this-folder)/Microsoft.Compute.Admin/preview/2018-02-09/Quotas.json
- $(this-folder)/Microsoft.Compute.Admin/preview/2015-12-01-preview/VMExtensions.json
- $(this-folder)/Microsoft.Compute.Admin/preview/2018-07-30-preview/Disks.json
- $(this-folder)/Microsoft.Compute.Admin/preview/2018-07-30-preview/DiskMigrationJobs.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.
> see https://aka.ms/autorest

``` yaml $(tag) == 'all-api-versions'
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
``` yaml
input-file:
- Microsoft.Compute.Admin/preview/2015-12-01-preview/Compute.json
- Microsoft.Compute.Admin/preview/2015-12-01-preview/PlatformImages.json
- Microsoft.Compute.Admin/preview/2018-02-09/Quotas.json
- Microsoft.Compute.Admin/preview/2015-12-01-preview/VMExtensions.json
- Microsoft.Compute.Admin/preview/2018-07-30-preview/Disks.json
- Microsoft.Compute.Admin/preview/2018-07-30-preview/DiskMigrationJobs.json
```

0 comments on commit 3030d86

Please sign in to comment.