From 21e656e99c1d00460dee8e7917d51f2ccfd40455 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 16 Nov 2021 09:34:15 +0000 Subject: [PATCH] CodeGen from PR 16249 in Azure/azure-rest-api-specs Merge 965d5a5ff3a324283531c26ebcb12e03601e9162 into 08999b02aaf0dc3d8ad597edb21b98f98ee2b2b9 --- .../Microsoft.Insights.Application.json | 208 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 3 + 2 files changed, 211 insertions(+) create mode 100644 schemas/2021-08-01/Microsoft.Insights.Application.json diff --git a/schemas/2021-08-01/Microsoft.Insights.Application.json b/schemas/2021-08-01/Microsoft.Insights.Application.json new file mode 100644 index 0000000000..303269e78e --- /dev/null +++ b/schemas/2021-08-01/Microsoft.Insights.Application.json @@ -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" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index f83efb9c8e..83322df7e0 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -8290,6 +8290,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" },