From 3030d867f5d943d1ba39bda4eee3ff776c8f229d Mon Sep 17 00:00:00 2001 From: Vishnu Priya Ananthu Sundaram Date: Fri, 26 Jun 2020 19:21:19 -0700 Subject: [PATCH] [Azure Stack] Updates to Azs.Compute.Admin spec for autorest config (#9032) * Cumulative commit message: commit 4ec980f9748c6ee9a98389fff0b3941fc8f1fc63 (azure/stackadmin) Author: Yuxing Zhou 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 c70efa60201b0925ca77831ca5a366d0f5467387 Author: bganapa Date: Tue Feb 25 19:33:53 2020 -0800 Updating ReadMe to include (this-folder) commit ac2ee5503620ba820d56fc739fd964eff4daa115 Author: Yuxing Zhou Date: Mon Feb 17 08:52:02 2020 +0800 Add TargetScaleUnitParameter and TargetVolumeLabelParameter (#8409) commit 79944a31588af85709579279e236c7d60b122d98 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 8ef2c06649fb573679f0d2d4999591d5621d7219 Merge: 4691c2aba b53a498fc Author: bganapa Date: Tue Feb 4 22:11:56 2020 -0800 git merge upstream/master commit 9e551f0eab4057d4c2f54c333c7aa2a1a564c125 Author: bganapa Date: Tue Nov 12 11:44:22 2019 -0800 Reset to Stackadmin2 (#7766) * Add autorest config to readme.md * Fix path reference --- .../2015-12-01-preview/VMExtensions.json | 4 +++ .../compute/readme.azsautogen.md | 13 +++++++ .../resource-manager/compute/readme.md | 36 ++++++------------- 3 files changed, 27 insertions(+), 26 deletions(-) create mode 100644 specification/azsadmin/resource-manager/compute/readme.azsautogen.md diff --git a/specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2015-12-01-preview/VMExtensions.json b/specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2015-12-01-preview/VMExtensions.json index e3ddfb5dadba..933404e75268 100644 --- a/specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2015-12-01-preview/VMExtensions.json +++ b/specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2015-12-01-preview/VMExtensions.json @@ -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" diff --git a/specification/azsadmin/resource-manager/compute/readme.azsautogen.md b/specification/azsadmin/resource-manager/compute/readme.azsautogen.md new file mode 100644 index 000000000000..7376b5eb69c3 --- /dev/null +++ b/specification/azsadmin/resource-manager/compute/readme.azsautogen.md @@ -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 +``` diff --git a/specification/azsadmin/resource-manager/compute/readme.md b/specification/azsadmin/resource-manager/compute/readme.md index 26cb9b4ef55a..2bed47d25cc2 100644 --- a/specification/azsadmin/resource-manager/compute/readme.md +++ b/specification/azsadmin/resource-manager/compute/readme.md @@ -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 ``` -