From a892e9fd58932c8cfc3faa94d0525e5824dcc247 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 14:18:09 -0700 Subject: [PATCH 01/24] Adding Workbooks resource type. --- .../examples/LinkedWorkbookResponseOnly.json | 13 + .../2015-05-01/examples/WorkbookAdd.json | 51 ++ .../2015-05-01/examples/WorkbookAddLink.json | 14 + .../2015-05-01/examples/WorkbookGet.json | 33 + .../examples/WorkbookResponseOnly.json | 16 + .../2015-05-01/examples/WorkbookUpdate.json | 50 ++ .../examples/WorkbookUpdateLink.json | 32 + .../2015-05-01/examples/WorkbooksList.json | 49 ++ .../examples/WorkbooksListLink.json | 51 ++ .../2015-05-01/examples/workbookDelete.json | 15 + .../stable/2015-05-01/workbooks_API.json | 695 ++++++++++++++++++ .../resource-manager/readme.md | 2 + .../2015-04-01/examples/OperationList.json | 49 +- 13 files changed, 1065 insertions(+), 5 deletions(-) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/workbookDelete.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json new file mode 100644 index 000000000000..7fe66f3c0846 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "linkProperties": { + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "targetId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Insights/workbook/91d51e13-9a1b-49be-9ac0-0927c19b1dbf" + } + }, + "responses": { + "200": { + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json new file mode 100644 index 000000000000..0e7c71f15345 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "subscriptionId": "subid", + "workbookProperties": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json new file mode 100644 index 000000000000..12d17c0aee18 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960" + }, + "responses": { + "200": { + }, + "204": { + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json new file mode 100644 index 000000000000..ceb4e88622bc --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "location": "west us", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "type": "", + "location": "westus", + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json new file mode 100644 index 000000000000..5abc43074990 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "sourceId": "azure source id", + "category": "workbook", + "location": "us west", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + }, + "204": { + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json new file mode 100644 index 000000000000..f135343b34df --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "workbookProperties": { + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "tags": [ + "TagSample01", + "TagSample02" + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } +} + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": [ + "TagSample01", + "TagSample02" + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json new file mode 100644 index 000000000000..79a275036eb1 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "workbookProperties": { + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + }, + "responses": { + "200": { + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json new file mode 100644 index 000000000000..e762584335e6 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "location": "west us", + "category": "workbook" + }, + "responses": { + "200": { + "body": [ + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": [], + "properties": { + "name": "My Workbook 1", + "userId": "userId", + "serializedData": "{\"verion\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + }, + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": ["SampleTag01", "SampleTag2"], + "properties": { + "name": "My Workbook 2", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + ] + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json new file mode 100644 index 000000000000..b0262789137d --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "category": "workbook", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "canFetchWorkbook": true, + "tags": [] + }, + "responses": { + "200": { + "body": [ + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": [], + "properties": { + "name": "My Workbook 1", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + }, + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": ["SampleTag01", "SampleTag2"], + "properties": { + "name": "My Workbook 2", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + ] + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/workbookDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/workbookDelete.json new file mode 100644 index 000000000000..4b7ff91a4b45 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/workbookDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "location": "west us", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + }, + "204": { + } + } +} 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 new file mode 100644 index 000000000000..c2987ea71f1d --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json @@ -0,0 +1,695 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationInsightsManagementClient", + "description": "Azure Application Insights workbook type.", + "version": "2015-05-01" + }, + "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/workbooks": { + "get": { + "description": "Get all Workbooks defined within a specified resource group and category.", + "operationId": "Workbooks_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/TagsParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more workbook definitions.", + "schema": { + "$ref": "#/definitions/WorkbookListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbooksList": { + "$ref": "./examples/WorkbooksList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { + "delete": { + "description": "Delete a workbook.", + "operationId": "Workbooks_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook has been successfully deleted." + }, + "204": { + "description": "The resource doens't exisit." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookDelete.json" + } + } + }, + "put": { + "description": "Create a new workbook.", + "operationId": "Workbooks_Create", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "workbookProperties", + "description": "Properties that need to be specified to create a new workbook.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Workbook" + } + } + ], + "responses": { + "200": { + "description": "The newly created workbook.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/WorkbookAdd.json" + } + } + }, + "patch": { + "description": "Updates a workbook that has already been added.", + "operationId": "Workbooks_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "workbookProperties", + "description": "Properties that need to be specified to create a new workbook.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Workbook" + } + } + ], + "responses": { + "200": { + "description": "The workbook definition updated.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookUpdate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/{resourceName}": { + "get": { + "description": "Get a single workbook by its resourceName.", + "operationId": "Workbooks_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A workbook definition.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookGet": { + "$ref": "./examples/WorkbookGet.json" + } + } + } + }, + "/providers/microsoft.insights/workbooks": { + "get": { + "description": "Gets a list of workbooks.", + "operationId": "Workbooks_ListBySourceId", + "parameters": [ + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/TagsParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more workbook definitions.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbooksList": { + "$ref": "./examples/WorkbooksListLink.json" + } + } + }, + "put": { + "description": "Create a new workbook link.", + "operationId": "Workbooks_CreateLink", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "linkProperties", + "description": "Properties that need to be specified to create a workbook link.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LinkProperties" + } + } + ], + "responses": { + "200": { + "description": "The link has been created." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/LinkedWorkbookResponseOnly.json" + } + } + }, + "patch": { + "description": "Updates a workbook that has already been added.", + "operationId": "Workbooks_UpdateLink", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "linkProperties", + "description": "Properties that need to be specified to create a workbook link.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LinkProperties" + } + } + ], + "responses": { + "200": { + "description": "The workbook link updated.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/LinkedWorkbookResponseOnly.json" + } + } + }, + "delete": { + "description": "Delete a workbook.", + "operationId": "Workbooks_DeleteLink", + "parameters": [ + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook link has been successfully deleted." + }, + "204": { + "description": "The resource doens't exisit." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookResponseOnly.json" + } + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "description": "Azure resource name", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "WorkbookListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + }, + "description": "An array of workbooks." + } + }, + "description": "Workbook list result." + }, + "Workbook": { + "description": "An Application Insights workbook definition.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "kind": { + "type": "string", + "description": "The kind of workbook. Choices are user and shared.", + "enum": [ + "user", + "shared" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": false + } + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Metadata describing a web test for an Azure resource.", + "$ref": "#/definitions/WorkbookProperties" + } + } + }, + "LinkProperties": { + "description": "Contains a sourceId and workbook resource id to link two resources.", + "properties": { + "sourceId": { + "type": "string", + "description": "The source Azure resource id" + }, + "targetId": { + "type": "string", + "description": "The workbook Azure resource id" + }, + "category": { + "type": "string", + "description": "The category of workbook" + } + } + }, + "WorkbookProperties": { + "description": "Properties that contain a workbook.", + "required": [ + "name", + "kind", + "category", + "workbookId", + "serializedData", + "userId" + ], + "properties": { + "name": { + "type": "string", + "description": "The user-defined name of the workbook." + }, + "serializedData": { + "type": "string", + "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" + }, + "version": { + "type": "string", + "description": "This instance's version of the data model. This can change as new features are added that can be marked workbook." + }, + "workbookId": { + "type": "string", + "description": "Internally assigned unique id of the workbook definition." + }, + "kind": { + "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", + "x-ms-client-name": "SharedTypeKind", + "default": "shared", + "type": "string", + "enum": [ + "shared", + "user" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": false + } + }, + "timeModified": { + "type": "string", + "description": "Date and time in UTC of the last modification that was made to this workbook definition.", + "readOnly": true + }, + "category": { + "type": "string", + "description": "Workbook category, as defined by the user at creation time." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of 0 or more tags that are associated with this workbook definition" + }, + "userId": { + "type": "string", + "description": "Unique user id of the specific user that owns this workbook." + }, + "sourceResourceId": { + "type": "string", + "description": "Optional resourceId for a source resource." + } + } + }, + "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." + }, + "WorkbookErrorResponse": { + "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": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "WorkbookResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Application Insights component resource.", + "x-ms-parameter-location": "method" + }, + "LocationParameter": { + "name": "location", + "in": "query", + "required": true, + "type": "string", + "description": "The name of location where workbook is stored.", + "x-ms-parameter-location": "method" + }, + "CategoryParameter": { + "name": "category", + "in": "query", + "required": true, + "type": "string", + "enum": [ + "workbook", + "TSG", + "performance", + "retention" + ], + "x-ms-enum": { + "name": "CategoryType", + "modelAsString": true + }, + "description": "Category of workbook to return.", + "x-ms-parameter-location": "method" + }, + "SourceIdParameter": { + "name": "sourceId", + "in": "query", + "required": true, + "type": "string", + "description": "Azure Resource Id that will fetch all linked workbooks.", + "x-ms-parameter-location": "method" + }, + "CanFetchWorkbookContentParameter": { + "name": "canFetchContent", + "in": "query", + "required": false, + "type": "boolean", + "description": "Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks.", + "x-ms-parameter-location": "method" + }, + "TagsParameter": { + "name": "tags", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv", + "description": "Tags presents on each workbook returned.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index c56fa95dcc25..48a626053ec4 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -245,6 +245,7 @@ input-file: - 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/workbooks_API.json ``` ### Tag: package-2017-10 @@ -376,6 +377,7 @@ input-file: - ./Microsoft.Insights/stable/2015-05-01/aiOperations_API.json - ./Microsoft.Insights/stable/2015-05-01/components_API.json - ./Microsoft.Insights/stable/2015-05-01/webTests_API.json + - ./Microsoft.Insights/stable/2015-05-01/workbooks_API.json override-info: title: ApplicationInsightsManagementClient diff --git a/specification/monitor/resource-manager/microsoft.insights/stable/2015-04-01/examples/OperationList.json b/specification/monitor/resource-manager/microsoft.insights/stable/2015-04-01/examples/OperationList.json index ecb517307f53..a9b7694da946 100644 --- a/specification/monitor/resource-manager/microsoft.insights/stable/2015-04-01/examples/OperationList.json +++ b/specification/monitor/resource-manager/microsoft.insights/stable/2015-04-01/examples/OperationList.json @@ -659,13 +659,52 @@ } }, { - "name":"Microsoft.Insights/Webtests/Read", + "name":"Microsoft.Insights/Workbooks/Read", "display":{ "publisher":"Microsoft", - "provider":"Microsoft Monitoring Insights", - "resource":"Web tests", - "operation":"Webtest read", - "description":"Reading a webtest configuration" + "provider":"Microsoft Application Insights", + "resource":"Workbooks", + "operation":"Workbooks read", + "description":"Reading a Workbooks configuration" + }, + "properties":{ + + } + }, + { + "name":"Microsoft.Insights/Workbooks/Write", + "display":{ + "publisher":"Microsoft", + "provider":"Microsoft Application Insights", + "resource":"Workbooks", + "operation":"Workbooks write", + "description":"Writing to a Workbooks configuration" + }, + "properties":{ + + } + }, + { + "name":"Microsoft.Insights/Workbooks/Delete", + "display":{ + "publisher":"Microsoft", + "provider":"Microsoft Application Insights", + "resource":"Workbooks", + "operation":"Workbooks delete", + "description":"Deleting a Workbooks configuration" + }, + "properties":{ + + } + }, + { + "name":"Microsoft.Insights/Workbooks/Read", + "display":{ + "publisher":"Microsoft", + "provider":"Microsoft Application Insights", + "resource":"Workbooks", + "operation":"Workbooks read", + "description":"Reading a Workbooks configuration" }, "properties":{ From aee99140e738b1db27861cc263ff999b6a57c637 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 14:30:45 -0700 Subject: [PATCH 02/24] Rename workbookDelete.json to WorkbookDelete.json --- .../examples/{workbookDelete.json => WorkbookDelete.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/{workbookDelete.json => WorkbookDelete.json} (100%) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/workbookDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDelete.json similarity index 100% rename from specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/workbookDelete.json rename to specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDelete.json From 4ba66aa10ab02dd9018381b7b3e7210174b60dc1 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 14:52:16 -0700 Subject: [PATCH 03/24] Fixed undefiend parameter issue with Delete verb. --- .../2015-05-01/examples/WorkbookDeleteLink.json | 14 ++++++++++++++ .../stable/2015-05-01/workbooks_API.json | 17 +++++++++++------ 2 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json new file mode 100644 index 000000000000..d9b4bc1de5ea --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "resourceId": "Azure resource id", + "category": "workbook", + "location": "west us" + }, + "responses": { + "200": { + }, + "204": { + } + } +} \ No newline at end of file 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 c2987ea71f1d..360fbfec01ea 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 @@ -371,14 +371,11 @@ } }, "delete": { - "description": "Delete a workbook.", + "description": "Delete a link between a source resource and workbook resource.", "operationId": "Workbooks_DeleteLink", "parameters": [ { - "$ref": "#/parameters/WorkbookResourceNameParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" + "$ref": "#/parameters/ResourceIdParameter" }, { "$ref": "#/parameters/CategoryParameter" @@ -403,7 +400,7 @@ }, "x-ms-examples": { "WorkbookList": { - "$ref": "./examples/WorkbookResponseOnly.json" + "$ref": "./examples/WorkbookDeleteLink.json" } } } @@ -671,6 +668,14 @@ "description": "Azure Resource Id that will fetch all linked workbooks.", "x-ms-parameter-location": "method" }, + "ResourceIdParameter": { + "name": "resourceId", + "in": "query", + "required": true, + "type": "string", + "description": "Azure Resource Id or any target workbook resource id.", + "x-ms-parameter-location": "method" + }, "CanFetchWorkbookContentParameter": { "name": "canFetchContent", "in": "query", From 667221564451572a6967ad8f15baf609a46ffe8a Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Fri, 30 Mar 2018 12:22:20 -0700 Subject: [PATCH 04/24] Update swagger to add subscriptionId --- .../examples/LinkedWorkbookResponseOnly.json | 3 +- .../2015-05-01/examples/WorkbookAddLink.json | 2 +- .../examples/WorkbookDeleteLink.json | 1 + .../stable/2015-05-01/workbooks_API.json | 65 +++++++++++++++++-- 4 files changed, 62 insertions(+), 9 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json index 7fe66f3c0846..4df7f492d046 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json @@ -1,5 +1,6 @@ { "parameters": { + "subscriptionId": "subid", "api-version": "2015-05-01", "linkProperties": { "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", @@ -8,6 +9,6 @@ }, "responses": { "200": { - } + } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json index 12d17c0aee18..5b1a848b1072 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json @@ -6,7 +6,7 @@ "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960" }, "responses": { - "200": { + "201": { }, "204": { } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json index d9b4bc1de5ea..92dcebcd3c89 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json @@ -1,5 +1,6 @@ { "parameters": { + "subscriptionId": "subid", "api-version": "2015-05-01", "resourceId": "Azure resource id", "category": "workbook", 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 360fbfec01ea..0a72d85d0cc3 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 @@ -118,7 +118,7 @@ } }, "x-ms-examples": { - "WorkbookList": { + "WorkbookDelete": { "$ref": "./examples/WorkbookDelete.json" } } @@ -210,7 +210,7 @@ } }, "x-ms-examples": { - "WorkbookList": { + "WorkbookUpdate": { "$ref": "./examples/WorkbookUpdate.json" } } @@ -255,11 +255,14 @@ } } }, - "/providers/microsoft.insights/workbooks": { + "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/links": { "get": { "description": "Gets a list of workbooks.", "operationId": "Workbooks_ListBySourceId", "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, { "$ref": "#/parameters/SourceIdParameter" }, @@ -294,7 +297,7 @@ } }, "x-ms-examples": { - "WorkbooksList": { + "WorkbooksListLink": { "$ref": "./examples/WorkbooksListLink.json" } } @@ -303,6 +306,9 @@ "description": "Create a new workbook link.", "operationId": "Workbooks_CreateLink", "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, { "$ref": "#/parameters/ApiVersionParameter" }, @@ -337,6 +343,9 @@ "description": "Updates a workbook that has already been added.", "operationId": "Workbooks_UpdateLink", "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, { "$ref": "#/parameters/ApiVersionParameter" }, @@ -365,7 +374,7 @@ } }, "x-ms-examples": { - "WorkbookAdd": { + "WorkbookUpdateLink": { "$ref": "./examples/LinkedWorkbookResponseOnly.json" } } @@ -374,6 +383,9 @@ "description": "Delete a link between a source resource and workbook resource.", "operationId": "Workbooks_DeleteLink", "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, { "$ref": "#/parameters/ResourceIdParameter" }, @@ -399,12 +411,51 @@ } }, "x-ms-examples": { - "WorkbookList": { + "WorkbookDeleteLink": { "$ref": "./examples/WorkbookDeleteLink.json" } } } - } + }, + "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/{resourceName}/links": { + "get": { + "description": "Gets a workbook link by a workbook resource name.", + "operationId": "Workbooks_ListBySourceId", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A workbook definition.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookGet": { + "$ref": "./examples/WorkbookGet.json" + } + } + } + } }, "definitions": { "Resource": { From 92ff8e941e2653e47b92665f1a30943ac968fe84 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Fri, 30 Mar 2018 12:52:34 -0700 Subject: [PATCH 05/24] Fixed duplicated operation id issue --- .../Microsoft.Insights/stable/2015-05-01/workbooks_API.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0a72d85d0cc3..28e4b6584cf7 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 @@ -258,7 +258,7 @@ "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/links": { "get": { "description": "Gets a list of workbooks.", - "operationId": "Workbooks_ListBySourceId", + "operationId": "Workbooks_List", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" From c245a85973ec62e036c09efc7375f77a5c4cf758 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 3 Apr 2018 13:21:50 -0700 Subject: [PATCH 06/24] Removed links endpoint --- .../2015-05-01/examples/WorkbookAdd.json | 38 +-- .../2015-05-01/examples/WorkbookUpdate.json | 38 +-- .../2015-05-01/examples/WorkbooksList.json | 4 +- .../stable/2015-05-01/workbooks_API.json | 240 ++---------------- 4 files changed, 70 insertions(+), 250 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json index 0e7c71f15345..e39be4602011 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -4,24 +4,28 @@ "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", "subscriptionId": "subid", - "workbookProperties": { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "location": "west us", - "properties": { - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "name": "Blah Blah Blah", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null + "workbookPayload": { + "workbook": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] }, - "tags": [ - "TagSample01", - "TagSample02" - ] + "linkResource": { + } } }, "responses": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json index f135343b34df..bb9cd81cc240 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -4,24 +4,28 @@ "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "workbookProperties": { - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "location": "west us", - "tags": [ - "TagSample01", - "TagSample02" - ], - "properties": { - "name": "Blah Blah Blah", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null + "workbookPayload": { + "workbook": { + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + }, + "linkResource": { } -} + } }, "responses": { "200": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json index e762584335e6..48cd4fda78c8 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json @@ -2,9 +2,9 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", "location": "west us", - "category": "workbook" + "category": "workbook", + "resourceId": "resource id" }, "responses": { "200": { 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 28e4b6584cf7..a62da0b59b55 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,17 +34,14 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks": { + "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks": { "get": { - "description": "Get all Workbooks defined within a specified resource group and category.", + "description": "Get all Workbooks defined within a specified subscriptionId. It will get a list of workbooks or linked workbooks based on $filter clause. If sourceId is specified, it will get a list of linked workbboks. If a targetId is specified, it will get a list of workboks. When a targetId is specified, a resourceName is not required. Even if it is provided, it will be ignored.", "operationId": "Workbooks_ListByResourceGroup", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, { "$ref": "#/parameters/LocationParameter" }, @@ -59,6 +56,9 @@ }, { "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceIdParameter" } ], "responses": { @@ -140,12 +140,12 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "workbookProperties", - "description": "Properties that need to be specified to create a new workbook.", + "name": "workbookPayload", + "description": "Properties that need to be specified to create a new workbook or link.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/Workbook" + "$ref": "#/definitions/WorkbookPayload" } } ], @@ -186,12 +186,12 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "workbookProperties", - "description": "Properties that need to be specified to create a new workbook.", + "name": "workbookPayload", + "description": "Properties that need to be specified to create a new workbook or link.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/Workbook" + "$ref": "#/definitions/WorkbookPayload" } } ], @@ -254,208 +254,7 @@ } } } - }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/links": { - "get": { - "description": "Gets a list of workbooks.", - "operationId": "Workbooks_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" - }, - { - "$ref": "#/parameters/CategoryParameter" - }, - { - "$ref": "#/parameters/TagsParameter" - }, - { - "$ref": "#/parameters/CanFetchWorkbookContentParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "A list containing 0 or more workbook definitions.", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Workbook" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" - } - } - }, - "x-ms-examples": { - "WorkbooksListLink": { - "$ref": "./examples/WorkbooksListLink.json" - } - } - }, - "put": { - "description": "Create a new workbook link.", - "operationId": "Workbooks_CreateLink", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "linkProperties", - "description": "Properties that need to be specified to create a workbook link.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LinkProperties" - } - } - ], - "responses": { - "200": { - "description": "The link has been created." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" - } - } - }, - "x-ms-examples": { - "WorkbookAdd": { - "$ref": "./examples/LinkedWorkbookResponseOnly.json" - } - } - }, - "patch": { - "description": "Updates a workbook that has already been added.", - "operationId": "Workbooks_UpdateLink", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "linkProperties", - "description": "Properties that need to be specified to create a workbook link.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LinkProperties" - } - } - ], - "responses": { - "200": { - "description": "The workbook link updated.", - "schema": { - "$ref": "#/definitions/Workbook" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" - } - } - }, - "x-ms-examples": { - "WorkbookUpdateLink": { - "$ref": "./examples/LinkedWorkbookResponseOnly.json" - } - } - }, - "delete": { - "description": "Delete a link between a source resource and workbook resource.", - "operationId": "Workbooks_DeleteLink", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceIdParameter" - }, - { - "$ref": "#/parameters/CategoryParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The workbook link has been successfully deleted." - }, - "204": { - "description": "The resource doens't exisit." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" - } - } - }, - "x-ms-examples": { - "WorkbookDeleteLink": { - "$ref": "./examples/WorkbookDeleteLink.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/{resourceName}/links": { - "get": { - "description": "Gets a workbook link by a workbook resource name.", - "operationId": "Workbooks_ListBySourceId", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/WorkbookResourceNameParameter" - }, - { - "$ref": "#/parameters/CanFetchWorkbookContentParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "A workbook definition.", - "schema": { - "$ref": "#/definitions/Workbook" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" - } - } - }, - "x-ms-examples": { - "WorkbookGet": { - "$ref": "./examples/WorkbookGet.json" - } - } - } - } + } }, "definitions": { "Resource": { @@ -532,6 +331,19 @@ } } }, + "WorkbookPayload": { + "description": "This wraps either Workbook definition or LinkReource properties.", + "properties": { + "workbook": { + "$ref": "#/definitions/Workbook", + "description": "Workbook properties. If provided, it will be used to create new workbook." + }, + "linkResource": { + "$ref": "#/definitions/LinkProperties", + "description": "LinkProperties. If provided, it will be used to create a link." + } + } + }, "LinkProperties": { "description": "Contains a sourceId and workbook resource id to link two resources.", "properties": { @@ -724,7 +536,7 @@ "in": "query", "required": true, "type": "string", - "description": "Azure Resource Id or any target workbook resource id.", + "description": "Azure Resource id or any target workbook resource id.", "x-ms-parameter-location": "method" }, "CanFetchWorkbookContentParameter": { From bed6bc30d4bc4bd5716fb9f907ac74f224b4b81d Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 3 Apr 2018 13:24:00 -0700 Subject: [PATCH 07/24] Removed unused samples --- .../examples/LinkedWorkbookResponseOnly.json | 14 ----- .../examples/WorkbookDeleteLink.json | 15 ------ .../examples/WorkbookUpdateLink.json | 32 ------------ .../examples/WorkbooksListLink.json | 51 ------------------- 4 files changed, 112 deletions(-) delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json deleted file mode 100644 index 4df7f492d046..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2015-05-01", - "linkProperties": { - "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "targetId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Insights/workbook/91d51e13-9a1b-49be-9ac0-0927c19b1dbf" - } - }, - "responses": { - "200": { - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json deleted file mode 100644 index 92dcebcd3c89..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2015-05-01", - "resourceId": "Azure resource id", - "category": "workbook", - "location": "west us" - }, - "responses": { - "200": { - }, - "204": { - } - } -} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json deleted file mode 100644 index 79a275036eb1..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "workbookProperties": { - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "location": "west us", - "timeModified": null, - "tags": [ - "TagSample01", - "TagSample02" - ], - "properties": { - "name": "Blah Blah Blah", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - } - } - }, - "responses": { - "200": { - } - } -} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json deleted file mode 100644 index b0262789137d..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "category": "workbook", - "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "canFetchWorkbook": true, - "tags": [] - }, - "responses": { - "200": { - "body": [ - { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "tags": [], - "properties": { - "name": "My Workbook 1", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - } - }, - { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "tags": ["SampleTag01", "SampleTag2"], - "properties": { - "name": "My Workbook 2", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - } - } - ] - } - } -} \ No newline at end of file From d3bac2038fc4f6b4d21f12c014d2b1007ec1c3e5 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 3 Apr 2018 14:56:00 -0700 Subject: [PATCH 08/24] Revert "Removed unused samples" This reverts commit bed6bc30d4bc4bd5716fb9f907ac74f224b4b81d. --- .../examples/LinkedWorkbookResponseOnly.json | 14 +++++ .../examples/WorkbookDeleteLink.json | 15 ++++++ .../examples/WorkbookUpdateLink.json | 32 ++++++++++++ .../examples/WorkbooksListLink.json | 51 +++++++++++++++++++ 4 files changed, 112 insertions(+) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json new file mode 100644 index 000000000000..4df7f492d046 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2015-05-01", + "linkProperties": { + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "targetId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Insights/workbook/91d51e13-9a1b-49be-9ac0-0927c19b1dbf" + } + }, + "responses": { + "200": { + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json new file mode 100644 index 000000000000..92dcebcd3c89 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2015-05-01", + "resourceId": "Azure resource id", + "category": "workbook", + "location": "west us" + }, + "responses": { + "200": { + }, + "204": { + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json new file mode 100644 index 000000000000..79a275036eb1 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "workbookProperties": { + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + }, + "responses": { + "200": { + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json new file mode 100644 index 000000000000..b0262789137d --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "category": "workbook", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "canFetchWorkbook": true, + "tags": [] + }, + "responses": { + "200": { + "body": [ + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": [], + "properties": { + "name": "My Workbook 1", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + }, + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": ["SampleTag01", "SampleTag2"], + "properties": { + "name": "My Workbook 2", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + ] + } + } +} \ No newline at end of file From 5259a41517efcef04f500f54564c0a695d69e4af Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 3 Apr 2018 14:56:09 -0700 Subject: [PATCH 09/24] Revert "Removed links endpoint" This reverts commit c245a85973ec62e036c09efc7375f77a5c4cf758. --- .../2015-05-01/examples/WorkbookAdd.json | 38 ++- .../2015-05-01/examples/WorkbookUpdate.json | 38 ++- .../2015-05-01/examples/WorkbooksList.json | 4 +- .../stable/2015-05-01/workbooks_API.json | 240 ++++++++++++++++-- 4 files changed, 250 insertions(+), 70 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json index e39be4602011..0e7c71f15345 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -4,28 +4,24 @@ "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", "subscriptionId": "subid", - "workbookPayload": { - "workbook": { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "location": "west us", - "properties": { - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "name": "Blah Blah Blah", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - }, - "tags": [ - "TagSample01", - "TagSample02" - ] + "workbookProperties": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null }, - "linkResource": { - } + "tags": [ + "TagSample01", + "TagSample02" + ] } }, "responses": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json index bb9cd81cc240..f135343b34df 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -4,28 +4,24 @@ "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "workbookPayload": { - "workbook": { - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "location": "west us", - "properties": { - "name": "Blah Blah Blah", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - }, - "tags": [ - "TagSample01", - "TagSample02" - ] - }, - "linkResource": { + "workbookProperties": { + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "tags": [ + "TagSample01", + "TagSample02" + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null } - } +} }, "responses": { "200": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json index 48cd4fda78c8..e762584335e6 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json @@ -2,9 +2,9 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", "location": "west us", - "category": "workbook", - "resourceId": "resource id" + "category": "workbook" }, "responses": { "200": { 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 a62da0b59b55..28e4b6584cf7 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,14 +34,17 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks": { + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks": { "get": { - "description": "Get all Workbooks defined within a specified subscriptionId. It will get a list of workbooks or linked workbooks based on $filter clause. If sourceId is specified, it will get a list of linked workbboks. If a targetId is specified, it will get a list of workboks. When a targetId is specified, a resourceName is not required. Even if it is provided, it will be ignored.", + "description": "Get all Workbooks defined within a specified resource group and category.", "operationId": "Workbooks_ListByResourceGroup", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, { "$ref": "#/parameters/LocationParameter" }, @@ -56,9 +59,6 @@ }, { "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ResourceIdParameter" } ], "responses": { @@ -140,12 +140,12 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "workbookPayload", - "description": "Properties that need to be specified to create a new workbook or link.", + "name": "workbookProperties", + "description": "Properties that need to be specified to create a new workbook.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WorkbookPayload" + "$ref": "#/definitions/Workbook" } } ], @@ -186,12 +186,12 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "workbookPayload", - "description": "Properties that need to be specified to create a new workbook or link.", + "name": "workbookProperties", + "description": "Properties that need to be specified to create a new workbook.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WorkbookPayload" + "$ref": "#/definitions/Workbook" } } ], @@ -254,7 +254,208 @@ } } } - } + }, + "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/links": { + "get": { + "description": "Gets a list of workbooks.", + "operationId": "Workbooks_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/TagsParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more workbook definitions.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbooksListLink": { + "$ref": "./examples/WorkbooksListLink.json" + } + } + }, + "put": { + "description": "Create a new workbook link.", + "operationId": "Workbooks_CreateLink", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "linkProperties", + "description": "Properties that need to be specified to create a workbook link.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LinkProperties" + } + } + ], + "responses": { + "200": { + "description": "The link has been created." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/LinkedWorkbookResponseOnly.json" + } + } + }, + "patch": { + "description": "Updates a workbook that has already been added.", + "operationId": "Workbooks_UpdateLink", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "linkProperties", + "description": "Properties that need to be specified to create a workbook link.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LinkProperties" + } + } + ], + "responses": { + "200": { + "description": "The workbook link updated.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookUpdateLink": { + "$ref": "./examples/LinkedWorkbookResponseOnly.json" + } + } + }, + "delete": { + "description": "Delete a link between a source resource and workbook resource.", + "operationId": "Workbooks_DeleteLink", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceIdParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook link has been successfully deleted." + }, + "204": { + "description": "The resource doens't exisit." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookDeleteLink": { + "$ref": "./examples/WorkbookDeleteLink.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/{resourceName}/links": { + "get": { + "description": "Gets a workbook link by a workbook resource name.", + "operationId": "Workbooks_ListBySourceId", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A workbook definition.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookGet": { + "$ref": "./examples/WorkbookGet.json" + } + } + } + } }, "definitions": { "Resource": { @@ -331,19 +532,6 @@ } } }, - "WorkbookPayload": { - "description": "This wraps either Workbook definition or LinkReource properties.", - "properties": { - "workbook": { - "$ref": "#/definitions/Workbook", - "description": "Workbook properties. If provided, it will be used to create new workbook." - }, - "linkResource": { - "$ref": "#/definitions/LinkProperties", - "description": "LinkProperties. If provided, it will be used to create a link." - } - } - }, "LinkProperties": { "description": "Contains a sourceId and workbook resource id to link two resources.", "properties": { @@ -536,7 +724,7 @@ "in": "query", "required": true, "type": "string", - "description": "Azure Resource id or any target workbook resource id.", + "description": "Azure Resource Id or any target workbook resource id.", "x-ms-parameter-location": "method" }, "CanFetchWorkbookContentParameter": { From 4227f6c77925c789e94cfa8b5e2545594e21b323 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 4 Apr 2018 17:50:34 -0700 Subject: [PATCH 10/24] Removed link logic and added get by resourceid --- .../examples/LinkedWorkbookResponseOnly.json | 14 -- .../2015-05-01/examples/WorkbookAdd.json | 22 ++ .../2015-05-01/examples/WorkbookAddLink.json | 14 -- .../2015-05-01/examples/WorkbookDelete.json | 2 +- .../examples/WorkbookDeleteLink.json | 15 -- .../examples/WorkbookResponseOnly.json | 16 -- .../examples/WorkbookUpdateLink.json | 32 --- ...Link.json => WorkbooksListBySourceId.json} | 0 .../stable/2015-05-01/workbooks_API.json | 199 +++--------------- 9 files changed, 49 insertions(+), 265 deletions(-) delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json rename specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/{WorkbooksListLink.json => WorkbooksListBySourceId.json} (100%) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json deleted file mode 100644 index 4df7f492d046..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2015-05-01", - "linkProperties": { - "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "targetId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Insights/workbook/91d51e13-9a1b-49be-9ac0-0927c19b1dbf" - } - }, - "responses": { - "200": { - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json index 0e7c71f15345..6a4d5b893386 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -46,6 +46,28 @@ "TagSample02" ] } + }, + "201": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } } } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json deleted file mode 100644 index 5b1a848b1072..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960" - }, - "responses": { - "201": { - }, - "204": { - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDelete.json index 4b7ff91a4b45..55e211e37569 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDelete.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDelete.json @@ -7,7 +7,7 @@ "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" }, "responses": { - "200": { + "201": { }, "204": { } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json deleted file mode 100644 index 92dcebcd3c89..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDeleteLink.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subid", - "api-version": "2015-05-01", - "resourceId": "Azure resource id", - "category": "workbook", - "location": "west us" - }, - "responses": { - "200": { - }, - "204": { - } - } -} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json deleted file mode 100644 index 5abc43074990..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "sourceId": "azure source id", - "category": "workbook", - "location": "us west", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" - }, - "responses": { - "200": { - }, - "204": { - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json deleted file mode 100644 index 79a275036eb1..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "workbookProperties": { - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "location": "west us", - "timeModified": null, - "tags": [ - "TagSample01", - "TagSample02" - ], - "properties": { - "name": "Blah Blah Blah", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - } - } - }, - "responses": { - "200": { - } - } -} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListBySourceId.json similarity index 100% rename from specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json rename to specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListBySourceId.json 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 28e4b6584cf7..3af806c42aad 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 @@ -65,13 +65,13 @@ "200": { "description": "A list containing 0 or more workbook definitions.", "schema": { - "$ref": "#/definitions/WorkbookListResult" + "$ref": "#/definitions/Workbooks" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" + "$ref": "#/definitions/WorkbookError" } } }, @@ -85,7 +85,7 @@ "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { "delete": { "description": "Delete a workbook.", - "operationId": "Workbooks_Delete", + "operationId": "Workbook_Delete", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -104,16 +104,16 @@ } ], "responses": { - "200": { + "201": { "description": "The workbook has been successfully deleted." }, "204": { - "description": "The resource doens't exisit." + "description": "The resource doens't exist." }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" + "$ref": "#/definitions/WorkbookError" } } }, @@ -125,7 +125,7 @@ }, "put": { "description": "Create a new workbook.", - "operationId": "Workbooks_Create", + "operationId": "Workbook_CreateOrUpdate", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -156,10 +156,16 @@ "$ref": "#/definitions/Workbook" } }, + "201": { + "description": "The newly created workbook.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" + "$ref": "#/definitions/WorkbookError" } } }, @@ -171,7 +177,7 @@ }, "patch": { "description": "Updates a workbook that has already been added.", - "operationId": "Workbooks_Update", + "operationId": "Workbook_Update", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -205,7 +211,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" + "$ref": "#/definitions/WorkbookError" } } }, @@ -219,7 +225,7 @@ "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/{resourceName}": { "get": { "description": "Get a single workbook by its resourceName.", - "operationId": "Workbooks_Get", + "operationId": "Workbook_Get", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -244,7 +250,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" + "$ref": "#/definitions/WorkbookError" } } }, @@ -255,10 +261,10 @@ } } }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/links": { + "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks": { "get": { - "description": "Gets a list of workbooks.", - "operationId": "Workbooks_List", + "description": "Gets a list of workbooks by sourceId.", + "operationId": "Workbook_List", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -292,170 +298,17 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" + "$ref": "#/definitions/WorkbookError" } } }, "x-ms-examples": { "WorkbooksListLink": { - "$ref": "./examples/WorkbooksListLink.json" - } - } - }, - "put": { - "description": "Create a new workbook link.", - "operationId": "Workbooks_CreateLink", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "linkProperties", - "description": "Properties that need to be specified to create a workbook link.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LinkProperties" - } - } - ], - "responses": { - "200": { - "description": "The link has been created." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" - } - } - }, - "x-ms-examples": { - "WorkbookAdd": { - "$ref": "./examples/LinkedWorkbookResponseOnly.json" - } - } - }, - "patch": { - "description": "Updates a workbook that has already been added.", - "operationId": "Workbooks_UpdateLink", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "linkProperties", - "description": "Properties that need to be specified to create a workbook link.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LinkProperties" - } - } - ], - "responses": { - "200": { - "description": "The workbook link updated.", - "schema": { - "$ref": "#/definitions/Workbook" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" - } - } - }, - "x-ms-examples": { - "WorkbookUpdateLink": { - "$ref": "./examples/LinkedWorkbookResponseOnly.json" - } - } - }, - "delete": { - "description": "Delete a link between a source resource and workbook resource.", - "operationId": "Workbooks_DeleteLink", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceIdParameter" - }, - { - "$ref": "#/parameters/CategoryParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The workbook link has been successfully deleted." - }, - "204": { - "description": "The resource doens't exisit." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" - } - } - }, - "x-ms-examples": { - "WorkbookDeleteLink": { - "$ref": "./examples/WorkbookDeleteLink.json" + "$ref": "./examples/WorkbooksListBySourceId.json" } } } - }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/{resourceName}/links": { - "get": { - "description": "Gets a workbook link by a workbook resource name.", - "operationId": "Workbooks_ListBySourceId", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/WorkbookResourceNameParameter" - }, - { - "$ref": "#/parameters/CanFetchWorkbookContentParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "A workbook definition.", - "schema": { - "$ref": "#/definitions/Workbook" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookErrorResponse" - } - } - }, - "x-ms-examples": { - "WorkbookGet": { - "$ref": "./examples/WorkbookGet.json" - } - } - } - } + } }, "definitions": { "Resource": { @@ -493,7 +346,7 @@ "x-ms-azure-resource": true, "description": "An azure resource object" }, - "WorkbookListResult": { + "Workbooks": { "properties": { "value": { "type": "array", @@ -633,7 +486,7 @@ }, "description": "Error Field contract." }, - "WorkbookErrorResponse": { + "WorkbookError": { "properties": { "code": { "type": "string", From 328b75c26fc80e1be1fa36a4e5684dc302886c53 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 4 Apr 2018 17:56:03 -0700 Subject: [PATCH 11/24] Applied PR comments --- .../stable/2015-05-01/examples/WorkbookGet.json | 4 ++-- .../stable/2015-05-01/examples/WorkbookUpdate.json | 2 +- .../stable/2015-05-01/examples/WorkbooksList.json | 2 +- .../stable/2015-05-01/examples/WorkbooksListBySourceId.json | 2 +- .../Microsoft.Insights/stable/2015-05-01/workbooks_API.json | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json index ceb4e88622bc..f291a5d5b94b 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2015-05-01", - "subscriptionId": "subid", + "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group", "location": "west us", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" @@ -14,7 +14,7 @@ "type": "", "location": "westus", "properties": { - "name": "Blah Blah Blah", + "name": "My New Workbook", "userId": "userId", "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", "version": "ME", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json index f135343b34df..472a88653122 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2015-05-01", - "subscriptionId": "subid", + "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "workbookProperties": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json index e762584335e6..c1b1214d103c 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2015-05-01", - "subscriptionId": "subid", + "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group", "location": "west us", "category": "workbook" diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListBySourceId.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListBySourceId.json index b0262789137d..2482bbab334f 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListBySourceId.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListBySourceId.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2015-05-01", - "subscriptionId": "subid", + "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group", "category": "workbook", "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", 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 3af806c42aad..4ad3bd1f42cb 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 @@ -375,7 +375,7 @@ ], "x-ms-enum": { "name": "SharedTypeKind", - "modelAsString": false + "modelAsString": true } }, "properties": { @@ -440,7 +440,7 @@ ], "x-ms-enum": { "name": "SharedTypeKind", - "modelAsString": false + "modelAsString": true } }, "timeModified": { From b7421982ebcb992a114798cc036d56c029bde370 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 18 Apr 2018 10:20:00 -0700 Subject: [PATCH 12/24] Added Resource Group parameter for GET. Removed get by sourceId since we are not using sourceId anymore --- .../examples/WorkbooksListBySourceId.json | 51 ------- .../stable/2015-05-01/workbooks_API.json | 127 ++++++------------ 2 files changed, 40 insertions(+), 138 deletions(-) delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListBySourceId.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListBySourceId.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListBySourceId.json deleted file mode 100644 index 2482bbab334f..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListBySourceId.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", - "resourceGroupName": "my-resource-group", - "category": "workbook", - "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "canFetchWorkbook": true, - "tags": [] - }, - "responses": { - "200": { - "body": [ - { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "tags": [], - "properties": { - "name": "My Workbook 1", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - } - }, - { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "tags": ["SampleTag01", "SampleTag2"], - "properties": { - "name": "My Workbook 2", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - } - } - ] - } - } -} \ No newline at end of file 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 4ad3bd1f42cb..1ab651d0e7ff 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 @@ -83,6 +83,46 @@ } }, "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { + "get": { + "description": "Get a single workbook by its resourceName.", + "operationId": "Workbook_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A workbook definition.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbookGet": { + "$ref": "./examples/WorkbookGet.json" + } + } + }, "delete": { "description": "Delete a workbook.", "operationId": "Workbook_Delete", @@ -221,93 +261,6 @@ } } } - }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/{resourceName}": { - "get": { - "description": "Get a single workbook by its resourceName.", - "operationId": "Workbook_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/WorkbookResourceNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "A workbook definition.", - "schema": { - "$ref": "#/definitions/Workbook" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookError" - } - } - }, - "x-ms-examples": { - "WorkbookGet": { - "$ref": "./examples/WorkbookGet.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks": { - "get": { - "description": "Gets a list of workbooks by sourceId.", - "operationId": "Workbook_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" - }, - { - "$ref": "#/parameters/CategoryParameter" - }, - { - "$ref": "#/parameters/TagsParameter" - }, - { - "$ref": "#/parameters/CanFetchWorkbookContentParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "A list containing 0 or more workbook definitions.", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Workbook" - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookError" - } - } - }, - "x-ms-examples": { - "WorkbooksListLink": { - "$ref": "./examples/WorkbooksListBySourceId.json" - } - } - } } }, "definitions": { From 12a39625cc68eb8eb32d3f864fbc025629864998 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 18 Apr 2018 11:02:05 -0700 Subject: [PATCH 13/24] Resolved the merge conflicts with readme.md --- specification/applicationinsights/resource-manager/readme.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index a9ce231acdac..1367e03a92b5 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -254,10 +254,7 @@ input-file: - 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 -<<<<<<< HEAD -======= - microsoft.insights/stable/2015-05-01/analyticsItems_API.json ->>>>>>> upstream/master - Microsoft.Insights/stable/2015-05-01/workbooks_API.json ``` From ebf8df0f1369a164100318bd295fa37d12d6ef7c Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Sat, 21 Apr 2018 12:26:03 -0700 Subject: [PATCH 14/24] Remove a location parameter since ARM routes it as we are using an tracted resource type --- .../2015-05-01/examples/WorkbookDelete.json | 1 - .../stable/2015-05-01/examples/WorkbookGet.json | 1 - .../2015-05-01/examples/WorkbooksList.json | 1 - .../stable/2015-05-01/workbooks_API.json | 17 ----------------- 4 files changed, 20 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDelete.json index 55e211e37569..c9fc249f8b4c 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDelete.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookDelete.json @@ -3,7 +3,6 @@ "api-version": "2015-05-01", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", - "location": "west us", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" }, "responses": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json index f291a5d5b94b..2ca735abb836 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json @@ -3,7 +3,6 @@ "api-version": "2015-05-01", "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group", - "location": "west us", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" }, "responses": { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json index c1b1214d103c..f9ed6a892437 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json @@ -3,7 +3,6 @@ "api-version": "2015-05-01", "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group", - "location": "west us", "category": "workbook" }, "responses": { 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 1ab651d0e7ff..722aa6c9e079 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 @@ -45,9 +45,6 @@ { "$ref": "#/parameters/ResourceGroupNameParameter" }, - { - "$ref": "#/parameters/LocationParameter" - }, { "$ref": "#/parameters/CategoryParameter" }, @@ -96,9 +93,6 @@ { "$ref": "#/parameters/WorkbookResourceNameParameter" }, - { - "$ref": "#/parameters/LocationParameter" - }, { "$ref": "#/parameters/ApiVersionParameter" } @@ -136,9 +130,6 @@ { "$ref": "#/parameters/WorkbookResourceNameParameter" }, - { - "$ref": "#/parameters/LocationParameter" - }, { "$ref": "#/parameters/ApiVersionParameter" } @@ -491,14 +482,6 @@ "description": "The name of the Application Insights component resource.", "x-ms-parameter-location": "method" }, - "LocationParameter": { - "name": "location", - "in": "query", - "required": true, - "type": "string", - "description": "The name of location where workbook is stored.", - "x-ms-parameter-location": "method" - }, "CategoryParameter": { "name": "category", "in": "query", From 75c93ebb20f55dff0b4330dbeee3068979c39f18 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 25 Apr 2018 19:48:05 -0700 Subject: [PATCH 15/24] Created newer version (2018-04-01-preview) for workbook resource type. --- .../2018-04-01/examples/WorkbookAdd.json | 74 +++ .../2018-04-01/examples/WorkbookDelete.json | 14 + .../2018-04-01/examples/WorkbookGet.json | 32 ++ .../2018-04-01/examples/WorkbookUpdate.json | 51 ++ .../2018-04-01/examples/WorkbooksList.json | 49 ++ .../preview/2018-04-01/workbooks_API.json | 541 ++++++++++++++++++ 6 files changed, 761 insertions(+) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookAdd.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookDelete.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookGet.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookUpdate.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbooksList.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/workbooks_API.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookAdd.json new file mode 100644 index 000000000000..10ca702f796b --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookAdd.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "subscriptionId": "subid", + "sourceId": "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1", + "workbookProperties": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "201": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookDelete.json new file mode 100644 index 000000000000..c9fc249f8b4c --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "201": { + }, + "204": { + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookGet.json new file mode 100644 index 000000000000..2ca735abb836 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "type": "", + "location": "westus", + "properties": { + "name": "My New Workbook", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookUpdate.json new file mode 100644 index 000000000000..ab888dbfa22c --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookUpdate.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "sourceId": "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1", + "workbookProperties": { + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "tags": [ + "TagSample01", + "TagSample02" + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } +} + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": [ + "TagSample01", + "TagSample02" + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbooksList.json new file mode 100644 index 000000000000..3260f212a47a --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbooksList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", + "resourceGroupName": "my-resource-group", + "category": "workbook", + "sourceId": "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1" + }, + "responses": { + "200": { + "body": [ + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": [], + "properties": { + "name": "My Workbook 1", + "userId": "userId", + "serializedData": "{\"verion\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + }, + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": ["SampleTag01", "SampleTag2"], + "properties": { + "name": "My Workbook 2", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + ] + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/workbooks_API.json new file mode 100644 index 000000000000..5683bfe1ce4c --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/workbooks_API.json @@ -0,0 +1,541 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationInsightsManagementClient", + "description": "Azure Application Insights workbook type.", + "version": "2015-05-01" + }, + "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/workbooks": { + "get": { + "description": "Get all Workbooks defined within a specified resource group and category.", + "operationId": "Workbooks_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/TagsParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more workbook definitions.", + "schema": { + "$ref": "#/definitions/Workbooks" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbooksList": { + "$ref": "./examples/WorkbooksList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { + "get": { + "description": "Get a single workbook by its resourceName.", + "operationId": "Workbook_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A workbook definition.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbookGet": { + "$ref": "./examples/WorkbookGet.json" + } + } + }, + "delete": { + "description": "Delete a workbook.", + "operationId": "Workbook_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "The workbook has been successfully deleted." + }, + "204": { + "description": "The resource doens't exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbookDelete": { + "$ref": "./examples/WorkbookDelete.json" + } + } + }, + "put": { + "description": "Create a new workbook.", + "operationId": "Workbook_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "workbookProperties", + "description": "Properties that need to be specified to create a new workbook.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Workbook" + } + } + ], + "responses": { + "200": { + "description": "The newly created workbook.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "201": { + "description": "The newly created workbook.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/WorkbookAdd.json" + } + } + }, + "patch": { + "description": "Updates a workbook that has already been added.", + "operationId": "Workbook_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "workbookProperties", + "description": "Properties that need to be specified to create a new workbook.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Workbook" + } + } + ], + "responses": { + "200": { + "description": "The workbook definition updated.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbookUpdate": { + "$ref": "./examples/WorkbookUpdate.json" + } + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "description": "Azure resource name", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "Workbooks": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + }, + "description": "An array of workbooks." + } + }, + "description": "Workbook list result." + }, + "Workbook": { + "description": "An Application Insights workbook definition.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "kind": { + "type": "string", + "description": "The kind of workbook. Choices are user and shared.", + "enum": [ + "user", + "shared" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": true + } + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Metadata describing a web test for an Azure resource.", + "$ref": "#/definitions/WorkbookProperties" + } + } + }, + "LinkProperties": { + "description": "Contains a sourceId and workbook resource id to link two resources.", + "properties": { + "sourceId": { + "type": "string", + "description": "The source Azure resource id" + }, + "targetId": { + "type": "string", + "description": "The workbook Azure resource id" + }, + "category": { + "type": "string", + "description": "The category of workbook" + } + } + }, + "WorkbookProperties": { + "description": "Properties that contain a workbook.", + "required": [ + "name", + "kind", + "category", + "workbookId", + "serializedData", + "userId" + ], + "properties": { + "name": { + "type": "string", + "description": "The user-defined name of the workbook." + }, + "serializedData": { + "type": "string", + "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" + }, + "version": { + "type": "string", + "description": "This instance's version of the data model. This can change as new features are added that can be marked workbook." + }, + "workbookId": { + "type": "string", + "description": "Internally assigned unique id of the workbook definition." + }, + "kind": { + "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", + "x-ms-client-name": "SharedTypeKind", + "default": "shared", + "type": "string", + "enum": [ + "shared", + "user" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": true + } + }, + "timeModified": { + "type": "string", + "description": "Date and time in UTC of the last modification that was made to this workbook definition.", + "readOnly": true + }, + "category": { + "type": "string", + "description": "Workbook category, as defined by the user at creation time." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of 0 or more tags that are associated with this workbook definition" + }, + "userId": { + "type": "string", + "description": "Unique user id of the specific user that owns this workbook." + }, + "sourceResourceId": { + "type": "string", + "description": "Optional resourceId for a source resource." + } + } + }, + "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": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "WorkbookResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Application Insights component resource.", + "x-ms-parameter-location": "method" + }, + "CategoryParameter": { + "name": "category", + "in": "query", + "required": true, + "type": "string", + "enum": [ + "workbook", + "TSG", + "performance", + "retention" + ], + "x-ms-enum": { + "name": "CategoryType", + "modelAsString": true + }, + "description": "Category of workbook to return.", + "x-ms-parameter-location": "method" + }, + "SourceIdParameter": { + "name": "sourceId", + "in": "query", + "required": true, + "type": "string", + "description": "Azure Resource Id that will fetch all related workbooks.", + "x-ms-parameter-location": "method" + }, + "CanFetchWorkbookContentParameter": { + "name": "canFetchContent", + "in": "query", + "required": false, + "type": "boolean", + "description": "Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks.", + "x-ms-parameter-location": "method" + }, + "TagsParameter": { + "name": "tags", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv", + "description": "Tags presents on each workbook returned.", + "x-ms-parameter-location": "method" + } + } +} From 86e578d0e5f6edf3e30f207b1ea355a7b5c5b22d Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 13 Jun 2018 16:10:02 -0700 Subject: [PATCH 16/24] Added Microsoft/Insights/Operations --- .../2018-04-01/examples/WorkbookAdd.json | 74 --- .../2018-04-01/examples/WorkbookDelete.json | 14 - .../2018-04-01/examples/WorkbookGet.json | 32 -- .../2018-04-01/examples/WorkbookUpdate.json | 51 -- .../2018-04-01/examples/WorkbooksList.json | 49 -- .../preview/2018-04-01/workbooks_API.json | 541 ------------------ 6 files changed, 761 deletions(-) delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookAdd.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookDelete.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookGet.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookUpdate.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbooksList.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/workbooks_API.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookAdd.json deleted file mode 100644 index 10ca702f796b..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookAdd.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "subscriptionId": "subid", - "sourceId": "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1", - "workbookProperties": { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "location": "west us", - "properties": { - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "name": "Blah Blah Blah", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - }, - "tags": [ - "TagSample01", - "TagSample02" - ] - } - }, - "responses": { - "200": { - "body": { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "properties": { - "name": "Blah Blah Blah", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - }, - "tags": [ - "TagSample01", - "TagSample02" - ] - } - }, - "201": { - "body": { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "properties": { - "name": "Blah Blah Blah", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - }, - "tags": [ - "TagSample01", - "TagSample02" - ] - } - } - } -} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookDelete.json deleted file mode 100644 index c9fc249f8b4c..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookDelete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" - }, - "responses": { - "201": { - }, - "204": { - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookGet.json deleted file mode 100644 index 2ca735abb836..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookGet.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" - }, - "responses": { - "200": { - "body": { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "type": "", - "location": "westus", - "properties": { - "name": "My New Workbook", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - }, - "tags": [ - "TagSample01", - "TagSample02" - ] - } - } - } -} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookUpdate.json deleted file mode 100644 index ab888dbfa22c..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbookUpdate.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "sourceId": "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1", - "workbookProperties": { - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "location": "west us", - "tags": [ - "TagSample01", - "TagSample02" - ], - "properties": { - "name": "Blah Blah Blah", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - } -} - }, - "responses": { - "200": { - "body": { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "tags": [ - "TagSample01", - "TagSample02" - ], - "properties": { - "name": "Blah Blah Blah", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - } - } - } - } -} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbooksList.json deleted file mode 100644 index 3260f212a47a..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/examples/WorkbooksList.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", - "resourceGroupName": "my-resource-group", - "category": "workbook", - "sourceId": "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1" - }, - "responses": { - "200": { - "body": [ - { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "tags": [], - "properties": { - "name": "My Workbook 1", - "userId": "userId", - "serializedData": "{\"verion\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - } - }, - { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "tags": ["SampleTag01", "SampleTag2"], - "properties": { - "name": "My Workbook 2", - "userId": "userId", - "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null - } - } - ] - } - } -} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/workbooks_API.json deleted file mode 100644 index 5683bfe1ce4c..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-04-01/workbooks_API.json +++ /dev/null @@ -1,541 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "ApplicationInsightsManagementClient", - "description": "Azure Application Insights workbook type.", - "version": "2015-05-01" - }, - "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/workbooks": { - "get": { - "description": "Get all Workbooks defined within a specified resource group and category.", - "operationId": "Workbooks_ListByResourceGroup", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/CategoryParameter" - }, - { - "$ref": "#/parameters/TagsParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" - }, - { - "$ref": "#/parameters/CanFetchWorkbookContentParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "A list containing 0 or more workbook definitions.", - "schema": { - "$ref": "#/definitions/Workbooks" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookError" - } - } - }, - "x-ms-examples": { - "WorkbooksList": { - "$ref": "./examples/WorkbooksList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { - "get": { - "description": "Get a single workbook by its resourceName.", - "operationId": "Workbook_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkbookResourceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "A workbook definition.", - "schema": { - "$ref": "#/definitions/Workbook" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookError" - } - } - }, - "x-ms-examples": { - "WorkbookGet": { - "$ref": "./examples/WorkbookGet.json" - } - } - }, - "delete": { - "description": "Delete a workbook.", - "operationId": "Workbook_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkbookResourceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "201": { - "description": "The workbook has been successfully deleted." - }, - "204": { - "description": "The resource doens't exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookError" - } - } - }, - "x-ms-examples": { - "WorkbookDelete": { - "$ref": "./examples/WorkbookDelete.json" - } - } - }, - "put": { - "description": "Create a new workbook.", - "operationId": "Workbook_CreateOrUpdate", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkbookResourceNameParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "workbookProperties", - "description": "Properties that need to be specified to create a new workbook.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Workbook" - } - } - ], - "responses": { - "200": { - "description": "The newly created workbook.", - "schema": { - "$ref": "#/definitions/Workbook" - } - }, - "201": { - "description": "The newly created workbook.", - "schema": { - "$ref": "#/definitions/Workbook" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookError" - } - } - }, - "x-ms-examples": { - "WorkbookAdd": { - "$ref": "./examples/WorkbookAdd.json" - } - } - }, - "patch": { - "description": "Updates a workbook that has already been added.", - "operationId": "Workbook_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkbookResourceNameParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "workbookProperties", - "description": "Properties that need to be specified to create a new workbook.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Workbook" - } - } - ], - "responses": { - "200": { - "description": "The workbook definition updated.", - "schema": { - "$ref": "#/definitions/Workbook" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/WorkbookError" - } - } - }, - "x-ms-examples": { - "WorkbookUpdate": { - "$ref": "./examples/WorkbookUpdate.json" - } - } - } - } - }, - "definitions": { - "Resource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "description": "Azure resource name", - "readOnly": true - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "x-ms-azure-resource": true, - "description": "An azure resource object" - }, - "Workbooks": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Workbook" - }, - "description": "An array of workbooks." - } - }, - "description": "Workbook list result." - }, - "Workbook": { - "description": "An Application Insights workbook definition.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "kind": { - "type": "string", - "description": "The kind of workbook. Choices are user and shared.", - "enum": [ - "user", - "shared" - ], - "x-ms-enum": { - "name": "SharedTypeKind", - "modelAsString": true - } - }, - "properties": { - "x-ms-client-flatten": true, - "description": "Metadata describing a web test for an Azure resource.", - "$ref": "#/definitions/WorkbookProperties" - } - } - }, - "LinkProperties": { - "description": "Contains a sourceId and workbook resource id to link two resources.", - "properties": { - "sourceId": { - "type": "string", - "description": "The source Azure resource id" - }, - "targetId": { - "type": "string", - "description": "The workbook Azure resource id" - }, - "category": { - "type": "string", - "description": "The category of workbook" - } - } - }, - "WorkbookProperties": { - "description": "Properties that contain a workbook.", - "required": [ - "name", - "kind", - "category", - "workbookId", - "serializedData", - "userId" - ], - "properties": { - "name": { - "type": "string", - "description": "The user-defined name of the workbook." - }, - "serializedData": { - "type": "string", - "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" - }, - "version": { - "type": "string", - "description": "This instance's version of the data model. This can change as new features are added that can be marked workbook." - }, - "workbookId": { - "type": "string", - "description": "Internally assigned unique id of the workbook definition." - }, - "kind": { - "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", - "x-ms-client-name": "SharedTypeKind", - "default": "shared", - "type": "string", - "enum": [ - "shared", - "user" - ], - "x-ms-enum": { - "name": "SharedTypeKind", - "modelAsString": true - } - }, - "timeModified": { - "type": "string", - "description": "Date and time in UTC of the last modification that was made to this workbook definition.", - "readOnly": true - }, - "category": { - "type": "string", - "description": "Workbook category, as defined by the user at creation time." - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of 0 or more tags that are associated with this workbook definition" - }, - "userId": { - "type": "string", - "description": "Unique user id of the specific user that owns this workbook." - }, - "sourceResourceId": { - "type": "string", - "description": "Optional resourceId for a source resource." - } - } - }, - "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": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription ID." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "WorkbookResourceNameParameter": { - "name": "resourceName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Application Insights component resource.", - "x-ms-parameter-location": "method" - }, - "CategoryParameter": { - "name": "category", - "in": "query", - "required": true, - "type": "string", - "enum": [ - "workbook", - "TSG", - "performance", - "retention" - ], - "x-ms-enum": { - "name": "CategoryType", - "modelAsString": true - }, - "description": "Category of workbook to return.", - "x-ms-parameter-location": "method" - }, - "SourceIdParameter": { - "name": "sourceId", - "in": "query", - "required": true, - "type": "string", - "description": "Azure Resource Id that will fetch all related workbooks.", - "x-ms-parameter-location": "method" - }, - "CanFetchWorkbookContentParameter": { - "name": "canFetchContent", - "in": "query", - "required": false, - "type": "boolean", - "description": "Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks.", - "x-ms-parameter-location": "method" - }, - "TagsParameter": { - "name": "tags", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "csv", - "description": "Tags presents on each workbook returned.", - "x-ms-parameter-location": "method" - } - } -} From 1f479eb5145a73c3a86af486cca747aff5b2d348 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 13 Jun 2018 16:10:09 -0700 Subject: [PATCH 17/24] Added Microsoft/Insights/Operations --- .../2018-06-01/examples/WorkbookAdd.json | 74 +++ .../2018-06-01/examples/WorkbookDelete.json | 14 + .../2018-06-01/examples/WorkbookGet.json | 32 ++ .../2018-06-01/examples/WorkbookUpdate.json | 51 ++ .../2018-06-01/examples/WorkbooksList.json | 49 ++ .../2018-06-01/workbookOperations_API.json | 137 +++++ .../preview/2018-06-01/workbooks_API.json | 541 ++++++++++++++++++ 7 files changed, 898 insertions(+) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookAdd.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookDelete.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookGet.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookUpdate.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbooksList.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbookOperations_API.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbooks_API.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookAdd.json new file mode 100644 index 000000000000..ec51a08c3287 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookAdd.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2018-06-01", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "subscriptionId": "subid", + "sourceId": "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1", + "workbookProperties": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "201": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookDelete.json new file mode 100644 index 000000000000..ee1b090666f3 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2018-06-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "201": { + }, + "204": { + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookGet.json new file mode 100644 index 000000000000..6335fec73476 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2018-06-01", + "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "type": "", + "location": "westus", + "properties": { + "name": "My New Workbook", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookUpdate.json new file mode 100644 index 000000000000..c269e66b4542 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookUpdate.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2018-06-01", + "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "sourceId": "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1", + "workbookProperties": { + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "tags": [ + "TagSample01", + "TagSample02" + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } +} + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": [ + "TagSample01", + "TagSample02" + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbooksList.json new file mode 100644 index 000000000000..38bee1e14a69 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbooksList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2018-06-01", + "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", + "resourceGroupName": "my-resource-group", + "category": "workbook", + "sourceId": "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1" + }, + "responses": { + "200": { + "body": [ + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": [], + "properties": { + "name": "My Workbook 1", + "userId": "userId", + "serializedData": "{\"verion\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + }, + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": ["SampleTag01", "SampleTag2"], + "properties": { + "name": "My Workbook 2", + "userId": "userId", + "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + ] + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbookOperations_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbookOperations_API.json new file mode 100644 index 000000000000..602d586bb6a4 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbookOperations_API.json @@ -0,0 +1,137 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-06-01-preview", + "title": "WorkbookClient", + "description": "Azure client for Workbook." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "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": { + "/providers/Microsoft.Insights/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available insights REST API operations.", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Insights error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + } + }, + "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" + } + } + }, + "Operation": { + "description": "CDN REST API operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Cdn", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Profile, endpoint, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list CDN operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of CDN operations supported by the CDN resource provider." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + } + }, + "parameters": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbooks_API.json new file mode 100644 index 000000000000..65cd446e6d31 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbooks_API.json @@ -0,0 +1,541 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationInsightsManagementClient", + "description": "Azure Application Insights workbook type.", + "version": "2018-06-01-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/workbooks": { + "get": { + "description": "Get all Workbooks defined within a specified resource group and category.", + "operationId": "Workbooks_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/TagsParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more workbook definitions.", + "schema": { + "$ref": "#/definitions/Workbooks" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbooksList": { + "$ref": "./examples/WorkbooksList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { + "get": { + "description": "Get a single workbook by its resourceName.", + "operationId": "Workbook_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A workbook definition.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbookGet": { + "$ref": "./examples/WorkbookGet.json" + } + } + }, + "delete": { + "description": "Delete a workbook.", + "operationId": "Workbook_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "The workbook has been successfully deleted." + }, + "204": { + "description": "The resource doens't exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbookDelete": { + "$ref": "./examples/WorkbookDelete.json" + } + } + }, + "put": { + "description": "Create a new workbook.", + "operationId": "Workbook_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "workbookProperties", + "description": "Properties that need to be specified to create a new workbook.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Workbook" + } + } + ], + "responses": { + "200": { + "description": "The newly created workbook.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "201": { + "description": "The newly created workbook.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/WorkbookAdd.json" + } + } + }, + "patch": { + "description": "Updates a workbook that has already been added.", + "operationId": "Workbook_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "workbookProperties", + "description": "Properties that need to be specified to create a new workbook.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Workbook" + } + } + ], + "responses": { + "200": { + "description": "The workbook definition updated.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/WorkbookError" + } + } + }, + "x-ms-examples": { + "WorkbookUpdate": { + "$ref": "./examples/WorkbookUpdate.json" + } + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "description": "Azure resource name", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "Workbooks": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + }, + "description": "An array of workbooks." + } + }, + "description": "Workbook list result." + }, + "Workbook": { + "description": "An Application Insights workbook definition.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "kind": { + "type": "string", + "description": "The kind of workbook. Choices are user and shared.", + "enum": [ + "user", + "shared" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": true + } + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Metadata describing a web test for an Azure resource.", + "$ref": "#/definitions/WorkbookProperties" + } + } + }, + "LinkProperties": { + "description": "Contains a sourceId and workbook resource id to link two resources.", + "properties": { + "sourceId": { + "type": "string", + "description": "The source Azure resource id" + }, + "targetId": { + "type": "string", + "description": "The workbook Azure resource id" + }, + "category": { + "type": "string", + "description": "The category of workbook" + } + } + }, + "WorkbookProperties": { + "description": "Properties that contain a workbook.", + "required": [ + "name", + "kind", + "category", + "workbookId", + "serializedData", + "userId" + ], + "properties": { + "name": { + "type": "string", + "description": "The user-defined name of the workbook." + }, + "serializedData": { + "type": "string", + "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" + }, + "version": { + "type": "string", + "description": "This instance's version of the data model. This can change as new features are added that can be marked workbook." + }, + "workbookId": { + "type": "string", + "description": "Internally assigned unique id of the workbook definition." + }, + "kind": { + "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", + "x-ms-client-name": "SharedTypeKind", + "default": "shared", + "type": "string", + "enum": [ + "shared", + "user" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": true + } + }, + "timeModified": { + "type": "string", + "description": "Date and time in UTC of the last modification that was made to this workbook definition.", + "readOnly": true + }, + "category": { + "type": "string", + "description": "Workbook category, as defined by the user at creation time." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of 0 or more tags that are associated with this workbook definition" + }, + "userId": { + "type": "string", + "description": "Unique user id of the specific user that owns this workbook." + }, + "sourceResourceId": { + "type": "string", + "description": "Optional resourceId for a source resource." + } + } + }, + "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": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "WorkbookResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Application Insights component resource.", + "x-ms-parameter-location": "method" + }, + "CategoryParameter": { + "name": "category", + "in": "query", + "required": true, + "type": "string", + "enum": [ + "workbook", + "TSG", + "performance", + "retention" + ], + "x-ms-enum": { + "name": "CategoryType", + "modelAsString": true + }, + "description": "Category of workbook to return.", + "x-ms-parameter-location": "method" + }, + "SourceIdParameter": { + "name": "sourceId", + "in": "query", + "required": true, + "type": "string", + "description": "Azure Resource Id that will fetch all related workbooks.", + "x-ms-parameter-location": "method" + }, + "CanFetchWorkbookContentParameter": { + "name": "canFetchContent", + "in": "query", + "required": false, + "type": "boolean", + "description": "Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks.", + "x-ms-parameter-location": "method" + }, + "TagsParameter": { + "name": "tags", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv", + "description": "Tags presents on each workbook returned.", + "x-ms-parameter-location": "method" + } + } +} From 2f52c4e9dd9b1e43aa0dff06dfba949c97c281b6 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 13 Jun 2018 16:13:41 -0700 Subject: [PATCH 18/24] Corrected the api version. --- .../preview/2018-06-01/examples/WorkbookAdd.json | 2 +- .../preview/2018-06-01/examples/WorkbookDelete.json | 2 +- .../preview/2018-06-01/examples/WorkbookGet.json | 2 +- .../preview/2018-06-01/examples/WorkbookUpdate.json | 2 +- .../preview/2018-06-01/examples/WorkbooksList.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookAdd.json index ec51a08c3287..d9adb2186123 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookAdd.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-06-01", + "api-version": "2018-06-01-preview", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", "subscriptionId": "subid", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookDelete.json index ee1b090666f3..2376d9a266ed 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookDelete.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-06-01", + "api-version": "2018-06-01-preview", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookGet.json index 6335fec73476..4016f2fb4730 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-06-01", + "api-version": "2018-06-01-preview", "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookUpdate.json index c269e66b4542..1efe0a289027 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-06-01", + "api-version": "2018-06-01-preview", "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbooksList.json index 38bee1e14a69..a5e8fe15fdfc 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbooksList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-06-01", + "api-version": "2018-06-01-preview", "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group", "category": "workbook", From 4dca63c83b7b05a0f7fc92783ca7b34831d676c5 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Mon, 25 Jun 2018 14:35:44 -0700 Subject: [PATCH 19/24] Made properties of PATCH operation as not required. Updated the version number to reflect the actual production one. --- .../examples/WorkbookAdd.json | 2 +- .../examples/WorkbookDelete.json | 2 +- .../examples/WorkbookGet.json | 2 +- .../examples/WorkbookUpdate.json | 2 +- .../examples/WorkbooksList.json | 2 +- .../workbookOperations_API.json | 2 +- .../{2018-06-01 => 2018-06-17-preview}/workbooks_API.json | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-06-01 => 2018-06-17-preview}/examples/WorkbookAdd.json (99%) rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-06-01 => 2018-06-17-preview}/examples/WorkbookDelete.json (85%) rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-06-01 => 2018-06-17-preview}/examples/WorkbookGet.json (97%) rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-06-01 => 2018-06-17-preview}/examples/WorkbookUpdate.json (98%) rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-06-01 => 2018-06-17-preview}/examples/WorkbooksList.json (98%) rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-06-01 => 2018-06-17-preview}/workbookOperations_API.json (98%) rename specification/applicationinsights/resource-manager/Microsoft.Insights/preview/{2018-06-01 => 2018-06-17-preview}/workbooks_API.json (99%) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookAdd.json similarity index 99% rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookAdd.json rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookAdd.json index d9adb2186123..1f14b4e65502 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookAdd.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-06-01-preview", + "api-version": "2018-06-17-preview", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", "subscriptionId": "subid", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookDelete.json similarity index 85% rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookDelete.json rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookDelete.json index 2376d9a266ed..27006a5cd642 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookDelete.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-06-01-preview", + "api-version": "2018-06-17-preview", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookGet.json similarity index 97% rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookGet.json rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookGet.json index 4016f2fb4730..941e4f35f77a 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-06-01-preview", + "api-version": "2018-06-17-preview", "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookUpdate.json similarity index 98% rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookUpdate.json rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookUpdate.json index 1efe0a289027..0097e2f8bcc4 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-06-01-preview", + "api-version": "2018-06-17-preview", "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbooksList.json similarity index 98% rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbooksList.json rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbooksList.json index a5e8fe15fdfc..1b1e14c25b68 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbooksList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-06-01-preview", + "api-version": "2018-06-17-preview", "subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af", "resourceGroupName": "my-resource-group", "category": "workbook", diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbookOperations_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbookOperations_API.json similarity index 98% rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbookOperations_API.json rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbookOperations_API.json index 602d586bb6a4..7e84c44985a1 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbookOperations_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbookOperations_API.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2018-06-01-preview", + "version": "2018-06-17-preview", "title": "WorkbookClient", "description": "Azure client for Workbook." }, diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json similarity index 99% rename from specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbooks_API.json rename to specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json index 65cd446e6d31..db4ef6c2857e 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json @@ -3,7 +3,7 @@ "info": { "title": "ApplicationInsightsManagementClient", "description": "Azure Application Insights workbook type.", - "version": "2018-06-01-preview" + "version": "2018-06-17-preview" }, "host": "management.azure.com", "schemes": [ @@ -235,7 +235,7 @@ "name": "workbookProperties", "description": "Properties that need to be specified to create a new workbook.", "in": "body", - "required": true, + "required": false, "schema": { "$ref": "#/definitions/Workbook" } From f59f9fe9d4d22ffee805a7e8bbd6cf349b12acb6 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Mon, 25 Jun 2018 21:28:13 -0700 Subject: [PATCH 20/24] Updated Resource properties with the correct fields. Created new definition for PATCH operation since location is not required field --- .../examples/WorkbookAdd.json | 36 ++--- .../examples/WorkbookGet.json | 12 +- .../examples/WorkbookUpdate.json | 24 +-- .../examples/WorkbooksList.json | 14 +- .../2018-06-17-preview/workbooks_API.json | 150 ++++++++++-------- 5 files changed, 117 insertions(+), 119 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookAdd.json index 1f14b4e65502..cb2ebaf080cb 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookAdd.json @@ -9,20 +9,16 @@ "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "location": "west us", + "kind": "shared", "properties": { - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "name": "Blah Blah Blah", + "displayName": "Blah Blah Blah", "userId": "userId", "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", "category": "workbook", + "version": "ME", "timeModified": null }, - "tags": [ - "TagSample01", - "TagSample02" - ] + "tags": null } }, "responses": { @@ -30,44 +26,36 @@ "body": { "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "type": "", + "kind": "shared", "location": "westus", "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "properties": { - "name": "Blah Blah Blah", + "displayName": "Blah Blah Blah", "userId": "userId", "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", "category": "workbook", + "version": "ME", "timeModified": null }, - "tags": [ - "TagSample01", - "TagSample02" - ] + "tags": null } }, "201": { "body": { "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "type": "", + "kind": "shared", "location": "westus", "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "properties": { - "name": "Blah Blah Blah", + "displayName": "Blah Blah Blah", "userId": "userId", "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", "category": "workbook", + "version": "ME", "timeModified": null }, - "tags": [ - "TagSample01", - "TagSample02" - ] + "tags": null } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookGet.json index 941e4f35f77a..c137d3e4f721 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookGet.json @@ -11,21 +11,17 @@ "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "type": "", + "kind": "shared", "location": "westus", "properties": { - "name": "My New Workbook", + "displayName": "My New Workbook", "userId": "userId", "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", "category": "workbook", + "version": "ME", "timeModified": null }, - "tags": [ - "TagSample01", - "TagSample02" - ] + "tags": null } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookUpdate.json index 0097e2f8bcc4..92ad9371962f 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbookUpdate.json @@ -7,19 +7,15 @@ "sourceId": "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1", "workbookProperties": { "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", "location": "west us", - "tags": [ - "TagSample01", - "TagSample02" - ], + "tags": null, "properties": { - "name": "Blah Blah Blah", + "displayName": "Blah Blah Blah", "userId": "userId", "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", "category": "workbook", + "version": "ME", "timeModified": null } } @@ -29,20 +25,16 @@ "body": { "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "type": "", + "kind": "shared", "location": "westus", "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "tags": [ - "TagSample01", - "TagSample02" - ], + "tags": null, "properties": { - "name": "Blah Blah Blah", + "displayName": "Blah Blah Blah", "userId": "userId", "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", "category": "workbook", + "version": "ME", "timeModified": null } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbooksList.json index 1b1e14c25b68..496bf3f4e5c2 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/examples/WorkbooksList.json @@ -12,34 +12,32 @@ { "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "type": "", + "kind": "shared", "location": "westus", "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "tags": [], "properties": { - "name": "My Workbook 1", + "displayName": "My Workbook 1", "userId": "userId", "serializedData": "{\"verion\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", "category": "workbook", + "version": "ME", "timeModified": null } }, { "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "type": "", + "kind": "shared", "location": "westus", "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "tags": ["SampleTag01", "SampleTag2"], "properties": { - "name": "My Workbook 2", + "displayName": "My Workbook 2", "userId": "userId", "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", "category": "workbook", + "version": "ME", "timeModified": null } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json index db4ef6c2857e..5b0e18356d82 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json @@ -232,12 +232,12 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "workbookProperties", + "name": "WorkbookUpdateParameters", "description": "Properties that need to be specified to create a new workbook.", "in": "body", "required": false, "schema": { - "$ref": "#/definitions/Workbook" + "$ref": "#/definitions/WorkbookUpdateParameters" } } ], @@ -273,14 +273,26 @@ }, "name": { "type": "string", - "description": "Azure resource name", - "readOnly": true + "readOnly": true, + "description": "Azure resource name. This is GUID value. The display name should be assigned within properties field." }, "type": { "type": "string", "readOnly": true, "description": "Azure resource type" }, + "kind": { + "type": "string", + "description": "The kind of workbook. Choices are user and shared.", + "enum": [ + "user", + "shared" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": true + } + }, "location": { "type": "string", "description": "Resource location", @@ -290,12 +302,16 @@ ] }, "tags": { + "type": "object", "additionalProperties": { "type": "string" }, "description": "Resource tags" } }, + "required": [ + "location" + ], "x-ms-azure-resource": true, "description": "An azure resource object" }, @@ -319,83 +335,30 @@ } ], "properties": { - "kind": { - "type": "string", - "description": "The kind of workbook. Choices are user and shared.", - "enum": [ - "user", - "shared" - ], - "x-ms-enum": { - "name": "SharedTypeKind", - "modelAsString": true - } - }, "properties": { "x-ms-client-flatten": true, - "description": "Metadata describing a web test for an Azure resource.", + "description": "Metadata describing a workbook for an Azure resource.", "$ref": "#/definitions/WorkbookProperties" } } }, - "LinkProperties": { - "description": "Contains a sourceId and workbook resource id to link two resources.", - "properties": { - "sourceId": { - "type": "string", - "description": "The source Azure resource id" - }, - "targetId": { - "type": "string", - "description": "The workbook Azure resource id" - }, - "category": { - "type": "string", - "description": "The category of workbook" - } - } - }, "WorkbookProperties": { "description": "Properties that contain a workbook.", "required": [ - "name", - "kind", + "displayName", "category", - "workbookId", "serializedData", "userId" ], "properties": { - "name": { + "displayName": { "type": "string", - "description": "The user-defined name of the workbook." + "description": "The user-defined name (display name) of the workbook." }, "serializedData": { "type": "string", "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" }, - "version": { - "type": "string", - "description": "This instance's version of the data model. This can change as new features are added that can be marked workbook." - }, - "workbookId": { - "type": "string", - "description": "Internally assigned unique id of the workbook definition." - }, - "kind": { - "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", - "x-ms-client-name": "SharedTypeKind", - "default": "shared", - "type": "string", - "enum": [ - "shared", - "user" - ], - "x-ms-enum": { - "name": "SharedTypeKind", - "modelAsString": true - } - }, "timeModified": { "type": "string", "description": "Date and time in UTC of the last modification that was made to this workbook definition.", @@ -405,6 +368,10 @@ "type": "string", "description": "Workbook category, as defined by the user at creation time." }, + "version": { + "type": "string", + "description": "Workbook version" + }, "tags": { "type": "array", "items": { @@ -415,10 +382,67 @@ "userId": { "type": "string", "description": "Unique user id of the specific user that owns this workbook." + } + } + }, + "WorkbookUpdateParameters": { + "properties": { + "kind": { + "type": "string", + "description": "The kind of workbook. Choices are user and shared.", + "enum": [ + "user", + "shared" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": true + } + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" }, - "sourceResourceId": { + "location": { "type": "string", - "description": "Optional resourceId for a source resource." + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Metadata describing a workbook for an Azure resource.", + "$ref": "#/definitions/WorkbookPropertiesUpdateParameters" + } + }, + "description": "The parameters that can be provided when updating workbook properties properties." + }, + "WorkbookPropertiesUpdateParameters": { + "description": "Properties that contain a workbook for PATCH operation.", + "properties": { + "displayName": { + "type": "string", + "description": "The user-defined name (display name) of the workbook." + }, + "serializedData": { + "type": "string", + "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" + }, + "category": { + "type": "string", + "description": "Workbook category, as defined by the user at creation time." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of 0 or more tags that are associated with this workbook definition" } } }, From eb7483095a753330a67968fa61b04ebeec2b0eb0 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Mon, 25 Jun 2018 22:26:49 -0700 Subject: [PATCH 21/24] Update readme file --- .../resource-manager/readme.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index 1367e03a92b5..4f594ee447d7 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -268,6 +268,14 @@ input-file: - Microsoft.Insights/preview/2017-10-01/componentFeaturesAndPricing_API.json ``` +### Tag: package-2018-06-17-preview + +These settings apply only when `--tag=package-2018-06-17-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2018-06-17-preview' +input-file: +- Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json +``` --- # Code Generation @@ -391,4 +399,13 @@ input-file: override-info: title: ApplicationInsightsManagementClient +``` + +### Tag: schema-2018-06-17-preview + +These settings apply only when `--tag=schema-2018-06-17-preview` is specified on the command line. + +``` yaml $(tag) == 'schema-2018-06-17-preview' +input-file: +- Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json ``` \ No newline at end of file From 3fcc797b4b04ba68ff1afa1fe9e51c84db888ab5 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Mon, 2 Jul 2018 15:47:48 -0700 Subject: [PATCH 22/24] Uses plural for operation group name --- .../2018-06-17-preview/workbooks_API.json | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json index 5b0e18356d82..7f8f07f1b648 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json @@ -65,7 +65,7 @@ "200": { "description": "A list containing 0 or more workbook definitions.", "schema": { - "$ref": "#/definitions/Workbooks" + "$ref": "#/definitions/WorkbooksListResult" } }, "default": { @@ -73,7 +73,10 @@ "schema": { "$ref": "#/definitions/WorkbookError" } - } + } + }, + "x-ms-pageable": { + "nextLinkName": null }, "x-ms-examples": { "WorkbooksList": { @@ -85,7 +88,7 @@ "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { "get": { "description": "Get a single workbook by its resourceName.", - "operationId": "Workbook_Get", + "operationId": "Workbooks_Get", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -122,7 +125,7 @@ }, "delete": { "description": "Delete a workbook.", - "operationId": "Workbook_Delete", + "operationId": "Workbooks_Delete", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -159,7 +162,7 @@ }, "put": { "description": "Create a new workbook.", - "operationId": "Workbook_CreateOrUpdate", + "operationId": "Workbooks_CreateOrUpdate", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -214,7 +217,7 @@ }, "patch": { "description": "Updates a workbook that has already been added.", - "operationId": "Workbook_Update", + "operationId": "Workbooks_Update", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -315,7 +318,7 @@ "x-ms-azure-resource": true, "description": "An azure resource object" }, - "Workbooks": { + "WorkbooksListResult": { "properties": { "value": { "type": "array", From bd29c56a2bded4aea91ca603d5a9dd2cf01a84b1 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Mon, 2 Jul 2018 16:14:54 -0700 Subject: [PATCH 23/24] Removed x-ms-mutability settings --- .../preview/2018-06-17-preview/workbooks_API.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json index 7f8f07f1b648..5edf32009b36 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json @@ -411,11 +411,7 @@ }, "location": { "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] + "description": "Resource location" }, "properties": { "x-ms-client-flatten": true, From 46c31d1746c049e2b4774c2368a80890349e6606 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Mon, 2 Jul 2018 16:19:45 -0700 Subject: [PATCH 24/24] Removed the location settings for PATCH --- .../preview/2018-06-17-preview/workbooks_API.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json index 5edf32009b36..8767c21df81d 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-06-17-preview/workbooks_API.json @@ -409,10 +409,6 @@ }, "description": "Resource tags" }, - "location": { - "type": "string", - "description": "Resource location" - }, "properties": { "x-ms-client-flatten": true, "description": "Metadata describing a workbook for an Azure resource.",