Skip to content

Commit

Permalink
CodeGen from PR 12265 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 6a12b641d8464055f289acf18f91cf0c116b8317 into c7358a077a37763d8f982b14df2fb341476a160e
  • Loading branch information
SDKAuto committed Jan 31, 2021
1 parent 2a02aa7 commit 3a43397
Show file tree
Hide file tree
Showing 9 changed files with 135 additions and 9 deletions.
2 changes: 1 addition & 1 deletion schemas/2015-06-01-preview/Microsoft.Security.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,4 +703,4 @@
"description": "Represents a machine that is part of a VM/server group"
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/2017-08-01-preview/Microsoft.Security.json
Original file line number Diff line number Diff line change
Expand Up @@ -1557,4 +1557,4 @@
"description": "Workspace setting data"
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/2018-06-01/Microsoft.Security.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@
"description": "Pricing properties for the relevant scope"
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/2019-01-01-preview/Microsoft.Security.json
Original file line number Diff line number Diff line change
Expand Up @@ -899,4 +899,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/2019-01-01/Microsoft.Security.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@
"description": "Represents a data export setting"
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/2019-08-01/Microsoft.Security.json
Original file line number Diff line number Diff line change
Expand Up @@ -931,4 +931,4 @@
"description": "Properties of the IoT Security solution's user defined resources."
}
}
}
}
128 changes: 127 additions & 1 deletion schemas/2020-01-01-preview/Microsoft.Security.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@
"type": "string",
"description": "Name of the security contact object"
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/SecurityContactProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Describes security contact properties"
},
"type": {
"type": "string",
"enum": [
Expand All @@ -67,6 +78,7 @@
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Security/securityContacts"
Expand Down Expand Up @@ -305,6 +317,120 @@
},
"description": "For a non-Azure machine that is not connected directly to the internet, specify a proxy server that the non-Azure machine can use."
},
"SecurityContactProperties": {
"type": "object",
"properties": {
"alertNotifications": {
"oneOf": [
{
"$ref": "#/definitions/SecurityContactPropertiesAlertNotifications"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Defines whether to send email notifications about new security alerts"
},
"emails": {
"type": "string",
"description": "List of email addresses which will get notifications from Azure Security Center by the configurations defined in this security contact."
},
"notificationsByRole": {
"oneOf": [
{
"$ref": "#/definitions/SecurityContactPropertiesNotificationsByRole"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Defines whether to send email notifications from Azure Security Center to persons with specific RBAC roles on the subscription."
},
"phone": {
"type": "string",
"description": "The security contact's phone number"
}
},
"description": "Describes security contact properties"
},
"SecurityContactPropertiesAlertNotifications": {
"type": "object",
"properties": {
"minimalSeverity": {
"oneOf": [
{
"type": "string",
"enum": [
"High",
"Medium",
"Low"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Defines the minimal alert severity which will be sent as email notifications."
},
"state": {
"oneOf": [
{
"type": "string",
"enum": [
"On",
"Off"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Defines if email notifications will be sent about new security alerts."
}
},
"description": "Defines whether to send email notifications about new security alerts"
},
"SecurityContactPropertiesNotificationsByRole": {
"type": "object",
"properties": {
"roles": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string",
"enum": [
"AccountAdmin",
"ServiceAdmin",
"Owner",
"Contributor"
]
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Defines which RBAC roles will get email notifications from Azure Security Center. List of allowed RBAC roles: "
},
"state": {
"oneOf": [
{
"type": "string",
"enum": [
"On",
"Off"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Defines whether to send email notifications from Azure Security Center to persons with specific RBAC roles on the subscription."
}
},
"description": "Defines whether to send email notifications from Azure Security Center to persons with specific RBAC roles on the subscription."
},
"ServicePrincipalProperties": {
"type": "object",
"properties": {
Expand All @@ -320,4 +446,4 @@
"description": "Details of the service principal."
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/2020-01-01/Microsoft.Security.json
Original file line number Diff line number Diff line change
Expand Up @@ -1236,4 +1236,4 @@
"description": "Represents a machine that is part of a machine group"
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/2020-08-06-preview/Microsoft.Security.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@
"description": "IoT sensor properties"
}
}
}
}

0 comments on commit 3a43397

Please sign in to comment.