Skip to content

Commit

Permalink
remove swagger version tag if it's the default (#31741)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhou-msft authored Oct 12, 2022
1 parent e29cd16 commit e632c70
Show file tree
Hide file tree
Showing 105 changed files with 93 additions and 169 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ csharp: true
library-name: AgFoodPlatform
namespace: Azure.ResourceManager.AgFoodPlatform
require: https://github.com/Azure/azure-rest-api-specs/tree/e31e3938529269e0e6a81f60b2fdc6d2aec5b9df/specification/agrifood/resource-manager/readme.md
tag: package-preview-2021-09
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
modelerfour:
flatten-payloads: false



format-by-name-rules:
'tenantId': 'uuid'
Expand Down Expand Up @@ -48,4 +47,4 @@ rename-rules:
URI: Uri
Etag: ETag|etag

```
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: AlertsManagement
namespace: Azure.ResourceManager.AlertsManagement
require: https://github.com/Azure/azure-rest-api-specs/blob/0077b4a8c5071d3ab33fd9f9ba013581c9a66b8f/specification/alertsmanagement/resource-manager/readme.md
tag: package-2021-08
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: ApiManagement
namespace: Azure.ResourceManager.ApiManagement
require: https://github.com/Azure/azure-rest-api-specs/blob/2f28b5026a4b44adefd0237087acb0c48cfe31a6/specification/apimanagement/resource-manager/readme.md
tag: package-2021-08
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ csharp: true
library-name: AppConfiguration
namespace: Azure.ResourceManager.AppConfiguration
require: https://github.com/Azure/azure-rest-api-specs/blob/d7b7399fb1e1a328b49cd6a998714c6efb877bf2/specification/appconfiguration/resource-manager/readme.md
tag: package-2022-05-01
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down Expand Up @@ -76,7 +75,7 @@ rename-rules:
SSO: Sso
URI: Uri
Etag: ETag|etag

request-path-to-parent:
/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/deletedConfigurationStores: /subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/locations/{location}/deletedConfigurationStores/{configStoreName}
directive:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ azure-arm: true
csharp: true
library-name: ArcScVmm
namespace: Azure.ResourceManager.ArcScVmm
# default tag is a preview version
require: https://github.com/Azure/azure-rest-api-specs/blob/ba936cf8f3b4720dc025837281241fdc903f7e4d/specification/scvmm/resource-manager/readme.md
tag: package-2020-06-05-preview
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ csharp: true
library-name: Automanage
namespace: Azure.ResourceManager.Automanage
require: https://github.com/Azure/azure-rest-api-specs/blob/4b5fe2fb0a5066c4ff2bd429dbd5e1afda6afab3/specification/automanage/resource-manager/readme.md
tag: package-2022-05
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: Automation
namespace: Azure.ResourceManager.Automation
require: https://github.com/Azure/azure-rest-api-specs/blob/d1b0569d8adbd342a1111d6a69764d099f5f717c/specification/automation/resource-manager/readme.md
tag: package-2022-02-22
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down Expand Up @@ -79,4 +78,4 @@ directive:
$['x-ms-pageable'] = {
'nextLinkName': null
};
```
```
1 change: 0 additions & 1 deletion sdk/avs/Azure.ResourceManager.Avs/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: Avs
namespace: Azure.ResourceManager.Avs
require: https://github.com/Azure/azure-rest-api-specs/blob/80065490402157d0df0dd37ab347c651b22eb576/specification/vmware/resource-manager/readme.md
tag: package-2021-12-01
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: Hci
namespace: Azure.ResourceManager.Hci
require: https://github.com/Azure/azure-rest-api-specs/blob/324a148497f28ef7588eee7bdb61dcd28b74f505/specification/azurestackhci/resource-manager/readme.md
tag: package-2022-05
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
1 change: 0 additions & 1 deletion sdk/batch/Azure.ResourceManager.Batch/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: Batch
namespace: Azure.ResourceManager.Batch
require: https://github.com/Azure/azure-rest-api-specs/blob/bab2f4389eb5ca73cdf366ec0a4af3f3eb6e1f6d/specification/batch/resource-manager/readme.md
tag: package-2022-06
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
4 changes: 2 additions & 2 deletions sdk/blueprint/Azure.ResourceManager.Blueprint/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ azure-arm: true
csharp: true
library-name: Blueprint
namespace: Azure.ResourceManager.Blueprint
# default tag is a preview version
require: https://github.com/Azure/azure-rest-api-specs/blob/4270cc435fd2496bdb2a5f056dbddb463e52c7c2/specification/blueprint/resource-manager/readme.md
tag: package-2018-11-preview
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down Expand Up @@ -49,4 +49,4 @@ rename-rules:
list-exception:
- /{resourceScope}/providers/Microsoft.Blueprint/blueprints/{blueprintName}/versions/{versionId}

```
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ azure-arm: true
csharp: true
library-name: BotService
namespace: Azure.ResourceManager.BotService
# default tag is a preview version
require: https://github.com/Azure/azure-rest-api-specs/blob/af1be2677e619e483210064ff658e62ec25053aa/specification/botservice/resource-manager/readme.md
tag: package-preview-2022-06
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down Expand Up @@ -62,4 +62,4 @@ directive:
transform: >
$.channelNameParameter['x-ms-enum']['modelAsString'] = true;
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: ChangeAnalysis
namespace: Azure.ResourceManager.ChangeAnalysis
require: https://github.com/Azure/azure-rest-api-specs/blob/80065490402157d0df0dd37ab347c651b22eb576/specification/changeanalysis/resource-manager/readme.md
tag: package-2021-04-01
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
4 changes: 2 additions & 2 deletions sdk/chaos/Azure.ResourceManager.Chaos/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ azure-arm: true
csharp: true
library-name: Chaos
namespace: Azure.ResourceManager.Chaos
# default tag is a preview version
require: https://github.com/Azure/azure-rest-api-specs/blob/650a2be17c499104c7ad20f7a38f33f582170308/specification/chaos/resource-manager/readme.md
tag: package-2022-07-01-preview
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down Expand Up @@ -53,4 +53,4 @@ directive:
$.delayAction.properties.duration['x-ms-format'] = 'duration-constant';
$.continuousAction.properties.duration['x-ms-format'] = 'duration-constant';
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: CognitiveServices
namespace: Azure.ResourceManager.CognitiveServices
require: https://github.com/Azure/azure-rest-api-specs/blob/bab2f4389eb5ca73cdf366ec0a4af3f3eb6e1f6d/specification/cognitiveservices/resource-manager/readme.md
tag: package-2022-03
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Run `dotnet msbuild /t:GenerateCode` to generate code.
azure-arm: true
title: communication
namespace: Azure.ResourceManager.Communication
# default tag is a preview version
require: https://github.com/Azure/azure-rest-api-specs/blob/7168ecde052e9797d31d74c40ad00ac68c74ec6a/specification/communication/resource-manager/readme.md
tag: package-2021-10-01-preview
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
1 change: 0 additions & 1 deletion sdk/compute/Azure.ResourceManager.Compute/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ azure-arm: true
library-name: Compute
namespace: Azure.ResourceManager.Compute
require: https://github.com/Azure/azure-rest-api-specs/blob/261132757bc9806f4aa90bd5b176ecfa6a447726/specification/compute/resource-manager/readme.md
tag: package-2022-04-04
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: ConfidentialLedger
namespace: Azure.ResourceManager.ConfidentialLedger
require: https://github.com/Azure/azure-rest-api-specs/blob/e7bcafa885ef773c6309d6a8f3a65c5019df413d/specification/confidentialledger/resource-manager/readme.md
tag: package-2022-05-13
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: Confluent
namespace: Azure.ResourceManager.Confluent
require: https://github.com/Azure/azure-rest-api-specs/blob/80065490402157d0df0dd37ab347c651b22eb576/specification/confluent/resource-manager/readme.md
tag: package-2021-12-01
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: Consumption
namespace: Azure.ResourceManager.Consumption
require: https://github.com/Azure/azure-rest-api-specs/blob/6b08774c89877269e73e11ac3ecbd1bd4e14f5a0/specification/consumption/resource-manager/readme.md
tag: package-2021-10
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down Expand Up @@ -51,4 +50,4 @@ rename-rules:
URI: Uri
Etag: ETag|etag

