Skip to content

Commit

Permalink
Add Swagger spec of MICROSOFT.DASHBOARD for Public Preview (#17667)
Browse files Browse the repository at this point in the history
* 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
4 people authored Feb 17, 2022
1 parent 18a4efa commit b4215a3
Show file tree
Hide file tree
Showing 14 changed files with 1,162 additions and 0 deletions.
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"
}
}
}
}
}
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": {}
}
}
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"
}
}
}
}
}
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"
}
]
}
}
}
}
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"
}
]
}
}
}
}
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"
}
}
}
}
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
}
}
}
}
Loading

0 comments on commit b4215a3

Please sign in to comment.