Skip to content

Commit 9cd0021

Browse files
Merge branch 'main' into Kusto/auto-generate
2 parents 13e6646 + b001714 commit 9cd0021

File tree

72 files changed

+59059
-7308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+59059
-7308
lines changed

generator/autogenlist.ts

Lines changed: 69 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { postProcessor as storageProcessor } from './processors/Microsoft.Storag
88
import { postProcessor as computeProcessor } from './processors/Microsoft.Compute';
99
import { postProcessor as policyProcessor } from './processors/Microsoft.Authorization';
1010
import { postProcessor as securityInsightsPostProcessor } from './processors/Microsoft.SecurityInsights';
11+
import { postProcessor as costManagementPostProcessor } from './processors/Microsoft.CostManagement';
12+
import { postProcessor as providerHubPostProcessor } from './processors/Microsoft.ProviderHub';
1113
import { lowerCaseEquals } from './utils';
1214

1315
// New providers are onboarded by default. The providers listed here are the only ones **not** onboarded.
@@ -17,21 +19,6 @@ const disabledProviders: AutoGenConfig[] = [
1719
namespace: 'Microsoft.Advisor',
1820
disabledForAutogen: true,
1921
},
20-
{
21-
basePath: 'agrifood/resource-manager',
22-
namespace: 'Microsoft.AgFoodPlatform',
23-
disabledForAutogen: true,
24-
},
25-
{
26-
basePath: 'azurestackhci/resource-manager',
27-
namespace: 'Microsoft.AzureStackHCI',
28-
disabledForAutogen: true,
29-
},
30-
{
31-
basePath: 'baremetalinfrastructure/resource-manager',
32-
namespace: 'Microsoft.BareMetalInfrastructure',
33-
disabledForAutogen: true,
34-
},
3522
{
3623
basePath: 'cloudshell/resource-manager',
3724
namespace: 'Microsoft.Portal',
@@ -42,92 +29,33 @@ const disabledProviders: AutoGenConfig[] = [
4229
namespace: 'Microsoft.ContainerService',
4330
disabledForAutogen: true,
4431
},
45-
{
46-
basePath: 'confidentialledger/resource-manager',
47-
namespace: 'Microsoft.ConfidentialLedger',
48-
disabledForAutogen: true,
49-
},
50-
{
51-
basePath: 'cost-management/resource-manager',
52-
namespace: 'Microsoft.CostManagement',
53-
disabledForAutogen: true,
54-
},
55-
{
56-
basePath: 'cpim/resource-manager',
57-
namespace: 'Microsoft.AzureActiveDirectory',
58-
disabledForAutogen: true,
59-
},
60-
{
61-
basePath: 'dataprotection/resource-manager',
62-
namespace: 'Microsoft.DataProtection',
63-
disabledForAutogen: true,
64-
},
6532
{
6633
// Disabled as the swagger spec contains a type ("DateTimeRfc1123") which autorest is unable to parse: https://github.com/Azure/autorest.azureresourceschema/issues/71
6734
basePath: 'domainservices/resource-manager',
6835
namespace: 'Microsoft.AAD',
6936
disabledForAutogen: true,
7037
},
71-
{
72-
basePath: 'dfp/resource-manager',
73-
namespace: 'Microsoft.Dynamics365Fraudprotection',
74-
disabledForAutogen: true,
75-
},
76-
{
77-
basePath: 'dnc/resource-manager',
78-
namespace: 'Microsoft.DelegatedNetwork',
79-
disabledForAutogen: true,
80-
},
8138
{
8239
basePath: 'dns/resource-manager',
8340
namespace: 'Microsoft.Network',
8441
disabledForAutogen: true,
8542
},
8643
{
87-
basePath: 'edgeorder/resource-manager',
88-
namespace: 'Microsoft.EdgeOrder',
89-
disabledForAutogen: true,
90-
},
91-
{
44+
// Disabled as the swagger spec contains a bug (enum mismatch)
9245
basePath: 'edgeorderpartner/resource-manager',
9346
namespace: 'Microsoft.EdgeOrderPartner',
9447
disabledForAutogen: true,
9548
},
96-
{
97-
basePath: 'fluidrelay/resource-manager',
98-
namespace: 'Microsoft.FluidRelay',
99-
disabledForAutogen: true,
100-
},
101-
{
102-
basePath: 'iotsecurity/resource-manager',
103-
namespace: 'Microsoft.IoTSecurity',
104-
disabledForAutogen: true,
105-
},
10649
{
10750
basePath: 'logic/resource-manager',
10851
namespace: 'Microsoft.Logic',
10952
disabledForAutogen: true,
11053
},
111-
{
112-
basePath: 'm365securityandcompliance/resource-manager',
113-
namespace: 'Microsoft.M365SecurityAndCompliance',
114-
disabledForAutogen: true,
115-
},
11654
{
11755
basePath: 'managedservices/resource-manager',
11856
namespace: 'Microsoft.ManagedServices',
11957
disabledForAutogen: true,
12058
},
121-
{
122-
basePath: 'marketplacenotifications/resource-manager',
123-
namespace: 'Microsoft.MarketplaceNotifications',
124-
disabledForAutogen: true,
125-
},
126-
{
127-
basePath: 'marketplaceordering/resource-manager',
128-
namespace: 'Microsoft.MarketplaceOrdering',
129-
disabledForAutogen: true,
130-
},
13159
{
13260
basePath: 'mediaservices/resource-manager',
13361
namespace: 'Microsoft.Media',
@@ -153,46 +81,11 @@ const disabledProviders: AutoGenConfig[] = [
15381
namespace: 'Microsoft.Network',
15482
disabledForAutogen: true,
15583
},
156-
{
157-
basePath: 'providerhub/resource-manager',
158-
namespace: 'Microsoft.ProviderHub',
159-
disabledForAutogen: true,
160-
},
161-
{
162-
basePath: 'quota/resource-manager',
163-
namespace: 'Microsoft.Quota',
164-
disabledForAutogen: true,
165-
},
166-
{
167-
basePath: 'resources/resource-manager',
168-
namespace: 'Microsoft.Features',
169-
disabledForAutogen: true,
170-
},
171-
{
172-
basePath: 'resources/resource-manager',
173-
namespace: 'Microsoft.Solutions',
174-
disabledForAutogen: true,
175-
},
176-
{
177-
basePath: 'securityandcompliance/resource-manager',
178-
namespace: 'Microsoft.SecurityAndCompliance',
179-
disabledForAutogen: true,
180-
},
18184
{
18285
basePath: 'service-map/resource-manager',
18386
namespace: 'Microsoft.OperationalInsights',
18487
disabledForAutogen: true,
18588
},
186-
{
187-
basePath: 'servicefabricmanagedclusters/resource-manager',
188-
namespace: 'Microsoft.ServiceFabricManagedClusters',
189-
disabledForAutogen: true,
190-
},
191-
{
192-
basePath: 'testbase/resource-manager',
193-
namespace: 'Microsoft.TestBase',
194-
disabledForAutogen: true,
195-
},
19689
{
19790
basePath: 'trafficmanager/resource-manager',
19891
namespace: 'Microsoft.Network',
@@ -358,6 +251,25 @@ const autoGenList: AutoGenConfig[] = [
358251
},
359252
],
360253
},
254+
{
255+
basePath: 'cost-management/resource-manager',
256+
namespace: 'Microsoft.CostManagement',
257+
resourceConfig: [
258+
{
259+
type: 'exports',
260+
scopes: ScopeType.ManagementGroup | ScopeType.Subcription | ScopeType.ResourceGroup,
261+
},
262+
{
263+
type: 'budgets',
264+
scopes: ScopeType.ManagementGroup | ScopeType.Subcription | ScopeType.ResourceGroup | ScopeType.Extension,
265+
},
266+
{
267+
type: 'views',
268+
scopes: ScopeType.Tenant | ScopeType.ManagementGroup | ScopeType.Subcription | ScopeType.ResourceGroup | ScopeType.Extension,
269+
},
270+
],
271+
postProcessor: costManagementPostProcessor,
272+
},
361273
{
362274
basePath: 'customerlockbox/resource-manager',
363275
namespace: 'Microsoft.CustomerLockbox',
@@ -491,6 +403,16 @@ const autoGenList: AutoGenConfig[] = [
491403
basePath: 'hybridcompute/resource-manager',
492404
namespace: 'Microsoft.HybridCompute',
493405
},
406+
{
407+
basePath: 'hybridconnectivity/resource-manager',
408+
namespace: 'Microsoft.HybridConnectivity',
409+
resourceConfig: [
410+
{
411+
type: 'endpoints',
412+
scopes: ScopeType.Extension,
413+
}
414+
]
415+
},
494416
{
495417
basePath: 'hybriddatamanager/resource-manager',
496418
namespace: 'Microsoft.HybridData',
@@ -507,6 +429,20 @@ const autoGenList: AutoGenConfig[] = [
507429
basePath: 'iotspaces/resource-manager',
508430
namespace: 'Microsoft.IoTSpaces',
509431
},
432+
{
433+
basePath: 'iotsecurity/resource-manager',
434+
namespace: 'Microsoft.IoTSecurity',
435+
resourceConfig: [
436+
{
437+
type: 'sensors',
438+
scopes: ScopeType.Extension,
439+
},
440+
{
441+
type: 'sites',
442+
scopes: ScopeType.Extension,
443+
}
444+
]
445+
},
510446
{
511447
basePath: 'intune/resource-manager',
512448
namespace: 'Microsoft.Intune',
@@ -651,6 +587,25 @@ const autoGenList: AutoGenConfig[] = [
651587
basePath: 'powerbiembedded/resource-manager',
652588
namespace: 'Microsoft.PowerBI',
653589
},
590+
{
591+
basePath: 'providerhub/resource-manager',
592+
namespace: 'Microsoft.ProviderHub',
593+
postProcessor: providerHubPostProcessor
594+
},
595+
{
596+
basePath: 'quota/resource-manager',
597+
namespace: 'Microsoft.Quota',
598+
resourceConfig: [
599+
{
600+
type: 'quotaLimits',
601+
scopes: ScopeType.Extension,
602+
},
603+
{
604+
type: 'quotas',
605+
scopes: ScopeType.Extension,
606+
},
607+
],
608+
},
654609
{
655610
basePath: 'redhatopenshift/resource-manager',
656611
namespace: 'Microsoft.RedHatOpenShift',
@@ -690,6 +645,10 @@ const autoGenList: AutoGenConfig[] = [
690645
type: 'policyExemptions',
691646
scopes: ScopeType.ManagementGroup | ScopeType.Subcription | ScopeType.ResourceGroup | ScopeType.Extension,
692647
},
648+
{
649+
type: 'policyPricings',
650+
scopes: ScopeType.ManagementGroup | ScopeType.Subcription,
651+
},
693652
{
694653
type: 'locks',
695654
scopes: ScopeType.Subcription | ScopeType.ResourceGroup | ScopeType.Extension,
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { SchemaPostProcessor } from '../models';
2+
import { replaceCyclicRef } from './helpers';
3+
4+
export const postProcessor: SchemaPostProcessor = async (namespace: string, apiVersion: string, schema: any) => {
5+
replaceCyclicRef(schema.definitions?.ReportConfigFilter?.properties?.and?.oneOf[0]?.items);
6+
replaceCyclicRef(schema.definitions?.ReportConfigFilter?.properties?.not?.oneOf[0]);
7+
replaceCyclicRef(schema.definitions?.ReportConfigFilter?.properties?.or?.oneOf[0]?.items);
8+
replaceCyclicRef(schema.definitions?.ReportFilter?.properties?.and?.oneOf[0]?.items);
9+
replaceCyclicRef(schema.definitions?.ReportFilter?.properties?.not?.oneOf[0]);
10+
replaceCyclicRef(schema.definitions?.ReportFilter?.properties?.or?.oneOf[0]?.items);
11+
replaceCyclicRef(schema.definitions?.QueryFilter?.properties?.and?.oneOf[0]?.items);
12+
replaceCyclicRef(schema.definitions?.QueryFilter?.properties?.not?.oneOf[0]);
13+
replaceCyclicRef(schema.definitions?.QueryFilter?.properties?.or?.oneOf[0]?.items);
14+
replaceCyclicRef(schema.definitions?.QueryFilterModel?.properties?.and?.oneOf[0]?.items);
15+
replaceCyclicRef(schema.definitions?.QueryFilterModel?.properties?.not?.oneOf[0]);
16+
replaceCyclicRef(schema.definitions?.QueryFilterModel?.properties?.or?.oneOf[0]?.items);
17+
replaceCyclicRef(schema.definitions?.Scope?.properties?.childScope?.oneOf[0]);
18+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { SchemaPostProcessor } from '../models';
2+
import { replaceCyclicRef } from './helpers';
3+
4+
export const postProcessor: SchemaPostProcessor = async (namespace: string, apiVersion: string, schema: any) => {
5+
replaceCyclicRef(schema.definitions?.ExtendedErrorInfo?.properties?.details?.oneOf[0]?.items);
6+
}

0 commit comments

Comments
 (0)