Skip to content

Commit 9135e20

Browse files
sjiherzigmarkcowl
andauthored
Microsoft.DigitalTwins - add stable data-plane API version 2022-05-31 (#18790)
* Add blockchain to latest profile * Add additional types * Adds base for updating Microsoft.DigitalTwins from version preview/2021-06-30-preview to version 2022-05-31 * Updates readme * Updates API version in new specs and examples * Add new API version * Update build configuration * Add sourceTime examples * Reformat examples * Address review comments * Address more review feedback * Fix required fields * Address semantic validation errors * Fix lintdiff errors * Fix lintdiff warnings * Address model validation errors * Fix formatting * Add back readonly, since model is only returned by service * Remove required properties from Error model Co-authored-by: Mark Cowlishaw <[email protected]>
1 parent 60a19ff commit 9135e20

39 files changed

+2722
-9
lines changed

specification/digitaltwins/data-plane/Microsoft.DigitalTwins/stable/2022-05-31/digitaltwins.json

Lines changed: 1632 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-05-31",
4+
"id": "mySourceTwin",
5+
"relationshipId": "myRelationshipId",
6+
"relationship": {
7+
"$targetId": "myTargetTwin",
8+
"$relationshipName": "myRelationship",
9+
"relationshipProperty1": 1,
10+
"relationshipProperty2": "some value"
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"$relationshipId": "myRelationshipId",
17+
"$sourceId": "mySourceTwin",
18+
"$targetId": "myTargetTwin",
19+
"$relationshipName": "myRelationship",
20+
"relationshipProperty1": 1,
21+
"relationshipProperty2": "some value",
22+
"$etag": "W/\"1553dbf5-0052-4be8-bea8-46269075b503\""
23+
}
24+
}
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-05-31",
4+
"id": "mySourceTwin",
5+
"relationshipId": "myRelationshipId",
6+
"relationship": {
7+
"$targetId": "myTargetTwin",
8+
"$relationshipName": "myRelationship"
9+
}
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"$relationshipId": "myRelationshipId",
15+
"$sourceId": "mySourceTwin",
16+
"$targetId": "myTargetTwin",
17+
"$relationshipName": "myRelationship",
18+
"$etag": "W/\"1553dbf5-0052-4be8-bea8-46269075b503\""
19+
}
20+
}
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-05-31",
4+
"id": "dtmi:com:example:Sample;1"
5+
},
6+
"responses": {
7+
"204": {}
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-05-31",
4+
"id": "myTwinId",
5+
"relationshipId": "myRelationshipId"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-05-31",
4+
"id": "myTwinId"
5+
},
6+
"responses": {
7+
"204": {}
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"parameters": {
3+
"id": "eventroute-001",
4+
"api-version": "2022-05-31"
5+
},
6+
"responses": {
7+
"204": {}
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"id": "eventroute-001",
4+
"api-version": "2022-05-31"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "eventroute-001",
10+
"endpointName": "endpoint-001",
11+
"filter": "type = 'Microsoft.DigitalTwins.Twin.Create'"
12+
}
13+
}
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"id": "eventroute-001",
4+
"eventRoute": {
5+
"endpointName": "endpoint-001",
6+
"filter": "true"
7+
},
8+
"api-version": "2022-05-31"
9+
},
10+
"responses": {
11+
"204": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"id": "eventroute-001",
4+
"eventRoute": {
5+
"endpointName": "endpoint-001",
6+
"filter": "type = 'Microsoft.DigitalTwins.Twin.Create'"
7+
},
8+
"api-version": "2022-05-31"
9+
},
10+
"responses": {
11+
"204": {}
12+
}
13+
}

0 commit comments

Comments
 (0)