From 2f952c7744317c0608c5253adde15ff9a58339b5 Mon Sep 17 00:00:00 2001 From: aarongas Date: Mon, 10 Feb 2020 13:46:44 -0800 Subject: [PATCH 01/39] Adds base for updating Microsoft.Insights from version preview/2019-10-17-preview to version 2020-02-10-preview --- .../examples/WorkbookTemplateAdd.json | 76 +++ .../examples/WorkbookTemplateDelete.json | 12 + .../examples/WorkbookTemplateGet.json | 33 ++ .../examples/WorkbookTemplateUpdate.json | 54 ++ .../examples/WorkbookTemplatesList.json | 55 +++ .../workbookTemplates_API.json | 462 ++++++++++++++++++ 6 files changed, 692 insertions(+) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateAdd.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateDelete.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateGet.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateUpdate.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplatesList.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/workbookTemplates_API.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateAdd.json new file mode 100644 index 000000000000..8afc2505a0f1 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateAdd.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2019-10-17-preview", + "resourceGroupName": "my-resource-group", + "resourceName": "testtemplate2", + "subscriptionId": "subid", + "workbookTemplateProperties": { + "location": "west us", + "properties": { + "priority": 1, + "author": "Contoso", + "galleries": [ + { + "name": "Simple Template", + "category": "Failures", + "type": "tsg", + "resourceType": "microsoft.insights/components", + "order": 100 + } + ], + "templateData": {} + }, + "tags": null + } + }, + "responses": { + "200": { + "body": { + "name": "testtemplate2", + "location": "westeurope", + "tags": null, + "type": "microsoft.insights/workbooktemplates", + "id": "/subscriptions/50359d91-7b9d-4823-85af-eb298a61ba95/resourceGroups/testrg/providers/microsoft.insights/workbooktemplates/testtemplate2", + "properties": { + "priority": 1, + "author": "Contoso", + "templateData": {}, + "galleries": [ + { + "name": "Simple Template", + "category": "Failures", + "order": 100, + "type": "tsg", + "resourceType": "microsoft.insights/components" + } + ], + "localized": null + } + } + }, + "201": { + "body": { + "name": "testtemplate2", + "location": "westeurope", + "tags": null, + "type": "microsoft.insights/workbooktemplates", + "id": "/subscriptions/50359d91-7b9d-4823-85af-eb298a61ba95/resourceGroups/testrg/providers/microsoft.insights/workbooktemplates/testtemplate2", + "properties": { + "priority": 1, + "author": "Contoso", + "templateData": {}, + "galleries": [ + { + "name": "Simple Template", + "category": "Failures", + "order": 100, + "type": "tsg", + "resourceType": "microsoft.insights/components" + } + ], + "localized": null + } + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateDelete.json new file mode 100644 index 000000000000..c7e8656e5c31 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2019-10-17-preview", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "my-template-resource" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateGet.json new file mode 100644 index 000000000000..9cee90ca1109 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2019-10-17-preview", + "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", + "resourceGroupName": "my-resource-group", + "resourceName": "my-resource-name" + }, + "responses": { + "200": { + "body": { + "name": "my-resource-name", + "type": "microsoft.insights/workbooktemplate", + "location": "westus", + "id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/microsoft.insights/workbooktemplates/my-resource-name", + "properties": { + "priority": 1, + "author": "Contoso", + "galleries": [ + { + "name": "Simple Template", + "category": "Failures", + "type": "tsg", + "resourceType": "microsoft.insights/components", + "order": 100 + } + ], + "templateData": {} + }, + "tags": null + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateUpdate.json new file mode 100644 index 000000000000..b410777d4a90 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateUpdate.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2018-06-17-preview", + "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", + "resourceGroupName": "my-resource-group", + "resourceName": "my-template-resource", + "workbookTemplateProperties": { + "name": "display-name-of-template", + "location": "west us", + "type": "microsoft.insights/workbooktemplates", + "properties": { + "priority": 1, + "author": "Contoso", + "galleries": [ + { + "name": "Simple Template", + "category": "Failures", + "type": "tsg", + "resourceType": "microsoft.insights/components", + "order": 100 + } + ], + "templateData": {} + }, + "tags": null + } + }, + "responses": { + "200": { + "body": { + "name": "testtemplate2", + "location": "westeurope", + "tags": null, + "type": "microsoft.insights/workbooktemplates", + "id": "/subscriptions/50359d91-7b9d-4823-85af-eb298a61ba95/resourceGroups/testrg/providers/microsoft.insights/workbooktemplates/testtemplate2", + "properties": { + "priority": 1, + "author": "Contoso", + "templateData": {}, + "galleries": [ + { + "name": "Simple Template", + "category": "Failures", + "order": 100, + "type": "tsg", + "resourceType": "microsoft.insights/components" + } + ], + "localized": null + } + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplatesList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplatesList.json new file mode 100644 index 000000000000..3e2eaa1e3adb --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplatesList.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2019-10-17-preview", + "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", + "resourceGroupName": "my-resource-group" + }, + "responses": { + "200": { + "body": [ + { + "name": "my-resource-name", + "type": "microsoft.insights/workbooktemplate", + "location": "westus", + "id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/microsoft.insights/workbooktemplates/my-resource-name", + "properties": { + "priority": 1, + "author": "Contoso", + "galleries": [ + { + "name": "Simple Template", + "category": "Failures", + "type": "tsg", + "resourceType": "microsoft.insights/components", + "order": 100 + } + ], + "templateData": {} + }, + "tags": null + }, + { + "name": "my-resource-name2", + "type": "microsoft.insights/workbooktemplate", + "location": "westus", + "id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/microsoft.insights/workbooktemplates/my-resource-name2", + "properties": { + "priority": 1, + "author": "Contoso", + "galleries": [ + { + "name": "Simple Template 2", + "category": "Failures", + "type": "tsg", + "resourceType": "microsoft.insights/components", + "order": 100 + } + ], + "templateData": {} + }, + "tags": null + } + ] + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/workbookTemplates_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/workbookTemplates_API.json new file mode 100644 index 000000000000..d1c3fab2538e --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/workbookTemplates_API.json @@ -0,0 +1,462 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationInsightsManagementClient", + "description": "Azure Application Insights workbook template type.", + "version": "2019-10-17-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooktemplates": { + "get": { + "description": "Get all Workbook templates defined within a specified resource group.", + "operationId": "WorkbookTemplates_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more workbook template definitions.", + "schema": { + "$ref": "#/definitions/WorkbookTemplatesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "WorkbookTemplatesList": { + "$ref": "./examples/WorkbookTemplatesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}": { + "get": { + "description": "Get a single workbook template by its resourceName.", + "operationId": "WorkbookTemplates_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookTemplateResourceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A workbook template definition.", + "schema": { + "$ref": "#/definitions/WorkbookTemplate" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbookTemplateGet": { + "$ref": "./examples/WorkbookTemplateGet.json" + } + } + }, + "delete": { + "description": "Delete a workbook template.", + "operationId": "WorkbookTemplates_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookTemplateResourceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook template has been successfully deleted." + }, + "204": { + "description": "The resource doesn't exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbookTemplateDelete": { + "$ref": "./examples/WorkbookTemplateDelete.json" + } + } + }, + "put": { + "description": "Create a new workbook template.", + "operationId": "WorkbookTemplates_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookTemplateResourceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "workbookTemplateProperties", + "description": "Properties that need to be specified to create a new workbook.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WorkbookTemplate" + } + } + ], + "responses": { + "200": { + "description": "The newly created workbook template.", + "schema": { + "$ref": "#/definitions/WorkbookTemplate" + } + }, + "201": { + "description": "The newly created workbook template.", + "schema": { + "$ref": "#/definitions/WorkbookTemplate" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbookTemplateAdd": { + "$ref": "./examples/WorkbookTemplateAdd.json" + } + } + }, + "patch": { + "description": "Updates a workbook template that has already been added.", + "operationId": "WorkbookTemplates_Update", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookTemplateResourceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "WorkbookTemplateUpdateParameters", + "description": "Properties that need to be specified to patch a workbook template.", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/WorkbookTemplateUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "The workbook template definition updated.", + "schema": { + "$ref": "#/definitions/WorkbookTemplate" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbookTemplateUpdate": { + "$ref": "./examples/WorkbookTemplateUpdate.json" + } + } + } + } + }, + "definitions": { + "WorkbookTemplateResource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "WorkbookTemplatesListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/WorkbookTemplate" + }, + "description": "An array of workbook templates." + } + }, + "description": "WorkbookTemplate list result." + }, + "WorkbookTemplate": { + "description": "An Application Insights workbook template definition.", + "allOf": [ + { + "$ref": "#/definitions/WorkbookTemplateResource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Metadata describing a workbook template for an Azure resource.", + "$ref": "#/definitions/WorkbookTemplateProperties" + } + } + }, + "WorkbookTemplateProperties": { + "description": "Properties that contain a workbook template.", + "required": [ + "templateData", + "galleries" + ], + "properties": { + "priority": { + "type": "integer", + "description": "Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode." + }, + "author": { + "type": "string", + "description": "Information about the author of the workbook template." + }, + "templateData": { + "type": "object", + "description": "Valid JSON object containing workbook template payload." + }, + "galleries": { + "type": "array", + "description": "Workbook galleries supported by the template.", + "items": { + "$ref": "#/definitions/WorkbookTemplateGallery" + } + }, + "localized": { + "type": "object", + "description": "Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal.", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/definitions/WorkbookTemplateLocalizedGallery" + } + } + } + } + }, + "WorkbookTemplateGallery": { + "description": "Gallery information for a workbook template.", + "properties": { + "name": { + "type": "string", + "description": "Name of the workbook template in the gallery." + }, + "category": { + "type": "string", + "description": "Category for the gallery." + }, + "type": { + "type": "string", + "description": "Type of workbook supported by the workbook template." + }, + "order": { + "type": "integer", + "description": "Order of the template within the gallery." + }, + "resourceType": { + "type": "string", + "description": "Azure resource type supported by the gallery." + } + } + }, + "WorkbookTemplateLocalizedGallery": { + "description": "Localized template data and gallery information.", + "properties": { + "templateData": { + "type": "object", + "description": "Valid JSON object containing workbook template payload." + }, + "galleries": { + "type": "array", + "description": "Workbook galleries supported by the template.", + "items": { + "$ref": "#/definitions/WorkbookTemplateGallery" + } + } + } + }, + "WorkbookTemplateUpdateParameters": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Metadata describing a workbook for an Azure resource.", + "$ref": "#/definitions/WorkbookTemplateProperties" + } + }, + "description": "The parameters that can be provided when updating workbook template." + }, + "ErrorFieldContract": { + "properties": { + "code": { + "type": "string", + "description": "Property level error code." + }, + "message": { + "type": "string", + "description": "Human-readable representation of property-level error." + }, + "target": { + "type": "string", + "description": "Property name." + } + }, + "description": "Error Field contract." + }, + "WorkbookError": { + "properties": { + "code": { + "type": "string", + "description": "Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response." + }, + "message": { + "type": "string", + "description": "Human-readable representation of the error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorFieldContract" + }, + "description": "The list of invalid fields send in request, in case of validation error." + } + }, + "description": "Error message body that will indicate why the operation failed." + } + }, + "parameters": { + "WorkbookTemplateResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Application Insights component resource.", + "x-ms-parameter-location": "method" + } + } +} From 3df135072f24f9f00abaa71401cdebb03210d79a Mon Sep 17 00:00:00 2001 From: aarongas Date: Mon, 10 Feb 2020 13:47:05 -0800 Subject: [PATCH 02/39] Updates readme --- .../resource-manager/readme.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index 491dab42f372..1b738bc1021c 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -4,10 +4,10 @@ This is the AutoRest configuration file for ApplicationInsights. - - --- + ## Getting Started + To build the SDK for ApplicationInsights, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -15,6 +15,7 @@ To build the SDK for ApplicationInsights, simply [Install AutoRest](https://aka. To see additional help and options, run: > `autorest --help` + --- ## Configuration @@ -27,7 +28,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-2015-05 +tag: package-preview-2020-02 ``` ## Suppression @@ -237,6 +238,15 @@ directive: reason: There are a bug in this rule. "ExportConfigurations_Create" is a valid operation id. ``` + +### Tag: package-preview-2020-02 + +These settings apply only when `--tag=package-preview-2020-02` is specified on the command line. + +```yaml $(tag) == 'package-preview-2020-02' +input-file: + - Microsoft.Insights/preview/2020-02-10-preview/workbookTemplates_API.json +``` ### Tag: package-2015-05 These settings apply only when `--tag=package-2015-05` is specified on the command line. @@ -281,7 +291,7 @@ input-file: These settings apply only when `--tag=package-2019-10-17-preview` is specified on the command line. -```yaml $(tag) == 'package-2019-10-17-preview' +``` yaml $(tag) == 'package-2019-10-17-preview' input-file: - Microsoft.Insights/preview/2019-10-17-preview/workbookTemplates_API.json ``` From da14d92d9b78cfcb886ed969e599f387e3fd93f2 Mon Sep 17 00:00:00 2001 From: aarongas Date: Mon, 10 Feb 2020 13:47:08 -0800 Subject: [PATCH 03/39] Updates API version in new specs and examples --- .../2020-02-10-preview/examples/WorkbookTemplateAdd.json | 2 +- .../2020-02-10-preview/examples/WorkbookTemplateDelete.json | 2 +- .../2020-02-10-preview/examples/WorkbookTemplateGet.json | 2 +- .../2020-02-10-preview/examples/WorkbookTemplatesList.json | 2 +- .../preview/2020-02-10-preview/workbookTemplates_API.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateAdd.json index 8afc2505a0f1..c8047b0f6ed1 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateAdd.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateAdd.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-10-17-preview", + "api-version": "2020-02-10-preview", "resourceGroupName": "my-resource-group", "resourceName": "testtemplate2", "subscriptionId": "subid", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateDelete.json index c7e8656e5c31..45637f8112ec 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateDelete.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-10-17-preview", + "api-version": "2020-02-10-preview", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "resourceName": "my-template-resource" diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateGet.json index 9cee90ca1109..61bfbba04042 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-10-17-preview", + "api-version": "2020-02-10-preview", "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group", "resourceName": "my-resource-name" diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplatesList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplatesList.json index 3e2eaa1e3adb..be203c8ec362 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplatesList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplatesList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-10-17-preview", + "api-version": "2020-02-10-preview", "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group" }, diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/workbookTemplates_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/workbookTemplates_API.json index d1c3fab2538e..91d07ff5f058 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/workbookTemplates_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/workbookTemplates_API.json @@ -3,7 +3,7 @@ "info": { "title": "ApplicationInsightsManagementClient", "description": "Azure Application Insights workbook template type.", - "version": "2019-10-17-preview" + "version": "2020-02-10-preview" }, "host": "management.azure.com", "schemes": [ From 71cf9896e8539ea98b3c43ba342fe5639c6d353d Mon Sep 17 00:00:00 2001 From: Aaron Gaskill Date: Mon, 10 Feb 2020 14:04:27 -0800 Subject: [PATCH 04/39] Added WebTestResults API --- .../WebTestResults_API.json | 243 +++++++++ .../WebTestResultsTestResultFile.json | 19 + .../WebTestResultsTestResultForUxDisplay.json | 42 ++ .../examples/WorkbookTemplateAdd.json | 76 --- .../examples/WorkbookTemplateDelete.json | 12 - .../examples/WorkbookTemplateGet.json | 33 -- .../examples/WorkbookTemplateUpdate.json | 54 -- .../examples/WorkbookTemplatesList.json | 55 --- .../workbookTemplates_API.json | 462 ------------------ .../resource-manager/readme.md | 2 +- 10 files changed, 305 insertions(+), 693 deletions(-) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/WebTestResults_API.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WebTestResultsTestResultFile.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WebTestResultsTestResultForUxDisplay.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateAdd.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateDelete.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateGet.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplateUpdate.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/examples/WorkbookTemplatesList.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/workbookTemplates_API.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/WebTestResults_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/WebTestResults_API.json new file mode 100644 index 000000000000..873776fbda54 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-02-10-preview/WebTestResults_API.json @@ -0,0 +1,243 @@ +{ + "swagger": "2.0", + "info": { + "title": "MonitorManagementClient", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" + }, + "version": "2020-02-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [], + "produces": [ + "application/json", + "text/xml" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subId}/resoucegroups/{rgId}/providers/microsoft.insights/webtests/{webtestName}/testresultforuxdisplay": { + "get": { + "tags": [ + "FindWebTestResult" + ], + "operationId": "testresultforuxdisplay", + "description": "Returns the test result for the matching test", + "parameters": [ + { + "$ref": "#/parameters/PopParameter" + }, + { + "$ref": "#/parameters/PartitionIdParameter" + }, + { + "$ref": "#/parameters/TestIdParameter" + }, + { + "$ref": "#/parameters/PosixTimeStampParameter" + }, + { + "$ref": "#/parameters/TestSuccessfulParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "200": { + "description": "successful request to get the test result object - Object to be further defined once out of preview and multistep tests have been removed.", + "schema": { + "type": "object" + }, + "examples": { + "application/json": { + "ExactMatch": false, + "ResultAsString": null, + "Steps": [ + { + "DependantRequests": [], + "Detail": { + "Exceptions": [], + "Rules": [] + }, + "Id": "|5ffd53228edb48729dc23d7cfe9d9040.0", + "Passed": true, + "ReponseByte": 0, + "RequestByte": 0, + "RequestTime": 0.805, + "ResponseBody": "\n\n\n\n \nAzure Application Insights Developers Guide\n\n\n\n\n\n\n\n\n\n\n\n\n\n