```
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: AppContainers
namespace: Azure.ResourceManager.AppContainers
require: https://github.com/Azure/azure-rest-api-specs/blob/792db17291c758b2bfdbbc0d35d0e2f5b5a1bd05/specification/app/resource-manager/readme.md
tag: package-2022-03
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ azure-arm: true
csharp: true
library-name: ContainerRegistry
namespace: Azure.ResourceManager.ContainerRegistry
# default tag is a preview version
require: https://github.com/Azure/azure-rest-api-specs/blob/aa8a23b8f92477d0fdce7af6ccffee1c604b3c56/specification/containerregistry/resource-manager/readme.md
tag: package-2022-02-preview
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: CustomerInsights
namespace: Azure.ResourceManager.CustomerInsights
require: https://github.com/Azure/azure-rest-api-specs/blob/066eb8c81e14e0f3b22b6700c67693eef5f79ea9/specification/customer-insights/resource-manager/readme.md
tag: package-2017-04
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down Expand Up @@ -46,4 +45,4 @@ rename-rules:
URI: Uri
Etag: ETag|etag

```
```
1 change: 0 additions & 1 deletion sdk/databox/Azure.ResourceManager.DataBox/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: DataBox
namespace: Azure.ResourceManager.DataBox
require: https://github.com/Azure/azure-rest-api-specs/blob/df70965d3a207eb2a628c96aa6ed935edc6b7911/specification/databox/resource-manager/readme.md
tag: package-2022-02
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ csharp: true
library-name: DataBoxEdge
namespace: Azure.ResourceManager.DataBoxEdge
require: https://github.com/Azure/azure-rest-api-specs/blob/df70965d3a207eb2a628c96aa6ed935edc6b7911/specification/databoxedge/resource-manager/readme.md
tag: package-2022-03-01
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down
3 changes: 1 addition & 2 deletions sdk/datadog/Azure.ResourceManager.Datadog/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: Datadog
namespace: Azure.ResourceManager.Datadog
require: https://github.com/Azure/azure-rest-api-specs/blob/066eb8c81e14e0f3b22b6700c67693eef5f79ea9/specification/datadog/resource-manager/readme.md
tag: package-2021-03
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down Expand Up @@ -46,4 +45,4 @@ rename-rules:
URI: Uri
Etag: ETag|etag

```
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: DataFactory
namespace: Azure.ResourceManager.DataFactory
require: https://github.com/Azure/azure-rest-api-specs/blob/de400f7204d30d25543ac967636180728d52a88f/specification/datafactory/resource-manager/readme.md
tag: package-2018-06
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down Expand Up @@ -230,7 +229,7 @@ rename-mapping:
SsisObjectMetadataStatusResponse: SsisObjectMetadataStatusResult
SsisParameter: SsisParameterInfo
IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse: IntegrationRuntimeOutboundNetworkDependenciesResult

