Skip to content

Commit

Permalink
Include sample-gen by default when generating sdk code (mgmt) (#38277)
Browse files Browse the repository at this point in the history
* update autorest.md to include sample-gen config and delete autorest.tests.md

* update more config

* update config of hardwaresecuritymodule

* fix blueprint sample config

* update to include skip sample config

* temp remove samplegen config for services using batch config
  • Loading branch information
RodgeFu authored Sep 8, 2023
1 parent fb990f2 commit ddbc54d
Show file tree
Hide file tree
Showing 302 changed files with 567 additions and 2,124 deletions.

This file was deleted.

3 changes: 3 additions & 0 deletions eng/templates/Azure.ResourceManager.Template/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ namespace: Azure.ResourceManager.ProviderShortName
require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/ProviderNameLowercase/resource-manager/readme.md
output-folder: $(this-folder)/Generated
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skip-csproj: true
modelerfour:
flatten-payloads: false
Expand Down

This file was deleted.

3 changes: 3 additions & 0 deletions sdk/advisor/Azure.ResourceManager.Advisor/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ namespace: Azure.ResourceManager.Advisor
require: https://github.com/Azure/azure-rest-api-specs/blob/db6d33733cd1eb939b863a6cdbcb9de12ac002e1/specification/advisor/resource-manager/readme.md
output-folder: $(this-folder)/Generated
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skip-csproj: true
modelerfour:
flatten-payloads: false
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ namespace: Azure.ResourceManager.AgFoodPlatform
require: https://github.com/Azure/azure-rest-api-specs/tree/e31e3938529269e0e6a81f60b2fdc6d2aec5b9df/specification/agrifood/resource-manager/readme.md
output-folder: $(this-folder)/Generated
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skip-csproj: true
modelerfour:
flatten-payloads: false
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ namespace: Azure.ResourceManager.AlertsManagement
require: https://github.com/Azure/azure-rest-api-specs/blob/0077b4a8c5071d3ab33fd9f9ba013581c9a66b8f/specification/alertsmanagement/resource-manager/readme.md
output-folder: $(this-folder)/Generated
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skip-csproj: true
modelerfour:
flatten-payloads: false
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ namespace: Azure.ResourceManager.ApiManagement
require: https://github.com/Azure/azure-rest-api-specs/blob/2f28b5026a4b44adefd0237087acb0c48cfe31a6/specification/apimanagement/resource-manager/readme.md
output-folder: $(this-folder)/Generated
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skip-csproj: true
modelerfour:
flatten-payloads: false
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ namespace: Azure.ResourceManager.AppComplianceAutomation
require: https://github.com/Azure/azure-rest-api-specs/blob/da15318e582f0cd1ea01e7a2556190c98aa1578f/specification/appcomplianceautomation/resource-manager/readme.md
output-folder: $(this-folder)/Generated
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skip-csproj: true
modelerfour:
flatten-payloads: false
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ namespace: Azure.ResourceManager.AppConfiguration
require: https://github.com/Azure/azure-rest-api-specs/blob/d7b7399fb1e1a328b49cd6a998714c6efb877bf2/specification/appconfiguration/resource-manager/readme.md
output-folder: $(this-folder)/Generated
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skip-csproj: true
modelerfour:
flatten-payloads: false
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ namespace: Azure.ResourceManager.ApplicationInsights
require: https://github.com/Azure/azure-rest-api-specs/blob/1fea23ac36b111293dc3efc30f725e9ebb790f7f/specification/applicationinsights/resource-manager/readme.md
output-folder: $(this-folder)/Generated
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skipped-operations:
- LiveToken_Get
- WorkItemConfigurations_Create
- WorkItemConfigurations_UpdateItem
skip-csproj: true
modelerfour:
flatten-payloads: false
Expand Down

This file was deleted.

This file was deleted.

3 changes: 3 additions & 0 deletions sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ namespace: Azure.ResourceManager.ArcScVmm
require: https://github.com/Azure/azure-rest-api-specs/blob/ba936cf8f3b4720dc025837281241fdc903f7e4d/specification/scvmm/resource-manager/readme.md
output-folder: $(this-folder)/Generated
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skip-csproj: true
modelerfour:
flatten-payloads: false
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ require: https://github.com/Azure/azure-rest-api-specs/blob/4270cc435fd2496bdb2a
tag: package-2021-06-01
output-folder: $(this-folder)/Generated
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skipped-operations:
- EligibleChildResources_Get
skip-csproj: true
modelerfour:
flatten-payloads: false
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ require: https://github.com/Azure/azure-rest-api-specs/blob/a436672b07fb1fe276c2
tag: package-2022-04-01
output-folder: Generated/
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skip-csproj: true

rename-mapping:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ namespace: Azure.ResourceManager.Automanage
require: https://github.com/Azure/azure-rest-api-specs/blob/4b5fe2fb0a5066c4ff2bd429dbd5e1afda6afab3/specification/automanage/resource-manager/readme.md
output-folder: $(this-folder)/Generated
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skip-csproj: true
modelerfour:
flatten-payloads: false
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ namespace: Azure.ResourceManager.Automation
require: https://github.com/Azure/azure-rest-api-specs/blob/d1b0569d8adbd342a1111d6a69764d099f5f717c/specification/automation/resource-manager/readme.md
output-folder: $(this-folder)/Generated
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skip-csproj: true
modelerfour:
flatten-payloads: false
Expand Down
13 changes: 0 additions & 13 deletions sdk/avs/Azure.ResourceManager.Avs/samples/autorest.tests.md

This file was deleted.

3 changes: 3 additions & 0 deletions sdk/avs/Azure.ResourceManager.Avs/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ namespace: Azure.ResourceManager.Avs
require: https://github.com/Azure/azure-rest-api-specs/blob/2ecbe51762643c7f6b6c6d8dd604dd934a1cc808/specification/vmware/resource-manager/readme.md
output-folder: $(this-folder)/Generated
clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
skip-csproj: true
modelerfour:
flatten-payloads: false
Expand Down
Loading

0 comments on commit ddbc54d

Please sign in to comment.