Skip to content

Commit c375310

Browse files
authored
Workbooks correctness (#19984)
* Workbooks correctness * add all types and examples
1 parent 59bc7d3 commit c375310

File tree

7 files changed

+160
-7
lines changed

7 files changed

+160
-7
lines changed

specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-08-01/examples/WorkbookManagedUpdate.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,41 @@
2828
}
2929
},
3030
"responses": {
31+
"200": {
32+
"body": {
33+
"identity": {
34+
"type": "UserAssigned",
35+
"userAssignedIdentities": {
36+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myid": {
37+
"clientId": "00000000-0000-0000-0000-000000000000",
38+
"principalId": "00000000-0000-0000-0000-000000000000"
39+
}
40+
}
41+
},
42+
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
43+
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
44+
"type": "Microsoft.Insights/workbooks",
45+
"location": "westus",
46+
"tags": {
47+
"TagSample01": "sample01",
48+
"TagSample02": "sample02",
49+
"hidden-title": "Sample workbook"
50+
},
51+
"kind": "shared",
52+
"properties": {
53+
"displayName": "Sample workbook",
54+
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/8980832b-9589-4ac2-b322-a6ae6a97f02b/resourceGroups/my-resource-group\"]}",
55+
"version": "Notebook/1.0",
56+
"category": "workbook",
57+
"userId": "70d90f65-8a70-4e42-b8d5-863725e0a90f",
58+
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group",
59+
"timeModified": "2020-10-20T22:15:08.1875458Z",
60+
"description": "Sample workbook",
61+
"revision": "1e2f8435b98248febee70c64ac22e1bb",
62+
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/mystorage/blobServices/default/containers/mycontainer"
63+
}
64+
}
65+
},
3166
"201": {
3267
"body": {
3368
"identity": {

specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-08-01/examples/WorkbookUpdate.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,31 @@
2222
}
2323
},
2424
"responses": {
25+
"200": {
26+
"body": {
27+
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
28+
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
29+
"type": "Microsoft.Insights/workbooks",
30+
"location": "westus",
31+
"tags": {
32+
"TagSample01": "sample01",
33+
"TagSample02": "sample02"
34+
},
35+
"kind": "shared",
36+
"properties": {
37+
"displayName": "Sample workbook",
38+
"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}",
39+
"userId": "userId",
40+
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/MyApp",
41+
"version": "Notebook/1.0",
42+
"category": "workbook",
43+
"timeModified": "2020-10-20T22:00:26.4229554Z",
44+
"storageUri": null,
45+
"description": "Sample workbook",
46+
"revision": "1e2f8435b98248febee70c64ac22e1bb"
47+
}
48+
}
49+
},
2550
"201": {
2651
"body": {
2752
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",

specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-08-01/workbooks_API.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,12 @@
308308
}
309309
],
310310
"responses": {
311+
"200": {
312+
"description": "The workbook definition updated.",
313+
"schema": {
314+
"$ref": "#/definitions/Workbook"
315+
}
316+
},
311317
"201": {
312318
"description": "The workbook definition updated.",
313319
"schema": {
@@ -655,9 +661,7 @@
655661
},
656662
"innerError": {
657663
"description": "Internal error details.",
658-
"items": {
659-
"$ref": "#/definitions/WorkbookInnerErrorTrace"
660-
},
664+
"$ref": "#/definitions/WorkbookInnerErrorTrace",
661665
"readOnly": true
662666
}
663667
}

specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/WorkbookManagedUpdate.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,41 @@
2828
}
2929
},
3030
"responses": {
31+
"200": {
32+
"body": {
33+
"identity": {
34+
"type": "UserAssigned",
35+
"userAssignedIdentities": {
36+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myid": {
37+
"clientId": "00000000-0000-0000-0000-000000000000",
38+
"principalId": "00000000-0000-0000-0000-000000000000"
39+
}
40+
}
41+
},
42+
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
43+
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
44+
"type": "Microsoft.Insights/workbooks",
45+
"location": "westus",
46+
"tags": {
47+
"TagSample01": "sample01",
48+
"TagSample02": "sample02",
49+
"hidden-title": "Sample workbook"
50+
},
51+
"kind": "shared",
52+
"properties": {
53+
"displayName": "Sample workbook",
54+
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/8980832b-9589-4ac2-b322-a6ae6a97f02b/resourceGroups/my-resource-group\"]}",
55+
"version": "Notebook/1.0",
56+
"category": "workbook",
57+
"userId": "70d90f65-8a70-4e42-b8d5-863725e0a90f",
58+
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group",
59+
"timeModified": "2020-10-20T22:15:08.1875458Z",
60+
"description": "Sample workbook",
61+
"revision": "1e2f8435b98248febee70c64ac22e1bb",
62+
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/mystorage/blobServices/default/containers/mycontainer"
63+
}
64+
}
65+
},
3166
"201": {
3267
"body": {
3368
"identity": {

specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/WorkbookUpdate.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,31 @@
2222
}
2323
},
2424
"responses": {
25+
"200": {
26+
"body": {
27+
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
28+
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
29+
"type": "Microsoft.Insights/workbooks",
30+
"location": "westus",
31+
"tags": {
32+
"TagSample01": "sample01",
33+
"TagSample02": "sample02"
34+
},
35+
"kind": "shared",
36+
"properties": {
37+
"displayName": "Sample workbook",
38+
"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}",
39+
"userId": "userId",
40+
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/MyApp",
41+
"version": "Notebook/1.0",
42+
"category": "workbook",
43+
"timeModified": "2020-10-20T22:00:26.4229554Z",
44+
"storageUri": null,
45+
"description": "Sample workbook",
46+
"revision": "1e2f8435b98248febee70c64ac22e1bb"
47+
}
48+
}
49+
},
2550
"201": {
2651
"body": {
2752
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",

specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/workbooks_API.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,12 @@
308308
}
309309
],
310310
"responses": {
311+
"200": {
312+
"description": "The workbook definition updated.",
313+
"schema": {
314+
"$ref": "#/definitions/Workbook"
315+
}
316+
},
311317
"201": {
312318
"description": "The workbook definition updated.",
313319
"schema": {
@@ -650,9 +656,7 @@
650656
},
651657
"innerError": {
652658
"description": "Internal error details.",
653-
"items": {
654-
"$ref": "#/definitions/WorkbookInnerErrorTrace"
655-
},
659+
"$ref": "#/definitions/WorkbookInnerErrorTrace",
656660
"readOnly": true
657661
}
658662
}

specification/applicationinsights/resource-manager/readme.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ These are the global settings for the ApplicationInsights API.
4040
title: ApplicationInsightsManagementClient
4141
description: Composite Swagger for Application Insights Management Client
4242
openapi-type: arm
43-
tag: package-2022-06-15
43+
tag: package-2022-07-27-only
4444
```
4545
4646
### Suppression
@@ -249,6 +249,31 @@ directive:
249249
reason: Pre-existing error in another API (i.e. this PR did not introduce this issue).
250250
```
251251
252+
### Tag: package-2022-07-27-only
253+
254+
These settings apply only when `--tag=package-2022-07-27-only` is specified on the command line.
255+
256+
``` yaml $(tag) == 'package-2022-07-27-only'
257+
input-file:
258+
- Microsoft.Insights/stable/2020-02-02/components_API.json
259+
- Microsoft.Insights/stable/2015-05-01/componentAnnotations_API.json
260+
- Microsoft.Insights/stable/2015-05-01/componentApiKeys_API.json
261+
- Microsoft.Insights/stable/2015-05-01/componentContinuousExport_API.json
262+
- Microsoft.Insights/stable/2015-05-01/componentFeaturesAndPricing_API.json
263+
- Microsoft.Insights/stable/2015-05-01/componentProactiveDetection_API.json
264+
- Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json
265+
- Microsoft.Insights/stable/2015-05-01/favorites_API.json
266+
- Microsoft.Insights/stable/2015-05-01/webTestLocations_API.json
267+
- Microsoft.Insights/stable/2022-06-15/webTests_API.json
268+
- Microsoft.Insights/stable/2015-05-01/analyticsItems_API.json
269+
- Microsoft.Insights/stable/2021-03-08/workbookOperations_API.json
270+
- Microsoft.Insights/stable/2020-11-20/workbookTemplates_API.json
271+
- Microsoft.Insights/stable/2021-03-08/myworkbooks_API.json
272+
- Microsoft.Insights/stable/2022-04-01/workbooks_API.json
273+
- Microsoft.Insights/stable/2021-10-14/livetoken_API.json
274+
- Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json
275+
```
276+
252277
### Tag: package-2022-06-15
253278

254279
These settings apply only when `--tag=package-2022-06-15` is specified on the command line.

0 commit comments

Comments
 (0)