override-operation-name:
ActivityRuns_QueryByPipelineRun: GetActivityRun
PipelineRuns_QueryByFactory: GetPipelineRuns
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ azure-arm: true
csharp: true
library-name: DataLakeAnalytics
namespace: Azure.ResourceManager.DataLakeAnalytics
# default tag is a preview version
require: https://github.com/Azure/azure-rest-api-specs/blob/066eb8c81e14e0f3b22b6700c67693eef5f79ea9/specification/datalake-analytics/resource-manager/readme.md
tag: package-preview-2019-11
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down Expand Up @@ -55,4 +55,4 @@ rename-rules:
URI: Uri
Etag: ETag|etag

```
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ csharp: true
library-name: DataLakeStore
namespace: Azure.ResourceManager.DataLakeStore
require: https://github.com/Azure/azure-rest-api-specs/blob/3817b12e57f613a0dfd65c81fe9e8cd97af7d8c5/specification/datalake-store/resource-manager/readme.md
tag: package-2016-11
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down Expand Up @@ -55,4 +54,4 @@ rename-rules:
URI: Uri
Etag: ETag|etag

```
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ azure-arm: true
csharp: true
library-name: DataMigration
namespace: Azure.ResourceManager.DataMigration
# default tag is a preview version
require: https://github.com/Azure/azure-rest-api-specs/blob/2f28b5026a4b44adefd0237087acb0c48cfe31a6/specification/datamigration/resource-manager/readme.md
tag: package-preview-2022-03
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down Expand Up @@ -65,4 +65,4 @@ directive:
$.DatabaseMigrationPropertiesSqlMi['x-ms-client-name'] = 'DatabaseMigrationSqlMIProperties';
$.DatabaseMigrationPropertiesSqlVm['x-ms-client-name'] = 'DatabaseMigrationSqlVmProperties';
$.DatabaseMigrationPropertiesSqlDb['x-ms-client-name'] = 'DatabaseMigrationSqlDBProperties';
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ azure-arm: true
csharp: true
library-name: DeploymentManager
namespace: Azure.ResourceManager.DeploymentManager
# default tag is a preview version
require: https://github.com/Azure/azure-rest-api-specs/blob/2f28b5026a4b44adefd0237087acb0c48cfe31a6/specification/deploymentmanager/resource-manager/readme.md
tag: package-2019-11-01-preview
output-folder: $(this-folder)/Generated
clear-output-folder: true
skip-csproj: true
Expand Down Expand Up @@ -48,7 +48,7 @@ rename-rules:

directive:
# It generates a new model if the property is `allOf`, that will cause dup model error.
# So the normal solution is changing all `allOf` property to direct `ref`, but `ref` doesn't support multiple target,
# So the normal solution is changing all `allOf` property to direct `ref`, but `ref` doesn't support multiple target,
# to solve this problem here defines a temporary model `tempRolloutProperties` as a workaround.
- from: deploymentmanager.json
where: $.definitions
Expand Down Expand Up @@ -76,7 +76,7 @@ directive:
where: $.definitions
transform: >
$.HealthCheckStepAttributes.properties.waitDuration['format'] = 'duration';
$.HealthCheckStepAttributes.properties.maxElasticDuration['format'] = 'duration';
$.HealthCheckStepAttributes.properties.maxElasticDuration['format'] = 'duration';
$.HealthCheckStepAttributes.properties.healthyStateDuration['format'] = 'duration';
$.WaitStepAttributes.properties.duration['format'] = 'duration';
# `Rollout` is a superset of `RolloutRequest`, if not change this then the tag operations code can't pass compile
Expand All @@ -85,4 +85,4 @@ directive:
transform: >
$.put.responses['201']['schema']['$ref'] = '#/definitions/Rollout';
```
```
Loading

0 comments on commit e632c70

Please sign in to comment.