Skip to content

Commit

Permalink
CodeGen from PR 11577 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Add SecureScores & SecureScoreControls as new supported datatypes in Automations resource (#11577)

* Add SubAssessment event source type and add more automations examples

* Change Location isReadOnlu to false

* Test

* Add new read/write location and add new type TrackedResourceLocation

* Minor

* minor

* prettier fixes

* Change variable name to TrackedResourceLocation

* Change type name TrackedResourceLocation to AzureTrackedResourceLocation

* Update automations example

* Add SecureScores & SecureScoreControls as new supported datatypes in Automations resource
  • Loading branch information
SDKAuto committed Nov 12, 2020
1 parent a0248fb commit b29268e
Show file tree
Hide file tree
Showing 9 changed files with 5,474 additions and 1,394 deletions.
803 changes: 597 additions & 206 deletions schemas/2015-06-01-preview/Microsoft.Security.json

Large diffs are not rendered by default.

1,733 changes: 1,253 additions & 480 deletions schemas/2017-08-01-preview/Microsoft.Security.json

Large diffs are not rendered by default.

737 changes: 29 additions & 708 deletions schemas/2018-06-01/Microsoft.Security.json

Large diffs are not rendered by default.

898 changes: 898 additions & 0 deletions schemas/2019-01-01-preview/Microsoft.Security.json

Large diffs are not rendered by default.

158 changes: 158 additions & 0 deletions schemas/2019-01-01/Microsoft.Security.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
{
"id": "https://schema.management.azure.com/schemas/2019-01-01/Microsoft.Security.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Security",
"description": "Microsoft Security Resource Types",
"resourceDefinitions": {},
"subscription_resourceDefinitions": {
"settings": {
"type": "object",
"oneOf": [
{
"$ref": "#/definitions/DataExportSettings"
}
],
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2019-01-01"
]
},
"name": {
"oneOf": [
{
"type": "string",
"enum": [
"MCAS",
"WDATP"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Name of setting: (MCAS/WDATP)."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Security/settings"
]
}
},
"required": [
"apiVersion",
"name",
"type"
],
"description": "Microsoft.Security/settings"
}
},
"unknown_resourceDefinitions": {
"advancedThreatProtectionSettings": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2019-01-01"
]
},
"name": {
"type": "string",
"description": "Advanced Threat Protection setting name."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/AdvancedThreatProtectionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The Advanced Threat Protection settings."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Security/advancedThreatProtectionSettings"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Security/advancedThreatProtectionSettings"
}
},
"definitions": {
"AdvancedThreatProtectionProperties": {
"type": "object",
"properties": {
"isEnabled": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Indicates whether Advanced Threat Protection is enabled."
}
},
"description": "The Advanced Threat Protection settings."
},
"DataExportSettingProperties": {
"type": "object",
"properties": {
"enabled": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Is the data export setting is enabled"
}
},
"required": [
"enabled"
],
"description": "The data export setting properties"
},
"DataExportSettings": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"DataExportSettings"
]
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/DataExportSettingProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The data export setting properties"
}
},
"required": [
"kind"
],
"description": "Represents a data export setting"
}
}
}
Loading

0 comments on commit b29268e

Please sign in to comment.