Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workbooks correctness 2021-08-01 #16249

Merged
merged 30 commits into from
Nov 17, 2021
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
383e194
set default tag to package-2021-03-only
vutran01 Aug 5, 2021
cda75ed
new default tag and add only workbooks to release
vutran01 Aug 5, 2021
d6ee333
update package tag with same RP as last package
vutran01 Aug 12, 2021
2df0d3a
update tag name
vutran01 Aug 12, 2021
3dc8341
Update readme.python.md
msyyc Aug 12, 2021
d2009a7
change definition name
vutran01 Aug 24, 2021
c6a8aa1
Merge branch 'master' of https://github.com/vutran01/azure-rest-api-s…
vutran01 Aug 24, 2021
488f0d6
remove operations
vutran01 Aug 24, 2021
d94f8a3
fix missingtypeobject in workbooks
vutran01 Aug 27, 2021
4775f65
fix up model validation errors
vutran01 Sep 2, 2021
4de0d10
Merge remote-tracking branch 'upstream/master'
vutran01 Sep 20, 2021
b620087
copy from 2021-03-08 to 2021-08-01
vutran01 Sep 30, 2021
b1fe9d2
2021-08-01 changes
vutran01 Sep 30, 2021
3eddac3
fix prettier errors
vutran01 Oct 1, 2021
7e6cf61
use common types where possible
vutran01 Oct 20, 2021
3631c60
fix displayName errors
vutran01 Oct 21, 2021
001531d
use newer myworkbooks and workbooktemplates
vutran01 Oct 21, 2021
6431ac7
restore update params due to location
vutran01 Oct 22, 2021
f6d63a8
Merge remote-tracking branch 'upstream/main' into correctness-2021-08-01
vutran01 Oct 22, 2021
d0a4946
update tags
vutran01 Oct 22, 2021
d69751d
remove the only verison
vutran01 Oct 25, 2021
0c5e8fc
update types to v3
vutran01 Oct 29, 2021
41dbcfe
restore the operation
vutran01 Nov 2, 2021
dc2c09f
remove operation file
vutran01 Nov 4, 2021
f6417d6
restore operation as it's needed for some updates
vutran01 Nov 8, 2021
fab3736
set to types to v1 to be consistent
vutran01 Nov 9, 2021
781010c
update name
vutran01 Nov 9, 2021
4932306
update to later tag
vutran01 Nov 10, 2021
e0b7c1b
use unique definition
vutran01 Nov 10, 2021
965d5a5
don't release operation in this pr
vutran01 Nov 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"parameters": {
"api-version": "2021-08-01",
"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",
TimLovellSmith marked this conversation as resolved.
Show resolved Hide resolved
"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",
"description": "Sample workbook"
},
"tags": {
"TagSample01": "sample01",
"TagSample02": "sample02"
}
}
},
"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,
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb"
},
"tags": {
"TagSample01": "sample01",
"TagSample02": "sample02"
}
}
},
"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,
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb"
},
"tags": {
"TagSample01": "sample01",
"TagSample02": "sample02"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2021-08-01",
"subscriptionId": "subid",
"resourceGroupName": "my-resource-group",
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2021-08-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",
TimLovellSmith marked this conversation as resolved.
Show resolved Hide resolved
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"type": "",
TimLovellSmith marked this conversation as resolved.
Show resolved Hide resolved
"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,
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb"
},
"tags": {
"TagSample01": "sample01",
"TagSample02": "sample02"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"api-version": "2021-08-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",
"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": "sample01",
"TagSample02": "sample02"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"parameters": {
"api-version": "2021-08-01",
"resourceGroupName": "my-resource-group",
"subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af",
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup",
"workbookProperties": {
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/e378d137-1243-4256-b5c4-ad2a937cae79",
"name": "e378d137-1243-4256-b5c4-ad2a937cae79",
"location": "westus",
"tags": {
"hidden-title": "tttt"
},
"kind": "shared",
"etag": "\"4a00f78d-0000-0700-0000-5f8f616c1000\"",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}
}
},
"properties": {
"displayName": "tttt",
"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\"]}",
"version": "Notebook/1.0",
"category": "workbook",
"tags": [],
"description": "Sample workbook",
"storageUri": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer"
}
}
},
"responses": {
"200": {
"body": {
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {
"clientId": "fbe75b66-01c5-4f87-a220-233af3270432",
"principalId": "075a0ca6-43f6-4434-9abf-c9b1b79f9x19"
}
}
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/72377f0c-b7e7-4044-a882-471bcbd9696e",
"name": "e378d137-1243-4256-b5c4-ad2a937cae79",
"type": "Microsoft.Insights/workbooks",
"location": "westus",
"tags": {
"hidden-title": "tttt"
},
"kind": "user",
"etag": "\"4a00f85e-0000-0700-0000-5f8f5dfa0000\"",
"properties": {
"displayName": "tttt",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.OperationalInsights/workspaces/test-ws\"]}",
"version": "Notebook/1.0",
"category": "workbook",
"userId": "70d90f65-8a70-4e42-b8d5-86gv25e0a90f",
"sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup",
"timeModified": "2020-10-20T22:00:26.4229554Z",
"tags": [],
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb",
"storageUri": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer"
}
}
},
"201": {
"body": {
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {
"clientId": "fbe75b66-01c5-4f87-a220-233af3270432",
"principalId": "075a0ca6-43f6-4434-9abf-c9b1b79f9x19"
}
}
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/72377f0c-b7e7-4044-a882-471bcbd9696e",
"name": "e378d137-1243-4256-b5c4-ad2a937cae79",
"type": "Microsoft.Insights/workbooks",
"location": "westus",
"tags": {
"hidden-title": "tttt"
},
"kind": "user",
"etag": "\"4a00f85e-0000-0700-0000-5f8f5dfa0000\"",
"properties": {
"displayName": "tttt",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.OperationalInsights/workspaces/test-ws\"]}",
"version": "Notebook/1.0",
"category": "workbook",
"userId": "70d90f65-8a70-4e42-b8d5-86gv25e0a90f",
"sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup",
"timeModified": "2020-10-20T22:00:26.4229554Z",
"tags": [],
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb",
"storageUri": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"api-version": "2021-08-01",
"subscriptionId": "8980832b-9589-4ac2-b322-a6ae6a97f02b",
"resourceGroupName": "my-resource-group",
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2"
},
"responses": {
"200": {
"body": {
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {
"clientId": "fbe75b66-01c5-4f87-a220-233af3270432",
"principalId": "075a0ca6-43f6-4434-9abf-c9b1b79f9x19"
},
"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {
"clientId": "47429305-c0d3-40bc-8595-6194sdfdf3dc",
"principalId": "bf9ebbc8-b92d-4752-8e66-c999d560326e0"
}
}
},
"id": "/subscriptions/8980832b-9589-4ac2-b322-a6ae6a97f02b/resourcegroups/vutest1/providers/Microsoft.Insights/workbooks/76cb9d13-93c0-4939-ab7d-4a7bd959e1ad",
"name": "76cb9d13-93c0-4939-ab7d-4a7bd959e1ad",
"type": "Microsoft.Insights/workbooks",
"location": "westcentralus",
"tags": {
"hidden-title": "azuremon"
},
"kind": "shared",
"etag": "\"0c003cb4-0000-0600-0000-5f5203c60000\"",
"properties": {
"displayName": "azuremon",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"testing1\"},\"showPin\":false,\"name\":\"text - 0\"}],\"isLocked\":true,\"fallbackResourceIds\":[\"Azure Monitor\"]}",
"version": "Notebook/1.0",
"category": "workbook",
"userId": "51d1409c-d725-4550-ac03-98c0bef9ef07",
"sourceId": "azure monitor",
"timeModified": "2020-09-04T09:07:17.735638Z",
"tags": [],
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb",
"storageUri": "/subscriptions/8980832b-9589-4ac2-b322-a6ae6a97f02b/resourceGroups/VuTest1/providers/Microsoft.Storage/storageAccounts/vutest1/blobServices/default/containers/testcmk2"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"parameters": {
"api-version": "2021-08-01",
"subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af",
"resourceGroupName": "my-resource-group",
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/MyGroup",
"id": "e378d137-1243-4256-b5c4-562a937cae79",
"name": "e378d137-1243-4256-b5c4-562a937cae79",
"location": "westus",
"tags": null,
"type": "Microsoft.Insights/workbooks",
"kind": "shared",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {},
"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {}
}
},
"properties": {
"displayName": "tttt",
"version": "Notebook/1.0",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/8980832b-9589-4ac2-b322-a6ae6a97f02b/resourceGroups/MyGroup\"]}",
"category": "workbook",
"isPersisted": true,
"timeModified": "2020-10-20T22:00:26.4229554Z",
"tags": [],
"description": "Sample workbook",
"storageUri": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer"
}
},
"responses": {
"201": {
"body": {
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {
"clientId": "fbe75b66-01c5-4f87-a220-233af3270432",
"principalId": "075a0ca6-43f6-4434-9abf-c9b1b79f9x19"
},
"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {
"clientId": "47429305-c0d3-40bc-8595-6194sdfdf3dc",
"principalId": "bf9ebbc8-b92d-4752-8e66-c999d560326e0"
}
}
},
"id": "/subscriptions/8980832b-9589-4ac2-b322-a6ae6a97f02b/resourcegroups/MyGroup/providers/Microsoft.Insights/workbooks/e378d137-1243-4256-b5c4-562a937cae79",
"name": "e378d137-1243-4256-b5c4-562a937cae79",
"type": "Microsoft.Insights/workbooks",
"location": "westus",
"tags": {
"hidden-title": "tttt"
},
"kind": "shared",
"etag": "\"4a00f78d-0000-0700-0000-5f8f616c0000\"",
"properties": {
"displayName": "tttt",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/8980832b-9589-4ac2-b322-a6ae6a97f02b/resourceGroups/MyGroup\"]}",
"version": "Notebook/1.0",
"category": "workbook",
"userId": "70d90f65-8a70-4e42-b8d5-863725e0a90f",
"sourceId": "/subscriptions/8980832b-9589-4ac2-b322-a6ae6a97f02b/resourcegroups/MyGroup",
"timeModified": "2020-10-20T22:15:08.1875458Z",
"tags": [],
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb",
"storageUri": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer"
}
}
}
}
}
Loading