Skip to content

Commit

Permalink
CodeGen from PR 12301 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Move sentinel office teams to stable (#12301)
  • Loading branch information
SDKAuto committed Jan 8, 2021
1 parent ec927e4 commit bdd454b
Show file tree
Hide file tree
Showing 2 changed files with 204 additions and 2 deletions.
172 changes: 171 additions & 1 deletion schemas/2019-01-01-preview/Microsoft.SecurityInsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,16 @@
],
"description": "Describes watchlist properties"
},
"resources": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/watchlists_watchlistItems_childResource"
}
]
}
},
"type": {
"type": "string",
"enum": [
Expand All @@ -684,6 +694,49 @@
"type"
],
"description": "Microsoft.SecurityInsights/watchlists"
},
"watchlists_watchlistItems": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2019-01-01-preview"
]
},
"etag": {
"type": "string",
"description": "Etag of the azure resource"
},
"name": {
"type": "string",
"description": "Watchlist Item Id (GUID)"
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/WatchlistItemProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Describes watchlist item properties"
},
"type": {
"type": "string",
"enum": [
"Microsoft.SecurityInsights/watchlists/watchlistItems"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.SecurityInsights/watchlists/watchlistItems"
}
},
"definitions": {
Expand Down Expand Up @@ -3197,6 +3250,80 @@
},
"description": "User information that made some action"
},
"WatchlistItemProperties": {
"type": "object",
"properties": {
"created": {
"type": "string",
"format": "date-time",
"description": "The time the watchlist item was created"
},
"createdBy": {
"oneOf": [
{
"$ref": "#/definitions/UserInfo"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "User information that made some action"
},
"entityMapping": {
"type": "object",
"properties": {},
"description": "key-value pairs for a watchlist item entity mapping"
},
"isDeleted": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "A flag that indicates if the watchlist item is deleted or not"
},
"itemsKeyValue": {
"type": "object",
"properties": {},
"description": "key-value pairs for a watchlist item"
},
"tenantId": {
"type": "string",
"description": "The tenantId to which the watchlist item belongs to"
},
"updated": {
"type": "string",
"format": "date-time",
"description": "The last time the watchlist item was updated"
},
"updatedBy": {
"oneOf": [
{
"$ref": "#/definitions/UserInfo"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "User information that made some action"
},
"watchlistItemId": {
"type": "string",
"description": "The id (a Guid) of the watchlist item"
},
"watchlistItemType": {
"type": "string",
"description": "The type of the watchlist item"
}
},
"required": [
"itemsKeyValue"
],
"description": "Describes watchlist item properties"
},
"WatchlistProperties": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3331,6 +3458,49 @@
"source"
],
"description": "Describes watchlist properties"
},
"watchlists_watchlistItems_childResource": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2019-01-01-preview"
]
},
"etag": {
"type": "string",
"description": "Etag of the azure resource"
},
"name": {
"type": "string",
"description": "Watchlist Item Id (GUID)"
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/WatchlistItemProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Describes watchlist item properties"
},
"type": {
"type": "string",
"enum": [
"watchlistItems"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.SecurityInsights/watchlists/watchlistItems"
}
}
}
}
34 changes: 33 additions & 1 deletion schemas/2020-01-01/Microsoft.SecurityInsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,17 @@
}
],
"description": "SharePoint data type connection."
},
"teams": {
"oneOf": [
{
"$ref": "#/definitions/OfficeDataConnectorDataTypesTeams"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Teams data type connection."
}
},
"description": "The available data types for office data connector."
Expand Down Expand Up @@ -1358,6 +1369,27 @@
},
"description": "SharePoint data type connection."
},
"OfficeDataConnectorDataTypesTeams": {
"type": "object",
"properties": {
"state": {
"oneOf": [
{
"type": "string",
"enum": [
"Enabled",
"Disabled"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Describe whether this data type connection is enabled or not."
}
},
"description": "Teams data type connection."
},
"OfficeDataConnectorProperties": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1650,4 +1682,4 @@
"description": "User information that made some action"
}
}
}
}

0 comments on commit bdd454b

Please sign in to comment.