Skip to content

Commit a37b44b

Browse files
jinghzhu-msftdw511214992BigCat20196msyyc
authored andcommitted
Add Swagger spec of MICROSOFT.DASHBOARD for Public Preview (Azure#17667)
* Add Swagger spec of MICROSOFT.DASHBOARD for Public Preview * Add sdk files * Use ErrorResponse from common-types * Update GrafanaResource to follow TrackedResources from common-types * Update specification/dashboard/resource-manager/readme.typescript.md Co-authored-by: Wei Dong <40835867+dw511214992@users.noreply.github.com> * Update specification/dashboard/resource-manager/readme.typescript.md Co-authored-by: Wei Dong <40835867+dw511214992@users.noreply.github.com> * Update specification/dashboard/resource-manager/readme.csharp.md Co-authored-by: Wei Dong <40835867+dw511214992@users.noreply.github.com> * Remove location from PATCH * Refer to OperationList from common types * Fix Swagger ModelValidation error * Remove GrafanaResourcePropertiesUpdateParameters * Update specification/dashboard/resource-manager/readme.md Co-authored-by: Wei Dong <40835867+dw511214992@users.noreply.github.com> * Update readme.python.md * Update specification/dashboard/resource-manager/readme.go.md * Update specification/dashboard/resource-manager/readme.md * Update readme.python.md * Update readme.md * Update specification/dashboard/resource-manager/readme.csharp.md Co-authored-by: Wei Dong <40835867+dw511214992@users.noreply.github.com> Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
1 parent d2100ee commit a37b44b

File tree

14 files changed

+1162
-0
lines changed

14 files changed

+1162
-0
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"workspaceName": "myWorkspace",
7+
"requestBody": {
8+
"sku": {
9+
"name": "Standard"
10+
},
11+
"properties": {
12+
"provisioningState": "Accepted",
13+
"zoneRedundancy": "Enabled"
14+
},
15+
"identity": {
16+
"type": "systemAssigned"
17+
},
18+
"tags": {
19+
"Environment": "Dev"
20+
},
21+
"location": "West US"
22+
}
23+
},
24+
"responses": {
25+
"200": {
26+
"body": {
27+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace",
28+
"name": "myWorkspace",
29+
"type": "Microsoft.Dashboard/grafana",
30+
"sku": {
31+
"name": "Standard"
32+
},
33+
"properties": {
34+
"provisioningState": "Succeeded",
35+
"grafanaVersion": "7.1",
36+
"endpoint": "my.azgrafana.io",
37+
"zoneRedundancy": "Enabled"
38+
},
39+
"identity": {
40+
"type": "SystemAssigned"
41+
},
42+
"tags": {
43+
"Environment": "Dev"
44+
},
45+
"location": "West US",
46+
"systemData": {
47+
"createdBy": "string",
48+
"createdByType": "User",
49+
"createdAt": "2020-02-03T01:01:01.1075056Z",
50+
"lastModifiedBy": "string",
51+
"lastModifiedByType": "User",
52+
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
53+
}
54+
}
55+
},
56+
"201": {
57+
"body": {
58+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace",
59+
"name": "myWorkspace",
60+
"type": "Microsoft.Dashboard/grafana",
61+
"sku": {
62+
"name": "Standard"
63+
},
64+
"properties": {
65+
"provisioningState": "Accepted",
66+
"grafanaVersion": "7.1",
67+
"endpoint": "my.azgrafana.io",
68+
"zoneRedundancy": "Enabled"
69+
},
70+
"tags": {
71+
"Environment": "Dev"
72+
},
73+
"location": "West US",
74+
"systemData": {
75+
"createdBy": "string",
76+
"createdByType": "User",
77+
"createdAt": "2020-02-03T01:01:01.1075056Z",
78+
"lastModifiedBy": "string",
79+
"lastModifiedByType": "User",
80+
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
81+
}
82+
}
83+
}
84+
}
85+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"workspaceName": "myWorkspace"
7+
},
8+
"responses": {
9+
"200": {},
10+
"202": {},
11+
"204": {}
12+
}
13+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"workspaceName": "myWorkspace"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace",
12+
"name": "myWorkspace",
13+
"type": "Microsoft.Dashboard/grafana",
14+
"sku": {
15+
"name": "Standard"
16+
},
17+
"properties": {
18+
"provisioningState": "Succeeded",
19+
"grafanaVersion": "7.1",
20+
"endpoint": "my.azgrafana.io",
21+
"zoneRedundancy": "Enabled"
22+
},
23+
"tags": {
24+
"Environment": "Dev"
25+
},
26+
"location": "West US",
27+
"systemData": {
28+
"createdBy": "string",
29+
"createdByType": "User",
30+
"createdAt": "2020-02-03T01:01:01.1075056Z",
31+
"lastModifiedBy": "string",
32+
"lastModifiedByType": "User",
33+
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z"
34+
}
35+
}
36+
}
37+
}
38+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace",
12+
"name": "myWorkspace",
13+
"type": "Microsoft.Dashboard/grafana",
14+
"sku": {
15+
"name": "Standard"
16+
},
17+
"properties": {
18+
"provisioningState": "Succeeded",
19+
"grafanaVersion": "7.1",
20+
"endpoint": "my.azgrafana.io",
21+
"zoneRedundancy": "Enabled"
22+
},
23+
"tags": {
24+
"Environment": "Dev"
25+
},
26+
"location": "West US"
27+
}
28+
]
29+
}
30+
}
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace",
13+
"name": "myWorkspace",
14+
"type": "Microsoft.Dashboard/grafana",
15+
"sku": {
16+
"name": "Standard"
17+
},
18+
"properties": {
19+
"provisioningState": "Succeeded",
20+
"grafanaVersion": "7.1",
21+
"endpoint": "my.azgrafana.io",
22+
"zoneRedundancy": "Enabled"
23+
},
24+
"tags": {
25+
"Environment": "Dev"
26+
},
27+
"location": "West US"
28+
}
29+
]
30+
}
31+
}
32+
}
33+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"workspaceName": "myWorkspace",
7+
"requestBody": {
8+
"tags": {
9+
"Environment": "Dev 2"
10+
}
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace",
17+
"name": "myWorkspace",
18+
"type": "Microsoft.Dashboard/grafana",
19+
"sku": {
20+
"name": "Standard"
21+
},
22+
"properties": {
23+
"provisioningState": "Succeeded",
24+
"grafanaVersion": "7.1",
25+
"endpoint": "my.azgrafana.io",
26+
"zoneRedundancy": "Enabled"
27+
},
28+
"tags": {
29+
"Environment": "Dev 2"
30+
},
31+
"location": "West US"
32+
}
33+
}
34+
}
35+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-09-01-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.Dashboard/grafana/write",
11+
"display": {
12+
"provider": "Microsoft.Dashboard",
13+
"resource": "grafana",
14+
"operation": "write",
15+
"description": "Write grafana workspace resource"
16+
},
17+
"origin": "user",
18+
"actionType": "Internal"
19+
}
20+
],
21+
"nextLink": null
22+
}
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)