@@ -8,6 +8,8 @@ import { postProcessor as storageProcessor } from './processors/Microsoft.Storag
8
8
import { postProcessor as computeProcessor } from './processors/Microsoft.Compute' ;
9
9
import { postProcessor as policyProcessor } from './processors/Microsoft.Authorization' ;
10
10
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' ;
11
13
import { lowerCaseEquals } from './utils' ;
12
14
13
15
// New providers are onboarded by default. The providers listed here are the only ones **not** onboarded.
@@ -17,21 +19,6 @@ const disabledProviders: AutoGenConfig[] = [
17
19
namespace : 'Microsoft.Advisor' ,
18
20
disabledForAutogen : true ,
19
21
} ,
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
- } ,
35
22
{
36
23
basePath : 'cloudshell/resource-manager' ,
37
24
namespace : 'Microsoft.Portal' ,
@@ -42,92 +29,33 @@ const disabledProviders: AutoGenConfig[] = [
42
29
namespace : 'Microsoft.ContainerService' ,
43
30
disabledForAutogen : true ,
44
31
} ,
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
- } ,
65
32
{
66
33
// Disabled as the swagger spec contains a type ("DateTimeRfc1123") which autorest is unable to parse: https://github.com/Azure/autorest.azureresourceschema/issues/71
67
34
basePath : 'domainservices/resource-manager' ,
68
35
namespace : 'Microsoft.AAD' ,
69
36
disabledForAutogen : true ,
70
37
} ,
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
- } ,
81
38
{
82
39
basePath : 'dns/resource-manager' ,
83
40
namespace : 'Microsoft.Network' ,
84
41
disabledForAutogen : true ,
85
42
} ,
86
43
{
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)
92
45
basePath : 'edgeorderpartner/resource-manager' ,
93
46
namespace : 'Microsoft.EdgeOrderPartner' ,
94
47
disabledForAutogen : true ,
95
48
} ,
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
- } ,
106
49
{
107
50
basePath : 'logic/resource-manager' ,
108
51
namespace : 'Microsoft.Logic' ,
109
52
disabledForAutogen : true ,
110
53
} ,
111
- {
112
- basePath : 'm365securityandcompliance/resource-manager' ,
113
- namespace : 'Microsoft.M365SecurityAndCompliance' ,
114
- disabledForAutogen : true ,
115
- } ,
116
54
{
117
55
basePath : 'managedservices/resource-manager' ,
118
56
namespace : 'Microsoft.ManagedServices' ,
119
57
disabledForAutogen : true ,
120
58
} ,
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
- } ,
131
59
{
132
60
basePath : 'mediaservices/resource-manager' ,
133
61
namespace : 'Microsoft.Media' ,
@@ -153,46 +81,11 @@ const disabledProviders: AutoGenConfig[] = [
153
81
namespace : 'Microsoft.Network' ,
154
82
disabledForAutogen : true ,
155
83
} ,
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
- } ,
181
84
{
182
85
basePath : 'service-map/resource-manager' ,
183
86
namespace : 'Microsoft.OperationalInsights' ,
184
87
disabledForAutogen : true ,
185
88
} ,
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
- } ,
196
89
{
197
90
basePath : 'trafficmanager/resource-manager' ,
198
91
namespace : 'Microsoft.Network' ,
@@ -358,6 +251,25 @@ const autoGenList: AutoGenConfig[] = [
358
251
} ,
359
252
] ,
360
253
} ,
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
+ } ,
361
273
{
362
274
basePath : 'customerlockbox/resource-manager' ,
363
275
namespace : 'Microsoft.CustomerLockbox' ,
@@ -491,6 +403,16 @@ const autoGenList: AutoGenConfig[] = [
491
403
basePath : 'hybridcompute/resource-manager' ,
492
404
namespace : 'Microsoft.HybridCompute' ,
493
405
} ,
406
+ {
407
+ basePath : 'hybridconnectivity/resource-manager' ,
408
+ namespace : 'Microsoft.HybridConnectivity' ,
409
+ resourceConfig : [
410
+ {
411
+ type : 'endpoints' ,
412
+ scopes : ScopeType . Extension ,
413
+ }
414
+ ]
415
+ } ,
494
416
{
495
417
basePath : 'hybriddatamanager/resource-manager' ,
496
418
namespace : 'Microsoft.HybridData' ,
@@ -507,6 +429,20 @@ const autoGenList: AutoGenConfig[] = [
507
429
basePath : 'iotspaces/resource-manager' ,
508
430
namespace : 'Microsoft.IoTSpaces' ,
509
431
} ,
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
+ } ,
510
446
{
511
447
basePath : 'intune/resource-manager' ,
512
448
namespace : 'Microsoft.Intune' ,
@@ -651,6 +587,25 @@ const autoGenList: AutoGenConfig[] = [
651
587
basePath : 'powerbiembedded/resource-manager' ,
652
588
namespace : 'Microsoft.PowerBI' ,
653
589
} ,
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
+ } ,
654
609
{
655
610
basePath : 'redhatopenshift/resource-manager' ,
656
611
namespace : 'Microsoft.RedHatOpenShift' ,
@@ -690,6 +645,10 @@ const autoGenList: AutoGenConfig[] = [
690
645
type : 'policyExemptions' ,
691
646
scopes : ScopeType . ManagementGroup | ScopeType . Subcription | ScopeType . ResourceGroup | ScopeType . Extension ,
692
647
} ,
648
+ {
649
+ type : 'policyPricings' ,
650
+ scopes : ScopeType . ManagementGroup | ScopeType . Subcription ,
651
+ } ,
693
652
{
694
653
type : 'locks' ,
695
654
scopes : ScopeType . Subcription | ScopeType . ResourceGroup | ScopeType . Extension ,
0 commit comments