Skip to content

Commit ff5a5ea

Browse files
[Hub Generated] Review request for Microsoft.Portal to add version preview/2020-09-01-preview (Azure#10706)
* Adds base for updating Microsoft.Portal from version preview/2019-01-01-preview to version 2020-09-01-preview * Updates readme * Updates API version in new specs and examples * Microsoft.Portal dashboards 2020-09-01-preview RP version * Adding tenant api * Fixing readme * prettier error fix * fixing path * fixing api version Co-authored-by: Himanshu Chandel <hich@microsoft.com>
1 parent af2f59b commit ff5a5ea

14 files changed

+1668
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"configurationName": "default",
4+
"api-version": "2019-01-01-preview",
5+
"tenantConfiguration": {
6+
"properties": {
7+
"enforcePrivateMarkdownStorage": true
8+
}
9+
}
10+
},
11+
"responses": {
12+
"201": {
13+
"body": {
14+
"id": "/providers/Microsoft.Portal/tenantConfigurations/default",
15+
"name": "default",
16+
"type": "Microsoft.Portal/tenantConfiguration",
17+
"properties": {
18+
"enforcePrivateMarkdownStorage": true
19+
}
20+
}
21+
},
22+
"200": {
23+
"body": {
24+
"id": "/providers/Microsoft.Portal/tenantConfigurations/default",
25+
"name": "default",
26+
"type": "Microsoft.Portal/tenantConfiguration",
27+
"properties": {
28+
"enforcePrivateMarkdownStorage": true
29+
}
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"configurationName": "default",
4+
"api-version": "2019-01-01-preview"
5+
},
6+
"responses": {
7+
"200": {},
8+
"204": {}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"api-version": "2019-01-01-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"id": "/providers/Microsoft.Portal/tenantConfigurations",
11+
"name": "default",
12+
"type": "Microsoft.Portal/tenantConfiguration",
13+
"properties": {
14+
"enforcePrivateMarkdownStorage": true
15+
}
16+
}
17+
]
18+
}
19+
}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"configurationName": "default",
4+
"api-version": "2019-01-01-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "/providers/Microsoft.Portal/tenantConfigurations/default",
10+
"name": "default",
11+
"type": "Microsoft.Portal/tenantConfiguration",
12+
"properties": {
13+
"enforcePrivateMarkdownStorage": true
14+
}
15+
}
16+
}
17+
}
18+
}
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
{
2+
"parameters": {
3+
"dashboardName": "testDashboard",
4+
"resourceGroupName": "testRG",
5+
"api-version": "2020-09-01-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
7+
"dashboard": {
8+
"properties": {
9+
"lenses": [
10+
{
11+
"order": 1,
12+
"parts": [
13+
{
14+
"position": {
15+
"x": 1,
16+
"y": 2,
17+
"rowSpan": 4,
18+
"colSpan": 3
19+
}
20+
},
21+
{
22+
"position": {
23+
"x": 5,
24+
"y": 5,
25+
"rowSpan": 6,
26+
"colSpan": 6
27+
}
28+
}
29+
]
30+
},
31+
{
32+
"order": 2,
33+
"parts": []
34+
}
35+
],
36+
"metadata": {
37+
"metadata": {
38+
"X": 4,
39+
"Y": 3,
40+
"RowSpan": 1,
41+
"ColSpan": 2
42+
}
43+
}
44+
},
45+
"location": "eastus",
46+
"tags": {
47+
"aKey": "aValue",
48+
"anotherKey": "anotherValue"
49+
}
50+
}
51+
},
52+
"responses": {
53+
"201": {
54+
"body": {
55+
"properties": {
56+
"lenses": [
57+
{
58+
"order": 1,
59+
"parts": [
60+
{
61+
"position": {
62+
"x": 1,
63+
"y": 2,
64+
"rowSpan": 4,
65+
"colSpan": 3
66+
}
67+
},
68+
{
69+
"position": {
70+
"x": 5,
71+
"y": 5,
72+
"rowSpan": 6,
73+
"colSpan": 6
74+
}
75+
}
76+
]
77+
},
78+
{
79+
"order": 2,
80+
"parts": []
81+
}
82+
],
83+
"metadata": {
84+
"metadata": {
85+
"X": 4,
86+
"Y": 3,
87+
"RowSpan": 1,
88+
"ColSpan": 2
89+
}
90+
}
91+
},
92+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard",
93+
"name": "testDashboard",
94+
"type": "Microsoft.Portal/dashboards",
95+
"location": "eastus",
96+
"tags": {
97+
"aKey": "aValue",
98+
"anotherKey": "anotherValue"
99+
}
100+
}
101+
},
102+
"200": {
103+
"body": {
104+
"properties": {
105+
"lenses": [
106+
{
107+
"order": 1,
108+
"parts": [
109+
{
110+
"position": {
111+
"x": 1,
112+
"y": 2,
113+
"rowSpan": 4,
114+
"colSpan": 3
115+
}
116+
},
117+
{
118+
"position": {
119+
"x": 5,
120+
"y": 5,
121+
"rowSpan": 6,
122+
"colSpan": 6
123+
}
124+
}
125+
]
126+
},
127+
{
128+
"order": 2,
129+
"parts": []
130+
}
131+
],
132+
"metadata": {
133+
"metadata": {
134+
"X": 4,
135+
"Y": 3,
136+
"RowSpan": 1,
137+
"ColSpan": 2
138+
}
139+
}
140+
},
141+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard",
142+
"name": "testDashboard",
143+
"type": "Microsoft.Portal/dashboards",
144+
"location": "eastus",
145+
"tags": {
146+
"aKey": "aValue",
147+
"anotherKey": "anotherValue"
148+
}
149+
}
150+
}
151+
}
152+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"dashboardName": "testDashboard",
4+
"resourceGroupName": "testRG",
5+
"api-version": "2020-09-01-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"parameters": {
3+
"dashboardName": "testDashboard",
4+
"resourceGroupName": "testRG",
5+
"api-version": "2020-09-01-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"properties": {
12+
"lenses": [
13+
{
14+
"order": 1,
15+
"parts": [
16+
{
17+
"position": {
18+
"x": 1,
19+
"y": 2,
20+
"rowSpan": 4,
21+
"colSpan": 3
22+
}
23+
},
24+
{
25+
"position": {
26+
"x": 5,
27+
"y": 5,
28+
"rowSpan": 6,
29+
"colSpan": 6
30+
}
31+
}
32+
]
33+
},
34+
{
35+
"order": 2,
36+
"parts": []
37+
}
38+
],
39+
"metadata": {
40+
"metadata": {
41+
"X": 4,
42+
"Y": 3,
43+
"RowSpan": 1,
44+
"ColSpan": 2
45+
}
46+
}
47+
},
48+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard",
49+
"name": "testDashboard",
50+
"type": "Microsoft.Portal/dashboards",
51+
"location": "eastus",
52+
"tags": {
53+
"aKey": "aValue",
54+
"anotherKey": "anotherValue"
55+
}
56+
}
57+
}
58+
}
59+
}

0 commit comments

Comments
 (0)