Skip to content

Commit

Permalink
Added api-version 2020-10-20 to Microsoft.Insights (#11307)
Browse files Browse the repository at this point in the history
* added new folder for swagger api version

* updated api with current request/responses

* updated api version

* updated readme

* fixed typo

* added operation list

* added error to operation list

* removed redundant files

* removed operations operation from workbooks_api

* added api version parameters

* added references to the new examples

* removed delete since it didn't change from the last api version

* added new operations api file for compatibility

* fixing lint errors

* fix lint errors

* fixing model errors

* model errors

* fixing modeling errors

* fixing model errors

* fixing model errors

* fixing model errors

* fix model errors

* fix model errors

* fix model errors

* ran prettier

* lint error added delete example

* lint error added delete example

* added unreferenced json files

* fixed model errors

* fixed model errors

* removed operations from readme

* updated examples

* resolving lint, avocado, prettier issues

* updated workbook operations api

* changed operation path

* removed aiOperatrions from new api version

* udpated workbook operations name

* pascal case path names

* added myworkbooks

* added exclusions

* updated exclusions to be more specific

* added exclusion and updated operations path

* updated operations path

* Revert "updated operations path"

This reverts commit 832f2f0.

* changed operations path case

* Revert "changed operations path case"

This reverts commit da50e81.

* replaced all lowercase microsoft.insights with Pascal Case

* Revert "replaced all lowercase microsoft.insights with Pascal Case"

This reverts commit 6d9a19a.

* replaced all lowercase microsoft.insights with Pascal Case

* added another exclusijon for webtests default responses

* added exclusion for OperationsAPIImplementation

* updated suppression

* using existing Identity Definition

* remove CDN references from Operations API file

* added errorResponse type object in operations api

* update to use existing common type

* ran prettier

* added enum values to identity types in types.json

* removed use of common type for identity

* updated identity schema

* updated identity schema

* updated identity schema

* updated identity schema

* updated identity schema

* ran prettier
  • Loading branch information
tonykslee committed Nov 5, 2020
1 parent ce1df6c commit cae63f7
Show file tree
Hide file tree
Showing 18 changed files with 2,168 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"api-version": "2020-10-20",
"resourceGroupName": "my-resource-group",
"resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"subscriptionId": "00000000-0000-0000-0000-00000000",
"workbookProperties": {
"id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"location": "west us",
"kind": "user",
"properties": {
"sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens",
"displayName": "Blah Blah Blah",
"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}",
"category": "workbook"
},
"tags": [
"TagSample01",
"TagSample02"
]
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/my-resource-group/providers/Microsoft.Insights/myworkbooks/deadb33f-8bee-4d3b-a059-9be8dac93960",
"type": "Microsoft.Insights/myworkbooks",
"location": "westus",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"kind": "user",
"properties": {
"sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens",
"displayName": "Blah Blah Blah",
"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",
"category": "workbook",
"storageUri": null
},
"tags": [
"TagSample01",
"TagSample02"
]
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/my-resource-group/providers/Microsoft.Insights/myworkbooks/deadb33f-8bee-4d3b-a059-9be8dac93960",
"type": "",
"location": "westus",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"kind": "user",
"properties": {
"sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens",
"displayName": "Blah Blah Blah",
"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",
"category": "workbook",
"storageUri": null
},
"tags": [
"TagSample01",
"TagSample02"
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2020-10-20",
"subscriptionId": "subid",
"resourceGroupName": "my-resource-group",
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2"
},
"responses": {
"201": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"api-version": "2020-10-20",
"subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af",
"resourceGroupName": "my-resource-group",
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Insights/myworkbooks/deadb33f-8bee-4d3b-a059-9be8dac93960",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"type": "Microsoft.Insights/myworkbooks",
"location": "westus",
"kind": "user",
"properties": {
"displayName": "My New Workbook",
"sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens",
"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",
"category": "workbook",
"timeModified": null,
"storageUri": null
},
"tags": [
"TagSample01",
"TagSample02"
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"api-version": "2020-10-20",
"subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af",
"resourceGroupName": "my-resource-group",
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"workbookProperties": {
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"location": "west us",
"tags": [
"TagSample01",
"TagSample02"
],
"kind": "user",
"properties": {
"displayName": "Blah Blah Blah",
"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",
"sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens",
"category": "workbook",
"storageUri": null
}
}
},
"responses": {
"200": {
"body": {
"id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"type": "Microsoft.Insights/myworkbooks",
"location": "westus",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"tags": [
"TagSample01",
"TagSample02"
],
"kind": "user",
"properties": {
"displayName": "Blah Blah Blah",
"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",
"sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens",
"category": "workbook",
"storageUri": null
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters": {
"api-version": "2020-10-20",
"subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af",
"resourceGroupName": "my-resource-group",
"category": "workbook"
},
"responses": {
"200": {
"body": [
{
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Insights/myworkbooks/c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"type": "Microsoft.Insights/myworkbooks",
"location": "westus",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"tags": [],
"kind": "user",
"properties": {
"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",
"sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens",
"category": "workbook",
"timeModified": null,
"storageUri": null
}
},
{
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Insights/myworkbooks/c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"type": "Microsoft.Insights/myworkbooks",
"location": "westus",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"kind": "user",
"tags": [
"SampleTag01",
"SampleTag2"
],
"properties": {
"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",
"sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens",
"category": "workbook",
"timeModified": null,
"storageUri": null
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"parameters": {
"api-version": "2020-10-20",
"resourceGroupName": "my-resource-group",
"resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"subscriptionId": "subid",
"sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup",
"workbookProperties": {
"id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"location": "west us",
"name": "Blah Blah Blah",
"kind": "shared",
"properties": {
"displayName": "tttt",
"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}",
"category": "workbook"
},
"tags": [
"TagSample01",
"TagSample02"
]
}
},
"responses": {
"200": {
"body": {
"id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"type": "",
"location": "westus",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"kind": "shared",
"properties": {
"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",
"category": "workbook",
"timeModified": null,
"storageUri": null
},
"tags": [
"TagSample01",
"TagSample02"
]
}
},
"201": {
"body": {
"id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"type": "",
"location": "westus",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"kind": "shared",
"properties": {
"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",
"category": "workbook",
"timeModified": null,
"storageUri": null
},
"tags": [
"TagSample01",
"TagSample02"
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2020-10-20",
"subscriptionId": "subid",
"resourceGroupName": "my-resource-group",
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2"
},
"responses": {
"201": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"api-version": "2020-10-20",
"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",
"kind": "shared",
"properties": {
"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",
"category": "workbook",
"timeModified": null,
"storageUri": null
},
"tags": [
"TagSample01",
"TagSample02"
]
}
}
}
}
Loading

0 comments on commit cae63f7

Please sign in to comment.