Skip to content

Commit 78bf219

Browse files
Merge pull request #1418 from eliagrady/feature/elgrady/onboard_schemas
Onboarding Microsoft.Security for autogeneration
2 parents c648aa7 + c346024 commit 78bf219

File tree

19 files changed

+5788
-1506
lines changed

19 files changed

+5788
-1506
lines changed

generator/autogenlist.ts

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,32 @@ const autogenlist: AutogenlistConfig[] = [
498498
basePath: 'synapse/resource-manager',
499499
namespace: 'Microsoft.Synapse',
500500
},
501+
{
502+
basePath: 'security/resource-manager',
503+
namespace: 'Microsoft.Security',
504+
resourceConfig: [
505+
{
506+
type: 'advancedThreatProtectionSettings',
507+
scopes: ScopeType.Subcription | ScopeType.ResourceGroup | ScopeType.Extension,
508+
},
509+
{
510+
type: 'assessments',
511+
scopes: ScopeType.Subcription | ScopeType.ResourceGroup | ScopeType.Extension,
512+
},
513+
{
514+
type: 'deviceSecurityGroups',
515+
scopes: ScopeType.Subcription | ScopeType.ResourceGroup | ScopeType.Extension,
516+
},
517+
{
518+
type: 'iotSensors',
519+
scopes: ScopeType.Subcription | ScopeType.ResourceGroup | ScopeType.Extension,
520+
},
521+
{
522+
type: 'informationProtectionPolicies',
523+
scopes: ScopeType.ManagementGroup | ScopeType.Extension,
524+
},
525+
]
526+
},
501527
{
502528
basePath: 'securityinsights/resource-manager',
503529
namespace: 'Microsoft.SecurityInsights',
@@ -507,10 +533,10 @@ const autogenlist: AutogenlistConfig[] = [
507533
namespace: 'Microsoft.ImportExport'
508534
},
509535
{
510-
        basePath: 'storSimple1200Series/resource-manager',
511-
        namespace: 'Microsoft.StorSimple',
536+
basePath: 'storSimple1200Series/resource-manager',
537+
namespace: 'Microsoft.StorSimple',
512538
suffix: '1200'
513-
    },
539+
},
514540
{
515541
basePath: 'storage/resource-manager',
516542
namespace: 'Microsoft.Storage',

schemas/2014-04-01-preview/deploymentTemplate.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,19 +1832,19 @@
18321832
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01-preview/Microsoft.HDInsight.json#/resourceDefinitions/clusters" },
18331833
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01-preview/Microsoft.HDInsight.json#/resourceDefinitions/clusters_applications" },
18341834
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01-preview/Microsoft.HDInsight.json#/resourceDefinitions/clusters_extensions" },
1835-
{ "$ref": "https://schema.management.azure.com/schemas/2015-06-01-preview/Microsoft.Security.json#/resourceDefinitions/jitNetworkAccessPolicies" },
1835+
{ "$ref": "https://schema.management.azure.com/schemas/2015-06-01-preview/Microsoft.Security.json#/resourceDefinitions/locations_jitNetworkAccessPolicies" },
1836+
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/iotSecuritySolutions" },
18361837
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/pricings" },
1837-
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/securityContacts" },
1838-
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/workspaceSettings" },
1839-
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/autoProvisioningSettings" },
1840-
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/advancedThreatProtectionSettings" },
1841-
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/informationProtectionPolicies" },
1842-
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.Security.json#/resourceDefinitions/pricings" },
1843-
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.Security.json#/resourceDefinitions/securityContacts" },
1844-
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.Security.json#/resourceDefinitions/workspaceSettings" },
1845-
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.Security.json#/resourceDefinitions/autoProvisioningSettings" },
1846-
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.Security.json#/resourceDefinitions/advancedThreatProtectionSettings" },
1847-
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.Security.json#/resourceDefinitions/informationProtectionPolicies" },
1838+
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/unknown_resourceDefinitions/advancedThreatProtectionSettings" },
1839+
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/unknown_resourceDefinitions/deviceSecurityGroups" },
1840+
{ "$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Security.json#/unknown_resourceDefinitions/advancedThreatProtectionSettings" },
1841+
{ "$ref": "https://schema.management.azure.com/schemas/2019-01-01-preview/Microsoft.Security.json#/resourceDefinitions/automations" },
1842+
{ "$ref": "https://schema.management.azure.com/schemas/2019-01-01-preview/Microsoft.Security.json#/unknown_resourceDefinitions/assessments" },
1843+
{ "$ref": "https://schema.management.azure.com/schemas/2019-08-01/Microsoft.Security.json#/resourceDefinitions/iotSecuritySolutions" },
1844+
{ "$ref": "https://schema.management.azure.com/schemas/2019-08-01/Microsoft.Security.json#/unknown_resourceDefinitions/deviceSecurityGroups" },
1845+
{ "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.Security.json#/resourceDefinitions/locations_jitNetworkAccessPolicies" },
1846+
{ "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.Security.json#/unknown_resourceDefinitions/assessments" },
1847+
{ "$ref": "https://schema.management.azure.com/schemas/2020-08-06-preview/Microsoft.Security.json#/unknown_resourceDefinitions/iotSensors" },
18481848
{ "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.Migrate.json#/resourceDefinitions/assessmentProjects" },
18491849
{ "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.Migrate.json#/resourceDefinitions/assessmentProjects_groups" },
18501850
{ "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.Migrate.json#/resourceDefinitions/assessmentProjects_groups_assessments" },

schemas/2015-01-01/deploymentTemplate.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,19 +1973,19 @@
19731973
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01-preview/Microsoft.HDInsight.json#/resourceDefinitions/clusters" },
19741974
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01-preview/Microsoft.HDInsight.json#/resourceDefinitions/clusters_applications" },
19751975
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01-preview/Microsoft.HDInsight.json#/resourceDefinitions/clusters_extensions" },
1976-
{ "$ref": "https://schema.management.azure.com/schemas/2015-06-01-preview/Microsoft.Security.json#/resourceDefinitions/jitNetworkAccessPolicies" },
1976+
{ "$ref": "https://schema.management.azure.com/schemas/2015-06-01-preview/Microsoft.Security.json#/resourceDefinitions/locations_jitNetworkAccessPolicies" },
1977+
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/iotSecuritySolutions" },
19771978
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/pricings" },
1978-
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/securityContacts" },
1979-
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/workspaceSettings" },
1980-
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/autoProvisioningSettings" },
1981-
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/advancedThreatProtectionSettings" },
1982-
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/resourceDefinitions/informationProtectionPolicies" },
1983-
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.Security.json#/resourceDefinitions/pricings" },
1984-
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.Security.json#/resourceDefinitions/securityContacts" },
1985-
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.Security.json#/resourceDefinitions/workspaceSettings" },
1986-
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.Security.json#/resourceDefinitions/autoProvisioningSettings" },
1987-
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.Security.json#/resourceDefinitions/advancedThreatProtectionSettings" },
1988-
{ "$ref": "https://schema.management.azure.com/schemas/2018-06-01/Microsoft.Security.json#/resourceDefinitions/informationProtectionPolicies" },
1979+
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/unknown_resourceDefinitions/advancedThreatProtectionSettings" },
1980+
{ "$ref": "https://schema.management.azure.com/schemas/2017-08-01-preview/Microsoft.Security.json#/unknown_resourceDefinitions/deviceSecurityGroups" },
1981+
{ "$ref": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Security.json#/unknown_resourceDefinitions/advancedThreatProtectionSettings" },
1982+
{ "$ref": "https://schema.management.azure.com/schemas/2019-01-01-preview/Microsoft.Security.json#/resourceDefinitions/automations" },
1983+
{ "$ref": "https://schema.management.azure.com/schemas/2019-01-01-preview/Microsoft.Security.json#/unknown_resourceDefinitions/assessments" },
1984+
{ "$ref": "https://schema.management.azure.com/schemas/2019-08-01/Microsoft.Security.json#/resourceDefinitions/iotSecuritySolutions" },
1985+
{ "$ref": "https://schema.management.azure.com/schemas/2019-08-01/Microsoft.Security.json#/unknown_resourceDefinitions/deviceSecurityGroups" },
1986+
{ "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.Security.json#/resourceDefinitions/locations_jitNetworkAccessPolicies" },
1987+
{ "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.Security.json#/unknown_resourceDefinitions/assessments" },
1988+
{ "$ref": "https://schema.management.azure.com/schemas/2020-08-06-preview/Microsoft.Security.json#/unknown_resourceDefinitions/iotSensors" },
19891989
{ "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.Migrate.json#/resourceDefinitions/assessmentProjects" },
19901990
{ "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.Migrate.json#/resourceDefinitions/assessmentProjects_groups" },
19911991
{ "$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.Migrate.json#/resourceDefinitions/assessmentProjects_groups_assessments" },

0 commit comments

Comments
 (0)