From 80acfdd2c485f247bc9d34c20715ebb8f0db9095 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Thu, 17 Jun 2021 10:37:18 +0300 Subject: [PATCH 01/23] add all apis to 2020 readme --- .../resource-manager/readme.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index cb387c80b6fd..de517c8e8fd9 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -360,7 +360,22 @@ These settings apply only when `--tag=package-2020-02-02` is specified on the co ``` yaml $(tag) == 'package-2020-02-02' input-file: +- Microsoft.Insights/stable/2015-05-01/aiOperations_API.json +- Microsoft.Insights/stable/2015-05-01/componentAnnotations_API.json +- Microsoft.Insights/stable/2015-05-01/componentApiKeys_API.json +- Microsoft.Insights/stable/2015-05-01/componentContinuousExport_API.json +- Microsoft.Insights/stable/2015-05-01/componentFeaturesAndPricing_API.json +- Microsoft.Insights/stable/2015-05-01/componentProactiveDetection_API.json +- Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json +- Microsoft.Insights/stable/2015-05-01/favorites_API.json +- Microsoft.Insights/stable/2015-05-01/webTestLocations_API.json +- Microsoft.Insights/stable/2015-05-01/webTests_API.json +- Microsoft.Insights/stable/2015-05-01/analyticsItems_API.json +- Microsoft.Insights/stable/2015-05-01/workbooks_API.json +- Microsoft.Insights/stable/2015-05-01/myworkbooks_API.json - Microsoft.Insights/stable/2020-02-02/components_API.json +- Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json +- Microsoft.Insights/preview/2020-06-02-preview/livetoken_API.json ``` ### Tag: package-2019-10-17-preview From ef0083e8b0d9cd81c3d52a58dce3fff69a29287d Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Thu, 17 Jun 2021 11:33:39 +0300 Subject: [PATCH 02/23] fix --- specification/applicationinsights/resource-manager/readme.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index de517c8e8fd9..d7dcc3d40374 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -375,7 +375,6 @@ input-file: - Microsoft.Insights/stable/2015-05-01/myworkbooks_API.json - Microsoft.Insights/stable/2020-02-02/components_API.json - Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json -- Microsoft.Insights/preview/2020-06-02-preview/livetoken_API.json ``` ### Tag: package-2019-10-17-preview From 07c5deab23da90d576f74254978b563707658207 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Sat, 19 Jun 2021 15:39:49 +0300 Subject: [PATCH 03/23] add 2020 to Go Readme --- .../applicationinsights/resource-manager/readme.go.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/applicationinsights/resource-manager/readme.go.md b/specification/applicationinsights/resource-manager/readme.go.md index 8d3ea9fc8783..2660fa49b792 100644 --- a/specification/applicationinsights/resource-manager/readme.go.md +++ b/specification/applicationinsights/resource-manager/readme.go.md @@ -14,6 +14,7 @@ go: ``` yaml $(go) && $(multiapi) batch: - tag: package-2015-05 + - tag: package-2020-02-02 ``` ### Tag: package-2015-05 and go @@ -46,3 +47,11 @@ input-file: override-info: title: ApplicationInsightsManagementClient ``` +### Tag: package-2020-02-02 and go + +These settings apply only when `--tag=package-2020-02-02 --go` is specified on he command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2020-02-02' && $(go) +output-folder: $(go-sdk-folder)/services/appinsights/mgmt/2020-02-02/$(namespace) +``` From 5345973c26025ed8192f69fe9912ee5caf1002b6 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 09:55:27 +0300 Subject: [PATCH 04/23] change error definitions in 2020-02-02 --- .../stable/2020-02-02/components_API.json | 30 ++++++++++++++----- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json index e1a021011c4f..ddb094a030ea 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json @@ -56,7 +56,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -95,7 +95,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -137,7 +137,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -174,7 +174,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -220,7 +220,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -269,7 +269,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -311,7 +311,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -353,7 +353,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -366,6 +366,20 @@ } }, "definitions": { + "ErrorResponse": { + "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "code": { + "description": "Error code.", + "type": "string" + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + }, "ComponentsResource": { "properties": { "id": { From 8c3adb06150660797fd1ff896a2c4e8bcc4fcaee Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 10:09:47 +0300 Subject: [PATCH 05/23] changes to fix issues --- .../componentFeaturesAndPricing_API.json | 2 +- .../componentLinkedStorageAccounts_API.json | 10 +++++----- .../stable/2015-05-01/aiOperations_API.json | 2 +- .../stable/2015-05-01/workbooks_API.json | 4 ++-- .../stable/2020-02-02/components_API.json | 16 ++++++++-------- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/componentFeaturesAndPricing_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/componentFeaturesAndPricing_API.json index cab88f9dba15..fc7b90bc4990 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/componentFeaturesAndPricing_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/componentFeaturesAndPricing_API.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/pricingPlans/current": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/pricingPlans/current": { "get": { "description": "Returns the current pricing plan setting for an Application Insights component.", "operationId": "ComponentCurrentPricingPlan_Get", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json index 22fcf9bfa10f..9189078597fb 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/linkedStorageAccounts/{storageType}": { "get": { "description": "Returns the current linked storage settings for an Application Insights component.", "operationId": "ComponentLinkedStorageAccounts_Get", @@ -59,7 +59,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "200": { @@ -108,7 +108,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "200": { @@ -157,7 +157,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "200": { @@ -197,7 +197,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "200": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/aiOperations_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/aiOperations_API.json index c71db9292334..53c161da1552 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/aiOperations_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/aiOperations_API.json @@ -50,7 +50,7 @@ "default": { "description": "Insights error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json index f3fb7bdc4e2d..0227174b5232 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks": { "get": { "description": "Get all Workbooks defined within a specified resource group and category.", "operationId": "Workbooks_ListByResourceGroup", @@ -82,7 +82,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}": { "get": { "description": "Get a single workbook by its resourceName.", "operationId": "Workbooks_Get", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json index ddb094a030ea..3f5f3b92ce78 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json @@ -56,7 +56,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -95,7 +95,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -137,7 +137,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -174,7 +174,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -220,7 +220,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -269,7 +269,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -311,7 +311,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -353,7 +353,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, From 17d5be8c3648666c7dddafa177e09275a4d04a71 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 10:18:49 +0300 Subject: [PATCH 06/23] fix more errors --- .../2017-10-01/examples/CurrentPricingPlanCreateAndUpdate.json | 3 --- .../preview/2017-10-01/examples/CurrentPricingPlanUpdate.json | 1 - 2 files changed, 4 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/examples/CurrentPricingPlanCreateAndUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/examples/CurrentPricingPlanCreateAndUpdate.json index 6d269785be16..7f62be7b2683 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/examples/CurrentPricingPlanCreateAndUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/examples/CurrentPricingPlanCreateAndUpdate.json @@ -7,12 +7,9 @@ "PricingPlanProperties": { "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/pricingPlans/current", "name": "current", - "type": "microsoft.insights/components/pricingPlans", "properties": { "planType": "Basic", "cap": 500, - "maxHistoryCap": 500, - "resetHour": 16, "warningThreshold": 90, "stopSendNotificationWhenHitThreshold": false, "stopSendNotificationWhenHitCap": false diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/examples/CurrentPricingPlanUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/examples/CurrentPricingPlanUpdate.json index fccdba43b6f8..7f62be7b2683 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/examples/CurrentPricingPlanUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/examples/CurrentPricingPlanUpdate.json @@ -7,7 +7,6 @@ "PricingPlanProperties": { "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/pricingPlans/current", "name": "current", - "type": "microsoft.insights/components/pricingPlans", "properties": { "planType": "Basic", "cap": 500, From 2e00d9388c1a512d77ed1a60571a5e52514bc14a Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 10:38:31 +0300 Subject: [PATCH 07/23] change error response to custom to fix errors --- .../componentLinkedStorageAccounts_API.json | 8 ++++---- .../stable/2020-02-02/components_API.json | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json index 9189078597fb..b2ff8ddcd8b7 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json @@ -59,7 +59,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } }, "200": { @@ -108,7 +108,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } }, "200": { @@ -157,7 +157,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } }, "200": { @@ -197,7 +197,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } }, "200": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json index 3f5f3b92ce78..ddb094a030ea 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json @@ -56,7 +56,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -95,7 +95,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -137,7 +137,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -174,7 +174,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -220,7 +220,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -269,7 +269,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -311,7 +311,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -353,7 +353,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, From 0c3c7e2f4f0308a3f7ff3b9443e038a1f3525b8c Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 10:48:47 +0300 Subject: [PATCH 08/23] add code property to error --- .../componentLinkedStorageAccounts_API.json | 20 +++++++++++-------- .../stable/2020-02-02/components_API.json | 20 +++++++++++-------- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json index b2ff8ddcd8b7..bc71591f5f9a 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json @@ -219,14 +219,18 @@ "ErrorResponse": { "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", "type": "object", - "properties": { - "code": { - "description": "Error code.", - "type": "string" - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string" + "error": { + "properties": { + "code": { + "readOnly": true, + "description": "Error code.", + "type": "string" + }, + "message": { + "readOnly": true, + "description": "Error message indicating why the operation failed.", + "type": "string" + } } } }, diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json index ddb094a030ea..d79f8b06dca6 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json @@ -369,14 +369,18 @@ "ErrorResponse": { "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", "type": "object", - "properties": { - "code": { - "description": "Error code.", - "type": "string" - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string" + "error": { + "properties": { + "code": { + "readOnly": true, + "description": "Error code.", + "type": "string" + }, + "message": { + "readOnly": true, + "description": "Error message indicating why the operation failed.", + "type": "string" + } } } }, From 4cbb29470248d7a537b8a603bea3a00a6b625947 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 10:57:47 +0300 Subject: [PATCH 09/23] fix error response --- .../componentLinkedStorageAccounts_API.json | 28 ++++++++++--------- .../stable/2020-02-02/components_API.json | 28 ++++++++++--------- 2 files changed, 30 insertions(+), 26 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json index bc71591f5f9a..b828329a5015 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json @@ -217,19 +217,21 @@ }, "definitions": { "ErrorResponse": { - "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", - "type": "object", - "error": { - "properties": { - "code": { - "readOnly": true, - "description": "Error code.", - "type": "string" - }, - "message": { - "readOnly": true, - "description": "Error message indicating why the operation failed.", - "type": "string" + "properties": { + "error": { + "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "code": { + "readOnly": true, + "description": "Error code.", + "type": "string" + }, + "message": { + "readOnly": true, + "description": "Error message indicating why the operation failed.", + "type": "string" + } } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json index d79f8b06dca6..cc534faf66ed 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json @@ -367,19 +367,21 @@ }, "definitions": { "ErrorResponse": { - "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", - "type": "object", - "error": { - "properties": { - "code": { - "readOnly": true, - "description": "Error code.", - "type": "string" - }, - "message": { - "readOnly": true, - "description": "Error message indicating why the operation failed.", - "type": "string" + "properties": { + "error": { + "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "code": { + "readOnly": true, + "description": "Error code.", + "type": "string" + }, + "message": { + "readOnly": true, + "description": "Error message indicating why the operation failed.", + "type": "string" + } } } } From 72994addd21339c90372d0875fc25fc31345cc16 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 11:14:41 +0300 Subject: [PATCH 10/23] change errorResponse name --- .../stable/2020-02-02/components_API.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json index cc534faf66ed..4984a2050b87 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json @@ -56,7 +56,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -95,7 +95,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -137,7 +137,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -174,7 +174,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -220,7 +220,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -269,7 +269,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -311,7 +311,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -353,7 +353,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -366,7 +366,7 @@ } }, "definitions": { - "ErrorResponse": { + "ErrorResponseComponents": { "properties": { "error": { "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", From 4cff364e7dedef77cc22633bd406146d3aaa4335 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 11:22:26 +0300 Subject: [PATCH 11/23] fix --- .../stable/2020-02-02/components_API.json | 36 +++++-------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json index 4984a2050b87..a7980c97d02b 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json @@ -56,7 +56,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponents" + "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -95,7 +95,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponents" + "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -137,7 +137,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponents" + "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -174,7 +174,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponents" + "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -220,7 +220,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponents" + "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -269,7 +269,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponents" + "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -311,7 +311,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponents" + "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -353,7 +353,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponents" + "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -366,26 +366,6 @@ } }, "definitions": { - "ErrorResponseComponents": { - "properties": { - "error": { - "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", - "type": "object", - "properties": { - "code": { - "readOnly": true, - "description": "Error code.", - "type": "string" - }, - "message": { - "readOnly": true, - "description": "Error message indicating why the operation failed.", - "type": "string" - } - } - } - } - }, "ComponentsResource": { "properties": { "id": { From 9d0c991d400d59831d80a599b56799a2b4a56423 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 11:26:39 +0300 Subject: [PATCH 12/23] fix --- .../stable/2020-02-02/components_API.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json index a7980c97d02b..af51f924799e 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json @@ -56,7 +56,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -95,7 +95,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -137,7 +137,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -174,7 +174,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -220,7 +220,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -269,7 +269,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -311,7 +311,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, @@ -353,7 +353,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" } } }, From fa763ad65b666a4a699ba2074b102add8ec96cd2 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 11:45:03 +0300 Subject: [PATCH 13/23] fix --- .../Microsoft.Insights/stable/2015-05-01/aiOperations_API.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/aiOperations_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/aiOperations_API.json index 53c161da1552..c71db9292334 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/aiOperations_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/aiOperations_API.json @@ -50,7 +50,7 @@ "default": { "description": "Insights error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, From 5b324eca119169287954658c22d081faf5af1755 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 11:53:40 +0300 Subject: [PATCH 14/23] fix --- .../preview/2017-10-01/componentFeaturesAndPricing_API.json | 2 +- .../componentLinkedStorageAccounts_API.json | 2 +- .../Microsoft.Insights/stable/2015-05-01/workbooks_API.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/componentFeaturesAndPricing_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/componentFeaturesAndPricing_API.json index fc7b90bc4990..cab88f9dba15 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/componentFeaturesAndPricing_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2017-10-01/componentFeaturesAndPricing_API.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/pricingPlans/current": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/pricingPlans/current": { "get": { "description": "Returns the current pricing plan setting for an Application Insights component.", "operationId": "ComponentCurrentPricingPlan_Get", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json index b828329a5015..f097e8cdf32f 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/linkedStorageAccounts/{storageType}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}": { "get": { "description": "Returns the current linked storage settings for an Application Insights component.", "operationId": "ComponentLinkedStorageAccounts_Get", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json index 0227174b5232..f3fb7bdc4e2d 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks": { "get": { "description": "Get all Workbooks defined within a specified resource group and category.", "operationId": "Workbooks_ListByResourceGroup", @@ -82,7 +82,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { "get": { "description": "Get a single workbook by its resourceName.", "operationId": "Workbooks_Get", From 199ce13d02b13237c058707a19d7579b089f309c Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 12:00:03 +0300 Subject: [PATCH 15/23] fix --- specification/applicationinsights/resource-manager/readme.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index 44cffd87a0aa..7d16982291bc 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -374,7 +374,6 @@ input-file: - Microsoft.Insights/stable/2015-05-01/workbooks_API.json - Microsoft.Insights/stable/2015-05-01/myworkbooks_API.json - Microsoft.Insights/stable/2020-02-02/components_API.json -- Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json ``` ### Tag: package-2019-10-17-preview From 27014d3f33caa24d0b81b273c192502fe0bf4443 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 12:05:17 +0300 Subject: [PATCH 16/23] fix --- specification/applicationinsights/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index 7d16982291bc..44cffd87a0aa 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -374,6 +374,7 @@ input-file: - Microsoft.Insights/stable/2015-05-01/workbooks_API.json - Microsoft.Insights/stable/2015-05-01/myworkbooks_API.json - Microsoft.Insights/stable/2020-02-02/components_API.json +- Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json ``` ### Tag: package-2019-10-17-preview From 9edf7562da8623395e866c7dfed2082430e382d0 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 12:08:19 +0300 Subject: [PATCH 17/23] fix --- .../stable/2020-02-02/components_API.json | 36 ++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json index af51f924799e..cc534faf66ed 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json @@ -56,7 +56,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -95,7 +95,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -137,7 +137,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -174,7 +174,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -220,7 +220,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -269,7 +269,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -311,7 +311,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -353,7 +353,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -366,6 +366,26 @@ } }, "definitions": { + "ErrorResponse": { + "properties": { + "error": { + "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "code": { + "readOnly": true, + "description": "Error code.", + "type": "string" + }, + "message": { + "readOnly": true, + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + } + } + }, "ComponentsResource": { "properties": { "id": { From 8ae5e3b7e4e85949bac866c7a9ef6365524db960 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 12:20:11 +0300 Subject: [PATCH 18/23] fix --- .../stable/2020-02-02/components_API.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json index cc534faf66ed..8a9970c6588f 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json @@ -56,7 +56,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponentes" } } }, @@ -95,7 +95,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponentes" } } }, @@ -137,7 +137,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponentes" } } }, @@ -174,7 +174,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponentes" } } }, @@ -220,7 +220,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponentes" } } }, @@ -269,7 +269,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponentes" } } }, @@ -311,7 +311,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponentes" } } }, @@ -353,7 +353,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseComponentes" } } }, @@ -366,7 +366,7 @@ } }, "definitions": { - "ErrorResponse": { + "ErrorResponseComponentes": { "properties": { "error": { "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", From 58c57ec60bc30abfd728442467a63f27da8826ae Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 12:25:41 +0300 Subject: [PATCH 19/23] fixes --- .../componentLinkedStorageAccounts_API.json | 10 +++++----- .../preview/2020-06-02-preview/livetoken_API.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json index f097e8cdf32f..22d2cc53676a 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json @@ -59,7 +59,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseLinkedStorage" } }, "200": { @@ -108,7 +108,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseLinkedStorage" } }, "200": { @@ -157,7 +157,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseLinkedStorage" } }, "200": { @@ -197,7 +197,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponseLinkedStorage" } }, "200": { @@ -216,7 +216,7 @@ } }, "definitions": { - "ErrorResponse": { + "ErrorResponseLinkedStorage": { "properties": { "error": { "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-06-02-preview/livetoken_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-06-02-preview/livetoken_API.json index bac300f6f969..a64727e554c7 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-06-02-preview/livetoken_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-06-02-preview/livetoken_API.json @@ -93,7 +93,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponse" + "$ref": "../2020-03-01-preview/componentLinkedStorageAccounts_API.json#/definitions/ErrorResponseLinkedStorage" } }, "200": { From 8283288f9251f10b269977d04ea0859233e1f8d7 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 12:33:07 +0300 Subject: [PATCH 20/23] fixes --- .../componentLinkedStorageAccounts_API.json | 1 + .../stable/2020-02-02/components_API.json | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json index 22d2cc53676a..bde9a0c44184 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json @@ -217,6 +217,7 @@ }, "definitions": { "ErrorResponseLinkedStorage": { + "type": "object", "properties": { "error": { "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json index 8a9970c6588f..e133d84d6397 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json @@ -56,7 +56,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponentes" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -95,7 +95,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponentes" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -137,7 +137,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponentes" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -174,7 +174,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponentes" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -220,7 +220,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponentes" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -269,7 +269,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponentes" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -311,7 +311,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponentes" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -353,7 +353,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponseComponentes" + "$ref": "#/definitions/ErrorResponseComponents" } } }, @@ -366,7 +366,8 @@ } }, "definitions": { - "ErrorResponseComponentes": { + "ErrorResponseComponents": { + "type": "object", "properties": { "error": { "description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.", From 1d7d6a03be4f8a341288bc2017c54283f5e86fee Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 12:49:49 +0300 Subject: [PATCH 21/23] fix --- specification/applicationinsights/resource-manager/readme.go.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/applicationinsights/resource-manager/readme.go.md b/specification/applicationinsights/resource-manager/readme.go.md index 2660fa49b792..ded99f7504e2 100644 --- a/specification/applicationinsights/resource-manager/readme.go.md +++ b/specification/applicationinsights/resource-manager/readme.go.md @@ -47,6 +47,7 @@ input-file: override-info: title: ApplicationInsightsManagementClient ``` + ### Tag: package-2020-02-02 and go These settings apply only when `--tag=package-2020-02-02 --go` is specified on he command line. From 35ee6b9698c67b7e502e2b6673235efcdc0b40d2 Mon Sep 17 00:00:00 2001 From: Tom Friedlender Date: Tue, 29 Jun 2021 12:56:36 +0300 Subject: [PATCH 22/23] fixes --- .../resource-manager/readme.go.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/specification/applicationinsights/resource-manager/readme.go.md b/specification/applicationinsights/resource-manager/readme.go.md index ded99f7504e2..7f08851363da 100644 --- a/specification/applicationinsights/resource-manager/readme.go.md +++ b/specification/applicationinsights/resource-manager/readme.go.md @@ -56,3 +56,25 @@ Please also specify `--go-sdk-folder= Date: Wed, 30 Jun 2021 12:32:40 +0800 Subject: [PATCH 23/23] fix remaining issues in readme.go.md --- .../resource-manager/readme.go.md | 46 +------------------ 1 file changed, 1 insertion(+), 45 deletions(-) diff --git a/specification/applicationinsights/resource-manager/readme.go.md b/specification/applicationinsights/resource-manager/readme.go.md index 7f08851363da..576135c32d2e 100644 --- a/specification/applicationinsights/resource-manager/readme.go.md +++ b/specification/applicationinsights/resource-manager/readme.go.md @@ -26,55 +26,11 @@ Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2020-02-02' && $(go) -output-folder: $(go-sdk-folder)/services/appinsights/mgmt/2020-02-02/$(namespace) +output-folder: $(go-sdk-folder)/services/preview/appinsights/mgmt/2020-02-02-preview/$(namespace) ``` - -### Tag: schema-2020-02-02-preview - -These settings apply only when `--tag=schema-2020-02-02` is specified on the -command line. - -This section contains the input swagger files that are used when generating -resource manager schemas for version 2020-02-02. Note that many of our -pre-existing APIs are note currently compatible with ARM schemas, upon any -updates applied to our services we will bring them up to compliance. - -``` yaml $(tag) == 'schema-2020-02-02' -input-file: - - ./Microsoft.Insights/stable/2015-05-01/aiOperations_API.json - - ./Microsoft.Insights/stable/2020-02-02/components_API.json - - ./Microsoft.Insights/stable/2015-05-01/webTests_API.json - - ./Microsoft.Insights/stable/2015-05-01/workbooks_API.json - - ./Microsoft.Insights/stable/2015-05-01/myworkbooks_API.json - -override-info: - title: ApplicationInsightsManagementClient -``` \ No newline at end of file