Skip to content

Commit

Permalink
Correct stable 2020 01 01 (#15761)
Browse files Browse the repository at this point in the history
* Remove definitions that don't exist in 2020-01-01 and extract Incident Severity to a definition.

* Use IncidentSeverityEnum instead of defining an incorrect enum which have 'Critical' value.

* Remove duplicate definition of IncidentInfo which is already defined in Bookmarks.json

* Remove Settings from SecurityInsights.json

* Make prettier

Co-authored-by: Anat Gilenson <anatgilenson@microsoft.com>
  • Loading branch information
anat-gilenson and Anat Gilenson authored Aug 26, 2021
1 parent b69b3fa commit a941a86
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 245 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,40 +340,8 @@
},
"severity": {
"description": "The severity of the incident",
"enum": [
"Critical",
"High",
"Medium",
"Low",
"Informational"
],
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "CaseSeverity",
"values": [
{
"description": "Critical severity",
"value": "Critical"
},
{
"description": "High severity",
"value": "High"
},
{
"description": "Medium severity",
"value": "Medium"
},
{
"description": "Low severity",
"value": "Low"
},
{
"description": "Informational severity",
"value": "Informational"
}
]
}
"$ref": "SecurityInsights.json#/definitions/IncidentSeverityEnum"
},
"title": {
"description": "The title of the incident",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -814,35 +814,8 @@
},
"severity": {
"description": "The severity of the incident",
"enum": [
"High",
"Medium",
"Low",
"Informational"
],
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "IncidentSeverity",
"values": [
{
"description": "High severity",
"value": "High"
},
{
"description": "Medium severity",
"value": "Medium"
},
{
"description": "Low severity",
"value": "Low"
},
{
"description": "Informational severity",
"value": "Informational"
}
]
}
"$ref": "#/definitions/IncidentSeverityEnum"
},
"status": {
"description": "The status of the incident",
Expand Down Expand Up @@ -883,6 +856,38 @@
],
"type": "object"
},
"IncidentSeverityEnum": {
"description": "The severity of the incident",
"enum": [
"High",
"Medium",
"Low",
"Informational"
],
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "IncidentSeverity",
"values": [
{
"description": "High severity",
"value": "High"
},
{
"description": "Medium severity",
"value": "Medium"
},
{
"description": "Low severity",
"value": "Low"
},
{
"description": "Informational severity",
"value": "Informational"
}
]
}
},
"OfficeConsent": {
"allOf": [
{
Expand Down Expand Up @@ -915,6 +920,7 @@
"type": "array"
}
},
"type": "object",
"required": [
"value"
]
Expand Down Expand Up @@ -1038,37 +1044,6 @@
"type": "object",
"x-ms-azure-resource": true
},
"Settings": {
"allOf": [
{
"$ref": "#/definitions/ResourceWithEtag"
}
],
"description": "The Settings.",
"discriminator": "kind",
"required": [
"kind"
],
"properties": {
"kind": {
"$ref": "#/definitions/SettingsKind",
"description": "The data connector kind"
}
},
"type": "object"
},
"SettingsKind": {
"description": "The kind of the setting",
"enum": [
"UebaSettings",
"ToggleSettings"
],
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "SettingKind"
}
},
"ThreatIntelligence": {
"description": "ThreatIntelligence property bag.",
"properties": {
Expand Down Expand Up @@ -1106,86 +1081,6 @@
},
"type": "object"
},
"ToggleSettings": {
"allOf": [
{
"$ref": "#/definitions/Settings"
}
],
"description": "Settings with single toggle.",
"properties": {
"properties": {
"$ref": "#/definitions/ToggleSettingsProperties",
"description": "toggle properties",
"x-ms-client-flatten": true
}
},
"type": "object",
"x-ms-discriminator-value": "ToggleSettings"
},
"ToggleSettingsProperties": {
"description": "toggle property bag.",
"properties": {
"isEnabled": {
"description": "Determines whether the setting is enable or disabled.",
"type": "boolean"
}
},
"type": "object"
},
"UebaSettings": {
"allOf": [
{
"$ref": "#/definitions/Settings"
}
],
"description": "Represents settings for User and Entity Behavior Analytics enablement.",
"properties": {
"properties": {
"$ref": "#/definitions/UebaSettingsProperties",
"description": "User and Entity Behavior Analytics settings properties",
"x-ms-client-flatten": true
}
},
"type": "object",
"x-ms-discriminator-value": "UebaSettings"
},
"UebaSettingsProperties": {
"description": "User and Entity Behavior Analytics settings property bag.",
"properties": {
"atpLicenseStatus": {
"description": "Determines whether the tenant has ATP (Advanced Threat Protection) license.",
"enum": [
"Enabled",
"Disabled"
],
"readOnly": true,
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "LicenseStatus"
}
},
"isEnabled": {
"description": "Determines whether User and Entity Behavior Analytics is enabled for this workspace.",
"type": "boolean"
},
"statusInMcas": {
"description": "Determines whether User and Entity Behavior Analytics is enabled from MCAS (Microsoft Cloud App Security).",
"enum": [
"Enabled",
"Disabled"
],
"readOnly": true,
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "StatusInMcas"
}
}
},
"type": "object"
},
"UserInfo": {
"description": "User information that made some action",
"properties": {
Expand All @@ -1210,61 +1105,6 @@
"objectId"
],
"type": "object"
},
"IncidentInfo": {
"description": "Describes related incident information for the bookmark",
"properties": {
"incidentId": {
"description": "Incident Id",
"type": "string"
},
"severity": {
"description": "The severity of the incident",
"enum": [
"Critical",
"High",
"Medium",
"Low",
"Informational"
],
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "CaseSeverity",
"values": [
{
"description": "Critical severity",
"value": "Critical"
},
{
"description": "High severity",
"value": "High"
},
{
"description": "Medium severity",
"value": "Medium"
},
{
"description": "Low severity",
"value": "Low"
},
{
"description": "Informational severity",
"value": "Informational"
}
]
}
},
"title": {
"description": "The title of the incident",
"type": "string"
},
"relationName": {
"description": "Relation Name",
"type": "string"
}
},
"type": "object"
}
},
"parameters": {
Expand Down Expand Up @@ -1390,24 +1230,6 @@
"type": "string",
"x-ms-parameter-location": "method"
},
"Settings": {
"description": "The setting",
"in": "body",
"name": "settings",
"required": true,
"schema": {
"$ref": "#/definitions/Settings"
},
"x-ms-parameter-location": "method"
},
"SettingsName": {
"description": "The setting name. Supports- Fusion, UEBA",
"in": "path",
"name": "settingsName",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
},
"SubscriptionId": {
"description": "Azure subscription ID",
"in": "path",
Expand Down

0 comments on commit a941a86

Please sign in to comment.