Skip to content

Commit 1233f92

Browse files
authored
Microsoft.DigitalTwins: add new Data Plane API Version 2021-06-30-preview (#16963)
* Add swagger for new API version * Add new API version to autorest config * Relax parameter by removing enum restriction * Fix Go and Python config * Add config for Java SDK * Fix spacing * Add back enum value
1 parent f727c69 commit 1233f92

40 files changed

+2634
-3
lines changed

specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2021-06-30-preview/digitaltwins.json

Lines changed: 1624 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": "2021-06-30-preview",
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": "2021-06-30-preview",
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+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-06-30-preview",
4+
"id": "dtmi:com:example:Sample;1"
5+
},
6+
"responses": {
7+
"204": {}
8+
}
9+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-06-30-preview",
4+
"id": "myTwinId",
5+
"relationshipId": "myRelationshipId"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-06-30-preview",
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": "2021-06-30-preview"
5+
},
6+
"responses": {
7+
"204": {}
8+
}
9+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"id": "eventroute-001",
4+
"api-version": "2021-06-30-preview"
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+
}
Lines changed: 13 additions & 0 deletions
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": "2021-06-30-preview"
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": "2021-06-30-preview"
9+
},
10+
"responses": {
11+
"204": {}
12+
}
13+
}

0 commit comments

Comments
 (0)