-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add data-plane 2023-06-30 for Azure Digital Twins (#23616)
* Add data-plane 2023-06-30 for Azure Digital Twins * Add x-ms-error-code to header
- Loading branch information
1 parent
e773d51
commit 2c0f2c7
Showing
43 changed files
with
3,304 additions
and
1 deletion.
There are no files selected for viewing
2,127 changes: 2,127 additions & 0 deletions
2,127
...cation/digitaltwins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/digitaltwins.json
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
.../Microsoft.DigitalTwins/stable/2023-06-30/examples/CreateRelationshipAdvancedExample.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-06-30", | ||
"id": "mySourceTwin", | ||
"relationshipId": "myRelationshipId", | ||
"relationship": { | ||
"$targetId": "myTargetTwin", | ||
"$relationshipName": "myRelationship", | ||
"relationshipProperty1": 1, | ||
"relationshipProperty2": "some value" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"$relationshipId": "myRelationshipId", | ||
"$sourceId": "mySourceTwin", | ||
"$targetId": "myTargetTwin", | ||
"$relationshipName": "myRelationship", | ||
"relationshipProperty1": 1, | ||
"relationshipProperty2": "some value", | ||
"$etag": "W/\"1553dbf5-0052-4be8-bea8-46269075b503\"" | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ane/Microsoft.DigitalTwins/stable/2023-06-30/examples/CreateRelationshipBasicExample.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-06-30", | ||
"id": "mySourceTwin", | ||
"relationshipId": "myRelationshipId", | ||
"relationship": { | ||
"$targetId": "myTargetTwin", | ||
"$relationshipName": "myRelationship" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"$relationshipId": "myRelationshipId", | ||
"$sourceId": "mySourceTwin", | ||
"$targetId": "myTargetTwin", | ||
"$relationshipName": "myRelationship", | ||
"$etag": "W/\"1553dbf5-0052-4be8-bea8-46269075b503\"" | ||
} | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...igitaltwins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/DeleteModel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-06-30", | ||
"id": "dtmi:com:example:Sample;1" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...wins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/DeleteRelationship.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-06-30", | ||
"id": "myTwinId", | ||
"relationshipId": "myRelationshipId" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...digitaltwins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/DeleteTwin.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-06-30", | ||
"id": "myTwinId" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...ltwins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/EventRouteDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"parameters": { | ||
"id": "eventroute-001", | ||
"api-version": "2023-06-30" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...italtwins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/EventRouteGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"parameters": { | ||
"id": "eventroute-001", | ||
"api-version": "2023-06-30" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "eventroute-001", | ||
"endpointName": "endpoint-001", | ||
"filter": "type = 'Microsoft.DigitalTwins.Twin.Create'" | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...italtwins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/EventRoutePut.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"id": "eventroute-001", | ||
"eventRoute": { | ||
"endpointName": "endpoint-001", | ||
"filter": "true" | ||
}, | ||
"api-version": "2023-06-30" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/EventRoutePutWithFilter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"id": "eventroute-001", | ||
"eventRoute": { | ||
"endpointName": "endpoint-001", | ||
"filter": "type = 'Microsoft.DigitalTwins.Twin.Create'" | ||
}, | ||
"api-version": "2023-06-30" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...altwins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/EventRoutesList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-06-30" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "eventroute-001", | ||
"endpointName": "endpoint-001", | ||
"filter": "type = 'Microsoft.DigitalTwins.Twin.Create'" | ||
}, | ||
{ | ||
"id": "eventroute-002", | ||
"endpointName": "endpoint-002", | ||
"filter": "type = 'Microsoft.DigitalTwins.Twin.Create' OR type = 'microsoft.iot.telemetry'" | ||
} | ||
], | ||
"nextLink": "url-to-next-page" | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...gitaltwins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/GetComponent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-06-30", | ||
"id": "myTwinId", | ||
"componentPath": "myComponent" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"property1": 1, | ||
"property2": { | ||
"subProperty1": "some value", | ||
"subProperty2": "some other value" | ||
}, | ||
"component1": { | ||
"componentProperty": "some value", | ||
"$metadata": { | ||
"$lastUpdateTime": "2022-02-28T00:30:00.1234567Z", | ||
"componentProperty": { | ||
"lastUpdateTime": "2022-02-28T00:30:00.1234567Z" | ||
} | ||
} | ||
}, | ||
"$metadata": { | ||
"$lastUpdateTime": "2022-02-28T00:30:00.1234567Z", | ||
"property1": { | ||
"lastUpdateTime": "2022-02-28T00:30:00.1234567Z" | ||
}, | ||
"property2": { | ||
"lastUpdateTime": "2022-02-28T00:30:00.1234567Z" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/GetIncomingRelationship.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-06-30", | ||
"id": "mySourceTwin" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"$sourceId": "mySourceTwin", | ||
"$relationshipId": "firstRelationshipId", | ||
"$relationshipName": "myRelationship", | ||
"$relationshipLink": "/digitaltwins/mySourceTwin/relationships/myRelationship/firstRelationshipId" | ||
}, | ||
{ | ||
"$sourceId": "mySourceTwin", | ||
"$relationshipId": "secondRelationshipId", | ||
"$relationshipName": "myRelationship", | ||
"$relationshipLink": "/digitaltwins/mySourceTwin/relationships/myRelationship/secondRelationshipId" | ||
} | ||
], | ||
"nextLink": "url-to-next-page" | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...altwins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/GetRelationship.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-06-30", | ||
"id": "mySourceTwin" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"$sourceId": "mySourceTwin", | ||
"$relationshipId": "firstRelationshipId", | ||
"$targetId": "targetTwinId", | ||
"$relationshipName": "myRelationship", | ||
"$etag": "W/\"1553dbf5-0052-4be8-bea8-46269075b503\"", | ||
"property": "value" | ||
}, | ||
{ | ||
"$sourceId": "mySourceTwin", | ||
"$relationshipId": "secondRelationshipId", | ||
"$targetId": "targetTwinId", | ||
"$relationshipName": "myRelationship", | ||
"$etag": "W/\"2552a0a7-0666-4d5e-a67f-ece5b9b81fe0\"", | ||
"property": "value" | ||
} | ||
], | ||
"nextLink": "url-to-next-page" | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...ins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/GetRelationshipById.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-06-30", | ||
"id": "mySourceTwin", | ||
"relationshipId": "myRelationshipId" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"$relationshipId": "myRelationshipId", | ||
"$sourceId": "mySourceTwin", | ||
"$targetId": "myTargetTwin", | ||
"$relationshipName": "myRelationship", | ||
"$etag": "W/\"1553dbf5-0052-4be8-bea8-46269075b503\"", | ||
"relationshipProperty": "some value" | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
.../Microsoft.DigitalTwins/stable/2023-06-30/examples/GetRelationshipByRelationshipName.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-06-30", | ||
"id": "mySourceTwin", | ||
"relationshipName": "myRelationship" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"$sourceId": "mySourceTwin", | ||
"$relationshipId": "firstRelationshipId", | ||
"$targetId": "targetTwinId", | ||
"$relationshipName": "myRelationship", | ||
"$etag": "W/\"1553dbf5-0052-4be8-bea8-46269075b503\"", | ||
"property": "value" | ||
}, | ||
{ | ||
"$sourceId": "mySourceTwin", | ||
"$relationshipId": "secondRelationshipId", | ||
"$targetId": "targetTwinId", | ||
"$relationshipName": "myRelationship", | ||
"$etag": "W/\"2552a0a7-0666-4d5e-a67f-ece5b9b81fe0\"", | ||
"property": "value" | ||
} | ||
], | ||
"nextLink": "url-to-next-page" | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...on/digitaltwins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/GetTwin.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-06-30", | ||
"id": "myTwinId" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"$dtId": "myTwinId", | ||
"$etag": "W/\"9c2876c2-aff0-40b3-9fba-0c6be9d020a6\"", | ||
"property1": 1, | ||
"property2": { | ||
"subProperty1": "some value", | ||
"subProperty2": "some other value" | ||
}, | ||
"component1": { | ||
"componentProperty": "some value", | ||
"$metadata": { | ||
"$lastUpdateTime": "2022-02-28T00:30:00.1234567Z", | ||
"componentProperty": { | ||
"lastUpdateTime": "2022-02-28T00:30:00.1234567Z" | ||
} | ||
} | ||
}, | ||
"$metadata": { | ||
"$model": "dtmi:com:example:interfaces:interfaceName;1", | ||
"$lastUpdateTime": "2022-02-28T00:30:00.1234567Z", | ||
"property1": { | ||
"lastUpdateTime": "2022-02-28T00:30:00.1234567Z" | ||
}, | ||
"property2": { | ||
"lastUpdateTime": "2022-02-28T00:30:00.1234567Z" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...altwins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/ImportJobCancel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-06-30", | ||
"id": "importjob1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "importjob1", | ||
"inputBlobUri": "path to input blob", | ||
"outputBlobUri": "path to output blob", | ||
"createdDateTime": "2022-01-01T00:00:00.0000000+00:00", | ||
"lastActionDateTime": "2022-01-01T00:01:00.0000000+00:00", | ||
"purgeDateTime": "2022-01-31T00:01:00.0000000+00:00", | ||
"status": "cancelling" | ||
} | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...altwins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/ImportJobDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"parameters": { | ||
"id": "bulkimportjob1", | ||
"api-version": "2023-06-30" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...gitaltwins/data-plane/Microsoft.DigitalTwins/stable/2023-06-30/examples/ImportJobGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"parameters": { | ||
"id": "importjob1", | ||
"api-version": "2023-06-30" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "importjob1", | ||
"inputBlobUri": "path to input blob", | ||
"outputBlobUri": "path to output blob", | ||
"createdDateTime": "2022-01-01T00:00:00.0000000+00:00", | ||
"lastActionDateTime": "2022-01-01T00:01:00.0000000+00:00", | ||
"finishedDateTime": "2022-01-01T00:01:00.0000000+00:00", | ||
"purgeDateTime": "2022-01-31T00:01:00.0000000+00:00", | ||
"status": "succeeded" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.