Skip to content
Closed
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
48 changes: 28 additions & 20 deletions schemas/2020-03-01-preview/Microsoft.DigitalTwins.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,23 @@
"description": "The resource location."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"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": "#/definitions/DigitalTwinsPropertiesModel"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
Expand Down Expand Up @@ -99,9 +107,9 @@
"oneOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9-._]{1,64}$",
"minLength": 1,
"maxLength": 64
"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"
Expand All @@ -112,7 +120,7 @@
"properties": {
"oneOf": [
{
"$ref": "#/definitions/DigitalTwinsEndpointResourceProperties"
"$ref": "#/definitions/DigitalTwinsEndpointResourcePropertiesModel"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
Expand All @@ -137,17 +145,17 @@
}
},
"definitions": {
"DigitalTwinsEndpointResourceProperties": {
"DigitalTwinsEndpointResourcePropertiesModel": {
"type": "object",
"oneOf": [
{
"$ref": "#/definitions/ServiceBus"
"$ref": "#/definitions/ServiceBusModel"
},
{
"$ref": "#/definitions/EventHub"
"$ref": "#/definitions/EventHubModel"
},
{
"$ref": "#/definitions/EventGrid"
"$ref": "#/definitions/EventGridModel"
}
],
"properties": {
Expand Down Expand Up @@ -182,9 +190,9 @@
"oneOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9-._]{1,64}$",
"minLength": 1,
"maxLength": 64
"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"
Expand All @@ -195,7 +203,7 @@
"properties": {
"oneOf": [
{
"$ref": "#/definitions/DigitalTwinsEndpointResourceProperties"
"$ref": "#/definitions/DigitalTwinsEndpointResourcePropertiesModel"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
Expand All @@ -218,7 +226,7 @@
],
"description": "Microsoft.DigitalTwins/digitalTwinsInstances/endpoints"
},
"DigitalTwinsProperties": {
"DigitalTwinsPropertiesModel": {
"type": "object",
"properties": {},
"description": "The properties of a DigitalTwinsInstance."
Expand Down Expand Up @@ -246,7 +254,7 @@
],
"description": "Information about the SKU of the DigitalTwinsInstance."
},
"EventGrid": {
"EventGridModel": {
"type": "object",
"properties": {
"accessKey1": {
Expand Down Expand Up @@ -275,7 +283,7 @@
],
"description": "properties related to eventgrid."
},
"EventHub": {
"EventHubModel": {
"type": "object",
"properties": {
"connectionString-PrimaryKey": {
Expand All @@ -300,7 +308,7 @@
],
"description": "properties related to eventhub."
},
"ServiceBus": {
"ServiceBusModel": {
"type": "object",
"properties": {
"endpointType": {
Expand Down
Loading