Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
373 commits
Select commit Hold shift + click to select a range
d8c2c64
Autogenerate schemas
Aug 21, 2021
2ce934d
Update resource list
Aug 21, 2021
338df31
Autogenerate schemas
Aug 21, 2021
9d83bd9
Update resource list
Aug 21, 2021
a134730
Autogenerate schemas
Aug 22, 2021
4c30f3b
Update resource list
Aug 22, 2021
23b9ac8
CodeGen from PR 15708 in Azure/azure-rest-api-specs
Aug 24, 2021
8a45c17
[ReleasePR recoveryservices] Adding 2021-07-01 version in recoveryser…
Aug 24, 2021
c969c0d
CodeGen from PR 15708 in Azure/azure-rest-api-specs
Aug 24, 2021
919c8e7
[ReleasePR recoveryservicessiterecovery] Adding 2021-07-01 version in…
Aug 24, 2021
646feef
CodeGen from PR 15500 in Azure/azure-rest-api-specs
Aug 24, 2021
1772169
[ReleasePR marketplace] added notifications settings (#1857)
Aug 24, 2021
3d5fa6f
CodeGen from PR 15428 in Azure/azure-rest-api-specs
Aug 24, 2021
8840c59
[ReleasePR iothub] [Hub Generated] Review request for Microsoft.Devic…
Aug 24, 2021
ca79fff
Merge remote-tracking branch 'origin/main' into autogenerate
Aug 24, 2021
3f30a49
Update resource list
Aug 24, 2021
8d2c67e
Autogenerate schemas
Aug 24, 2021
3a8379d
Update resource list
Aug 24, 2021
38cd728
add compute 2021-07-01 and 2021-04-01
grizzlytheodore Aug 25, 2021
51286cf
CodeGen from PR 15722 in Azure/azure-rest-api-specs
Aug 25, 2021
6fd36e3
[ReleasePR iothub] Removing readonly for isVerified property as it is…
Aug 25, 2021
b933c84
CodeGen from PR 15763 in Azure/azure-rest-api-specs
Aug 25, 2021
1a448d6
[ReleasePR mixedreality] [Hub Generated] Public private branch 'raono…
Aug 25, 2021
daded12
CodeGen from PR 15636 in Azure/azure-rest-api-specs
Aug 25, 2021
ce2f9eb
[ReleasePR applicationinsights] [Hub Generated] Review request for Mi…
Aug 25, 2021
450cef1
Merge remote-tracking branch 'origin/main' into autogenerate
Aug 25, 2021
3eb47ae
Update resource list
Aug 25, 2021
4971a1f
Autogenerate schemas
Aug 25, 2021
1c1f630
Update resource list
Aug 25, 2021
fd5950d
deploymentTemplate
grizzlytheodore Aug 25, 2021
29ba1b5
Merge pull request #1859 from grizzlytheodore/master
anthony-c-martin Aug 26, 2021
5faeac0
CodeGen from PR 15797 in Azure/azure-rest-api-specs
Aug 26, 2021
cbe6d70
[ReleasePR iothub] Revert "[Hub Generated] Review request for Microso…
Aug 26, 2021
8b67f0b
CodeGen from PR 15783 in Azure/azure-rest-api-specs
Aug 26, 2021
38bd1d1
CodeGen from PR 15783 in Azure/azure-rest-api-specs
Aug 26, 2021
bf9360a
CodeGen from PR 15458 in Azure/azure-rest-api-specs
Aug 26, 2021
56a77d1
[ReleasePR keyvault] Add rotation permission (#1865)
Aug 26, 2021
594c023
CodeGen from PR 15626 in Azure/azure-rest-api-specs
Aug 26, 2021
0da305f
[ReleasePR datafactory] [DataFactory]Support AmazonRdsForOracle Conne…
Aug 26, 2021
8b16bcb
CodeGen from PR 14956 in Azure/azure-rest-api-specs
Aug 26, 2021
d6a9b1f
[ReleasePR automation] Add New Api 2021-06-22 (#1867)
Aug 26, 2021
878a100
Merge remote-tracking branch 'origin/main' into autogenerate
Aug 26, 2021
588164b
Update resource list
Aug 26, 2021
49af1f2
Autogenerate schemas
Aug 26, 2021
5a1c4a0
Update resource list
Aug 26, 2021
8f67d21
Merge pull request #1856 from AzureSDKAutomation/sdkAuto/servicebus
azcloudfarmer Aug 26, 2021
6ee7f1e
Merge pull request #1854 from AzureSDKAutomation/sdkAuto/eventhub
azcloudfarmer Aug 26, 2021
c3f6983
Merge pull request #1610 from AzureSDKAutomation/sdkAuto/signalr
azcloudfarmer Aug 26, 2021
7952041
CodeGen from PR 15213 in Azure/azure-rest-api-specs
Aug 27, 2021
29b85f1
[ReleasePR netapp] [NetAppFiles] s360 fixes to 2021-01 (#1868)
Aug 27, 2021
55d414f
Autogenerate schemas
Aug 27, 2021
e41d03c
CodeGen from PR 15819 in Azure/azure-rest-api-specs
Aug 27, 2021
03a5d86
[ReleasePR automation] Adding DisableLocalAuth property in PUT payloa…
Aug 27, 2021
738bcfb
Autogenerate schemas
Aug 27, 2021
05b23ae
Update resource list
Aug 27, 2021
095724e
Merge remote-tracking branch 'origin/main' into autogenerate
Aug 28, 2021
57fbe73
Autogenerate schemas
Aug 28, 2021
7f99e32
Update resource list
Aug 28, 2021
13d65d5
Autogenerate schemas
Aug 28, 2021
60c1d95
Update resource list
Aug 28, 2021
b791336
Autogenerate schemas
Aug 29, 2021
5a56619
Update resource list
Aug 29, 2021
bbd9c62
Autogenerate schemas
Aug 29, 2021
a5aeb04
Update resource list
Aug 29, 2021
c8d832f
Autogenerate schemas
Aug 30, 2021
e73b517
Update resource list
Aug 30, 2021
181b413
CodeGen from PR 15468 in Azure/azure-rest-api-specs
Aug 31, 2021
ff35b92
[ReleasePR datafactory] [Datafactory]subnet id support for swift inje…
Aug 31, 2021
86cea55
CodeGen from PR 15233 in Azure/azure-rest-api-specs
Aug 31, 2021
c944ef2
[ReleasePR eventhub] Service Bus and EventHub : 2021-06-01-preview -…
Aug 31, 2021
89bb892
Merge remote-tracking branch 'origin/main' into autogenerate
Aug 31, 2021
7cd7154
Autogenerate schemas
Aug 31, 2021
1b55557
Update resource list
Aug 31, 2021
b90faaa
CodeGen from PR 15871 in Azure/azure-rest-api-specs
Sep 1, 2021
0ba32d8
[ReleasePR machinelearningservices] Add property enableNodePublicIp (…
Sep 1, 2021
6ad80bb
CodeGen from PR 15836 in Azure/azure-rest-api-specs
Sep 1, 2021
6a51b29
[ReleasePR authorization] add RBAC to 2020-10-01-preview autogen (#1876)
Sep 1, 2021
e6821f2
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 1, 2021
64c6005
Autogenerate schemas
Sep 1, 2021
84a14b8
Update resource list
Sep 1, 2021
fd935d4
CodeGen from PR 15246 in Azure/azure-rest-api-specs
Sep 2, 2021
2eaaf1f
CodeGen from PR 15507 in Azure/azure-rest-api-specs
Sep 2, 2021
1459599
[ReleasePR azureactivedirectory] [Hub Generated] Review request for M…
Sep 2, 2021
2d57a55
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 2, 2021
6e177f0
Update resource list
Sep 2, 2021
d373456
Autogenerate schemas
Sep 2, 2021
b948dd1
Update resource list
Sep 2, 2021
36b7ade
Autogenerate schemas
Sep 2, 2021
22cdaf9
Update resource list
Sep 2, 2021
2160f21
CodeGen from PR 15889 in Azure/azure-rest-api-specs
Sep 3, 2021
d74c1c4
[ReleasePR desktopvirtualization] patch 0401 add patch property for w…
Sep 3, 2021
3ba94df
CodeGen from PR 14849 in Azure/azure-rest-api-specs
Sep 3, 2021
3db622a
[ReleasePR reservations] Adding list reservations API to Microsoft.Ca…
Sep 3, 2021
9bd80e1
CodeGen from PR 15750 in Azure/azure-rest-api-specs
Sep 3, 2021
6a97e8f
[ReleasePR sql] Change SecurityAlertPolicyName from default to Defaul…
Sep 3, 2021
d2ff67f
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 3, 2021
6226f02
Update resource list
Sep 3, 2021
1a50f15
CodeGen from PR 15661 in Azure/azure-rest-api-specs
Sep 3, 2021
9d96184
[ReleasePR datafactory] [datafactory] add new connector amazon rds fo…
Sep 3, 2021
1ed1299
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 3, 2021
c7505de
Autogenerate schemas
Sep 3, 2021
ed013d2
Update resource list
Sep 3, 2021
2df7e32
Autogenerate schemas
Sep 4, 2021
82487c8
Update resource list
Sep 4, 2021
ad8d34c
Autogenerate schemas
Sep 7, 2021
07ebe8e
Autogenerate schemas
Sep 7, 2021
1da5818
Update resource list
Sep 7, 2021
0b5a4be
CodeGen from PR 15616 in Azure/azure-rest-api-specs
Sep 8, 2021
7c121e5
[ReleasePR redhatopenshift] Add Red Hat OpenShift 2021-09-01-preview …
Sep 8, 2021
2ba50ec
CodeGen from PR 15861 in Azure/azure-rest-api-specs
Sep 8, 2021
53e06b4
[ReleasePR azureactivedirectory] [Hub Generated] Review request for M…
Sep 8, 2021
165adc5
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 8, 2021
a64567f
Update resource list
Sep 8, 2021
a0eb0c8
Autogenerate schemas
Sep 8, 2021
44a02ee
Update resource list
Sep 8, 2021
d2c1baf
Autogenerate schemas
Sep 8, 2021
db09ecd
Update resource list
Sep 8, 2021
e335445
CodeGen from PR 15954 in Azure/azure-rest-api-specs
Sep 9, 2021
89daca6
[ReleasePR containerservice] Merge Dev-containerservice-microsoft.con…
Sep 9, 2021
4b028c3
CodeGen from PR 14817 in Azure/azure-rest-api-specs
Sep 9, 2021
8e93c4b
[ReleasePR cosmos-db] [CosmosDB] Adding apiVersion 2021-07-01-preview…
Sep 9, 2021
b26de78
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 9, 2021
6e8049a
Update resource list
Sep 9, 2021
57998a4
Autogenerate schemas
Sep 9, 2021
95a8ec0
Update resource list
Sep 9, 2021
0207a67
CodeGen from PR 15965 in Azure/azure-rest-api-specs
Sep 10, 2021
233b441
[ReleasePR purview] Updated SKU property to be read only (#1892)
Sep 10, 2021
a95180a
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 10, 2021
dd9476d
Autogenerate schemas
Sep 10, 2021
3812f0f
Update resource list
Sep 10, 2021
dff5df3
added prefix to Microsoft.Migrate
jorgecotillo Sep 10, 2021
a1bd157
CodeGen from PR 15956 in Azure/azure-rest-api-specs
Sep 11, 2021
a0d3603
[ReleasePR hybridkubernetes] New GA version changes - 2021-10-01 (#1893)
Sep 11, 2021
c9ce813
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 11, 2021
28c6771
Update resource list
Sep 11, 2021
568c55f
Autogenerate schemas
Sep 12, 2021
6f26695
Update resource list
Sep 12, 2021
2669b2f
CodeGen from PR 15899 in Azure/azure-rest-api-specs
Sep 13, 2021
966391c
[ReleasePR alertsmanagement] [Hub Generated] Public private branch 'd…
Sep 13, 2021
8645d90
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 13, 2021
4f6d94c
Update resource list
Sep 13, 2021
5cac59a
added suffix to disambiguate namespaces
jorgecotillo Sep 13, 2021
8de885d
Merge pull request #1895 from Azure/jcotillo/fix-ci-09132021
jorgecotillo Sep 13, 2021
426eee4
CodeGen from PR 16008 in Azure/azure-rest-api-specs
Sep 14, 2021
a9fa8ec
[ReleasePR azurearcdata] fix(arcdata): incorrect .net sdk path (#1896)
Sep 14, 2021
2b94e0c
CodeGen from PR 15850 in Azure/azure-rest-api-specs
Sep 14, 2021
089c6bb
CodeGen from PR 15627 in Azure/azure-rest-api-specs
Sep 14, 2021
a4c9b8f
[ReleasePR netapp] [NetAppFiles] Add missing features, quotaLimits an…
Sep 14, 2021
5685bef
[ReleasePR storage] [SRP] 2021-06-01 Swagger Api (#1898)
Sep 14, 2021
2651c31
CodeGen from PR 14311 in Azure/azure-rest-api-specs
Sep 14, 2021
e728ef9
[ReleasePR iotcentral] [Microsoft.IoTCentral/iotApps] Removal of lega…
Sep 14, 2021
649fc55
CodeGen from PR 15721 in Azure/azure-rest-api-specs
Sep 14, 2021
90c8b2a
[ReleasePR containerinstance] [Hub Generated] Review request for Micr…
Sep 14, 2021
ff81dc3
CodeGen from PR 15913 in Azure/azure-rest-api-specs
Sep 14, 2021
dc279a3
[ReleasePR desktopvirtualization] Dev desktopvirtualization microsoft…
Sep 14, 2021
bae8bf0
CodeGen from PR 15893 in Azure/azure-rest-api-specs
Sep 14, 2021
e607757
[ReleasePR datalake-analytics] [Hub Generated] Review request for Mic…
Sep 14, 2021
407888b
CodeGen from PR 15971 in Azure/azure-rest-api-specs
Sep 14, 2021
f5bcb25
[ReleasePR cosmos-db] [CosmosDB] Fixing bugs in Services APIs (#1903)
Sep 14, 2021
0b0f92a
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 14, 2021
068298e
Update resource list
Sep 14, 2021
74adfeb
CodeGen from PR 15815 in Azure/azure-rest-api-specs
Sep 14, 2021
159f49f
[ReleasePR hdinsight] [HDInsight] Onboard a new api version 2021-06-0…
Sep 14, 2021
8b92dcd
Autogenerate schemas
Sep 14, 2021
5679948
Update resource list
Sep 14, 2021
98f2e91
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 14, 2021
e4a9aef
Update resource list
Sep 14, 2021
9e592f8
CodeGen from PR 15648 in Azure/azure-rest-api-specs
Sep 14, 2021
9f6771a
[ReleasePR consumption] [Hub Generated] Review request for Microsoft.…
Sep 14, 2021
9072b24
generate resource move schema
jorgecotillo Sep 14, 2021
220d020
Merge pull request #1685 from AzureSDKAutomation/sdkAuto/monitor
anthony-c-martin Sep 14, 2021
2670754
Adding the schema for uiFormDefinition. A uiFormDefinition lets you c…
Sep 14, 2021
ce30c03
CodeGen from PR 15939 in Azure/azure-rest-api-specs
Sep 15, 2021
a3e2108
[ReleasePR labservices] [Hub Generated] Review request for Microsoft.…
Sep 15, 2021
15855bf
CodeGen from PR 15749 in Azure/azure-rest-api-specs
Sep 15, 2021
6500fdd
[ReleasePR monitor] [Hub Generated] Review request for Microsoft.Insi…
Sep 15, 2021
f4f0bca
CodeGen from PR 15864 in Azure/azure-rest-api-specs
Sep 15, 2021
d7dc6d9
[ReleasePR signalr] add new version 2021-09-01-preview for signalr (#…
Sep 15, 2021
912dfcc
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 15, 2021
6a22637
Update resource list
Sep 15, 2021
afef4e2
CodeGen from PR 16009 in Azure/azure-rest-api-specs
Sep 15, 2021
21a85f1
[ReleasePR sql] Move Sql 2014-04-01 legacy files to a new folder (#1911)
Sep 15, 2021
bec5299
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 15, 2021
c28cdeb
Fixing the schema by removing the # at the end
Sep 15, 2021
c673da8
Fixing cyclic dependencies
Sep 15, 2021
5df7cb0
Fixing cyclic dependencies
Sep 15, 2021
f9447c1
CodeGen from PR 15988 in Azure/azure-rest-api-specs
Sep 16, 2021
c51e34e
[ReleasePR guestconfiguration] Guest Configuration S360 Swagger fixes…
Sep 16, 2021
0584918
CodeGen from PR 15979 in Azure/azure-rest-api-specs
Sep 16, 2021
c6f66e4
[ReleasePR eventhub] EventHub: Added missing Cluster API in 2021-06-0…
Sep 16, 2021
3aaf5b3
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 16, 2021
c55dd84
Update resource list
Sep 16, 2021
0f6ccad
Onboard Microsoft.ExtendedLocation for autogen
anthony-c-martin Sep 16, 2021
af7610f
Merge pull request #1915 from Azure/antmarit/onboard_extendedlocation
jorgecotillo Sep 16, 2021
87d621f
Merge pull request #1870 from Azure/autogenerate
anthony-c-martin Sep 16, 2021
07fe108
CodeGen from PR 16065 in Azure/azure-rest-api-specs
Sep 17, 2021
7ffd0d6
[ReleasePR sql] Remove 2014-04-01 TDE related swagger and example (#1…
Sep 17, 2021
cd2cef8
CodeGen from PR 16052 in Azure/azure-rest-api-specs
Sep 17, 2021
c1b076f
[ReleasePR cosmos-db] [CosmosDB] Fixing bug in CassandraView APIs (#1…
Sep 17, 2021
bd64aca
Merge remote-tracking branch 'origin/main' into autogenerate
Sep 17, 2021
87af25c
Autogenerate schemas
Sep 17, 2021
1205cea
Update resource list
Sep 17, 2021
bbed14f
Generated report
Sep 17, 2021
a25de54
CodeGen from PR 16024 in Azure/azure-rest-api-specs
Sep 17, 2021
625f38e
[ReleasePR keyvault] Update description of trigger options (#1918)
Sep 17, 2021
f1abe54
Merge pull request #1919 from Azure/autogenerate
jorgecotillo Sep 17, 2021
cf0505e
Testing with GH action:
anthony-c-martin Sep 17, 2021
bc1dc54
Merge pull request #1920 from Azure/ant/actions
anthony-c-martin Sep 17, 2021
58c6810
Update generate-types.yml
anthony-c-martin Sep 17, 2021
66900e1
Use $GITHUB_WORKSPACE env var
anthony-c-martin Sep 17, 2021
028ecf1
CodeGen from PR 16042 in Azure/azure-rest-api-specs
Sep 18, 2021
379a774
[ReleasePR keyvault] [Hub Generated] Review request for Microsoft.Key…
Sep 18, 2021
cf6b2c4
CodeGen from PR 15593 in Azure/azure-rest-api-specs
Sep 18, 2021
658874f
[ReleasePR kubernetesconfiguration] Dev kubernetesconfiguration micro…
Sep 18, 2021
e977176
Adding v7 schema support
Sep 20, 2021
bceb043
Adding v7 schema support
Sep 20, 2021
9fe0588
Fixing schema version
Sep 20, 2021
c4dc457
Update tests.ts
anthony-c-martin Sep 20, 2021
d0413d9
Add "id" field
anthony-c-martin Sep 20, 2021
d0d094e
Merge pull request #1906 from ShrishaKumar/main
anthony-c-martin Sep 20, 2021
fe053c4
CodeGen from PR 15652 in Azure/azure-rest-api-specs
Sep 22, 2021
6647def
[ReleasePR databox] added new API version in preview, new SKU named C…
Sep 22, 2021
4fd5499
CodeGen from PR 14776 in Azure/azure-rest-api-specs
Sep 22, 2021
ab5a49e
[ReleasePR migrate] Private endpoints and JEDI controllers (#1880)
Sep 22, 2021
27e0175
CodeGen from PR 15841 in Azure/azure-rest-api-specs
Sep 22, 2021
7419e39
[ReleasePR recoveryservicessiterecovery] Azure Site Recovery: New ver…
Sep 22, 2021
0fcd697
CodeGen from PR 15832 in Azure/azure-rest-api-specs
Sep 23, 2021
73292d3
[ReleasePR apimanagement] Microsoft.ApiManagement : Release api-versi…
Sep 23, 2021
28bf66d
CodeGen from PR 15881 in Azure/azure-rest-api-specs
Sep 24, 2021
2146d86
[ReleasePR recoveryservicesbackup] [Hub Generated] Review request for…
Sep 24, 2021
f429ccd
Update Generated Types
jorgecotillo Sep 24, 2021
5f84126
CodeGen from PR 15718 in Azure/azure-rest-api-specs
Sep 24, 2021
74ea12e
[ReleasePR timeseriesinsights] [Hub Generated] Review request for Mic…
Sep 24, 2021
33636eb
Merge pull request #1932 from Azure/autogenerate-73292d3
anthony-c-martin Sep 24, 2021
723753e
CodeGen from PR 16144 in Azure/azure-rest-api-specs
Sep 26, 2021
3609f81
[ReleasePR databox] Update databox.json (#1934)
Sep 26, 2021
6e683b0
CodeGen from PR 16155 in Azure/azure-rest-api-specs
Sep 27, 2021
37712d5
[ReleasePR containerservice] Improve desire count desc (#1936)
Sep 27, 2021
7813853
CodeGen from PR 16126 in Azure/azure-rest-api-specs
Sep 27, 2021
0456406
[ReleasePR cosmos-db] [CosmosDB]Fixing bug from 2021-07-01-preview ap…
Sep 27, 2021
636480a
Add servicelinker to autogenlist
Sep 27, 2021
1753d7d
Merge pull request #1938 from najian/AddRPservicelinker
leniatgh Sep 27, 2021
3ba7a7e
CodeGen from PR 16176 in Azure/azure-rest-api-specs
Sep 27, 2021
b782c8d
[ReleasePR servicelinker] add azure-resource-manager-schema to Micros…
Sep 27, 2021
da1dfd0
Update autogenlist.ts
vasundhraManhas Sep 28, 2021
861f09b
indentation changes
vasundhraManhas Sep 28, 2021
91e1f6f
correction in type under resourceConfig
vasundhraManhas Sep 28, 2021
44b78f0
indent changes
vasundhraManhas Sep 28, 2021
92aae3d
Merge pull request #1940 from vasundhraManhas/patch-1
leniatgh Sep 28, 2021
2c0be28
CodeGen from PR 15457 in Azure/azure-rest-api-specs
Sep 29, 2021
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
68 changes: 0 additions & 68 deletions .github/workflows/autogenerateBatch0.yml

This file was deleted.

71 changes: 71 additions & 0 deletions .github/workflows/generate-types.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Generate Types

on:
workflow_dispatch:
inputs:
api_specs_ref:
description: 'Git ref or full SHA for https://github.com/Azure/azure-rest-api-specs.'
required: true
default: 'main'
single_path:
description: 'The path to generate types for (e.g. "compute", or "keyvault"). Leave blank to generate all types.'
required: false

jobs:
update-types:
name: Update Types
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]

- name: Clone azure-rest-api-specs
uses: actions/[email protected]
with:
repository: Azure/azure-rest-api-specs
path: workflow-temp/azure-rest-api-specs
ref: ${{ github.event.inputs.api_specs_ref }}

- name: Install generator npm packages
run: npm ci
working-directory: generator

- id: generate
name: Run generator
run: |
if [ -z "${{ github.event.inputs.single_path }}" ]
then
npm run generate-all -- '{"localPath": "$GITHUB_WORKSPACE/workflow-temp/azure-rest-api-specs"}'
else
npm run generate-single -- '${{ github.event.inputs.single_path }}/resource-manager' '$GITHUB_WORKSPACE/workflow-temp/azure-rest-api-specs'
fi
working-directory: generator

- id: get_swagger_gh_uri
name: Get GitHub URI for azure-rest-api-specs
run: |
git_sha=`git rev-parse HEAD`
echo "::set-output name=gh_uri::https://github.com/Azure/azure-rest-api-specs/tree/$git_sha"
working-directory: workflow-temp/azure-rest-api-specs

- name: Create Pull Request
uses: peter-evans/[email protected]
with:
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: autogenerate
branch-suffix: short-commit-hash
delete-branch: true
title: |
Update Generated Types ${{ github.event.inputs.single_path && format('(single path: {0})', github.event.inputs.single_path) || '' }}
body: |
Update Generated Types ${{ github.event.inputs.single_path && format('(single path: {0})', github.event.inputs.single_path) || '' }}

Generate types for ${{ steps.get_swagger_gh_uri.outputs.gh_uri }}
commit-message: |
Update Generated Types ${{ github.event.inputs.single_path && format('(single path: {0})', github.event.inputs.single_path) || '' }}

Generate types for ${{ steps.get_swagger_gh_uri.outputs.gh_uri }}
labels: autogenerate
draft: false
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
pull_request:
branches: [ master ]
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ schemas/code-model-v1
Debug
Release
obj
bin
bin

# Temporary directory for GitHub workflows to use
/workflow-temp
6 changes: 3 additions & 3 deletions azure-pipelines-autogen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ jobs:
set -Eeuxo pipefail
git checkout $(Build.SourceBranchName)
git pull
git merge --no-commit --no-ff --strategy-option=theirs origin/master
git merge --no-commit --no-ff --strategy-option=theirs origin/main
if ! git diff-index --quiet HEAD --; then
git commit -m "Merge remote-tracking branch 'origin/master' into $(Build.SourceBranchName)"
git commit -m "Merge remote-tracking branch 'origin/main' into $(Build.SourceBranchName)"
git push origin $(Build.SourceBranchName)
fi
displayName: Integrate master branch
displayName: Integrate main branch

- script: |
set -Eeuxo pipefail
Expand Down
22 changes: 13 additions & 9 deletions generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ View the Pipeline Configuration [here](/azure-pipelines-autogen.yml).
#### Merging Pipeline-generated schemas

1. Review the status badge on this page to ensure the latest run was successful.
2. Create a Pull Request from [`autogenerate`](https://github.com/Azure/azure-resource-manager-schemas/tree/autogenerate) to [`master`](https://github.com/Azure/azure-resource-manager-schemas/tree/master).
2. Create a Pull Request from [`autogenerate`](https://github.com/Azure/azure-resource-manager-schemas/tree/autogenerate) to [`main`](https://github.com/Azure/azure-resource-manager-schemas/tree/main).
3. If there are any modifications to [schemas/common/autogeneratedResources.json](/schemas/common/autogeneratedResources.json), push a commit to the autogenerate branch to make any corresponding changes to [schemas/2014-04-01-preview/deploymentTemplate.json](/schemas/2014-04-01-preview/deploymentTemplate.json) and [schemas/2015-01-01/deploymentTemplate.json](/schemas/2015-01-01/deploymentTemplate.json).

#### Onboarding to the autogeneration pipeline

1. Follow the steps listed under [Getting Started](#getting-started). The following commands assume you are running in the `generator` directory.
3. Run `npm run list-basepaths` to discover the specs repo path containing the swagger definitions.
4. Run `npm run generate-single {basePath}` to generate schemas for them. Save the console output to file.
5. Manually remove any existing references to your provider namespace (if any) from [schemas/2019-04-01/deploymentTemplate.json](/schemas/2019-04-01/deploymentTemplate.json).
6. Add the {basePath} to the autogenlist array in [autogenlist.ts](./autogenlist.ts).
7. Commit all the changed files, and submit a PR to this repo with title "Onboarding {provider} for autogeneration". Include the full output saved in step 2 as a comment.
8. Ensure all CI tests pass, and ask the team to review the PR (including tool output) to ensure that all expected resources have been detected and generated as expected.
New resource providers are onboarded for autogeneration by default, so the only providers which have been opted out are listed in [autogenlist.ts](./autogenlist.ts) with `disabledForAutogen` set.

If your team has been opted out, and you would like to opt in, please raise an issue in this repo, and we will assist.

> The following steps are no longer necessary for onboarding, but listed here for reference:
> 1. Follow the steps listed under [Getting Started](#getting-started). The following commands assume you are running in the > `generator` directory.
> 3. Run `npm run list-basepaths` to discover the specs repo path containing the swagger definitions.
> 4. Run `npm run generate-single {basePath}` to generate schemas for them. Save the console output to file.
> 5. Manually remove any existing references to your provider namespace (if any) from [schemas/2019-04-01/deploymentTemplate.> json](/schemas/2019-04-01/deploymentTemplate.json).
> 6. Add the {basePath} to the autogenlist array in [autogenlist.ts](./autogenlist.ts).
> 7. Commit all the changed files, and submit a PR to this repo with title "Onboarding {provider} for autogeneration". Include > the full output saved in step 2 as a comment.
> 8. Ensure all CI tests pass, and ask the team to review the PR (including tool output) to ensure that all expected resources > have been detected and generated as expected.
Loading