Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
290 changes: 290 additions & 0 deletions schemas/2020-10-31/Microsoft.DigitalTwins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,290 @@
{
"id": "https://schema.management.azure.com/schemas/2020-10-31/Microsoft.DigitalTwins.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.DigitalTwins",
"description": "Microsoft DigitalTwins Resource Types",
"resourceDefinitions": {
"digitalTwinsInstances": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-10-31"
]
},
"location": {
"type": "string",
"description": "The resource location."
},
"name": {
"oneOf": [
{
"type": "string",
"pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?<!-)$",
"minLength": 3,
"maxLength": 63
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The name of the DigitalTwinsInstance."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/DigitalTwinsProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of a DigitalTwinsInstance."
},
"resources": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/digitalTwinsInstances_endpoints_childResource"
}
]
}
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The resource tags."
},
"type": {
"type": "string",
"enum": [
"Microsoft.DigitalTwins/digitalTwinsInstances"
]
}
},
"required": [
"apiVersion",
"location",
"name",
"properties",
"type"
],
"description": "Microsoft.DigitalTwins/digitalTwinsInstances"
},
"digitalTwinsInstances_endpoints": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-10-31"
]
},
"name": {
"oneOf": [
{
"type": "string",
"pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$",
"minLength": 2,
"maxLength": 49
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Name of Endpoint Resource."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/DigitalTwinsEndpointResourceProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties related to Digital Twins Endpoint"
},
"type": {
"type": "string",
"enum": [
"Microsoft.DigitalTwins/digitalTwinsInstances/endpoints"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints"
}
},
"definitions": {
"DigitalTwinsEndpointResourceProperties": {
"type": "object",
"oneOf": [
{
"$ref": "#/definitions/ServiceBus"
},
{
"$ref": "#/definitions/EventHub"
},
{
"$ref": "#/definitions/EventGrid"
}
],
"properties": {
"deadLetterSecret": {
"type": "string",
"description": "Dead letter storage secret. Will be obfuscated during read."
}
},
"description": "Properties related to Digital Twins Endpoint"
},
"digitalTwinsInstances_endpoints_childResource": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-10-31"
]
},
"name": {
"oneOf": [
{
"type": "string",
"pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$",
"minLength": 2,
"maxLength": 49
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Name of Endpoint Resource."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/DigitalTwinsEndpointResourceProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties related to Digital Twins Endpoint"
},
"type": {
"type": "string",
"enum": [
"endpoints"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints"
},
"DigitalTwinsProperties": {
"type": "object",
"properties": {},
"description": "The properties of a DigitalTwinsInstance."
},
"EventGrid": {
"type": "object",
"properties": {
"accessKey1": {
"type": "string",
"description": "EventGrid secondary accesskey. Will be obfuscated during read."
},
"accessKey2": {
"type": "string",
"description": "EventGrid secondary accesskey. Will be obfuscated during read."
},
"endpointType": {
"type": "string",
"enum": [
"EventGrid"
]
},
"TopicEndpoint": {
"type": "string",
"description": "EventGrid Topic Endpoint"
}
},
"required": [
"accessKey1",
"endpointType",
"TopicEndpoint"
],
"description": "Properties related to EventGrid."
},
"EventHub": {
"type": "object",
"properties": {
"connectionStringPrimaryKey": {
"type": "string",
"description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read."
},
"connectionStringSecondaryKey": {
"type": "string",
"description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read."
},
"endpointType": {
"type": "string",
"enum": [
"EventHub"
]
}
},
"required": [
"connectionStringPrimaryKey",
"endpointType"
],
"description": "Properties related to EventHub."
},
"ServiceBus": {
"type": "object",
"properties": {
"endpointType": {
"type": "string",
"enum": [
"ServiceBus"
]
},
"primaryConnectionString": {
"type": "string",
"description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read."
},
"secondaryConnectionString": {
"type": "string",
"description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read."
}
},
"required": [
"endpointType",
"primaryConnectionString"
],
"description": "Properties related to ServiceBus."
}
}
}
6 changes: 6 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -2509,6 +2509,12 @@
{
"$ref": "https://schema.management.azure.com/schemas/2020-03-01-preview/Microsoft.DigitalTwins.json#/resourceDefinitions/digitalTwinsInstances_endpoints"
},
{
"$ref": "https://schema.management.azure.com/schemas/2020-10-31/Microsoft.DigitalTwins.json#/resourceDefinitions/digitalTwinsInstances"
},
{
"$ref": "https://schema.management.azure.com/schemas/2020-10-31/Microsoft.DigitalTwins.json#/resourceDefinitions/digitalTwinsInstances_endpoints"
},
{
"$ref": "https://schema.management.azure.com/schemas/2015-04-01/Microsoft.DocumentDB.json#/resourceDefinitions/databaseAccounts"
},
Expand Down