From 5e8373512b654a050b42cc308c7c709bfccd432a Mon Sep 17 00:00:00 2001 From: Alexander Kaplan Date: Tue, 11 Jan 2022 16:25:08 -0800 Subject: [PATCH 1/4] Preparing a new tag without the conflicting operation "Operations_List" --- .../stable/2021-10-14/livetoken_API.json | 38 ------------------- .../resource-manager/readme.md | 25 ++++++++++++ 2 files changed, 25 insertions(+), 38 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-10-14/livetoken_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-10-14/livetoken_API.json index 6b267321a6d0..53c95ded009f 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-10-14/livetoken_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-10-14/livetoken_API.json @@ -36,44 +36,6 @@ } }, "paths": { - "/providers/Microsoft.Insights/operations": { - "get": { - "tags": [ - "Operations" - ], - "summary": "List available operations.", - "description": "List the available operations supported by the resource provider.", - "operationId": "Operations_List", - "consumes": [], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationsListResult" - } - }, - "default": { - "description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error." - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Operations_List": { - "$ref": "./examples/Operations_List.json" - } - } - } - }, "/{resourceUri}/providers/Microsoft.Insights/generatelivetoken": { "post": { "tags": [ diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index 4eba7aafc8d3..ad972d991c4e 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -222,6 +222,31 @@ directive: ``` +### Tag: package-2022-01-11 + +These settings apply only when `--tag=package-2022-01-11` is specified on the command line. + +``` yaml $(tag) == 'package-2022-01-11' +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/2020-11-20/workbookTemplates_API.json + - Microsoft.Insights/stable/2021-03-08/myworkbooks_API.json + - Microsoft.Insights/stable/2021-08-01/workbooks_API.json + - Microsoft.Insights/preview/2018-05-01-preview/components_API.json + - Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json + - Microsoft.Insights/stable/2021-10-14/livetoken_API.json +``` + ### Tag: package-2021-11-01 These settings apply only when `--tag=package-2021-11-01` is specified on the command line. From 38734810471001474cc924dcfe8e093192988199 Mon Sep 17 00:00:00 2001 From: Alexander Kaplan Date: Wed, 12 Jan 2022 12:44:06 -0800 Subject: [PATCH 2/4] Correcting components_API.json version for the tag --- specification/applicationinsights/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index ad972d991c4e..0ddbd4fefa59 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -242,7 +242,7 @@ input-file: - Microsoft.Insights/stable/2020-11-20/workbookTemplates_API.json - Microsoft.Insights/stable/2021-03-08/myworkbooks_API.json - Microsoft.Insights/stable/2021-08-01/workbooks_API.json - - Microsoft.Insights/preview/2018-05-01-preview/components_API.json + - Microsoft.Insights/stable/2020-02-02/components_API.json - Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json - Microsoft.Insights/stable/2021-10-14/livetoken_API.json ``` From 00c279884250d5d7a10a183cc76d94ee05195975 Mon Sep 17 00:00:00 2001 From: Alexander Kaplan Date: Wed, 12 Jan 2022 14:52:21 -0800 Subject: [PATCH 3/4] Updating the latest tag, adding reference materials to readme.md --- .../applicationinsights/resource-manager/readme.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index 0ddbd4fefa59..b3921df56dd9 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -18,6 +18,16 @@ To see additional help and options, run: --- +### Before adding a new tag + +Please familiarize yourself with the following before adding a new tag: + +- Discussion on negative impact of multiple _api-version_'s within a tag: [Azure/azure-sdk-for-rust#563](https://github.com/Azure/azure-sdk-for-rust/issues/563) +- [API Spec & SDK Package Versioning Considerations](https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/481/API-Spec-SDK-Package-Versioning-Considerations) +- [Manual Process: Adding new API version](https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/83/Manual-Process-Adding-new-API-version) + +--- + ## Configuration ### Basic Information @@ -28,7 +38,7 @@ These are the global settings for the ApplicationInsights API. title: ApplicationInsightsManagementClient description: Composite Swagger for Application Insights Management Client openapi-type: arm -tag: package-2021-11-01 +tag: package-2022-01-11 ``` ### Suppression From 17abfcd35b9e804185127074d12c164ffc58b8ed Mon Sep 17 00:00:00 2001 From: Alexander Kaplan Date: Thu, 13 Jan 2022 12:05:44 -0800 Subject: [PATCH 4/4] Avocado error fix --- .../2021-10-14/examples/Operations_List.json | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-10-14/examples/Operations_List.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-10-14/examples/Operations_List.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-10-14/examples/Operations_List.json deleted file mode 100644 index a88a7c1454a9..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-10-14/examples/Operations_List.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-14" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "microsoft.insights/generatelivetoken", - "display": { - "provider": "Microsoft Container Instance", - "resource": "generatelivetoken", - "operation": "Gets an access token for live metrics stream data", - "description": "Gets an access token for live metrics stream data" - }, - "origin": "User" - } - ] - } - } - } -}