Skip to content

Commit acd8fbd

Browse files
authored
Merge pull request #2973 from Azure/autogenerate-batch
Update Generated Schemas
2 parents 4d8b88f + 7a36d2b commit acd8fbd

13 files changed

+17256
-3
lines changed

generator/autogenlist.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { postProcessor as mediaPostProcessor } from './processors/Microsoft.Medi
1515
import { postProcessor as networkPostProcessor } from './processors/Microsoft.Network';
1616
import { postProcessor as azureStackHciPostProcessor } from './processors/Microsoft.AzureStackHCI';
1717
import { postProcessor as resourcesPostProcessor } from './processors/Microsoft.Resources';
18+
import { postProcessor as serviceFabricPostProcessor } from './processors/Microsoft.ServiceFabric';
1819
import { lowerCaseEquals } from './utils';
1920

2021
// New providers are onboarded by default. The providers listed here are the only ones **not** onboarded.
@@ -107,7 +108,7 @@ const disabledProviders: AutoGenConfig[] = [
107108
basePath: 'confidentialLedger/resource-manager',
108109
namespace: 'Microsoft.ConfidentialLedger',
109110
disabledForAutogen: true
110-
}
111+
},
111112
];
112113

113114
// Run "npm run list-basepaths" to discover all the valid readme files to add to this list
@@ -782,6 +783,7 @@ const autoGenList: AutoGenConfig[] = [
782783
{
783784
basePath: 'servicefabric/resource-manager',
784785
namespace: 'Microsoft.ServiceFabric',
786+
postProcessor: serviceFabricPostProcessor,
785787
},
786788
{
787789
basePath: 'servicelinker/resource-manager',
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
import { SchemaPostProcessor } from '../models';
4+
5+
export const postProcessor: SchemaPostProcessor = async (namespace, apiVersion, schema) => {
6+
7+
let IpTag = schema.definitions?.IpConfigurationPublicIPAddressConfiguration?.properties?.ipTags?.oneOf[0].items?.$ref;
8+
if (IpTag != null){
9+
IpTag = "#/definitions/IPTag";
10+
}
11+
12+
}

schemas/2018-05-01/subscriptionDeploymentTemplate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,12 @@
10161016
{
10171017
"$ref": "https://schema.management.azure.com/schemas/2022-06-01/Microsoft.Datadog.json#/subscription_resourceDefinitions/agreements"
10181018
},
1019+
{
1020+
"$ref": "https://schema.management.azure.com/schemas/2022-08-01/Microsoft.Datadog.json#/subscription_resourceDefinitions/agreements"
1021+
},
1022+
{
1023+
"$ref": "https://schema.management.azure.com/schemas/2023-01-01/Microsoft.Datadog.json#/subscription_resourceDefinitions/agreements"
1024+
},
10191025
{
10201026
"$ref": "https://schema.management.azure.com/schemas/2017-06-15-preview/Microsoft.EventGrid.json#/unknown_resourceDefinitions/eventSubscriptions"
10211027
},

0 commit comments

Comments
 (0)