-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Swagger spec of MICROSOFT.DASHBOARD for Public Preview (#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>
- Loading branch information
1 parent
18a4efa
commit b4215a3
Showing
14 changed files
with
1,162 additions
and
0 deletions.
There are no files selected for viewing
85 changes: 85 additions & 0 deletions
85
...ource-manager/Microsoft.Dashboard/preview/2021-09-01-preview/examples/Grafana_Create.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"workspaceName": "myWorkspace", | ||
"requestBody": { | ||
"sku": { | ||
"name": "Standard" | ||
}, | ||
"properties": { | ||
"provisioningState": "Accepted", | ||
"zoneRedundancy": "Enabled" | ||
}, | ||
"identity": { | ||
"type": "systemAssigned" | ||
}, | ||
"tags": { | ||
"Environment": "Dev" | ||
}, | ||
"location": "West US" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace", | ||
"name": "myWorkspace", | ||
"type": "Microsoft.Dashboard/grafana", | ||
"sku": { | ||
"name": "Standard" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"grafanaVersion": "7.1", | ||
"endpoint": "my.azgrafana.io", | ||
"zoneRedundancy": "Enabled" | ||
}, | ||
"identity": { | ||
"type": "SystemAssigned" | ||
}, | ||
"tags": { | ||
"Environment": "Dev" | ||
}, | ||
"location": "West US", | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-02-03T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace", | ||
"name": "myWorkspace", | ||
"type": "Microsoft.Dashboard/grafana", | ||
"sku": { | ||
"name": "Standard" | ||
}, | ||
"properties": { | ||
"provisioningState": "Accepted", | ||
"grafanaVersion": "7.1", | ||
"endpoint": "my.azgrafana.io", | ||
"zoneRedundancy": "Enabled" | ||
}, | ||
"tags": { | ||
"Environment": "Dev" | ||
}, | ||
"location": "West US", | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-02-03T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ource-manager/Microsoft.Dashboard/preview/2021-09-01-preview/examples/Grafana_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"workspaceName": "myWorkspace" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...resource-manager/Microsoft.Dashboard/preview/2021-09-01-preview/examples/Grafana_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"workspaceName": "myWorkspace" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace", | ||
"name": "myWorkspace", | ||
"type": "Microsoft.Dashboard/grafana", | ||
"sku": { | ||
"name": "Standard" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"grafanaVersion": "7.1", | ||
"endpoint": "my.azgrafana.io", | ||
"zoneRedundancy": "Enabled" | ||
}, | ||
"tags": { | ||
"Environment": "Dev" | ||
}, | ||
"location": "West US", | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-02-03T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...esource-manager/Microsoft.Dashboard/preview/2021-09-01-preview/examples/Grafana_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace", | ||
"name": "myWorkspace", | ||
"type": "Microsoft.Dashboard/grafana", | ||
"sku": { | ||
"name": "Standard" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"grafanaVersion": "7.1", | ||
"endpoint": "my.azgrafana.io", | ||
"zoneRedundancy": "Enabled" | ||
}, | ||
"tags": { | ||
"Environment": "Dev" | ||
}, | ||
"location": "West US" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
.../Microsoft.Dashboard/preview/2021-09-01-preview/examples/Grafana_ListByResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace", | ||
"name": "myWorkspace", | ||
"type": "Microsoft.Dashboard/grafana", | ||
"sku": { | ||
"name": "Standard" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"grafanaVersion": "7.1", | ||
"endpoint": "my.azgrafana.io", | ||
"zoneRedundancy": "Enabled" | ||
}, | ||
"tags": { | ||
"Environment": "Dev" | ||
}, | ||
"location": "West US" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...ource-manager/Microsoft.Dashboard/preview/2021-09-01-preview/examples/Grafana_Update.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"workspaceName": "myWorkspace", | ||
"requestBody": { | ||
"tags": { | ||
"Environment": "Dev 2" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace", | ||
"name": "myWorkspace", | ||
"type": "Microsoft.Dashboard/grafana", | ||
"sku": { | ||
"name": "Standard" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"grafanaVersion": "7.1", | ||
"endpoint": "my.azgrafana.io", | ||
"zoneRedundancy": "Enabled" | ||
}, | ||
"tags": { | ||
"Environment": "Dev 2" | ||
}, | ||
"location": "West US" | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...urce-manager/Microsoft.Dashboard/preview/2021-09-01-preview/examples/Operations_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.Dashboard/grafana/write", | ||
"display": { | ||
"provider": "Microsoft.Dashboard", | ||
"resource": "grafana", | ||
"operation": "write", | ||
"description": "Write grafana workspace resource" | ||
}, | ||
"origin": "user", | ||
"actionType": "Internal" | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.