Skip to content

Commit

Permalink
CodeGen from PR 16249 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge d0a49469609757b08357b7d073d04b7b72c12d02 into 2c6bb907c749885e933bdb4e1a40f71bd9a60c3a
  • Loading branch information
SDKAuto committed Oct 22, 2021
1 parent aa52d30 commit 9562cff
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 0 deletions.
208 changes: 208 additions & 0 deletions schemas/2021-08-01/Microsoft.Insights.Application.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
{
"id": "https://schema.management.azure.com/schemas/2021-08-01/Microsoft.Insights.Application.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Insights",
"description": "Microsoft Insights Resource Types",
"resourceDefinitions": {
"workbooks": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-08-01"
]
},
"etag": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Resource etag"
},
"identity": {
"oneOf": [
{
"$ref": "#/definitions/WorkbookResourceIdentity"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Identity used for BYOS"
},
"kind": {
"oneOf": [
{
"type": "string",
"enum": [
"user",
"shared"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The kind of workbook. Choices are user and shared."
},
"location": {
"type": "string",
"description": "The geo-location where the resource lives"
},
"name": {
"type": "string",
"description": "The name of the Application Insights component resource."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/WorkbookProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties that contain a workbook."
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Resource tags."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Insights/workbooks"
]
}
},
"required": [
"apiVersion",
"location",
"name",
"properties",
"type"
],
"description": "Microsoft.Insights/workbooks"
}
},
"definitions": {
"UserAssignedIdentity": {
"type": "object",
"properties": {},
"description": "User assigned identity properties"
},
"WorkbookProperties": {
"type": "object",
"properties": {
"category": {
"type": "string",
"description": "Workbook category, as defined by the user at creation time."
},
"description": {
"type": "string",
"description": "The description of the workbook."
},
"displayName": {
"type": "string",
"description": "The user-defined name (display name) of the workbook."
},
"serializedData": {
"type": "string",
"description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON"
},
"sourceId": {
"type": "string",
"description": "ResourceId for a source resource."
},
"storageUri": {
"type": "string",
"description": "The resourceId to the storage account when bring your own storage is used"
},
"tags": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Being deprecated, please use the other tags field"
},
"version": {
"type": "string",
"description": "Workbook schema version format, like 'Notebook/1.0', which should match the workbook in serializedData"
}
},
"required": [
"category",
"displayName",
"serializedData"
],
"description": "Properties that contain a workbook."
},
"WorkbookResourceIdentity": {
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"None",
"SystemAssigned",
"UserAssigned",
"SystemAssigned,UserAssigned"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"userAssignedIdentities": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/UserAssignedIdentity"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests."
}
},
"required": [
"type"
],
"description": "Identity used for BYOS"
}
}
}
3 changes: 3 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -7840,6 +7840,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2021-03-08/Microsoft.Insights.Application.json#/resourceDefinitions/workbooks"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-08-01/Microsoft.Insights.Application.json#/resourceDefinitions/workbooks"
},
{
"$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#/resourceDefinitions/alertrules"
},
Expand Down

0 comments on commit 9562cff

Please sign in to comment.