Skip to content

Commit b7265b6

Browse files
vutran01msyyc
authored andcommitted
add canFetchContext parameter to individual get request (Azure#17708)
* set default tag to package-2021-03-only * new default tag and add only workbooks to release * update package tag with same RP as last package * update tag name * Update readme.python.md * change definition name * remove operations * fix missingtypeobject in workbooks * fix up model validation errors * setup initial repo * add missing canfetchcontent * change kind to only support shared * name needs to be different * fix invalide format examples * enum should not change till a new apiversion * make new param last * change name back to kind * fix up descriptions and examples * fix up examples * ran prettier * update description to remove appinsights * restore back text * restore description * restore Co-authored-by: msyyc <[email protected]>
1 parent ad66de2 commit b7265b6

File tree

15 files changed

+120
-124
lines changed

15 files changed

+120
-124
lines changed

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

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"parameters": {
33
"api-version": "2021-08-01",
4-
"resourceGroupName": "my-resource-group",
5-
"resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960",
64
"subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af",
7-
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/MyGroup",
5+
"resourceGroupName": "my-resource-group",
6+
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
7+
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group",
88
"workbookProperties": {
9-
"location": "west us",
9+
"location": "westus",
1010
"kind": "shared",
1111
"properties": {
12-
"displayName": "tttt",
12+
"displayName": "Sample workbook",
1313
"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}",
1414
"category": "workbook",
1515
"description": "Sample workbook"
@@ -23,17 +23,18 @@
2323
"responses": {
2424
"200": {
2525
"body": {
26-
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/microsoft.insights/workbooks/deadb33f-8bee-4d3b-a059-9be8dac93960",
26+
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/microsoft.insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
2727
"type": "Microsoft.Insights/workbooks",
2828
"location": "westus",
29-
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
29+
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
3030
"kind": "shared",
3131
"properties": {
32-
"displayName": "Blah Blah Blah",
32+
"displayName": "Sample workbook",
3333
"userId": "userId",
3434
"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}",
3535
"version": "Notebook/1.0",
3636
"category": "workbook",
37+
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group",
3738
"timeModified": "2021-08-24T06:56:31.6301521Z",
3839
"storageUri": null,
3940
"description": "Sample workbook",
@@ -47,17 +48,18 @@
4748
},
4849
"201": {
4950
"body": {
50-
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/microsoft.insights/workbooks/deadb33f-8bee-4d3b-a059-9be8dac93960",
51+
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/microsoft.insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
5152
"type": "Microsoft.Insights/workbooks",
5253
"location": "westus",
53-
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
54+
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
5455
"kind": "shared",
5556
"properties": {
56-
"displayName": "Blah Blah Blah",
57+
"displayName": "Sample workbook",
5758
"userId": "userId",
5859
"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}",
5960
"version": "Notebook/1.0",
6061
"category": "workbook",
62+
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group",
6163
"timeModified": "2021-08-24T06:56:31.6301521Z",
6264
"storageUri": null,
6365
"description": "Sample workbook",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"parameters": {
33
"api-version": "2021-08-01",
4-
"subscriptionId": "subid",
4+
"subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af",
55
"resourceGroupName": "my-resource-group",
66
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2"
77
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"200": {
1010
"body": {
1111
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/microsoft.insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
12-
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
12+
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
1313
"type": "Microsoft.Insights/workbooks",
1414
"location": "westus",
1515
"kind": "shared",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"200": {
1010
"body": {
1111
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/microsoft.insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
12-
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
12+
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
1313
"type": "Microsoft.Insights/workbooks",
1414
"location": "westus",
1515
"kind": "shared",

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

Lines changed: 20 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,23 @@
44
"resourceGroupName": "my-resource-group",
55
"subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af",
66
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
7-
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/MyGroup",
7+
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group",
88
"workbookProperties": {
99
"location": "westus",
10-
"tags": {
11-
"hidden-title": "tttt"
12-
},
1310
"kind": "shared",
14-
"etag": "\"4a00f78d-0000-0700-0000-5f8f616c1000\"",
1511
"identity": {
1612
"type": "UserAssigned",
1713
"userAssignedIdentities": {
18-
"/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}
14+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myid": {}
1915
}
2016
},
2117
"properties": {
22-
"displayName": "tttt",
23-
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup\"]}",
18+
"displayName": "Sample workbook",
19+
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/my-resource-group\"]}",
2420
"version": "Notebook/1.0",
2521
"category": "workbook",
26-
"tags": [],
2722
"description": "Sample workbook",
28-
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer"
23+
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/mystorage/blobServices/default/containers/mycontainer"
2924
}
3025
}
3126
},
@@ -35,33 +30,28 @@
3530
"identity": {
3631
"type": "UserAssigned",
3732
"userAssignedIdentities": {
38-
"/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {
39-
"clientId": "fbe75b66-01c5-4f87-a220-233af3270432",
40-
"principalId": "075a0ca6-43f6-4434-9abf-c9b1b79f9x19"
33+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myid": {
34+
"clientId": "00000000-0000-0000-0000-000000000000",
35+
"principalId": "00000000-0000-0000-0000-000000000000"
4136
}
4237
}
4338
},
4439
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
4540
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
4641
"type": "Microsoft.Insights/workbooks",
4742
"location": "westus",
48-
"tags": {
49-
"hidden-title": "tttt"
50-
},
5143
"kind": "shared",
52-
"etag": "\"4a00f85e-0000-0700-0000-5f8f5dfa0000\"",
5344
"properties": {
54-
"displayName": "tttt",
55-
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.OperationalInsights/workspaces/test-ws\"]}",
45+
"displayName": "Sample workbook",
46+
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/my-resource-group/providers/Microsoft.OperationalInsights/workspaces/test-ws\"]}",
5647
"version": "Notebook/1.0",
5748
"category": "workbook",
5849
"userId": "70d90f65-8a70-4e42-b8d5-86gv25e0a90f",
59-
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/MyGroup",
50+
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group",
6051
"timeModified": "2020-10-20T22:00:26.4229554Z",
61-
"tags": [],
6252
"description": "Sample workbook",
6353
"revision": "1e2f8435b98248febee70c64ac22e1bb",
64-
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer"
54+
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/mystorage/blobServices/default/containers/mycontainer"
6555
}
6656
}
6757
},
@@ -70,33 +60,28 @@
7060
"identity": {
7161
"type": "UserAssigned",
7262
"userAssignedIdentities": {
73-
"/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {
74-
"clientId": "fbe75b66-01c5-4f87-a220-233af3270432",
75-
"principalId": "075a0ca6-43f6-4434-9abf-c9b1b79f9x19"
63+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myid": {
64+
"clientId": "00000000-0000-0000-0000-000000000000",
65+
"principalId": "00000000-0000-0000-0000-000000000000"
7666
}
7767
}
7868
},
7969
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
8070
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
8171
"type": "Microsoft.Insights/workbooks",
8272
"location": "westus",
83-
"tags": {
84-
"hidden-title": "tttt"
85-
},
86-
"kind": "user",
87-
"etag": "\"4a00f85e-0000-0700-0000-5f8f5dfa0000\"",
73+
"kind": "shared",
8874
"properties": {
89-
"displayName": "tttt",
90-
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.OperationalInsights/workspaces/test-ws\"]}",
75+
"displayName": "Sample workbook",
76+
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/my-resource-group/providers/Microsoft.OperationalInsights/workspaces/test-ws\"]}",
9177
"version": "Notebook/1.0",
9278
"category": "workbook",
9379
"userId": "70d90f65-8a70-4e42-b8d5-86gv25e0a90f",
94-
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/MyGroup",
80+
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group",
9581
"timeModified": "2020-10-20T22:00:26.4229554Z",
96-
"tags": [],
9782
"description": "Sample workbook",
9883
"revision": "1e2f8435b98248febee70c64ac22e1bb",
99-
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer"
84+
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/mystorage/blobServices/default/containers/mycontainer"
10085
}
10186
}
10287
}

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

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,17 @@
1111
"identity": {
1212
"type": "UserAssigned",
1313
"userAssignedIdentities": {
14-
"/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {
15-
"clientId": "fbe75b66-01c5-4f87-a220-233af3270432",
16-
"principalId": "075a0ca6-43f6-4434-9abf-c9b1b79f9x19"
17-
},
18-
"/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {
19-
"clientId": "47429305-c0d3-40bc-8595-6194sdfdf3dc",
20-
"principalId": "bf9ebbc8-b92d-4752-8e66-c999d560326e0"
14+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myid": {
15+
"clientId": "00000000-0000-0000-0000-000000000000",
16+
"principalId": "00000000-0000-0000-0000-000000000000"
2117
}
2218
}
2319
},
2420
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
2521
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
2622
"type": "Microsoft.Insights/workbooks",
27-
"location": "westcentralus",
28-
"tags": {
29-
"hidden-title": "azuremon"
30-
},
23+
"location": "westus",
3124
"kind": "shared",
32-
"etag": "\"0c003cb4-0000-0600-0000-5f5203c60000\"",
3325
"properties": {
3426
"displayName": "azuremon",
3527
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"testing1\"},\"showPin\":false,\"name\":\"text - 0\"}],\"isLocked\":true,\"fallbackResourceIds\":[\"Azure Monitor\"]}",
@@ -38,10 +30,9 @@
3830
"userId": "51d1409c-d725-4550-ac03-98c0bef9ef07",
3931
"sourceId": "azure monitor",
4032
"timeModified": "2020-09-04T09:07:17.735638Z",
41-
"tags": [],
4233
"description": "Sample workbook",
4334
"revision": "1e2f8435b98248febee70c64ac22e1bb",
44-
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer"
35+
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/mystorage/blobServices/default/containers/mycontainer"
4536
}
4637
}
4738
}

0 commit comments

Comments
 (0)