Skip to content

Commit

Permalink
Merge pull request #2973 from Azure/autogenerate-batch
Browse files Browse the repository at this point in the history
Update Generated Schemas
  • Loading branch information
jorgecotillo authored Sep 29, 2023
2 parents 4d8b88f + 7a36d2b commit acd8fbd
Show file tree
Hide file tree
Showing 13 changed files with 17,256 additions and 3 deletions.
4 changes: 3 additions & 1 deletion generator/autogenlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { postProcessor as mediaPostProcessor } from './processors/Microsoft.Medi
import { postProcessor as networkPostProcessor } from './processors/Microsoft.Network';
import { postProcessor as azureStackHciPostProcessor } from './processors/Microsoft.AzureStackHCI';
import { postProcessor as resourcesPostProcessor } from './processors/Microsoft.Resources';
import { postProcessor as serviceFabricPostProcessor } from './processors/Microsoft.ServiceFabric';
import { lowerCaseEquals } from './utils';

// New providers are onboarded by default. The providers listed here are the only ones **not** onboarded.
Expand Down Expand Up @@ -107,7 +108,7 @@ const disabledProviders: AutoGenConfig[] = [
basePath: 'confidentialLedger/resource-manager',
namespace: 'Microsoft.ConfidentialLedger',
disabledForAutogen: true
}
},
];

// Run "npm run list-basepaths" to discover all the valid readme files to add to this list
Expand Down Expand Up @@ -782,6 +783,7 @@ const autoGenList: AutoGenConfig[] = [
{
basePath: 'servicefabric/resource-manager',
namespace: 'Microsoft.ServiceFabric',
postProcessor: serviceFabricPostProcessor,
},
{
basePath: 'servicelinker/resource-manager',
Expand Down
12 changes: 12 additions & 0 deletions generator/processors/Microsoft.ServiceFabric.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SchemaPostProcessor } from '../models';

export const postProcessor: SchemaPostProcessor = async (namespace, apiVersion, schema) => {

let IpTag = schema.definitions?.IpConfigurationPublicIPAddressConfiguration?.properties?.ipTags?.oneOf[0].items?.$ref;
if (IpTag != null){
IpTag = "#/definitions/IPTag";
}

}
6 changes: 6 additions & 0 deletions schemas/2018-05-01/subscriptionDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,12 @@
{
"$ref": "https://schema.management.azure.com/schemas/2022-06-01/Microsoft.Datadog.json#/subscription_resourceDefinitions/agreements"
},
{
"$ref": "https://schema.management.azure.com/schemas/2022-08-01/Microsoft.Datadog.json#/subscription_resourceDefinitions/agreements"
},
{
"$ref": "https://schema.management.azure.com/schemas/2023-01-01/Microsoft.Datadog.json#/subscription_resourceDefinitions/agreements"
},
{
"$ref": "https://schema.management.azure.com/schemas/2017-06-15-preview/Microsoft.EventGrid.json#/unknown_resourceDefinitions/eventSubscriptions"
},
Expand Down
Loading

0 comments on commit acd8fbd

Please sign in to comment.