Skip to content

Commit

Permalink
[ReleasePR dashboard] Add Swagger spec of MICROSOFT.DASHBOARD for Pub…
Browse files Browse the repository at this point in the history
  • Loading branch information
msftbot[bot] authored Feb 17, 2022
2 parents b3d5d91 + 880dc18 commit 3aaa3dd
Show file tree
Hide file tree
Showing 2 changed files with 245 additions and 0 deletions.
242 changes: 242 additions & 0 deletions schemas/2021-09-01-preview/Microsoft.Dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
{
"id": "https://schema.management.azure.com/schemas/2021-09-01-preview/Microsoft.Dashboard.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Dashboard",
"description": "Microsoft Dashboard Resource Types",
"resourceDefinitions": {
"grafana": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-09-01-preview"
]
},
"identity": {
"oneOf": [
{
"$ref": "#/definitions/ManagedIdentity"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The managed identity of a resource."
},
"location": {
"type": "string",
"description": "The geo-location where the grafana resource lives"
},
"name": {
"type": "string",
"description": "The name of Azure Managed Workspace for Grafana."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/GrafanaResourceProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties specific to the grafana resource."
},
"sku": {
"oneOf": [
{
"$ref": "#/definitions/ResourceSku"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"systemData": {
"oneOf": [
{
"$ref": "#/definitions/SystemData"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The tags for grafana resource."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Dashboard/grafana"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Dashboard/grafana"
}
},
"definitions": {
"GrafanaResourceProperties": {
"type": "object",
"properties": {
"provisioningState": {
"oneOf": [
{
"type": "string",
"enum": [
"Accepted",
"Creating",
"Updating",
"Deleting",
"Succeeded",
"Failed",
"Canceled",
"Deleted",
"NotSpecified"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Provisioning state of the resource."
},
"zoneRedundancy": {
"oneOf": [
{
"type": "string",
"enum": [
"Disabled",
"Enabled"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"description": "Properties specific to the grafana resource."
},
"ManagedIdentity": {
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"None",
"SystemAssigned"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"userAssignedIdentities": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/UserAssignedIdentity"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Dictionary of user assigned identities."
}
},
"description": "The managed identity of a resource."
},
"ResourceSku": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
]
},
"SystemData": {
"type": "object",
"properties": {
"createdAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "string"
},
"createdByType": {
"oneOf": [
{
"type": "string",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"lastModifiedAt": {
"type": "string",
"format": "date-time"
},
"lastModifiedBy": {
"type": "string"
},
"lastModifiedByType": {
"oneOf": [
{
"type": "string",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
}
},
"UserAssignedIdentity": {
"type": "object",
"properties": {}
}
}
}
3 changes: 3 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -4720,6 +4720,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2018-09-01-preview/Microsoft.CustomProviders.json#/resourceDefinitions/resourceProviders"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-09-01-preview/Microsoft.Dashboard.json#/resourceDefinitions/grafana"
},
{
"$ref": "https://schema.management.azure.com/schemas/2018-01-01/Microsoft.DataBox.json#/resourceDefinitions/jobs"
},
Expand Down

0 comments on commit 3aaa3dd

Please sign in to comment.